/* FAM music — hệ thiết kế
   Mực đen ấm + giấy ngà + đồng (màu logo #BE834F). Tiêu đề Bricolage Grotesque, chữ thường Be Vietnam Pro. */
:root {
  --ink: #16120e;
  --ink-2: #221c16;
  --ink-3: #30281f;
  --paper: #f6f2ec;
  --paper-2: #efe8de;
  --card: #ffffff;
  --tile: #ece5da;
  --line: #e2d9cc;
  --line-dark: #3a3129;
  --text: #1d1813;
  --muted: #6b6155;
  --on-dark: #f4eee5;
  --on-dark-muted: #b8ad9e;
  --brand: #be834f;
  --brand-ink: #8c5a2b;      /* chữ đồng trên nền sáng (≥4.5:1) */
  --brand-soft: #f3e6d8;
  --primary: #9a5b28;        /* nút mua: chữ trắng 5.3:1 */
  --primary-hover: #7f4a1f;
  --sale: #b42318;
  --ok: #2f7d4f;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(40, 28, 14, .06), 0 8px 24px -12px rgba(40, 28, 14, .18);
  --shadow-lg: 0 24px 60px -24px rgba(22, 18, 14, .45);
  --ff-head: 'Bricolage Grotesque', 'Be Vietnam Pro', system-ui, sans-serif;
  --ff-body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.55 var(--ff-body); color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--ff-head); line-height: 1.12; margin: 0; letter-spacing: -.015em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 28px; } }
.muted { color: var(--muted); font-size: .875rem; }
.ic { width: 20px; height: 20px; flex: none; }
.ic--sm { width: 16px; height: 16px; }
.ic--lg { width: 28px; height: 28px; }
.ic--xl { width: 44px; height: 44px; }
@media (max-width: 767px) { .hide-sm { display: none !important; } }

