/* ===== 沙發先生家居 — 前台 redesign ===== */
:root{
  --cream:#faf6f0; --surface:#ffffff; --ink:#2e2a26; --muted:#7a7268;
  --line:#ece4d8; --wood:#6b4f3a; --wood-2:#8a6d52; --terra:#c0734e;
  --terra-d:#a85f3d; --green:#5d6b56; --gold:#bd9b5f;
  --radius:18px; --shadow:0 18px 50px rgba(60,42,28,.10); --shadow-sm:0 6px 18px rgba(60,42,28,.08);
  --maxw:1180px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;
  color:var(--ink);background:var(--cream);line-height:1.7;-webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.serif{font-family:"Cormorant Garamond","Noto Serif TC",serif}
/* UI 圖示：Lucide 線條 SVG，顏色隨文字 (currentColor) */
.eic{height:1.05em;width:auto;vertical-align:-0.18em;display:inline-block;flex:none}
.icon-btn .eic{height:21px}
.logo .mark{color:#fff}
.logo .mark .eic{height:23px}
.cat-card .ico .eic{height:40px}
.hero-badge .eic,.note .eic{height:18px}
.btn .eic{height:18px}
.foot-brand b .eic,footer.site h4 .eic{height:20px}
.branch .pin{color:var(--terra)}
.branch .pin .eic{height:22px}
.cat-card .cphoto .ico{color:var(--terra)}
.icon-card .ic{color:var(--terra)}
footer.site li .eic{height:16px;opacity:.8}
.topbar .eic{height:15px}
.spec .eic,.detail .eic{height:18px}
.prod .fav{color:#c0b6a6}
.prod .fav .eic{height:18px}
.prod .fav.liked{color:var(--terra)}
.prod .fav.liked .eic{fill:var(--terra)}
.rate .eic{height:15px;vertical-align:-0.18em;fill:currentColor}
.chip .eic{height:16px;vertical-align:-0.22em}
.eic-xl{height:60px;width:auto;display:inline-block;color:var(--terra);stroke-width:1.6}
.page-hero h1 .eic{height:34px;vertical-align:-0.1em}
/* icon feature cards（關於我們 等） */
.icon-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.icon-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:26px;text-align:center;transition:.25s}
.icon-card:hover{transform:translateY(-6px);box-shadow:var(--shadow);border-color:transparent}
.icon-card .ic{width:64px;height:64px;border-radius:18px;background:var(--cream);display:grid;place-items:center;margin:0 auto 14px}
.icon-card .ic .eic{height:34px}
.icon-card b{display:block;margin-bottom:6px;font-size:18px}
.icon-card small{color:var(--muted)}
@media(max-width:780px){.icon-cards{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.icon-cards{grid-template-columns:1fr}}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}
.btn{display:inline-flex;align-items:center;gap:8px;padding:13px 26px;border-radius:999px;
  font-weight:600;border:1.5px solid transparent;cursor:pointer;transition:.22s;font-size:15px}
.btn-primary{background:var(--terra);color:#fff}
.btn-primary:hover{background:var(--terra-d);transform:translateY(-2px);box-shadow:var(--shadow-sm)}
.btn-ghost{border-color:var(--ink);color:var(--ink)}
.btn-ghost:hover{background:var(--ink);color:#fff}
.btn-light{background:#fff;color:var(--ink);border-color:var(--line)}
.btn-light:hover{border-color:var(--terra);color:var(--terra)}

/* ---- Topbar + Header ---- */
.topbar{background:var(--wood);color:#f3e9dd;font-size:13px;letter-spacing:.5px}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;height:38px}
.topbar a{opacity:.9}.topbar a:hover{opacity:1}
header.site{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;height:74px}
.logo{display:flex;align-items:center;gap:12px}
.logo .mark{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,var(--terra),var(--wood));
  display:grid;place-items:center;color:#fff;font-size:22px}
.logo b{font-size:20px;letter-spacing:1px}
.logo span{display:block;font-size:11px;color:var(--muted);letter-spacing:3px}
.menu{display:flex;gap:30px;align-items:center;font-weight:500}
.menu a{position:relative;padding:6px 0;font-size:15px}
.menu a::after{content:"";position:absolute;left:0;bottom:0;width:0;height:2px;background:var(--terra);transition:.25s}
.menu a:hover::after,.menu a.active::after{width:100%}
.nav-actions{display:flex;gap:10px;align-items:center}
.icon-btn{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--line);
  background:#fff;font-size:18px;transition:.2s;cursor:pointer}
.icon-btn:hover{border-color:var(--terra);color:var(--terra)}
.burger{display:none}
.m-cta{display:none}
/* 標準三條線漢堡（純 CSS，最通用易懂） */
.burger .bars,.burger .bars::before,.burger .bars::after{display:block;width:20px;height:2px;background:var(--ink);border-radius:2px;transition:transform .22s,opacity .22s}
.burger .bars{position:relative}
.burger .bars::before{content:"";position:absolute;top:-6px;left:0}
.burger .bars::after{content:"";position:absolute;top:6px;left:0}
.burger.on .bars{background:transparent}
.burger.on .bars::before{transform:translateY(6px) rotate(45deg)}
.burger.on .bars::after{transform:translateY(-6px) rotate(-45deg)}

/* ---- Hero ---- */
.hero{position:relative;background:linear-gradient(120deg,#f1e7d9 0%,#faf6f0 60%);overflow:hidden}
.hero .wrap{display:grid;grid-template-columns:1.05fr .95fr;gap:40px;align-items:center;padding-top:64px;padding-bottom:64px}
.hero .eyebrow{color:var(--terra);font-weight:700;letter-spacing:4px;font-size:13px}
.hero h1{font-size:54px;line-height:1.18;margin:14px 0 18px;font-weight:800;letter-spacing:1px}
.hero h1 em{font-style:normal;color:var(--terra)}
.hero p{font-size:18px;color:var(--muted);max-width:480px;margin-bottom:30px}
.hero-cta{display:flex;gap:14px;flex-wrap:wrap}
.hero-stats{display:flex;gap:34px;margin-top:38px}
.hero-stats div b{font-size:28px;color:var(--wood);font-family:"Cormorant Garamond",serif}
.hero-stats div span{font-size:13px;color:var(--muted);display:block}
.hero-art{position:relative;height:440px;border-radius:26px;overflow:hidden;box-shadow:var(--shadow)}
.hero-art img{width:100%;height:100%;object-fit:cover}
.hero-badge{position:absolute;bottom:18px;left:18px;background:#fff;border-radius:14px;padding:12px 18px;
  box-shadow:var(--shadow-sm);font-size:14px;font-weight:600}
.hero-badge span{color:var(--terra)}

/* ---- Section ---- */
section.block{padding:78px 0}
.sec-head{text-align:center;max-width:620px;margin:0 auto 46px}
.sec-head .kicker{color:var(--terra);font-weight:700;letter-spacing:4px;font-size:13px}
.sec-head h2{font-size:38px;margin:10px 0 12px;font-weight:800}
.sec-head p{color:var(--muted)}

/* ---- Category cards ---- */
.cat-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:18px}
.cat-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:.25s;display:block}
.cat-card:hover{transform:translateY(-6px);box-shadow:var(--shadow);border-color:transparent}
.cat-card .cphoto{aspect-ratio:4/3;background:linear-gradient(135deg,#e9ddca,#d7c4a8);position:relative}
.cat-card .cphoto img{width:100%;height:100%;object-fit:cover}
.cat-card .cphoto .ico{position:absolute;left:12px;bottom:12px;width:42px;height:42px;border-radius:11px;background:rgba(255,255,255,.92);display:grid;place-items:center;box-shadow:var(--shadow-sm)}
.cat-card .cphoto .ico .eic{height:24px}
.cat-card .ctext{padding:15px 18px 20px}
.cat-card .ctext b{display:block;font-size:18px}
.cat-card .ctext b small{color:var(--gold);font-size:13px}
.cat-card .ctext>small{color:var(--muted);font-size:12.5px;line-height:1.5;display:block;margin-top:4px}

/* ---- Product grid ---- */
.prod-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.prod{background:#fff;border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);transition:.25s;position:relative}
.prod:hover{transform:translateY(-6px);box-shadow:var(--shadow)}
.prod .ph{aspect-ratio:4/3;position:relative;background:linear-gradient(135deg,#e9ddca,#d7c4a8)}
.prod .ph img{width:100%;height:100%;object-fit:cover}
.prod .tag{position:absolute;top:12px;left:12px;background:var(--terra);color:#fff;font-size:12px;
  padding:4px 12px;border-radius:999px;font-weight:600}
.prod .fav{position:absolute;top:10px;right:10px;width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.9);
  display:grid;place-items:center;cursor:pointer;font-size:15px}
.prod .body{padding:16px 16px 20px}
.prod .meta{font-size:12px;color:var(--muted)}
.prod h3{font-size:16px;margin:6px 0 10px;font-weight:700;line-height:1.45}
.prod .price{display:flex;align-items:baseline;gap:8px}
.prod .price b{font-size:20px;color:var(--terra)}
.prod .price s{font-size:13px;color:#b8ae9f}
.prod .rate{font-size:12.5px;color:var(--gold);margin-top:6px}
.soldout{filter:grayscale(.5);opacity:.75}

/* ---- Feature / brand story ---- */
.story{background:var(--wood);color:#f5ece0}
.story .wrap{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:center}
.story h2{font-size:36px;margin-bottom:18px;color:#fff}
.story p{opacity:.85;margin-bottom:16px}
.story .pts{display:grid;gap:14px;margin-top:24px}
.story .pt{display:flex;gap:12px;align-items:flex-start}
.story .pt .n{width:34px;height:34px;border-radius:10px;background:var(--terra);display:grid;place-items:center;flex:none;font-weight:700}
.story-img{border-radius:22px;overflow:hidden;height:400px;box-shadow:var(--shadow)}
.story-img img{width:100%;height:100%;object-fit:cover}

/* ---- Steps ---- */
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.step{text-align:center;padding:28px 18px;background:#fff;border-radius:var(--radius);border:1px solid var(--line)}
.step .num{width:52px;height:52px;border-radius:50%;background:var(--cream);color:var(--terra);font-weight:800;
  display:grid;place-items:center;margin:0 auto 14px;font-size:20px;font-family:"Cormorant Garamond",serif}
.step b{display:block;margin-bottom:6px}
.step small{color:var(--muted)}

/* ---- Branches strip ---- */
.branch-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.branch{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;display:flex;gap:14px;align-items:flex-start;transition:.2s}
.branch:hover{border-color:var(--terra);box-shadow:var(--shadow-sm)}
.branch .pin{font-size:22px}
.branch b{font-size:16px}
.branch .flag{font-size:11px;background:var(--gold);color:#fff;padding:2px 8px;border-radius:999px;margin-left:6px}
.branch small{color:var(--muted);display:block}

/* ---- CTA band ---- */
.cta-band{background:linear-gradient(120deg,var(--terra),var(--wood-2));color:#fff;border-radius:26px;
  padding:54px;text-align:center;margin:0 auto}
.cta-band h2{font-size:34px;margin-bottom:10px}
.cta-band p{opacity:.9;margin-bottom:26px}

/* ---- Footer ---- */
footer.site{background:#241f1b;color:#cbbfb0;padding:60px 0 26px;margin-top:20px}
.foot-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1.3fr;gap:36px}
footer.site h4{color:#fff;font-size:15px;margin-bottom:16px;letter-spacing:1px}
footer.site a,footer.site li{display:block;font-size:14px;color:#b6a998;margin-bottom:9px}
footer.site a:hover{color:var(--terra)}
.foot-brand b{font-size:22px;color:#fff;letter-spacing:1px}
.foot-brand p{font-size:13px;margin-top:12px;line-height:1.7}
.foot-bottom{border-top:1px solid #3a332c;margin-top:40px;padding-top:20px;display:flex;
  justify-content:space-between;font-size:12.5px;color:#857a6c;flex-wrap:wrap;gap:8px}

/* ---- Page hero (內頁) ---- */
.page-hero{background:linear-gradient(120deg,#f1e7d9,#faf6f0);padding:54px 0;text-align:center}
.page-hero h1{font-size:40px;font-weight:800}
.page-hero p{color:var(--muted);margin-top:8px}
.crumb{font-size:13px;color:var(--muted);margin-top:14px}
.crumb a:hover{color:var(--terra)}

/* ---- Filter bar ---- */
.filters{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-bottom:34px}
.chip{padding:9px 20px;border-radius:999px;border:1px solid var(--line);background:#fff;cursor:pointer;font-size:14px;transition:.2s}
.chip:hover,.chip.active{background:var(--ink);color:#fff;border-color:var(--ink)}

/* ---- Booking form ---- */
.form-card{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:38px;max-width:680px;margin:0 auto}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.field{margin-bottom:18px}
.field label{display:block;font-size:14px;font-weight:600;margin-bottom:7px}
.field input,.field select,.field textarea{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:10px;
  font-family:inherit;font-size:15px;background:var(--cream)}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--terra);background:#fff}
.note{background:#fdf3ec;border:1px solid #f3d9c8;border-radius:12px;padding:14px 16px;font-size:13.5px;color:var(--terra-d);margin-bottom:22px}

/* ---- Product detail ---- */
.detail{display:grid;grid-template-columns:1fr 1fr;gap:40px}
.detail .gal{border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);aspect-ratio:4/3;background:linear-gradient(135deg,#e9ddca,#d7c4a8)}
.detail .gal img{width:100%;height:100%;object-fit:cover}
.detail h1{font-size:30px;margin:8px 0 14px}
.spec{list-style:none;margin:18px 0;border-top:1px solid var(--line)}
.spec li{display:flex;justify-content:space-between;padding:11px 0;border-bottom:1px solid var(--line);font-size:14.5px}
.spec li span{color:var(--muted)}
.big-price{font-size:34px;color:var(--terra);font-weight:800}
.big-price s{font-size:18px;color:#b8ae9f;font-weight:400;margin-left:10px}

@media(max-width:980px){
  .hero .wrap,.story .wrap,.detail{grid-template-columns:1fr}
  .hero-art,.story-img{height:300px;order:-1}
  .cat-grid{grid-template-columns:repeat(2,1fr)}
  .prod-grid{grid-template-columns:repeat(2,1fr)}
  .steps,.branch-grid{grid-template-columns:1fr 1fr}
  .foot-grid{grid-template-columns:1fr 1fr}
  .hero h1{font-size:38px}
  .burger{display:grid}
  .form-row{grid-template-columns:1fr}
  /* 行動版：精簡導覽列，只留 logo + 漢堡 */
  .nav-actions .icon-btn:not(.burger){display:none}
  .nav-actions>.btn-primary{display:none}
  .logo .mark{width:38px;height:38px}
  .logo b{font-size:18px}
  /* 行動版下拉選單 */
  .menu{display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;
    align-items:stretch;gap:0;background:#fff;border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);box-shadow:var(--shadow);padding:10px 24px 16px}
  .menu.open{display:flex}
  .menu a{padding:14px 2px;font-size:16px;border-bottom:1px solid var(--line)}
  .menu a::after{display:none}
  .menu .m-cta{display:block;margin-top:12px;background:var(--terra);color:#fff;text-align:center;
    border-radius:12px;padding:14px;font-weight:700;border-bottom:none}
  .menu .m-cta:active{background:var(--terra-d)}
}
@media(max-width:560px){
  .cat-grid,.prod-grid,.steps,.branch-grid,.foot-grid{grid-template-columns:1fr}
  .hero h1{font-size:30px}.cta-band{padding:34px 22px}
  /* 手機版頂部資訊列：只留一行精簡資訊、置中、不裁切 */
  .topbar{font-size:12px}
  .topbar .wrap{height:auto;min-height:34px;justify-content:center;text-align:center;padding-top:6px;padding-bottom:6px}
  .topbar .wrap>span:first-child{display:none}
  .topbar .eic{height:14px}
}
