/* ============================================================
   MUFU 木馥 — independent storefront demo
   ============================================================ */

:root {
  --bg: #fbf9f5;
  --surface: #ffffff;
  --surface-2: #f4efe7;
  --ink: #2e2a25;
  --ink-soft: #575047;
  --muted: #8d8377;
  --line: #e5ddd0;
  --line-strong: #d4c7b5;
  --wood: #a67c52;
  --wood-dark: #6f4e33;
  --wood-light: #d9c3a5;
  --sage: #6c7a68;
  --accent: #b08d5f;
  --serif: Georgia, 'Times New Roman', 'Songti SC', 'STSong', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --shadow: 0 18px 50px rgba(68, 51, 34, .08);
  --radius: 2px;
  --header-h: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--wood-light); color: var(--ink); }

.container { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.container-narrow { width: min(860px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 104px 0; }
.section-sm { padding: 68px 0; }
.serif { font-family: var(--serif); font-weight: 400; }
.eyebrow {
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--wood); font-weight: 600;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.18; margin: 0; }
h1 { font-size: clamp(46px, 6vw, 82px); letter-spacing: -.02em; }
h2 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -.015em; }
h3 { font-size: 24px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 18px; line-height: 1.85; color: var(--ink-soft); }
.muted { color: var(--muted); }
.center { text-align: center; }
.section-head { max-width: 640px; margin: 0 auto 54px; text-align: center; }
.section-head .eyebrow { display: block; margin-bottom: 16px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; border-radius: var(--radius);
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { background: var(--wood-dark); border-color: var(--wood-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: var(--surface); color: var(--ink); border-color: var(--surface); }
.btn-light:hover { background: var(--wood); border-color: var(--wood); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 11px; }
.text-link {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 1px solid var(--wood); padding-bottom: 5px; display: inline-block;
  transition: color .2s, border-color .2s;
}
.text-link:hover { color: var(--wood-dark); border-color: var(--wood-dark); }

/* ---------- header ---------- */
.announcement {
  background: var(--ink); color: #f3e9da; text-align: center;
  font-size: 11px; letter-spacing: .12em; padding: 9px 20px; text-transform: uppercase;
}
.announcement span { opacity: .55; margin: 0 10px; }
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(251, 249, 245, .95);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: baseline; gap: 10px; flex-shrink: 0; }
.logo-mark {
  font-family: var(--serif); font-size: 28px; letter-spacing: .18em; line-height: 1;
  color: var(--ink);
}
.logo-sub { font-size: 9px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 34px; margin-left: auto; }
.main-nav a {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
  color: var(--ink-soft); position: relative; padding: 6px 0;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--wood); transition: width .25s;
}
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 18px; margin-left: 18px; }
.currency-select, .lang-select {
  border: 0; background: transparent; font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-soft); padding: 6px 2px; cursor: pointer;
}
.lang-select {
  border-left: 1px solid rgba(46,42,37,.18); padding-left: 12px;
  text-transform: none; letter-spacing: .04em; font-size: 11px;
}
.icon-btn {
  border: 0; background: transparent; padding: 6px; display: grid; place-items: center;
  color: var(--ink); position: relative;
}
.icon-btn svg { width: 20px; height: 20px; stroke-width: 1.5; }
.cart-count {
  position: absolute; top: -3px; right: -6px; min-width: 17px; height: 17px;
  background: var(--wood-dark); color: #fff; border-radius: 50%; font-size: 10px;
  display: grid; place-items: center; padding: 0 3px;
}
.menu-toggle { display: none; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.hero-copy {
  padding: 90px 6% 80px max(32px, calc((100vw - 1240px) / 2));
  display: flex; flex-direction: column; justify-content: center;
}
.hero-copy .eyebrow { margin-bottom: 26px; }
.hero-copy h1 { margin-bottom: 28px; }
.hero-copy h1 em { font-style: italic; color: var(--wood-dark); }
.hero-copy .lead { max-width: 470px; margin-bottom: 38px; }
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero-media { position: relative; overflow: hidden; background: var(--surface-2); min-height: 640px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-caption {
  position: absolute; left: 30px; bottom: 28px; z-index: 2; color: #fff;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0,0,0,.5);
}

/* ---------- value strip ---------- */
.values { border-block: 1px solid var(--line); background: var(--surface); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.value-item { padding: 34px 26px; text-align: center; border-right: 1px solid var(--line); }
.value-item:last-child { border-right: 0; }
.value-item h4 { font-family: var(--serif); font-size: 20px; margin-bottom: 6px; }
.value-item p { font-size: 13px; color: var(--muted); }

/* ---------- product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 24px; }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.product-card { position: relative; }
.product-media {
  position: relative; aspect-ratio: 1 / 1.12; overflow: hidden;
  background: var(--surface-2); margin-bottom: 18px;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.product-card:hover .product-media img { transform: scale(1.045); }
.product-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--surface); color: var(--ink); font-size: 9px;
  letter-spacing: .16em; text-transform: uppercase; padding: 6px 10px;
}
.quick-add {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
  background: var(--ink); color: #fff; border: 0; min-height: 44px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s, background .25s;
}
.product-card:hover .quick-add, .quick-add:focus-visible { opacity: 1; transform: translateY(0); }
.quick-add:hover { background: var(--wood-dark); }
.product-info h3 { font-family: var(--serif); font-size: 20px; line-height: 1.3; }
.product-info h3 a:hover { color: var(--wood-dark); }
.product-cn { font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.product-price { font-size: 14px; margin-top: 6px; color: var(--ink); }
.product-price s { color: var(--muted); margin-left: 8px; font-size: 12px; }
.card-cart {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 38px; margin-top: 12px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  font-size: 10px; letter-spacing: .13em; text-transform: uppercase;
  border-radius: var(--radius); transition: background .2s, color .2s, border-color .2s;
}
.card-cart svg { width: 15px; height: 15px; stroke-width: 1.5; }
.card-cart:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- split story ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 90px; }
.split-media { position: relative; aspect-ratio: 4 / 4.6; overflow: hidden; background: var(--surface-2); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media::after {
  content: ''; position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,.35); pointer-events: none;
}
.split-copy .eyebrow { display: block; margin-bottom: 20px; }
.split-copy h2 { margin-bottom: 24px; }
.split-copy p { color: var(--ink-soft); margin-bottom: 18px; }
.split-copy .text-link { margin-top: 12px; }
.stats { display: flex; gap: 44px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.stat strong { font-family: var(--serif); font-size: 34px; font-weight: 400; display: block; line-height: 1.1; }
.stat span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- ritual ---------- */
.ritual { background: var(--surface-2); }
.ritual-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.ritual-step { padding: 10px 46px; border-right: 1px solid var(--line-strong); text-align: center; }
.ritual-step:last-child { border-right: 0; }
.ritual-num { font-family: var(--serif); font-size: 46px; color: var(--wood-light); line-height: 1; margin-bottom: 18px; }
.ritual-step h3 { font-size: 23px; margin-bottom: 12px; }
.ritual-step p { color: var(--muted); font-size: 14px; }

/* ---------- journal ---------- */
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.journal-card .journal-media { aspect-ratio: 1.5 / 1; overflow: hidden; background: var(--surface-2); margin-bottom: 20px; }
.journal-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.journal-card:hover img { transform: scale(1.04); }
.journal-meta { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--wood); margin-bottom: 10px; }
.journal-card h3 { font-size: 22px; margin-bottom: 10px; line-height: 1.35; }
.journal-card p { color: var(--muted); font-size: 14px; }

/* ---------- newsletter ---------- */
.newsletter { background: var(--ink); color: #f7efe3; text-align: center; }
.newsletter .eyebrow { color: var(--wood-light); }
.newsletter h2 { margin: 16px 0 14px; }
.newsletter p { color: #c9bda9; max-width: 520px; margin: 0 auto 30px; }
.newsletter-form { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
.newsletter-form input {
  flex: 1; background: transparent; border: 1px solid #6a6055; color: #fff;
  padding: 0 18px; min-height: 50px; outline: none;
}
.newsletter-form input::placeholder { color: #9c9184; }
.newsletter-form input:focus { border-color: var(--wood-light); }
.form-note { font-size: 12px; margin-top: 16px; min-height: 18px; color: var(--wood-light); }

/* ---------- footer ---------- */
.site-footer { background: #f4efe7; padding: 76px 0 26px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 50px; }
.footer-brand .logo-mark { font-size: 30px; }
.footer-brand p { max-width: 290px; color: var(--muted); font-size: 14px; margin-top: 18px; }
.footer-col h4 { font-family: var(--sans); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; font-size: 14px; color: var(--ink-soft); }
.footer-col a:hover { color: var(--wood-dark); }
.footer-bottom {
  margin-top: 60px; padding-top: 22px; border-top: 1px solid var(--line-strong);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
}
.footer-bottom .pay { letter-spacing: .12em; }

/* ---------- inner page hero ---------- */
.page-hero { padding: 80px 0 64px; border-bottom: 1px solid var(--line); background: var(--surface); }
.page-hero .eyebrow { display: block; margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(40px, 5vw, 66px); margin-bottom: 18px; }
.page-hero p { color: var(--muted); max-width: 620px; }
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--wood-dark); }
.breadcrumb span { margin: 0 8px; opacity: .5; }

/* ---------- shop ---------- */
/* stock / made-to-order section switch */
.kind-switch {
  display: inline-flex; gap: 6px; padding: 5px; margin: 0 0 34px;
  border: 1px solid var(--line-strong); border-radius: 40px; background: var(--surface-2);
}
.kind-btn {
  display: inline-flex; align-items: center; gap: 9px; border: 0; background: transparent;
  padding: 11px 22px; border-radius: 30px; cursor: pointer; font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: all .2s;
}
.kind-btn:hover { color: var(--ink); }
.kind-btn.active { background: var(--ink); color: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.12); }
.kind-count {
  display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 20px;
  font-size: 10px; line-height: 1.6; text-align: center;
  background: rgba(0,0,0,.06); color: var(--muted);
}
.kind-btn.active .kind-count { background: rgba(255,255,255,.2); color: #fff; }

.section-intro { max-width: 680px; margin: 0 0 8px; }
.section-intro h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 10px 0 12px; line-height: 1.15; }
.section-intro p { color: var(--muted); font-size: 15px; line-height: 1.75; }

.price-prefix { font-size: 12px; color: var(--muted); font-weight: 400; margin-right: 2px; }
.badge-custom { background: var(--wood-dark); }
.product-card.is-custom .product-media { background: var(--surface-2); }
.card-enquire { text-decoration: none; justify-content: center; }
.detail-enquire { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.product-detail.is-custom .detail-price { display: flex; align-items: baseline; }

.shop-toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 0; border-bottom: 1px solid var(--line); margin-bottom: 40px; flex-wrap: wrap;
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  border: 1px solid var(--line-strong); background: transparent; padding: 8px 16px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; border-radius: 30px;
  transition: all .2s;
}
.filter-btn:hover { border-color: var(--wood); color: var(--wood-dark); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.sort-select { border: 0; background: transparent; font-size: 12px; color: var(--ink-soft); cursor: pointer; }
.shop-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.shop-search {
  border: 1px solid var(--line-strong); background: var(--surface); padding: 9px 14px;
  min-width: 200px; outline: none; font-size: 13px; border-radius: var(--radius);
}
.shop-search:focus { border-color: var(--wood); }
.shop-empty { text-align: center; padding: 80px 0; color: var(--muted); }

/* ---------- product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: start; padding-top: 56px; }
.detail-media { background: var(--surface-2); aspect-ratio: 1 / 1.05; overflow: hidden; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-copy { padding-top: 18px; }
.detail-copy h1 { font-size: clamp(36px, 4vw, 54px); margin: 14px 0 8px; }
.detail-cn { color: var(--muted); font-size: 14px; letter-spacing: .1em; }
.detail-price { font-size: 24px; font-family: var(--serif); margin: 24px 0; }
.detail-desc { color: var(--ink-soft); margin-bottom: 26px; }
.detail-specs { list-style: none; padding: 0; margin: 0 0 30px; border-top: 1px solid var(--line); }
.detail-specs li { display: flex; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.detail-specs strong { min-width: 120px; font-weight: 500; color: var(--muted); }
.qty-row { display: flex; align-items: center; gap: 24px; margin-bottom: 20px; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--line-strong); }
.qty-control button {
  width: 42px; height: 44px; border: 0; background: transparent; font-size: 17px; color: var(--ink-soft);
}
.qty-control button:hover { background: var(--surface-2); }
.qty-control span { min-width: 34px; text-align: center; }
.detail-add { flex: 1; max-width: 260px; }
.detail-note { font-size: 12px; color: var(--muted); margin-top: 16px; }
.related { margin-top: 100px; }

/* ---------- about ---------- */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-intro .split-media { aspect-ratio: 1 / 1.05; }
.prose { max-width: 720px; margin-inline: auto; }
.prose h2 { margin: 0 0 24px; }
.prose p { color: var(--ink-soft); font-size: 16px; margin-bottom: 20px; }
.prose blockquote {
  font-family: var(--serif); font-size: 28px; line-height: 1.5; color: var(--wood-dark);
  border-left: 2px solid var(--wood-light); padding-left: 30px; margin: 44px 0;
}
.craft-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.craft-card { background: var(--surface); border: 1px solid var(--line); padding: 34px 30px; }
.craft-card .num { font-family: var(--serif); font-size: 32px; color: var(--wood-light); margin-bottom: 16px; }
.craft-card h3 { font-size: 22px; margin-bottom: 10px; }
.craft-card p { font-size: 14px; color: var(--muted); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: start; }
.contact-form { display: grid; gap: 18px; }
.field label { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--surface); border: 1px solid var(--line-strong);
  padding: 14px 16px; outline: none; border-radius: var(--radius);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--wood); }
.field textarea { min-height: 150px; resize: vertical; }
.contact-side h3 { font-size: 26px; margin-bottom: 16px; }
.contact-side p { color: var(--ink-soft); margin-bottom: 20px; }
.contact-info { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 24px; }
.contact-info div { margin-bottom: 14px; font-size: 14px; }
.contact-info span { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- cart drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(30, 24, 18, .45); z-index: 90;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--bg); z-index: 100; transform: translateX(100%);
  transition: transform .35s cubic-bezier(.22,.61,.36,1); display: flex; flex-direction: column;
  box-shadow: -20px 0 60px rgba(0,0,0,.12);
}
.cart-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 24px 26px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 26px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 26px; }
.cart-item { display: grid; grid-template-columns: 74px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 74px; height: 88px; object-fit: cover; background: var(--surface-2); }
.cart-item h4 { font-family: var(--serif); font-size: 17px; line-height: 1.3; }
.cart-item .ci-price { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); margin-top: 8px; }
.cart-qty button { border: 0; background: transparent; width: 26px; height: 26px; font-size: 13px; }
.cart-qty span { min-width: 22px; text-align: center; font-size: 12px; }
.cart-remove { border: 0; background: transparent; font-size: 11px; color: var(--muted); text-decoration: underline; padding: 0; }
.cart-empty { text-align: center; padding: 80px 10px; color: var(--muted); }
.drawer-foot { border-top: 1px solid var(--line); padding: 22px 26px 28px; }
.subtotal { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 15px; }
.shipping-note { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.drawer-foot .btn { width: 100%; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 13px 24px; font-size: 13px;
  z-index: 200; opacity: 0; visibility: hidden; transition: all .3s; pointer-events: none;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .split { gap: 48px; }
  .header-actions { gap: 10px; }
  .main-nav { gap: 20px; }
}
@media (max-width: 860px) {
  .container { width: calc(100% - 40px); }
  .section { padding: 74px 0; }
  .menu-toggle { display: grid; }
  .main-nav {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 84vw);
    background: var(--bg); z-index: 80; flex-direction: column; align-items: flex-start;
    padding: 110px 32px 40px; gap: 22px; transform: translateX(-100%);
    transition: transform .35s ease; box-shadow: 20px 0 50px rgba(0,0,0,.1);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 15px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 70px 24px 60px; }
  .hero-media { min-height: 440px; }
  .values-grid { grid-template-columns: 1fr; }
  .value-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px; }
  .product-grid, .product-grid.cols-3, .journal-grid, .craft-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .about-intro, .product-detail, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .split-media { aspect-ratio: 1 / .8; }
  .ritual-grid { grid-template-columns: 1fr; }
  .ritual-step { border-right: 0; border-bottom: 1px solid var(--line-strong); padding: 34px 20px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .detail-media { max-height: 620px; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .container-narrow { width: calc(100% - 32px); }
  .section { padding: 60px 0; }
  h1 { font-size: 42px; }
  .hero-media { min-height: 340px; }
  .hero-copy { padding: 56px 20px 48px; }
  .product-grid, .product-grid.cols-3, .journal-grid, .craft-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .product-info h3 { font-size: 17px; }
  .product-cn { font-size: 11px; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand p { max-width: none; }
  .footer-bottom { margin-top: 40px; }
  .page-hero { padding: 50px 0 42px; }
  .stats { gap: 24px; }
  .stat strong { font-size: 27px; }
  .qty-row { flex-wrap: wrap; }
  .detail-add { max-width: none; width: 100%; }
}

/* ---------- AI assistant ---------- */
.assistant-launcher {
  position: fixed; right: 24px; bottom: 24px; z-index: 70;
  width: 56px; height: 56px; border-radius: 50%; border: 0;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 32px rgba(46,42,37,.28); transition: transform .25s, background .25s;
}
.assistant-launcher:hover { transform: translateY(-3px); background: var(--wood-dark); }
.assistant-launcher svg { width: 24px; height: 24px; }
.assistant-dot {
  position: absolute; top: 2px; right: 2px; width: 13px; height: 13px;
  background: #7fa06d; border: 2px solid var(--bg); border-radius: 50%;
}
.assistant-panel {
  position: fixed; right: 24px; bottom: 92px; z-index: 71;
  width: 380px; height: 540px; max-height: calc(100vh - 120px);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(46,42,37,.18);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.98);
  transition: opacity .28s ease, transform .28s ease, visibility .28s;
}
.assistant-panel.open { opacity: 1; visibility: visible; transform: none; }
.assistant-head {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.assistant-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--wood-dark);
  color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 18px;
}
.assistant-head h4 { font-family: var(--serif); font-size: 18px; line-height: 1.2; }
.assistant-status { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); }
.assistant-close { margin-left: auto; border: 0; background: transparent; padding: 4px; display: grid; place-items: center; }
.assistant-close svg { width: 18px; height: 18px; }
.assistant-messages {
  flex: 1; overflow-y: auto; padding: 20px 18px;
  display: flex; flex-direction: column; gap: 13px; background: var(--bg);
}
.msg {
  max-width: 86%; padding: 11px 14px; font-size: 13px; line-height: 1.65;
  border-radius: 2px; word-break: break-word;
}
.msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); }
.msg.user { align-self: flex-end; background: var(--ink); color: #fff; }
.msg-time { display: block; font-size: 10px; color: var(--muted); margin-top: 7px; }
.msg.user .msg-time { color: rgba(255,255,255,.55); }
.typing span {
  display: inline-block; width: 5px; height: 5px; margin: 0 2px;
  background: var(--muted); border-radius: 50%; animation: typing-blink 1.1s infinite;
}
.typing span:nth-child(2) { animation-delay: .18s; }
.typing span:nth-child(3) { animation-delay: .36s; }
@keyframes typing-blink { 0%,60%,100% { opacity: .25; } 30% { opacity: 1; } }
.prod-suggest {
  display: flex; align-items: center; gap: 10px; margin-top: 11px;
  padding: 8px; background: var(--surface-2); border: 1px solid var(--line);
}
.prod-suggest img { width: 44px; height: 52px; object-fit: cover; }
.prod-suggest a { font-family: var(--serif); font-size: 14px; }
.prod-suggest a:hover { color: var(--wood-dark); }
.prod-suggest span { display: block; font-size: 11px; color: var(--muted); }
.quick-questions { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 18px 12px; background: var(--bg); }
.chip {
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft);
  border-radius: 20px; padding: 6px 11px; font-size: 11px; cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--wood); color: var(--wood-dark); }
.assistant-input {
  display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface);
}
.assistant-input input {
  flex: 1; min-width: 0; border: 0; background: var(--bg);
  padding: 10px 12px; outline: none; font-size: 13px;
}
.assistant-input button {
  width: 40px; border: 0; background: var(--ink); color: #fff;
  display: grid; place-items: center;
}
.assistant-input button:hover { background: var(--wood-dark); }
.assistant-input svg { width: 17px; height: 17px; }
@media (max-width: 560px) {
  .assistant-launcher { right: 16px; bottom: 16px; width: 50px; height: 50px; }
  .assistant-panel {
    right: 12px; left: 12px; width: auto; bottom: 78px;
    height: min(560px, 72vh); max-height: none;
  }
}