/* ---------- Nút ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: .95rem; line-height: 1; transition: background .18s var(--ease), color .18s, border-color .18s, transform .12s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); }
.btn--dark { background: var(--ink); color: var(--on-dark); }
.btn--dark:hover { background: var(--ink-3); }
.btn--brass { background: var(--brand); color: var(--ink); }
.btn--brass:hover { background: #d3995f; }
.btn--ghost { border-color: var(--line); background: transparent; }
.btn--ghost:hover { border-color: var(--text); }
.btn--light { background: var(--on-dark); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--outline-light { background: transparent; border-color: rgba(244, 238, 229, .4); color: var(--on-dark); }
.btn--outline-light:hover { border-color: var(--on-dark); }
.btn--block { width: 100%; }
.btn--lg { min-height: 54px; font-size: 1rem; padding: 0 28px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; }
.icon-btn:hover { background: rgba(0, 0, 0, .06); }
.icon-btn--sm { width: 36px; height: 36px; }
.icon-btn--sm .ic { width: 17px; height: 17px; }
.link-brass { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-ink); font-weight: 600; }
.link-brass:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Topbar & header ---------- */
.topbar { background: var(--ink); color: var(--on-dark-muted); font-size: .8rem; border-bottom: 1px solid var(--line-dark); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar p, .topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar a { color: var(--brand); }
.topbar b { color: var(--on-dark); font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 40; background: var(--ink-2); color: var(--on-dark); box-shadow: 0 1px 0 var(--line-dark); }
.header__main { display: flex; align-items: center; gap: 12px; min-height: 76px; }
.logo img { width: 112px; height: auto; }
.menu-btn { color: var(--on-dark); margin-left: -8px; }
.menu-btn:hover { background: rgba(255, 255, 255, .08); }
@media (min-width: 1024px) { .menu-btn { display: none; } .logo img { width: 128px; } }
.search { position: relative; flex: 1; display: flex; max-width: 680px; margin: 0 auto; }
.search input { width: 100%; height: 48px; border: 1.5px solid transparent; border-radius: 999px 0 0 999px; background: var(--paper); padding: 0 20px; font-size: .95rem; color: var(--text); }
.search input:focus { outline: none; border-color: var(--brand); }
.search > button { width: 56px; border: 0; border-radius: 0 999px 999px 0; background: var(--brand); color: var(--ink); display: grid; place-items: center; }
.search > button:hover { background: #d3995f; }
.search__suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--card); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; z-index: 50; }
.search__suggest a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; }
.search__suggest a:hover { background: var(--paper); }
.sg__art { width: 48px; height: 48px; background: var(--tile); border-radius: 8px; flex: none; }
.search__suggest b { display: block; font-weight: 500; font-size: .9rem; }
.search__suggest small { color: var(--brand-ink); font-weight: 600; }
.sg__all { justify-content: center; color: var(--brand-ink); font-weight: 600; font-size: .9rem; border-top: 1px solid var(--line); border-radius: 0 !important; margin-top: 4px; }
.sg__none { padding: 12px; color: var(--muted); font-size: .9rem; }
.header__actions { display: flex; align-items: center; gap: 4px; }
.hact { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; font-size: .88rem; font-weight: 600; line-height: 1.2; }
.hact:hover { background: rgba(255, 255, 255, .07); }
.hact small { display: block; font-weight: 400; color: var(--on-dark-muted); font-size: .74rem; }
.hact .ic { width: 24px; height: 24px; }
.count { position: absolute; top: 2px; left: 26px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: var(--ink); font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
@media (max-width: 1023px) and (min-width: 768px) { .hact:not(.hact--cart) span { display: none; } }
@media (max-width: 767px) {
  .header__main { flex-wrap: wrap; gap: 4px 8px; padding-bottom: 12px; min-height: 0; padding-top: 8px; }
  .search { order: 5; flex-basis: 100%; }
  .search input { height: 44px; }
  .header__actions { margin-left: auto; }
}

/* Nav + mega menu */
.nav { border-top: 1px solid var(--line-dark); display: none; }
@media (min-width: 1024px) { .nav { display: block; } }
.nav__list { display: flex; align-items: stretch; gap: 2px; }
.nav__link { display: flex; align-items: center; gap: 6px; height: 48px; padding: 0 14px; font-weight: 500; font-size: .92rem; color: var(--on-dark); border-bottom: 2px solid transparent; }
.nav__link .ic { opacity: .55; transition: transform .2s; }
.nav__link--deal { color: #f0a46a; font-weight: 600; margin-left: auto; }
.nav__item:hover > .nav__link, .nav__item.is-open > .nav__link { border-bottom-color: var(--brand); }
.nav__item:hover .nav__link .ic, .nav__item.is-open .nav__link .ic { transform: rotate(180deg); }
.nav__list > li:last-child { margin-left: auto; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--card); color: var(--text); box-shadow: var(--shadow-lg); border-top: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s .18s; }
.nav__item:hover > .mega, .nav__item.is-open > .mega { opacity: 1; visibility: visible; transform: none; transition-delay: .08s, .08s, 0s; }
.mega__inner { display: grid; grid-template-columns: 1fr 1fr 1.3fr 1fr; gap: 32px; padding-top: 28px; padding-bottom: 32px; }
.mega__title { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.mega__col li a { display: flex; justify-content: space-between; padding: 7px 0; font-size: .95rem; }
.mega__col li a:hover { color: var(--brand-ink); }
.mega__col li a span { color: var(--muted); font-size: .8rem; }
.mega__all { color: var(--brand-ink) !important; font-weight: 600; justify-content: flex-start !important; gap: 6px; align-items: center; }
.mega__brands { columns: 2; }
.mega__feat { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: var(--radius); background: var(--paper); }
.mega__feat:hover { background: var(--paper-2); }
.mega__art { width: 120px; height: 120px; flex: none; }
.mega__fname { font-family: var(--ff-head); font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.mega__fprice { color: var(--brand-ink); font-weight: 700; margin-top: 6px; }
.mega__help { padding: 18px; border-radius: var(--radius); background: var(--ink-2); color: var(--on-dark); display: grid; gap: 10px; align-content: start; font-size: .9rem; }
.mega__help .ic { color: var(--brand); }
.mega__help .link-brass { color: var(--brand); }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(22, 18, 14, 0); transition: background .22s; }
.drawer.is-open { background: rgba(22, 18, 14, .5); }
.drawer__panel { position: absolute; top: 0; bottom: 0; width: min(420px, 92vw); background: var(--card); display: flex; flex-direction: column; transition: transform .26s var(--ease); }
.drawer--right .drawer__panel { right: 0; transform: translateX(100%); }
.drawer--left .drawer__panel { left: 0; transform: translateX(-100%); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.25rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer__foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer__foot:empty { display: none; }
.mnav { border-bottom: 1px solid var(--line); }
.mnav summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-weight: 600; cursor: pointer; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav[open] summary .ic { transform: rotate(180deg); }
.mnav ul { padding-bottom: 12px; }
.mnav a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--muted); }
.mnav a:hover { background: var(--paper); color: var(--text); }
.mnav__deal { display: block; padding: 16px 0; font-weight: 600; color: var(--sale); margin-bottom: 12px; }
.mline { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mline__art { background: var(--tile); border-radius: 10px; aspect-ratio: 1; }
.mline__name { font-weight: 500; font-size: .92rem; line-height: 1.35; display: block; }
.mline__name:hover { color: var(--brand-ink); }
.mline__meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: .88rem; }
.mini-sub { display: flex; justify-content: space-between; font-size: 1.05rem; }
.ship-meter { font-size: .85rem; display: grid; gap: 8px; }
.ship-meter p { display: flex; align-items: center; gap: 6px; }
.ship-meter .ic { color: var(--ok); }
.meter { height: 6px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--primary)); border-radius: inherit; transition: width .4s var(--ease); }
.empty { display: grid; justify-items: center; gap: 14px; padding: 48px 0; text-align: center; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--on-dark); padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow-lg); font-size: .92rem; transition: opacity .2s, transform .2s var(--ease); max-width: calc(100% - 32px); }
.toast .ic { color: var(--brand); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Thẻ sản phẩm ---------- */
.stars { --pct: 100%; position: relative; display: inline-block; width: 76px; height: 14px; background: linear-gradient(90deg, var(--brand) var(--pct), #d9cfc1 var(--pct)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14'%3E%3Cpath d='M8 0l2.1 4.4 4.9.6-3.6 3.3.9 4.8L8 10.8 3.7 13.1l.9-4.8L1 5l4.9-.6z'/%3E%3C/svg%3E") 0 0/15.2px 14px repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14'%3E%3Cpath d='M8 0l2.1 4.4 4.9.6-3.6 3.3.9 4.8L8 10.8 3.7 13.1l.9-4.8L1 5l4.9-.6z'/%3E%3C/svg%3E") 0 0/15.2px 14px repeat-x; }
.pcard { position: relative; color: var(--text); display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .2s var(--ease), border-color .2s, transform .2s var(--ease); }
.pcard:hover { box-shadow: var(--shadow); border-color: #d5c8b6; }
.pcard__media { display: block; aspect-ratio: 1; background: radial-gradient(120% 90% at 50% 20%, #f4efe7 0%, var(--tile) 70%); padding: 6%; }
.pcard__media svg { width: 100%; height: 100%; transition: transform .35s var(--ease); }
.pcard:hover .pcard__media svg { transform: scale(1.04); }
.pcard__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; max-width: 70%; }
.badge { display: inline-block; padding: 4px 9px; border-radius: 6px; font-size: .72rem; font-weight: 700; background: var(--ink); color: var(--on-dark); letter-spacing: .02em; }
.badge--sale { background: var(--sale); color: #fff; }
.badge--new { background: var(--brand); color: var(--ink); }
.pcard__wish { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .85); display: grid; place-items: center; color: var(--muted); transition: color .15s, background .15s; }
.pcard__wish:hover { color: var(--sale); background: #fff; }
.pcard__wish.is-on { color: var(--sale); }
.pcard__wish.is-on svg { fill: currentColor; }
.pcard__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.pcard__brand { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.pcard__name { font-family: var(--ff-body); font-size: .98rem; font-weight: 600; line-height: 1.35; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.pcard__name a:hover { color: var(--brand-ink); }
.pcard__name a::after { content: ''; position: absolute; inset: 0; z-index: 0; }
.pcard__rating { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.pcard__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; }
.pcard__price strong { font-family: var(--ff-head); font-size: 1.25rem; font-weight: 700; }
.pcard__price strong.is-sale { color: var(--sale); }
.pcard__price s { color: var(--muted); font-size: .85rem; }
.pcard__inst { font-size: .8rem; color: var(--muted); }
.pcard__inst b { color: var(--text); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 99px; background: var(--ok); margin-right: 6px; vertical-align: 1px; }
.btn--add { position: relative; z-index: 1; margin-top: auto; min-height: 44px; background: var(--paper); border-color: var(--line); color: var(--text); font-size: .9rem; }
.pcard__inst + .btn--add { margin-top: 10px; }
.btn--add:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn--add.is-added { background: var(--ok); border-color: var(--ok); color: #fff; }
.pcard__wish, .pcard__badges { z-index: 1; }
.pcard--compact .btn--add { display: none; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1200px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 420px) { .pcard__body { padding: 12px; } .pcard__price strong { font-size: 1.08rem; } .btn--add span { display: none; } }

/* ---------- Section chung ---------- */
.section { padding: 56px 0; }
@media (min-width: 1024px) { .section { padding: 80px 0; } }
.section--tight { padding-top: 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.eyebrow { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-ink); font-weight: 700; margin-bottom: 8px; }
.sec-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.sec-head p.lead { color: var(--muted); margin-top: 6px; max-width: 560px; }

/* ---------- Hero ---------- */
.hero { padding: 20px 0 0; }
.hero__grid { display: grid; gap: 16px; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1.85fr 1fr; grid-template-rows: 1fr 1fr; height: 560px; } .hero__main { grid-row: span 2; } }
.hero__main { position: relative; border-radius: 22px; overflow: hidden; background: var(--ink); color: var(--on-dark); min-height: 520px; isolation: isolate; }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr; padding: 32px 24px; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; }
.slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
@media (min-width: 768px) { .slide { grid-template-columns: 1fr 1fr; padding: 48px 52px; align-items: center; } }
.slide__bg { position: absolute; inset: 0; z-index: -1; }
.slide__text { position: relative; display: grid; gap: 16px; align-content: center; max-width: 480px; }
.slide__text .eyebrow { color: var(--brand); margin: 0; }
.slide h1, .slide h2 { font-size: clamp(2.1rem, 4.6vw, 3.7rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 800; }
.slide h1 em, .slide h2 em { font-style: normal; color: var(--brand); }
.slide__text > p:not(.eyebrow) { color: var(--on-dark-muted); font-size: 1.02rem; max-width: 40ch; }
.slide__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.slide__price b { font-family: var(--ff-head); font-size: 1.8rem; color: var(--on-dark); }
.slide__price s { color: var(--on-dark-muted); }
.slide__price span { background: var(--sale); color: #fff; padding: 3px 9px; border-radius: 6px; font-weight: 700; font-size: .82rem; }
.slide__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.slide__art { position: relative; height: 100%; min-height: 220px; display: grid; place-items: center; }
.slide__art svg { width: min(100%, 460px); height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
@media (max-width: 767px) { .slide__art { position: absolute; right: -40px; bottom: -10px; width: 62%; min-height: 0; opacity: .95; } .slide__text { padding-bottom: 150px; } }
.hero__ctrl { position: absolute; left: 24px; bottom: 22px; display: flex; align-items: center; gap: 10px; z-index: 2; }
@media (min-width: 768px) { .hero__ctrl { left: 52px; bottom: 36px; } }
.hero__dots { display: flex; gap: 6px; }
.hero__dots button { width: 28px; height: 28px; border: 0; background: none; padding: 0; display: grid; place-items: center; }
.hero__dots button::before { content: ''; width: 8px; height: 8px; border-radius: 99px; background: rgba(244, 238, 229, .35); transition: width .25s var(--ease), background .2s; }
.hero__dots button[aria-current="true"]::before { width: 26px; background: var(--brand); }
.hero__ctrl .icon-btn { color: var(--on-dark); border: 1px solid rgba(244, 238, 229, .25); width: 40px; height: 40px; }
.hero__ctrl .icon-btn:hover { background: rgba(255, 255, 255, .08); }
.promo { position: relative; border-radius: 22px; overflow: hidden; padding: 24px; display: flex; align-items: flex-end; min-height: 240px; isolation: isolate; }
.promo__art { position: absolute; right: -10px; top: 50%; transform: translateY(-50%); width: 58%; z-index: -1; transition: transform .4s var(--ease); }
.promo:hover .promo__art { transform: translateY(-50%) scale(1.04) rotate(-2deg); }
.promo__text { max-width: 52%; display: grid; gap: 6px; }
.promo h2 { font-size: 1.5rem; line-height: 1.1; }
.promo p { font-size: .88rem; }
.promo .link-brass { margin-top: 6px; }
.promo--wine { background: linear-gradient(135deg, #5a1a1e, #2b0d0f); color: var(--on-dark); }
.promo--wine p { color: #e3c6c0; }
.promo--wine .link-brass, .promo--slate .link-brass { color: var(--brand); }
.promo--sand { background: linear-gradient(135deg, #e8d6bd, #d6b98f); color: var(--ink); }
.promo--sand p { color: #4d3b26; }
.promo--slate { background: linear-gradient(135deg, #273038, #12171c); color: var(--on-dark); }
.promo--slate p { color: #b9c2c9; }
.promo .eyebrow { margin: 0; }
.promo--wine .eyebrow, .promo--slate .eyebrow { color: var(--brand); }

/* Giá trị */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 16px; }
@media (min-width: 900px) { .perks { grid-template-columns: repeat(3, 1fr); } }
.perk { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--card); }
.perk .ic { color: var(--brand-ink); width: 26px; height: 26px; margin-top: 2px; }
.perk b { display: block; font-size: .94rem; }
.perk span { font-size: .83rem; color: var(--muted); }

/* Danh mục */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 768px) { .cats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .cats { grid-template-columns: repeat(6, 1fr); } }
.cat { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.cat:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.cat__art { aspect-ratio: 1.1; background: var(--tile); padding: 10%; }
.cat__art svg { width: 100%; height: 100%; transition: transform .35s var(--ease); }
.cat:hover .cat__art svg { transform: scale(1.06) rotate(-2deg); }
.cat__body { padding: 14px 16px 16px; }
.cat h3 { font-size: 1.12rem; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cat h3 .ic { color: var(--brand-ink); transition: transform .2s; }
.cat:hover h3 .ic { transform: translateX(3px); }
.cat p { font-size: .82rem; color: var(--muted); margin-top: 4px; }

/* Deal */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 1200px) { .rail { grid-auto-columns: calc((100% - 64px) / 5); } }
.rail-nav { display: flex; gap: 8px; }
.rail-nav .icon-btn { border: 1px solid var(--line-dark); color: var(--on-dark); }
.rail-nav .icon-btn:hover { background: var(--ink-3); }

/* Tư vấn */
.consult { display: grid; gap: 24px; border-radius: 26px; overflow: hidden; background: var(--brand-soft); }
@media (min-width: 900px) { .consult { grid-template-columns: 1.1fr 1fr; } }
.consult__text { padding: 32px 24px; display: grid; gap: 16px; align-content: center; }
@media (min-width: 900px) { .consult__text { padding: 56px; } }
.consult h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.consult ul { display: grid; gap: 10px; }
.consult li { display: flex; gap: 10px; align-items: flex-start; }
.consult li .ic { color: var(--ok); margin-top: 3px; }
.consult__form { background: var(--card); margin: 0 16px 16px; border-radius: 20px; padding: 24px; display: grid; gap: 14px; align-content: center; box-shadow: var(--shadow); }
@media (min-width: 900px) { .consult__form { margin: 24px 24px 24px 0; padding: 32px; } }
.consult__form h3 { font-size: 1.3rem; }
.field { display: grid; gap: 6px; }
.field label { font-size: .85rem; font-weight: 600; }
.field input, .field select, .field textarea { min-height: 48px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--card); font-size: 1rem; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(190, 131, 79, .2); }
.field-row { display: grid; gap: 14px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: .78rem; color: var(--muted); }

/* Tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-weight: 600; font-size: .9rem; }
.tab:hover { border-color: var(--text); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }

/* Combo */
.bundles { display: grid; gap: 16px; }
@media (min-width: 900px) { .bundles { grid-template-columns: repeat(3, 1fr); } }
.bundle { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: grid; gap: 14px; }
.bundle__arts { display: flex; align-items: center; gap: 4px; background: var(--tile); border-radius: 14px; padding: 12px; }
.bundle__arts { height: 124px; }
.bundle__arts > div { flex: 1; height: 100%; }
.bundle__arts svg { width: 100%; height: 100%; }
.bundle__arts .plus { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 99px; background: var(--card); color: var(--brand-ink); aspect-ratio: auto; }
.bundle h3 { font-size: 1.25rem; }
.bundle > p { color: var(--muted); font-size: .9rem; }
.bundle ul { display: grid; gap: 6px; font-size: .88rem; }
.bundle li { display: flex; justify-content: space-between; gap: 12px; }
.bundle li span:first-child { color: var(--muted); }
.bundle__total { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border-top: 1px dashed var(--line); padding-top: 12px; flex-wrap: wrap; }
.bundle__total b { font-family: var(--ff-head); font-size: 1.4rem; }
.bundle__total s { color: var(--muted); font-size: .85rem; }
.save { color: var(--ok); font-weight: 700; font-size: .85rem; }

/* Thương hiệu */
.brands { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 768px) { .brands { grid-template-columns: repeat(6, 1fr); } }
.brands a { display: grid; place-items: center; height: 96px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--ff-head); font-weight: 700; font-size: clamp(1rem, 2vw, 1.35rem); color: #8a7f71; letter-spacing: -.01em; transition: color .2s, background .2s; }
.brands a:hover { color: var(--ink); background: var(--card); }

/* Kiến thức */

/* School cross-sell */
.school { display: grid; gap: 20px; align-items: center; padding: 28px 24px; border-radius: 22px; background: var(--ink-2); color: var(--on-dark); }
@media (min-width: 900px) { .school { grid-template-columns: auto 1fr auto; padding: 32px 40px; } }
.school .ic--xl { color: var(--brand); }
.school h2 { font-size: 1.5rem; }
.school p { color: var(--on-dark-muted); font-size: .92rem; margin-top: 4px; }

/* Newsletter + footer */
.newsletter { background: var(--brand); color: var(--ink); }
.newsletter__inner { display: grid; gap: 18px; padding-top: 36px; padding-bottom: 36px; align-items: center; }
@media (min-width: 900px) { .newsletter__inner { grid-template-columns: 1fr 1fr; } }
.newsletter h2 { font-size: 1.6rem; }
.newsletter p { color: #3c2a18; font-size: .92rem; margin-top: 4px; }
.newsletter__form { display: flex; gap: 8px; }
.newsletter__form input { flex: 1; min-width: 0; height: 52px; border-radius: 999px; border: 0; padding: 0 20px; background: var(--paper); }
.newsletter__form .btn { min-height: 52px; background: var(--ink); color: var(--on-dark); }
.newsletter__form .btn:hover { background: var(--ink-3); }
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 56px 0 24px; font-size: .9rem; }
.footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.footer__brand { grid-column: 1 / -1; display: grid; gap: 14px; align-content: start; }
@media (min-width: 900px) { .footer__brand { grid-column: auto; } }
.footer__brand img { width: 140px; height: auto; }
.footer__brand p { max-width: 34ch; }
.site-footer h3 { font-family: var(--ff-body); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 14px; font-weight: 600; }
.site-footer li { padding: 5px 0; }
.site-footer a:hover { color: var(--brand); }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .ic { margin-top: 3px; color: var(--brand); }
@media (max-width: 899px) { .footer__grid > div:last-child { grid-column: 1 / -1; } }
.social { display: flex; gap: 8px; }
.social a { width: 42px; height: 42px; border-radius: 99px; border: 1px solid var(--line-dark); display: grid; place-items: center; }
.social a:hover { border-color: var(--brand); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: .8rem; }
.pay { display: flex; flex-wrap: wrap; gap: 6px; }
.pay span { padding: 4px 9px; border: 1px solid var(--line-dark); border-radius: 6px; font-weight: 600; font-size: .72rem; color: var(--on-dark); }

/* ---------- Trang danh mục ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .84rem; color: var(--muted); padding: 18px 0 0; }
.crumbs a:hover { color: var(--brand-ink); text-decoration: underline; }
.crumbs .ic { width: 14px; height: 14px; }
.cat-hero { display: grid; gap: 16px; padding: 18px 0 24px; }
@media (min-width: 900px) { .cat-hero { grid-template-columns: 1fr auto; align-items: end; } }
.cat-hero h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.03em; }
.cat-hero p { color: var(--muted); margin-top: 6px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-size: .88rem; font-weight: 500; }
.chip:hover { border-color: var(--text); }
.chip[aria-current="true"] { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.chip--rm { background: var(--brand-soft); border-color: transparent; }
.listing { display: grid; gap: 28px; padding-bottom: 72px; }
@media (min-width: 1024px) { .listing { grid-template-columns: 260px 1fr; } }
.filters { display: none; }
@media (min-width: 1024px) { .filters { display: block; position: sticky; top: 148px; align-self: start; max-height: calc(100vh - 160px); overflow-y: auto; padding-right: 6px; } }
.fgroup { border-bottom: 1px solid var(--line); padding: 16px 0; }
.fgroup:first-child { padding-top: 0; }
.fgroup h3 { font-family: var(--ff-body); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }
.check { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: .92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); flex: none; cursor: pointer; }
.check span { flex: 1; }
.check small { color: var(--muted); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar p { color: var(--muted); font-size: .9rem; }
.toolbar__right { display: flex; gap: 8px; align-items: center; }
.select { min-height: 44px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); padding: 0 36px 0 16px; font-size: .9rem; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%231d1813' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
.filter-btn { display: inline-flex; }
@media (min-width: 1024px) { .filter-btn { display: none; } }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.active-filters:empty { display: none; }
.no-result { text-align: center; padding: 64px 16px; display: grid; gap: 14px; justify-items: center; color: var(--muted); background: var(--card); border-radius: var(--radius); border: 1px dashed var(--line); }

/* ---------- Trang sản phẩm ---------- */
.pdp { display: grid; gap: 28px; padding: 16px 0 56px; }
@media (min-width: 1024px) { .pdp { grid-template-columns: 1.15fr 1fr; gap: 48px; } }
.gallery { display: grid; gap: 12px; align-self: start; }
@media (min-width: 1024px) { .gallery { position: sticky; top: 148px; grid-template-columns: 84px 1fr; } }
.gallery__main { position: relative; aspect-ratio: 1; border-radius: 22px; background: radial-gradient(110% 80% at 50% 25%, #f7f2ea, var(--tile) 75%); padding: 7%; overflow: hidden; }
.gallery__main svg { width: 100%; height: 100%; transition: transform .35s var(--ease); }
.gallery__main .pcard__badges { top: 18px; left: 18px; }
.thumbs { display: flex; gap: 10px; }
@media (min-width: 1024px) { .thumbs { flex-direction: column; order: -1; } }
.thumbs button { width: 72px; height: 72px; border-radius: 12px; border: 2px solid transparent; background: var(--tile); padding: 4px; flex: none; }
@media (min-width: 1024px) { .thumbs button { width: 84px; height: 84px; } }
.thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.thumbs button:hover { border-color: var(--brand); }
.pinfo { display: grid; gap: 18px; align-content: start; }
.pinfo__brand { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--brand-ink); }
.pinfo h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.025em; margin-top: 6px; }
.pinfo__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: .86rem; color: var(--muted); }
.pinfo__meta a { text-decoration: underline; text-underline-offset: 3px; }
.stock { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; }
.stock--low { color: #b4580f; }
.stock--low .dot { background: #d9822b; }
.pprice { display: grid; gap: 6px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.pprice__row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pprice__row b { font-family: var(--ff-head); font-size: 2.2rem; letter-spacing: -.02em; }
.pprice__row b.is-sale { color: var(--sale); }
.pprice__row s { color: var(--muted); }
.pprice__row .badge { font-size: .8rem; }
.pprice p { font-size: .88rem; color: var(--muted); }
.pprice p b { color: var(--text); }
.opt-label { font-size: .88rem; font-weight: 600; margin-bottom: 10px; }
.opt-label span { font-weight: 400; color: var(--muted); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 44px; height: 44px; border-radius: 99px; border: 2px solid var(--paper); box-shadow: 0 0 0 1.5px var(--line); padding: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--ink); }
.buy { display: flex; gap: 10px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); height: 54px; }
.qty button { width: 46px; height: 100%; border: 0; background: none; display: grid; place-items: center; border-radius: 999px; }
.qty button:hover { background: var(--paper); }
.qty input { width: 40px; border: 0; text-align: center; font-weight: 600; background: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy .btn--primary { flex: 1; min-width: 200px; }
.buy-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.assure { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.assure div { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--card); font-size: .88rem; }
.assure .ic { color: var(--brand-ink); margin-top: 1px; }
.assure b { display: block; }
.assure span { color: var(--muted); }
.expert { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: var(--ink-2); color: var(--on-dark); }
.expert__av { width: 52px; height: 52px; border-radius: 99px; background: linear-gradient(135deg, var(--brand), #7a4a20); display: grid; place-items: center; color: var(--ink); flex: none; }
.expert p { font-size: .86rem; color: var(--on-dark-muted); }
.expert b { color: var(--on-dark); display: block; font-size: .95rem; }
.expert .btn { margin-left: auto; min-height: 42px; }
@media (max-width: 520px) { .expert { flex-wrap: wrap; } .expert .btn { margin-left: 0; width: 100%; } }
.hl { display: grid; gap: 10px; }
.hl li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.hl .ic { color: var(--ok); margin-top: 3px; }
.ptabs { border-top: 1px solid var(--line); padding: 40px 0 16px; }
.ptabs__panel { padding-top: 24px; }
.ptabs__panel[hidden] { display: none; }
.specs { width: 100%; max-width: 760px; border-collapse: collapse; font-size: .95rem; }
.specs th, .specs td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 34%; font-weight: 600; color: var(--muted); }
.specs tr:nth-child(odd) { background: var(--card); }
.prose { max-width: 760px; display: grid; gap: 14px; color: #3a322a; }
.prose h3 { font-size: 1.3rem; color: var(--text); }
.qa { max-width: 760px; display: grid; gap: 10px; }
.qa details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.qa summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.qa summary::-webkit-details-marker { display: none; }
.qa details[open] summary .ic { transform: rotate(180deg); }
.qa details p { padding-bottom: 16px; color: var(--muted); }
.fbt { display: grid; gap: 16px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
@media (min-width: 900px) { .fbt { grid-template-columns: 1fr 300px; align-items: center; } }
.fbt__items { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fbt__item { display: grid; gap: 6px; width: 150px; font-size: .82rem; }
.fbt__item .art { aspect-ratio: 1; background: var(--tile); border-radius: 12px; padding: 8px; }
.fbt__item label { display: flex; gap: 6px; align-items: flex-start; cursor: pointer; }
.fbt__item input { accent-color: var(--primary); width: 18px; height: 18px; margin-top: 1px; flex: none; }
.fbt__sum { display: grid; gap: 10px; }
.fbt__sum b { font-family: var(--ff-head); font-size: 1.6rem; }
.mobile-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, .3); transform: translateY(100%); transition: transform .25s var(--ease); }
.mobile-buy.is-show { transform: none; }
.mobile-buy p { font-size: .78rem; color: var(--muted); line-height: 1.3; }
.mobile-buy b { display: block; font-family: var(--ff-head); font-size: 1.15rem; color: var(--text); }
.mobile-buy .btn { margin-left: auto; }
@media (min-width: 1024px) { .mobile-buy { display: none; } }

/* ---------- Giỏ hàng ---------- */
.cart-page { display: grid; gap: 28px; padding: 8px 0 72px; }
@media (min-width: 1024px) { .cart-page { grid-template-columns: 1fr 400px; align-items: start; } }
.cart-page h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 18px 0 20px; }
.cline { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
@media (min-width: 640px) { .cline { grid-template-columns: 120px 1fr auto; align-items: center; } }
.cline__art { aspect-ratio: 1; background: var(--tile); border-radius: 12px; padding: 6px; }
.cline__name { font-weight: 600; line-height: 1.35; }
.cline__name:hover { color: var(--brand-ink); }
.cline__ctrl { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.cline .qty { height: 44px; }
.cline .qty button { width: 40px; }
.cline__price { text-align: right; grid-column: 2; }
@media (min-width: 640px) { .cline__price { grid-column: auto; } }
.cline__price b { font-family: var(--ff-head); font-size: 1.25rem; display: block; }
.summary { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: grid; gap: 14px; }
@media (min-width: 1024px) { .summary { position: sticky; top: 148px; margin-top: 78px; } }
.summary h2 { font-size: 1.35rem; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.sum-row--total { font-size: 1.15rem; font-weight: 700; padding-top: 14px; border-top: 1px solid var(--line); }
.sum-row--total b { font-family: var(--ff-head); font-size: 1.6rem; }
.coupon { display: flex; gap: 8px; }
.coupon input { flex: 1; min-width: 0; min-height: 46px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 16px; }
.checkout { margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: grid; gap: 16px; scroll-margin-top: 160px; }
.checkout h2 { font-size: 1.35rem; }
.paylist { display: grid; gap: 8px; }
.payopt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-size: .94rem; }
.payopt:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.payopt input { accent-color: var(--primary); width: 18px; height: 18px; }
.payopt small { display: block; color: var(--muted); }
.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; background: rgba(22, 18, 14, .55); padding: 16px; }
.modal[hidden] { display: none; }
.modal__box { background: var(--card); border-radius: 22px; padding: 32px 28px; max-width: 440px; width: 100%; text-align: center; display: grid; gap: 14px; justify-items: center; }
.modal__box .ic--xl { color: var(--ok); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.thumbs button { overflow: hidden; }
.thumbs button svg { width: 100%; height: 100%; }
.cline__price .muted { display: block; }
.pprice p .ic { display: inline; vertical-align: -3px; }

/* ---------- Tinh chỉnh điện thoại ---------- */
@media (max-width: 767px) {
  .topbar__inner { justify-content: center; }
  .topbar p { white-space: nowrap; }
  .hero__main { min-height: 600px; }
  .slide { display: flex; flex-direction: column; padding: 20px 20px 76px; }
  .slide__art { position: relative; right: auto; bottom: auto; width: 100%; height: 210px; min-height: 0; order: -1; }
  .slide__art svg { width: auto; height: 100%; }
  .slide__text { padding-bottom: 0; gap: 12px; }
  .slide h1, .slide h2 { font-size: 2rem; }
  .slide__text > p:not(.eyebrow) { font-size: .92rem; }
  .slide__price b { font-size: 1.5rem; }
  .hero__ctrl { left: 20px; bottom: 18px; }
  .promo { min-height: 210px; }
  .promo__art { width: 46%; right: -18px; }
  .promo__text { max-width: 62%; }
  .promo h2 { font-size: 1.25rem; }
}
@media (max-width: 559px) { .perks { grid-template-columns: 1fr; } .perk { padding: 14px 16px; } }
.form-note .ic { display: inline; vertical-align: -3px; }
@media (min-width: 768px) and (max-width: 1023px) { .hero__main { min-height: 560px; } .slide { padding-bottom: 100px; } }

/* ---------- Ảnh sản phẩm thật (nền trắng hòa vào nền giấy) ---------- */
.pimg { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pcard__media { display: grid; place-items: center; }
.pcard:hover .pcard__media .pimg { transform: scale(1.04); }
.pcard__media .pimg { transition: transform .35s var(--ease); }
.cat__art { display: grid; place-items: center; }
.cat:hover .cat__art .pimg { transform: scale(1.05); }
.cat__art .pimg { transition: transform .35s var(--ease); }
.mega__art { background: var(--tile); border-radius: 12px; padding: 8px; }
.mega__feat .mega__art { background: #e9e1d4; }
.sg__art { padding: 3px; display: grid; place-items: center; }
.mline__art, .cline__art { display: grid; place-items: center; padding: 6px; }
.gallery__main { display: grid; place-items: center; background: var(--tile); }
.gallery__main .pimg { max-height: 100%; }
.thumbs { flex-wrap: wrap; }
.thumbs button img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
@media (min-width: 1024px) { .thumbs { flex-wrap: nowrap; } }

/* Hero: ảnh đặt trên đĩa sáng */
.slide__art .plate { display: grid; place-items: center; width: min(100%, 440px); aspect-ratio: 1; border-radius: 50%; padding: 11%; background: radial-gradient(circle at 50% 40%, #faf6ef 0%, #e8dfd1 70%, #d9ccb9 100%); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), inset 0 -10px 30px rgba(120, 90, 50, .15); }
.slide__art .plate .pimg { filter: none; }
.slide__art svg { filter: none; }
.slide__prod { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; padding: 14px 16px; border-radius: 14px; background: rgba(244, 238, 229, .07); border: 1px solid rgba(244, 238, 229, .14); max-width: 440px; }
.slide__prod:hover { background: rgba(244, 238, 229, .12); }
.slide__prod span { grid-column: 1 / -1; font-size: .9rem; color: var(--on-dark-muted); }
.slide__prod b { font-family: var(--ff-head); font-size: 1.6rem; color: var(--on-dark); }
.slide__prod s { color: var(--on-dark-muted); font-size: .85rem; }
.slide__prod i { font-style: normal; background: var(--sale); color: #fff; padding: 2px 8px; border-radius: 6px; font-weight: 700; font-size: .78rem; justify-self: start; }
@media (max-width: 767px) { .slide__art { height: 230px; } .slide__art .plate { width: auto; height: 100%; } .slide__prod b { font-size: 1.3rem; } }

/* Ô quảng bá sáng */
.promo--soft { background: linear-gradient(135deg, #f3e6d8, #e6d2bb); color: var(--ink); }
.promo--soft p { color: #4d3b26; }
.promo__art { display: grid; place-items: center; aspect-ratio: 1; mix-blend-mode: multiply; }
/* Tên sản phẩm thật dài: giữ hero gọn */
.slide__prod span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 768px) { .slide h1, .slide h2 { font-size: clamp(2rem, 3vw, 2.6rem); } .slide { padding-top: 36px; padding-bottom: 100px; } .slide__text { gap: 12px; } }
@media (max-width: 767px) {
  .hero__main { min-height: 620px; }
  .slide__art { flex: none; height: 190px; }
  .slide__art .plate { width: 190px; height: 190px; }
  .slide__text > p:not(.eyebrow) { display: none; }
}

/* Combo + thương hiệu */
.bundle__arts > a { flex: 1; height: 100%; display: grid; place-items: center; }
.bundle li a { color: var(--muted); }
.bundle li a:hover { color: var(--brand-ink); text-decoration: underline; }
.bundle li span:last-child { white-space: nowrap; }
.brands a { gap: 2px; align-content: center; }
.brands a small { font-family: var(--ff-body); font-size: .72rem; font-weight: 500; color: var(--muted); }

/* Chọn phiên bản */
.variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; max-height: 300px; overflow-y: auto; padding: 2px; }
.variant { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 10px 6px 6px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); text-align: left; font-size: .84rem; line-height: 1.3; }
.variant:hover { border-color: var(--text); }
.variant[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.variant img { width: 44px; height: 44px; object-fit: contain; mix-blend-mode: multiply; background: var(--tile); border-radius: 8px; flex: none; }
.variant small { display: block; color: var(--muted); }
.prose ul { padding-left: 20px; list-style: disc; display: grid; gap: 6px; }
.prose h2, .prose h4 { font-size: 1.15rem; color: var(--text); }
.more { display: flex; justify-content: center; margin-top: 28px; }

/* Nav nhiều ngành hàng */
@media (min-width: 1024px) and (max-width: 1240px) { .nav__link { padding: 0 9px; font-size: .88rem; } }

.pimg--none { width: 46%; height: auto; opacity: .25; mix-blend-mode: normal; }

/* ---------- Hàng đặt trước ---------- */
.pcard__inst--pre { color: #8c5a2b; }
.pcard__inst--pre .dot, .stock--pre .dot { background: var(--brand); }
.stock--pre { color: var(--brand-ink); }
.preorder { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: #f3e6d8; border: 1px solid #e3cdb3; font-size: .88rem; }
.preorder .ic { color: var(--brand-ink); margin-top: 1px; flex: none; }
.preorder b { display: block; margin-bottom: 2px; }
.preorder span { color: #5a4630; }

/* ---------- Logo thương hiệu (ảnh nền trắng, hòa vào nền bằng multiply) ---------- */
.blogo { display: block; height: 24px; width: auto; max-width: 130px; object-fit: contain; mix-blend-mode: multiply; }
.blogo--text { height: auto; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.pcard__brand { line-height: 0; margin-bottom: 4px; }
.pcard__brand .blogo--text { line-height: 1.4; }
.pinfo__brand { display: inline-block; }
.pinfo__brand .blogo { height: 38px; max-width: 200px; }
.brands a .blogo { height: 40px; max-width: 72%; }
.brands a .blogo--text { height: auto; max-width: none; font-family: var(--ff-head); font-size: 1.1rem; letter-spacing: 0; text-transform: none; color: var(--text); }
.mega__brands { columns: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.mega__brands a { display: grid; place-items: center; height: 44px; padding: 6px 10px; border-radius: 10px; background: #fff; }
.mega__brands a:hover { outline: 2px solid var(--brand); }
.mega__brands .blogo { height: 24px; max-width: 100%; mix-blend-mode: normal; }

/* ---------- Thương hiệu: menu + trang chủ ---------- */
.ic--flip { transform: rotate(180deg); }
.mega--brands .container { padding-top: 22px; padding-bottom: 26px; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; max-height: min(62vh, 520px); overflow-y: auto; padding: 2px; margin-top: 12px; }
.brand-grid a { display: grid; place-items: center; height: 56px; padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.brand-grid a:hover { border-color: var(--brand); }
.brand-grid .blogo { height: 28px; max-width: 100%; mix-blend-mode: normal; }
.brand-grid .blogo--text { font-size: .8rem; color: var(--text); letter-spacing: 0; text-transform: none; }
.brand-grid--m { grid-template-columns: repeat(2, 1fr); max-height: none; overflow: visible; padding: 4px 0 12px; }
.brands + .more { margin-top: 20px; }

/* ---------- Hero động: khuyến mãi + hàng mới ---------- */
.slide__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.slide__tag { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 99px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.slide__tag--sale { background: var(--sale); color: #fff; }
.slide__tag--new { background: var(--brand); color: #1a120a; }
.slide__tag--pre { background: rgba(244, 238, 229, .12); color: var(--on-dark); border: 1px solid rgba(244, 238, 229, .25); }
.slide__brand { line-height: 0; }
.slide__brand { display: inline-flex; align-self: start; justify-self: start; background: #fff; padding: 6px 12px; border-radius: 10px; }
.slide__brand .blogo { height: 26px; max-width: 150px; mix-blend-mode: normal; }
.slide__brand .blogo--text { color: var(--ink); line-height: 26px; }
.slide h2 { font-size: clamp(1.6rem, 2.6vw, 2.35rem); line-height: 1.08; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.slide h2 a { color: inherit; }
.slide h2 a:hover { color: var(--brand); }
.slide__sub { color: var(--on-dark-muted); font-size: .92rem; margin: 0; }
.slide__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.slide__price b { font-family: var(--ff-head); font-size: 2rem; color: var(--on-dark); letter-spacing: -.02em; }
.slide__price s { color: var(--on-dark-muted); font-size: .95rem; }
.slide__art { position: relative; }
.plate__float { display: grid; place-items: center; width: 100%; height: 100%; }
.slide__burst { position: absolute; top: 12%; right: 10%; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--sale); color: #fff; font-family: var(--ff-head); font-weight: 800; font-size: 1.35rem; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .5); }
@media (max-width: 767px) { .slide__burst { width: 58px; height: 58px; font-size: 1rem; top: 4%; right: 18%; } .slide__brand .blogo { height: 24px; } .slide__price b { font-size: 1.5rem; } }

/* chuyển động khi slide xuất hiện */
@keyframes heroRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes heroPlate { from { opacity: 0; transform: scale(.82) rotate(-10deg); } to { opacity: 1; transform: none; } }
@keyframes heroFloat { 0%, 100% { transform: translateY(-7px) rotate(-1.5deg); } 50% { transform: translateY(7px) rotate(1.5deg); } }
@keyframes heroDrift { from { transform: scale(1.12) translateX(2%); } to { transform: scale(1) translateX(0); } }
@keyframes heroPop { 0% { opacity: 0; transform: scale(.3) rotate(-30deg); } 70% { transform: scale(1.12) rotate(6deg); } 100% { opacity: 1; transform: none; } }
@keyframes heroFill { from { width: 0; } to { width: 26px; } }
.slide.is-active .slide__text > * { animation: heroRise .7s cubic-bezier(.2, .8, .2, 1) both; }
.slide.is-active .slide__text > :nth-child(2) { animation-delay: .08s; }
.slide.is-active .slide__text > :nth-child(3) { animation-delay: .16s; }
.slide.is-active .slide__text > :nth-child(4) { animation-delay: .24s; }
.slide.is-active .slide__text > :nth-child(5) { animation-delay: .32s; }
.slide.is-active .slide__text > :nth-child(6) { animation-delay: .4s; }
.slide.is-active .plate { animation: heroPlate .9s cubic-bezier(.2, .8, .2, 1) both; }
.plate__float { animation: heroFloat 6s ease-in-out infinite; }
.slide.is-active .slide__bg { animation: heroDrift var(--dur, 6000ms) ease-out both; }
.slide.is-active .slide__burst { animation: heroPop .7s .45s cubic-bezier(.2, .8, .2, 1) both; }
/* chấm chạy theo thời gian slide */
.hero__dots button { position: relative; }
.hero__dots button[aria-current="true"]::before { background: rgba(244, 238, 229, .25); }
.hero__dots i { position: absolute; left: 1px; top: 50%; height: 8px; width: 0; margin-top: -4px; border-radius: 99px; background: var(--brand); }
.hero__dots button[aria-current="true"] i { animation: heroFill var(--dur, 6000ms) linear both; }
.hero__main.is-paused .hero__dots i, .hero__main.is-paused .plate__float { animation-play-state: paused; }
.hero__pause svg { width: 16px; height: 16px; }
/* máy bật "giảm chuyển động": người dùng yêu cầu hero động nên vẫn giữ */
@media (prefers-reduced-motion: reduce) {
  .slide.is-active .slide__text > * { animation-duration: .7s !important; }
  .slide.is-active .plate { animation-duration: .9s !important; }
  .plate__float { animation-duration: 6s !important; }
  .slide.is-active .slide__bg, .hero__dots button[aria-current="true"] i { animation-duration: var(--dur, 6000ms) !important; }
  .slide.is-active .slide__burst { animation-duration: .7s !important; }
  .slide { transition-duration: .5s !important; }
}
.plate__float { mix-blend-mode: multiply; }
@media (max-width: 767px) { .hero__dots { gap: 0; } .hero__dots button { width: 18px; } .hero__dots i { left: -4px; } .hero__ctrl { gap: 6px; } }
.slide__art .plate { overflow: hidden; }
.slide__cta { align-items: center; gap: 18px; }
.slide__more { display: inline-flex; align-items: center; gap: 6px; color: var(--on-dark); font-weight: 600; font-size: .95rem; border-bottom: 1px solid rgba(244, 238, 229, .35); padding: 4px 0; }
.slide__more:hover { color: var(--brand); border-color: var(--brand); }
@media (max-width: 767px) { .slide__more { display: none; } }

/* ---------- Combo: các phần thẳng hàng giữa 3 thẻ (subgrid), nút cùng cỡ ---------- */
.bundle { align-content: start; }
.bundle > .btn { height: 54px; min-height: 54px; padding-block: 0; }
.bundle h3, .bundle > p { margin: 0; }
@media (min-width: 900px) {
  .bundles { row-gap: 0; }
  .bundle { grid-row: span 6; grid-template-rows: subgrid; row-gap: 14px; }
  .bundle > ul { align-content: start; }
  .bundle__total { align-self: end; }
}
.bundle li[hidden] { display: none; }
.bundle__toggle { justify-self: start; border: 0; background: none; padding: 2px 0; color: var(--brand-ink); font-weight: 600; font-size: .85rem; cursor: pointer; }
.bundle__toggle:hover { text-decoration: underline; }

/* ---------- Ngành hàng: 8 ô chia đều 4 × 2, chữ cùng chiều cao ---------- */
@media (min-width: 768px) { .cats { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .cats { grid-template-columns: repeat(4, 1fr); } .cat__art { aspect-ratio: 1.7; padding: 6% 10%; } }
.cat__body { flex: 1; }
.cat h3 { white-space: nowrap; }
.cat h3 > :first-child, .cat h3 { overflow: hidden; text-overflow: ellipsis; }
.cat p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2 * 1.5em); line-height: 1.5; }

/* ---------- Nút gọi nổi (chỉ điện thoại) ---------- */
.call-fab { display: none; }
@media (max-width: 767px) {
  .call-fab { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px 0 14px; border-radius: 99px; background: #1f8a4c; color: #fff; font-weight: 700; font-size: .95rem; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); }
  .call-fab .ic { width: 22px; height: 22px; }
  .call-fab::before { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(31, 138, 76, .55); animation: callPulse 2s ease-out infinite; }
  body:has(.mobile-buy.is-show) .call-fab { bottom: calc(86px + env(safe-area-inset-bottom)); }
}
@keyframes callPulse { 0% { box-shadow: 0 0 0 0 rgba(31, 138, 76, .55); } 100% { box-shadow: 0 0 0 16px rgba(31, 138, 76, 0); } }
@media (max-width: 767px) and (prefers-reduced-motion: reduce) { .call-fab::before { animation-duration: 2s !important; } }

/* ---------- Tên sản phẩm in đậm: Be Vietnam Pro cho dễ đọc (thay Bricolage) ---------- */
.pinfo h1, .slide h2, .mega__fname, .fbt__name, .mobile-buy p { font-family: var(--ff-body); letter-spacing: -.01em; }
.pinfo h1 { font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.05rem); line-height: 1.25; }
.slide h2 { font-weight: 700; font-size: clamp(1.45rem, 2.3vw, 2.05rem); line-height: 1.22; }
.mega__fname { font-weight: 600; line-height: 1.35; }

/* ---------- Trang tĩnh cho Google (build_seo.py) — JS vẽ lại ngay khi tải ---------- */
.seo-static { padding: 16px 0 48px; display: grid; gap: 12px; max-width: 80ch; }
.seo-static img { width: min(100%, 320px); height: auto; mix-blend-mode: multiply; }
.seo-list { grid-column: 1 / -1; display: grid; gap: 6px; padding: 8px 0; color: var(--muted); font-size: .92rem; }
.seo-list a { color: var(--text); }
.cat-intro { margin: 56px 0 8px; padding-top: 32px; border-top: 1px solid var(--line); }
.cat-intro .prose { max-width: 80ch; color: var(--muted); display: grid; gap: 10px; }
.cat-intro h2 { color: var(--text); font-size: 1.35rem; }
.cat-intro a { color: var(--brand-ink); font-weight: 600; }
.prose--vi { background: var(--tile); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; color: var(--text); }
.crumbs span[aria-hidden] { color: var(--muted); }

/* ---------- Thư viện ảnh: đủ mọi góc chụp, nút chuyển, đếm ảnh, dải ảnh nhỏ cuộn được ---------- */
.gnav { position: absolute; top: 50%; z-index: 2; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .9); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-sm, 0 4px 12px rgba(0,0,0,.12)); }
.gnav:hover { background: #fff; border-color: var(--brand); }
.gnav--prev { left: 12px; } .gnav--next { right: 12px; }
.gcount { position: absolute; right: 14px; bottom: 14px; z-index: 2; padding: 4px 10px; border-radius: 99px; background: rgba(22, 18, 14, .72); color: #fff; font-size: .8rem; font-weight: 600; }
.thumbs { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
@media (min-width: 1024px) { .thumbs { overflow-x: hidden; overflow-y: auto; max-height: min(640px, 70vh); padding: 0 4px 0 0; } }
@media (min-width: 1024px) { .gallery { grid-template-columns: 98px 1fr; } .thumbs { padding: 2px 8px 2px 2px; } }

/* ---------- Bán chạy: tự chuyển ngành hàng, thanh chạy trên nút đang chọn ---------- */
.tab { position: relative; overflow: hidden; }
[data-best-tabs] .tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--brand); transform-origin: left; animation: bestFill var(--best-dur, 5000ms) linear both; }
section.is-paused [data-best-tabs] .tab[aria-selected="true"]::after { animation: none; transform: scaleX(0); }
@keyframes bestFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bestIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
[data-best].is-in > * { animation: bestIn .5s cubic-bezier(.2, .8, .2, 1) both; }
[data-best].is-in > :nth-child(2) { animation-delay: .04s; } [data-best].is-in > :nth-child(3) { animation-delay: .08s; } [data-best].is-in > :nth-child(4) { animation-delay: .12s; }
[data-best].is-in > :nth-child(5) { animation-delay: .16s; } [data-best].is-in > :nth-child(6) { animation-delay: .2s; } [data-best].is-in > :nth-child(7) { animation-delay: .24s; } [data-best].is-in > :nth-child(8) { animation-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  [data-best-tabs] .tab[aria-selected="true"]::after { animation-duration: var(--best-dur, 5000ms) !important; }
  [data-best].is-in > * { animation-duration: .5s !important; }
}
@media (max-width: 767px) {
  [data-best-tabs] { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px 2px; max-width: calc(100% + 40px); }
  [data-best-tabs]::-webkit-scrollbar { display: none; }
  [data-best-tabs] .tab { flex: none; }
}

/* ---------- Hero điện thoại: nhạc cụ to, nền sáng bo góc thay cho đĩa tròn nhỏ ---------- */
@media (max-width: 767px) {
  .hero__main { min-height: 740px; }
  .slide__art { height: 300px; margin: -4px -4px 4px; }
  .slide__art .plate { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 22px; padding: 4px; background: radial-gradient(120% 100% at 50% 35%, #faf6ef 0%, #ece3d5 75%, #dfd2bf 100%); }
  .slide__art .plate .pimg { width: 100%; height: 100%; object-fit: contain; }
  .slide__burst { top: 12px; right: 12px; }
}
@keyframes heroBob { 0%, 100% { transform: translateY(-5px); } 50% { transform: translateY(5px); } }
@media (max-width: 767px) { .plate__float { animation-name: heroBob; } .slide__art .plate { isolation: isolate; clip-path: inset(0 round 22px); } }

/* ---------- Popup khi vừa mở web ---------- */
.pop { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: rgba(16, 13, 10, .62); opacity: 0; transition: opacity .25s var(--ease); }
.pop.is-open { opacity: 1; }
.pop__box { position: relative; display: grid; width: min(860px, 100%); max-height: calc(100dvh - 32px); overflow: auto; border-radius: 24px; background: var(--card); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7); transform: translateY(18px) scale(.97); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.pop.is-open .pop__box { transform: none; }
@media (min-width: 768px) { .pop__box:not(.pop__box--img) { grid-template-columns: 1fr 1fr; } }
.pop__x { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); color: var(--ink); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .3); }
.pop__x:hover { background: #fff; }
.pop__x svg { width: 20px; height: 20px; }
.pop__art { position: relative; display: grid; place-items: center; padding: 28px; min-height: 260px; background: radial-gradient(110% 90% at 50% 40%, #faf6ef 0%, #ece3d5 75%, #dfd2bf 100%); }
.pop__art .pimg { width: 100%; height: 380px; }
@media (max-width: 767px) { .pop__art { min-height: 0; height: 36vh; padding: 14px; } .pop__art .pimg { height: 100%; } }
.pop__burst { position: absolute; top: 16px; left: 16px; display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: var(--sale); color: #fff; font-family: var(--ff-head); font-weight: 800; font-size: 1.15rem; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); }
.pop__body { display: grid; align-content: center; gap: 12px; padding: 32px 30px; }
@media (max-width: 767px) { .pop__body { padding: 20px 20px 22px; gap: 10px; } }
.pop__brand { line-height: 0; }
.pop__brand .blogo { height: 26px; max-width: 150px; }
.pop__body h2 { font-family: 'Be Vietnam Pro', var(--ff-body); font-weight: 700; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.2; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pop__text { margin: 0; color: var(--muted); }
.pop__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pop__price b { font-family: var(--ff-head); font-size: 1.8rem; color: var(--sale); letter-spacing: -.02em; }
.pop__price s { color: var(--muted); }
.pop__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.pop__cta .btn { flex: 1 1 140px; }
.pop__box--img { width: auto; max-width: min(540px, 100%); background: transparent; box-shadow: none; overflow: visible; }
.pop__img { display: block; border-radius: 20px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7); }
.pop__img img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 32px); object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .pop, .pop__box { transition-duration: .25s !important; } }

/* ---------- Banner ảnh tự thiết kế trong hero ---------- */
.slide--banner { display: block; padding: 0 !important; }
.slide__banner { position: absolute; inset: 0; display: block; }
.slide__banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes heroBanner { from { transform: scale(1.04); } to { transform: none; } }
.slide--banner.is-active .slide__banner img { animation: heroBanner var(--dur, 6000ms) ease-out both; }
@media (prefers-reduced-motion: reduce) { .slide--banner.is-active .slide__banner img { animation-duration: var(--dur, 6000ms) !important; } }
/* nhiều slide (banner + sản phẩm): chấm nhỏ lại trên điện thoại để hàng nút không tràn */
@media (max-width: 767px) { .hero__dots button { width: 13px; } .hero__dots i { left: -6px; } }
