/* Bố cục: thanh khuyến mãi, header dính, hero băng chuyền, thực đơn lọc theo nhóm, giờ vàng theo buổi, cửa hàng, Routine Pass, ngăn kéo giỏ hàng. */
:root {
  --bg: #ffffff;
  --surface: #f7f2f0;
  --surface-2: #efe6e3;
  --ink: #26181a;
  --ink-2: #66575a;
  --line: #e6dad7;
  --brand: #a32a24;
  --brand-text: #a32a24;
  --btn: #a32a24;
  --btn-ink: #ffffff;
  --hero: #7a1e19;
  --hero-ink: #ffffff;
  --gold: #d79a2b;
  --ok: #2e7d4f;
  --err: #b3261e;
  --font-display: "Bricolage Grotesque", "Be Vietnam Pro", system-ui, sans-serif;
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #150f10; --surface: #201718; --surface-2: #2b2022; --ink: #f4ecea; --ink-2: #b9a8a7;
    --line: #3a2d2e; --brand: #d8473c; --brand-text: #f07a6f; --btn: #c93a31; --btn-ink: #ffffff;
    --hero: #4a1411; --hero-ink: #ffffff; --gold: #e4ae45; --ok: #5bbd82; --err: #f08a82;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #150f10; --surface: #201718; --surface-2: #2b2022; --ink: #f4ecea; --ink-2: #b9a8a7;
  --line: #3a2d2e; --brand: #d8473c; --brand-text: #f07a6f; --btn: #c93a31; --btn-ink: #ffffff;
  --hero: #4a1411; --hero-ink: #ffffff; --gold: #e4ae45; --ok: #5bbd82; --err: #f08a82;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 7vw, 88px); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-text); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.section-head p { color: var(--ink-2); max-width: 46ch; }

/* Nút */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--btn);
  background: var(--btn); color: var(--btn-ink); font-weight: 700; text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--brand-text); }
.btn.light { background: #fff; color: var(--hero); border-color: #fff; }
.btn.outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* Thanh khuyến mãi + header */
.promo-bar { background: var(--hero); color: var(--hero-ink); font-size: 13px; text-align: center; padding: 8px var(--gutter); }
.promo-bar b { font-weight: 700; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; margin-right: auto; }
.logo strong { font: 800 26px/1 var(--font-display); color: var(--brand-text); letter-spacing: -0.02em; }
.logo span { font-size: 11px; font-weight: 700; letter-spacing: 0.22em; color: var(--ink-2); }
.nav { display: flex; gap: 6px; }
.nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; }
.nav a:hover { background: var(--surface); }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--btn); background: var(--btn); color: var(--btn-ink); font-weight: 700; }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--btn); font-size: 12px; display: grid; place-items: center; font-weight: 800; }
.menu-toggle { display: none; min-height: 44px; min-width: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); }

/* Hero */
.hero { background: var(--hero); color: var(--hero-ink); }
.slides { position: relative; }
.slide { display: none; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 24px; padding-block: clamp(36px, 6vw, 72px); }
.slide.on { display: grid; }
.slide h1 { font-size: clamp(36px, 6vw, 68px); font-weight: 800; }
.slide p.lead { margin-top: 16px; font-size: 17px; max-width: 44ch; opacity: .92; }
.slide .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.slide .tag { display: inline-block; margin-bottom: 14px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); }
.slide .art { display: grid; place-items: center; min-width: 0; }
.slide .art svg { width: min(100%, 360px); height: auto; }
.hero-ctl { display: flex; align-items: center; gap: 10px; padding-bottom: 22px; }
.dot { width: 34px; height: 6px; border-radius: 6px; border: 0; background: rgba(255,255,255,.35); padding: 0; }
.dot.on { background: #fff; }
.hero-hours { margin-left: auto; font-size: 13px; opacity: .85; }

/* Nhóm nhanh */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.cat-card { display: grid; justify-items: center; gap: 10px; padding: 18px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid transparent; text-align: center; font-weight: 700; }
.cat-card svg { width: 72px; height: 72px; }
.cat-card:hover { border-color: var(--brand); }
.cat-card small { font-weight: 500; color: var(--ink-2); }

/* Thực đơn */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-weight: 600; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.search { margin-left: auto; min-height: 40px; min-width: 0; width: min(100%, 240px); padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden; }
.tile { position: relative; display: grid; place-items: center; aspect-ratio: 5 / 4; background: var(--surface); }
.tile svg { width: 58%; height: auto; max-height: 86%; }
.badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px; flex: 1; }
.card h3 { font-size: 18px; font-weight: 700; }
.card .desc { color: var(--ink-2); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sizes { display: flex; gap: 6px; }
.size { min-height: 32px; min-width: 40px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font-size: 13px; font-weight: 700; }
.size[aria-pressed="true"] { border-color: var(--brand); color: var(--brand-text); background: var(--surface); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.price { font: 800 18px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.add { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--btn); background: transparent; color: var(--brand-text); font-weight: 700; }
.add:hover { background: var(--btn); color: var(--btn-ink); }
.empty { padding: 40px 0; color: var(--ink-2); text-align: center; grid-column: 1 / -1; }

/* Giờ vàng */
.golden { background: var(--surface); }
.golden-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.periods { display: grid; gap: 8px; }
.period { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 0 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); text-align: left; font-weight: 700; }
.period small { font-weight: 500; color: var(--ink-2); }
.period[aria-selected="true"] { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.period[aria-selected="true"] small { color: inherit; opacity: .85; }
.golden-note { margin-bottom: 18px; font-size: 18px; font-family: var(--font-display); font-weight: 600; }

/* Cửa hàng */
.store-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.store { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 6px; min-width: 0; }
.store h3 { font-size: 17px; }
.store p { color: var(--ink-2); font-size: 14px; }
.store .hours { font-weight: 600; color: var(--ink); font-size: 13px; font-variant-numeric: tabular-nums; }
.open { color: var(--ok); font-weight: 700; font-size: 13px; }

/* Routine Pass */
.pass { background: var(--hero); color: var(--hero-ink); }
.pass-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.pass h2 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; }
.pass p { margin-top: 14px; opacity: .92; max-width: 46ch; }
.stamp-card { background: #fff; color: #26181a; border-radius: 20px; padding: 24px; display: grid; gap: 16px; }
.stamp-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.stamp-card h3 { font-size: 20px; color: #7a1e19; }
.stamp-card header span { font-size: 13px; color: #66575a; }
.stamps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 2px dashed #c9b7b3; display: grid; place-items: center; font: 800 18px var(--font-display); color: #c9b7b3; }
.stamp.on { border: 2px solid #a32a24; background: #a32a24; color: #fff; }
.stamp.gift { border-color: #d79a2b; color: #b07a12; }
.stamp.gift.on { background: #d79a2b; border-color: #d79a2b; color: #26181a; }
.stamp-card footer { font-size: 13px; color: #66575a; }

/* Về chúng tôi */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-wrap h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.about-wrap p + p { margin-top: 14px; }
.about-wrap p { color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.fact { padding: 14px; border-radius: var(--radius); background: var(--surface); }
.fact b { display: block; font: 800 24px/1.1 var(--font-display); color: var(--brand-text); font-variant-numeric: tabular-nums; }
.fact span { font-size: 12.5px; color: var(--ink-2); }
.clock { display: grid; place-items: center; background: var(--surface); border-radius: 24px; padding: 28px; }
.clock svg { width: min(100%, 360px); height: auto; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 48px 32px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.foot-grid h4 { margin: 0 0 12px; font: 700 13px var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.news { display: flex; gap: 8px; }
.news input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; }
.news-msg { margin-top: 8px; font-size: 13px; color: var(--ok); min-height: 20px; }
.legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }

/* Ngăn kéo giỏ hàng */
.overlay { position: fixed; inset: 0; background: rgba(20, 8, 8, .55); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(440px, 100%); background: var(--bg); display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(0,0,0,.25); padding-bottom: env(safe-area-inset-bottom, 0px); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); padding-top: calc(18px + env(safe-area-inset-top, 0px)); }
.drawer-head h2 { font-size: 22px; font-weight: 800; }
.icon-btn { min-height: 44px; min-width: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); font-size: 20px; line-height: 1; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; min-height: 0; }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-item .thumb { width: 64px; height: 64px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; }
.line-item .thumb svg { width: 70%; height: auto; }
.line-item h4 { margin: 0; font-size: 15px; }
.line-item small { color: var(--ink-2); }
.qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; }
.qty button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); font-weight: 700; }
.qty span { min-width: 24px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.line-total { font-weight: 700; font-variant-numeric: tabular-nums; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.sum-row.total { font: 800 19px var(--font-display); }
.hint { font-size: 13px; color: var(--ink-2); }
.form { display: grid; gap: 14px; padding-block: 12px; }
.field { display: grid; gap: 6px; }
.field label, .legend { font-size: 13px; font-weight: 700; }
.field input, .field textarea, .field select { min-width: 0; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; }
.field .err { color: var(--err); font-size: 12.5px; min-height: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; }
.radio-row input { accent-color: var(--btn); }
.done { text-align: center; padding: 40px 8px; display: grid; gap: 12px; justify-items: center; }
.done .tick { width: 72px; height: 72px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 36px; }
.done .code { font: 800 26px var(--font-display); letter-spacing: .06em; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; max-width: calc(100% - 32px); }

@media (max-width: 900px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 16px; flex-direction: column; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .slide.on { grid-template-columns: 1fr; }
  .slide .art { order: -1; }
  .slide .art svg { width: min(60%, 240px); }
  .golden-wrap, .pass-wrap, .about-wrap { grid-template-columns: 1fr; }
  .periods { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .header-row { gap: 10px; }
  .logo span { display: none; }
  .cart-btn .lbl { display: none; }
  .search { margin-left: 0; width: 100%; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 12px; }
  .card h3 { font-size: 16px; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-hours { display: none; }
  .facts { grid-template-columns: 1fr; }
  .stamps { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
