/* JoyZ Bedding – giao diện chung. Màu xanh lá lấy từ chữ Z trong logo (#C8A85F). */
:root {
  --bg: #FFFFFF; --bg-alt: #F4F4F2; --bg-sage: #F7F2E6; --bg-sky: #EEF0F2; --card: #fff;
  --ink: #262626; --ink-2: #4A4A4A; --muted: #6F6F6F; --line: #E5E5E3; --line-2: #D4D4D1;
  --brand: #C8A85F; --brand-ink: #8A6A2B; --brand-dark: #6B5220; --sale: #A8823A; --zalo: #0068FF; --charcoal: #2B2B2B;
  --radius: 14px; --radius-lg: 24px; --shadow: 0 1px 2px rgba(40, 40, 40, .05), 0 18px 36px -22px rgba(40, 40, 40, .32);
  --container: 1240px; --header-h: 68px; --ease: cubic-bezier(.2, .7, .2, 1);
  --f-display: "Cormorant Garamond", "Times New Roman", serif; --f-body: "Be Vietnam Pro", system-ui, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.18; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.45rem; }
p { margin: 0; }
.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(var(--container), 100% - 64px); } }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section.alt { background: var(--bg-alt); }
.section.sage { background: var(--bg-sage); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 12px; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 60ch; margin-top: 14px; }
.sec-head { margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head.center { text-align: center; } .sec-head.center .lead { margin-inline: auto; }
.sec-head.row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.muted { color: var(--muted); }
.tbd { background: #FFF4D6; color: #7A5A00; border: 1px dashed #E0B84A; border-radius: 6px; padding: 0 6px; font-size: .88em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Nút */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: .95rem; transition: background .2s, border-color .2s, color .2s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand-ink); color: #fff; } .btn.primary:hover { background: var(--brand-dark); }
.btn.ghost { border-color: var(--line-2); background: var(--card); } .btn.ghost:hover { border-color: var(--brand-ink); color: var(--brand-ink); }
.btn.zalo { background: var(--zalo); color: #fff; } .btn.zalo:hover { background: #0054CC; }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: .88rem; }
.btn.block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }
.link { color: var(--brand-ink); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Topbar + header */
.topbar { background: var(--brand-dark); color: #F3EDE0; font-size: .82rem; text-align: center; padding: 8px 16px; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(251, 249, 245, .9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -20px rgba(0, 0, 0, .35); }
.header .container { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: baseline; line-height: 1; font-family: var(--f-display); font-weight: 500; font-size: 2rem; letter-spacing: .01em; color: var(--ink); position: relative; padding-bottom: 6px; }
.logo b { font-weight: 500; color: var(--brand); }
.logo small { position: absolute; right: -4px; bottom: -6px; font-size: .74rem; font-family: var(--f-display); font-weight: 600; letter-spacing: .02em; color: var(--ink-2); }
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav > a, .nav .dd > button { padding: 10px 14px; border-radius: 999px; font-weight: 500; font-size: .94rem; background: none; border: 0; display: inline-flex; align-items: center; gap: 4px; }
.nav > a:hover, .nav .dd > button:hover, .nav a[aria-current="page"] { background: var(--bg-alt); }
.dd { position: relative; }
.dd-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease); }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; }
.dd-menu a:hover { background: var(--bg-alt); }
.dd-menu img, .dd-menu .soon-dot { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.dd-menu .soon-dot { background: repeating-linear-gradient(45deg, var(--bg-alt) 0 6px, var(--bg-sage) 6px 12px); }
.dd-menu small { display: block; color: var(--muted); font-size: .8rem; }
.h-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; border: 0; background: none; }
.icon-btn:hover { background: var(--bg-alt); }
.badge-count { position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--sale); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.badge-count:empty, .badge-count[data-n="0"] { display: none; }
.h-actions .btn.zalo { display: none; }
@media (min-width: 1000px) { .nav { display: flex; } .burger { display: none; } .h-actions .btn.zalo { display: inline-flex; } }

/* Drawer (menu mobile + giỏ hàng) */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(30, 28, 24, .45); opacity: 0; transition: opacity .25s; }
.drawer.open .scrim { opacity: 1; }
.drawer .panel { position: absolute; top: 0; bottom: 0; width: min(420px, 92vw); background: var(--bg); display: flex; flex-direction: column; transition: transform .3s var(--ease); }
.drawer.right .panel { right: 0; transform: translateX(100%); } .drawer.left .panel { left: 0; transform: translateX(-100%); }
.drawer.open .panel { transform: none; }
.drawer .p-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.drawer .p-head h2 { font-size: 1.6rem; }
.drawer .p-body { flex: 1; overflow: auto; padding: 16px 20px; }
.drawer .p-foot { border-top: 1px solid var(--line); padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 10px; background: var(--card); }
.m-nav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-weight: 500; }
.m-nav a.sub { padding-left: 18px; font-weight: 400; color: var(--ink-2); }
.line-item { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-item img { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; background: var(--bg-alt); }
.line-item h3 { font: 600 .95rem/1.35 var(--f-body); }
.line-item .meta { color: var(--muted); font-size: .84rem; margin-top: 2px; }
.line-item .row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; }
.line-item .price { font-weight: 600; }
.rm { background: none; border: 0; color: var(--muted); font-size: .82rem; text-decoration: underline; padding: 4px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); }
.qty button { width: 36px; height: 36px; border: 0; background: none; font-size: 1.1rem; border-radius: 999px; }
.qty button:hover { background: var(--bg-alt); }
.qty input { width: 36px; text-align: center; border: 0; font: inherit; font-weight: 600; background: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.lg button { width: 44px; height: 46px; } .qty.lg input { width: 44px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; }
.sum-row.total { font-size: 1.1rem; font-weight: 700; }
.empty { text-align: center; padding: 40px 10px; color: var(--muted); }
.empty svg { width: 56px; height: 56px; margin: 0 auto 12px; color: var(--line-2); }

/* Hero */
.hero { background: var(--bg-alt); position: relative; overflow: hidden; }
.hero .container { display: grid; gap: 28px; padding-block: 28px 48px; align-items: center; }
.hero-copy { position: relative; z-index: 1; }
.hero .tag { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; font-size: .85rem; font-weight: 500; }
.hero .tag b { background: var(--sale); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: .78rem; }
.hero h1 { margin-top: 18px; }
.hero h1 em { font-style: italic; color: var(--sale); white-space: nowrap; }
.hero .lead { margin-top: 16px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero .note { margin-top: 14px; font-size: .78rem; color: var(--muted); }
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 560px; justify-self: center; width: 100%; }
.hero-art .arch { position: absolute; inset: 0; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.hero-art .arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .sale-seal { position: absolute; left: -6px; bottom: 12%; width: 116px; height: 116px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); display: grid; place-content: center; text-align: center; line-height: 1.1; transform: rotate(-8deg); }
.hero-art .sale-seal small { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hero-art .sale-seal strong { font-family: var(--f-display); font-size: 2.6rem; color: var(--sale); }
.hero-art .chip-float { position: absolute; right: 0; top: 14%; background: var(--card); border-radius: 999px; padding: 8px 14px 8px 8px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 500; }
.dots { display: inline-flex; } .dots i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; margin-left: -7px; } .dots i:first-child { margin-left: 0; }
@media (min-width: 900px) { .hero .container { grid-template-columns: 1.05fr 1fr; padding-block: 56px 72px; gap: 48px; } .hero-art .sale-seal { left: -36px; width: 136px; height: 136px; } }

/* Dải cam kết */
.perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.perk { background: var(--bg); padding: 18px 16px; display: flex; gap: 12px; align-items: flex-start; }
.perk .ico { color: var(--brand-ink); width: 26px; height: 26px; margin-top: 2px; }
.perk b { display: block; font-size: .92rem; } .perk span { font-size: .82rem; color: var(--muted); }
@media (min-width: 900px) { .perks { grid-template-columns: repeat(4, 1fr); } .perk { padding: 24px; } }

/* Signature: chọn màu đổi cả căn phòng */
.room { display: grid; gap: 28px; align-items: center; }
.room-stage { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt); box-shadow: var(--shadow); }
.room-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--ease); }
.room-stage .cap { position: absolute; left: 14px; bottom: 14px; background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 8px 16px 8px 8px; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.room-stage .cap i { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .08); }
.tone-groups { display: grid; gap: 14px; margin: 22px 0 26px; }
.tone-groups .tg { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; }
.tone-groups .tg span { font-size: .82rem; color: var(--muted); }
.sw-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .1); padding: 0; position: relative; transition: transform .15s; }
.sw:hover { transform: scale(1.08); }
.sw[aria-pressed="true"]::after, .sw[aria-checked="true"]::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--ink); }
@media (min-width: 900px) { .room { grid-template-columns: 1.1fr 1fr; gap: 56px; } }

/* Thẻ sản phẩm */
.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid.cols-2, .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.pcard .media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.pcard .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover .media img { transform: scale(1.04); }
.pcard .body { padding: 20px 22px 22px; display: grid; gap: 10px; flex: 1; }
.pcard .price { font-weight: 700; font-size: 1.1rem; }
.pcard .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .76rem; font-weight: 600; background: var(--bg-alt); color: var(--ink-2); }
.pill.on-img { position: absolute; top: 14px; left: 14px; background: rgba(255, 255, 255, .92); }
.pill.soon { background: var(--bg-sky); color: #2D5875; }
.pcard.soon .media { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--bg-alt) 0 14px, var(--bg-sage) 14px 28px); }
.pcard.soon .media span { font-family: var(--f-display); font-size: 1.6rem; color: var(--ink-2); background: rgba(255, 255, 255, .85); padding: 8px 20px; border-radius: 999px; }

/* Thẻ mẫu (biến thể) */
.vgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .vgrid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1100px) { .vgrid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.vcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, border-color .25s, transform .25s var(--ease); }
.vcard:hover { box-shadow: var(--shadow); border-color: var(--line-2); transform: translateY(-3px); }
.vcard .media { aspect-ratio: 1 / 1; background: var(--bg-alt); position: relative; overflow: hidden; }
.vcard .media img { width: 100%; height: 100%; object-fit: cover; }
.vcard .media .pill { position: absolute; top: 10px; left: 10px; background: rgba(255, 255, 255, .92); font-size: .7rem; padding: 3px 10px; }
.vcard .body { padding: 12px 12px 14px; display: grid; gap: 4px; flex: 1; }
.vcard h3 { font: 600 .98rem/1.3 var(--f-body); display: flex; align-items: center; gap: 8px; }
.vcard h3 i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); flex: none; }
.vcard .sub { font-size: .8rem; color: var(--muted); }
.vcard .price { font-weight: 700; font-size: .95rem; margin-top: 4px; }
@media (min-width: 640px) { .vcard .body { padding: 14px 16px 16px; } }

/* Rail cuộn ngang (họa tiết) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 640px) { .rail { grid-auto-columns: 34%; } }
@media (min-width: 1000px) { .rail { grid-auto-columns: 23%; } }

/* Bộ 5 món + bảng giá */
.kit { display: grid; gap: 28px; align-items: center; }
.kit ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.kit li { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kit li .n { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-sage); color: var(--brand-ink); font-weight: 700; display: grid; place-items: center; flex: none; }
@media (min-width: 900px) { .kit { grid-template-columns: 1fr 1fr; gap: 56px; } }
.table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); font-size: .95rem; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { background: var(--bg-alt); font-weight: 600; font-size: .85rem; color: var(--ink-2); }
.table tr:last-child td { border-bottom: 0; }
.table td.num { font-weight: 700; white-space: nowrap; text-align: right; }
.table .dash { color: var(--muted); font-weight: 400; }

/* Các bước đặt hàng */
.steps { display: grid; gap: 14px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; position: relative; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--f-display); font-size: 2.4rem; line-height: 1; color: var(--brand); display: block; margin-bottom: 10px; }
.step h3 { font: 600 1.05rem/1.35 var(--f-body); margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .92rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* Giới thiệu */
.about { display: grid; gap: 32px; align-items: center; }
.about .photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.about .photo img { width: 100%; height: 100%; object-fit: cover; }
.about blockquote { margin: 24px 0 0; padding: 18px 22px; border-left: 3px solid var(--brand); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--f-display); font-size: 1.35rem; font-style: italic; line-height: 1.4; }
.about .vals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.about .vals div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; font-size: .9rem; }
.about .vals b { display: block; margin-bottom: 2px; }
@media (min-width: 900px) { .about { grid-template-columns: .9fr 1.1fr; gap: 64px; } }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--brand-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--ink-2); }

/* CTA Zalo */
.cta-band { background: var(--brand-dark); color: #F1F6EE; border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px); display: grid; gap: 20px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #D9CBA6; margin-top: 10px; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; } }

/* Footer */
.footer { background: #1F1F1F; color: #CCCCCC; padding: 56px 0 calc(28px + env(safe-area-inset-bottom)); margin-top: 0; font-size: .92rem; }
.footer .logo { color: #F3F1EA; } .footer .logo small { color: #CCCCCC; }
.f-grid { display: grid; gap: 32px; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer .socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.footer .socials a { border: 1px solid #444444; border-radius: 999px; padding: 7px 14px; font-size: .84rem; }
.footer .socials a:hover { border-color: #CCCCCC; text-decoration: none; }
.f-bottom { border-top: 1px solid #3A3A3A; margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .82rem; color: #9A9A9A; }
@media (min-width: 900px) { .f-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

/* Nút Zalo nổi */
.fab-zalo { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--zalo); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; box-shadow: 0 10px 24px -8px rgba(0, 104, 255, .6); }
.fab-zalo::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--zalo); animation: ping 2.4s infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
body.has-buybar .fab-zalo { bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 1000px) { body.has-buybar .fab-zalo { bottom: 24px; } }

/* Đầu trang con + breadcrumb */
.page-head { background: var(--bg-alt); padding: 28px 0 32px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .5; }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }

/* Danh mục: thanh lọc */
.cat-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 2px; scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-size: .9rem; font-weight: 500; white-space: nowrap; }
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); }
.chip small { opacity: .65; font-size: .78rem; }
.shop { display: grid; gap: 24px; padding-block: 24px 72px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.toolbar .count { color: var(--muted); font-size: .9rem; }
.toolbar .right { display: flex; gap: 8px; align-items: center; }
.select, .input { min-height: 44px; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 14px; font: inherit; font-size: .92rem; background: var(--card); color: var(--ink); }
.search { position: relative; } .search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.search .input { padding-left: 38px; width: 100%; }
.filters { display: grid; gap: 22px; align-content: start; }
.filters h3 { font: 600 .82rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; }
.f-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.f-chips .chip { min-height: 36px; padding: 0 12px; font-size: .85rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.active-filters button { border: 0; background: var(--bg-sage); color: var(--brand-dark); border-radius: 999px; padding: 6px 12px; font-size: .82rem; font-weight: 500; }
.filter-btn { display: inline-flex; }
.filters-wrap .p-head, .filters-wrap .p-foot { display: none; }
@media (max-width: 999px) {
  .filters-wrap { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
  .filters-wrap.open { visibility: visible; }
  .filters-wrap .scrim { position: absolute; inset: 0; background: rgba(30, 28, 24, .45); opacity: 0; transition: opacity .25s; }
  .filters-wrap.open .scrim { opacity: 1; }
  .filters-wrap .sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; background: var(--bg); border-radius: 22px 22px 0 0; display: flex; flex-direction: column; transform: translateY(100%); transition: transform .3s var(--ease); }
  .filters-wrap.open .sheet { transform: none; }
  .filters-wrap .p-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 10px 20px; border-bottom: 1px solid var(--line); }
  .filters-wrap .filters { overflow: auto; padding: 18px 20px; }
  .filters-wrap .p-foot { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card); }
}
@media (min-width: 1000px) { .shop { grid-template-columns: 260px 1fr; gap: 40px; } .filter-btn { display: none; } .filters-wrap .filters { position: sticky; top: calc(var(--header-h) + 20px); } }
.soon-panel { border: 1px dashed var(--line-2); border-radius: var(--radius-lg); padding: 48px 24px; text-align: center; background: var(--card); }
.soon-panel h2 { font-size: 2rem; margin-bottom: 10px; }

/* Chi tiết sản phẩm */
.pdp { display: grid; gap: 28px; padding-block: 20px 64px; }
.gallery { position: relative; }
.gallery .main { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.gallery .main img.loading { opacity: .35; }
.gallery .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); display: grid; place-items: center; box-shadow: var(--shadow); }
.gallery .nav-btn.prev { left: 12px; } .gallery .nav-btn.next { right: 12px; }
.gallery .zoom { position: absolute; right: 12px; bottom: 12px; }
.gallery .note { font-size: .8rem; color: var(--muted); margin-top: 10px; }
.info h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 10px 0 8px; }
.info .price-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 14px 0 6px; }
.info .price { font-size: 1.8rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.info .price-hint { color: var(--muted); font-size: .88rem; }
.opt { margin-top: 22px; }
.opt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.opt-head b { font-size: .92rem; } .opt-head b span { font-weight: 400; color: var(--ink-2); }
.opt .sw-row { gap: 10px; }
.opt .sw { width: 38px; height: 38px; }
.pt-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; max-height: 300px; overflow: auto; padding: 4px; }
.pt { aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--bg-alt); }
.pt img { width: 100%; height: 100%; object-fit: cover; }
.pt[aria-checked="true"] { border-color: var(--ink); }
.sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.size { border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); padding: 10px 12px; text-align: left; display: grid; gap: 2px; min-height: 58px; }
.size b { font-size: .92rem; } .size span { font-size: .82rem; color: var(--muted); }
.size:hover { border-color: var(--ink-2); }
.size[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fff; }
.opt.err .sizes .size { border-color: var(--sale); }
.opt-err { color: var(--sale); font-size: .85rem; margin-top: 8px; min-height: 1.2em; }
.shake { animation: shake .35s; } @keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.picked { margin-top: 22px; background: var(--bg-sage); border-radius: var(--radius); padding: 14px 16px; font-size: .9rem; display: grid; gap: 4px; }
.picked b { font-weight: 600; }
.buy { display: grid; grid-template-columns: auto 1fr 1fr; gap: 10px; margin-top: 18px; align-items: center; }
.buy .btn { min-height: 50px; }
.perk-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; font-size: .9rem; }
.perk-list li { display: flex; gap: 10px; align-items: flex-start; } .perk-list .ico { color: var(--brand-ink); width: 20px; height: 20px; margin-top: 2px; }
.pdp-more { display: grid; gap: 20px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.box h2 { font-size: 1.6rem; margin-bottom: 14px; }
.box ul.dots-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.05fr 1fr; gap: 48px; padding-top: 28px; } .gallery { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; } .pdp-more { grid-template-columns: 1fr 1fr; } }
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--card); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; box-shadow: 0 -10px 30px -20px rgba(0, 0, 0, .3); transform: translateY(110%); transition: transform .3s var(--ease); }
.buybar.show { transform: none; }
.buybar .p { line-height: 1.2; } .buybar .p b { display: block; font-size: 1.05rem; } .buybar .p small { color: var(--muted); font-size: .76rem; }
.buybar .btn { min-height: 46px; padding: 0 16px; }
@media (min-width: 1000px) { .buybar { display: none; } }

/* Dialog */
dialog.modal { border: 0; border-radius: var(--radius-lg); padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
dialog.modal::backdrop { background: rgba(30, 28, 24, .5); }
dialog.modal.wide { width: min(980px, calc(100vw - 24px)); }
.modal .m-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 14px 14px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 1; }
.modal .m-head h2 { font-size: 1.6rem; }
.modal .m-body { padding: 20px 22px 24px; display: grid; gap: 14px; }
.modal img.full { width: 100%; height: auto; border-radius: var(--radius); }

/* Đặt hàng */
.checkout { display: grid; gap: 24px; padding-block: 24px 72px; align-items: start; }
@media (min-width: 960px) { .checkout { grid-template-columns: 1.2fr 1fr; gap: 40px; } .checkout .summary { position: sticky; top: calc(var(--header-h) + 20px); } }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: .9rem; }
.field label small { font-weight: 400; color: var(--muted); }
.field .input, .field textarea { width: 100%; min-height: 48px; font-size: 1rem; }
.field textarea { padding: 12px 14px; min-height: 90px; resize: vertical; border: 1px solid var(--line-2); border-radius: 12px; font: inherit; background: var(--card); }
.field .input:focus, .field textarea:focus { outline: none; border-color: var(--brand-ink); box-shadow: 0 0 0 3px rgba(200, 168, 95, .35); }
.field.invalid .input, .field.invalid textarea { border-color: var(--sale); }
.field .msg { color: var(--sale); font-size: .82rem; min-height: 0; }
.grid-2 { display: grid; gap: 16px; } @media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px; background: var(--card); cursor: pointer; }
.radio-card + .radio-card { margin-top: 8px; }
.radio-card input { margin-top: 4px; accent-color: var(--brand-ink); width: 18px; height: 18px; }
.radio-card:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.radio-card b { display: block; } .radio-card span { font-size: .85rem; color: var(--muted); }
.radio-card .tagp { margin-left: auto; font-weight: 700; white-space: nowrap; }
.summary .box h2 { display: flex; justify-content: space-between; align-items: baseline; }
.summary .sum { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.msg-preview { width: 100%; min-height: 220px; font: .85rem/1.5 ui-monospace, Consolas, monospace; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; background: var(--card); resize: vertical; }
.done-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--bg-sage); color: var(--brand-ink); display: grid; place-items: center; margin: 0 auto; }

/* Chính sách */
.policy { display: grid; gap: 32px; padding-block: 32px 80px; }
.toc { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.toc a { white-space: nowrap; }
.prose { max-width: 760px; display: grid; gap: 56px; }
.prose section { display: grid; gap: 14px; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.prose p, .prose li { color: var(--ink-2); }
.callout { background: var(--bg-sage); border-radius: var(--radius); padding: 16px 18px; color: var(--brand-dark); }
@media (min-width: 1000px) { .policy { grid-template-columns: 240px 1fr; gap: 56px; } .toc { flex-direction: column; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } .toc a { border-radius: 10px; } }
.size-fig { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.size-fig svg { width: 100%; height: auto; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; opacity: 0; pointer-events: none; transition: .3s var(--ease); z-index: 100; font-size: .92rem; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.has-buybar .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }

/* Hiện dần khi cuộn: chỉ ẩn khi JS chạy */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Lưới 1 cột trên điện thoại: không để nội dung dài (nút nowrap, hàng ô màu) đẩy cột rộng hơn màn hình */
.pdp > *, .shop > *, .checkout > *, .policy > *, .room > *, .kit > *, .about > *, .pdp-more > *, .hero .container > *, .f-grid > * { min-width: 0; }
@media (max-width: 899px) { .pdp, .pdp-more, .room, .kit, .about { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 999px) { .shop, .policy { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 959px) { .checkout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
  .buy { grid-template-columns: auto 1fr 1fr; gap: 8px; }
  .buy .btn { padding: 0 10px; white-space: normal; line-height: 1.2; font-size: .9rem; }
  .qty.lg button { width: 36px; } .qty.lg input { width: 30px; }
  .topbar { font-size: .74rem; padding: 6px 12px; }
}

/* ===== Cảnh 3D lắp bộ 5 món (ghim theo cuộn) ===== */
.kit3d { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.kit3d-pin { padding-block: clamp(40px, 6vw, 80px); }
.kit3d.pinned .kit3d-pin { height: calc(100svh - var(--header-h)); display: flex; align-items: center; padding-block: 16px; }
.kit3d-grid { display: grid; gap: 18px; align-items: center; width: min(var(--container), 100% - 32px); }
.kit3d-stage { position: relative; height: 46svh; min-height: 280px; border-radius: var(--radius-lg); overflow: hidden; background: radial-gradient(ellipse 70% 60% at 50% 62%, #fff 0%, #F6F2EC 55%, var(--bg-alt) 100%); box-shadow: inset 0 0 0 1px var(--line); }
.kit3d-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.kit3d-fallback { display: none; width: 100%; height: 100%; object-fit: cover; }
.kit3d.no3d .kit3d-fallback { display: block; } .kit3d.no3d canvas, .kit3d.no3d .kit3d-hint { display: none; }
.kit3d-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font-size: .8rem; background: rgba(255, 255, 255, .88); padding: 6px 14px; border-radius: 99px; color: var(--muted); transition: opacity .4s; pointer-events: none; white-space: nowrap; }
.kit3d:not(.pinned) .kit3d-hint { display: none; }
.kit3d-count { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); margin: 12px 0 8px; font-variant-numeric: tabular-nums; }
.kit3d-count b { font-family: var(--f-display); font-size: 1.7rem; font-weight: 600; color: var(--ink); line-height: 1; }
.kit3d-bar { flex: 1; max-width: 160px; height: 2px; background: var(--line-2); position: relative; overflow: hidden; border-radius: 2px; }
.kit3d-bar i { position: absolute; inset: 0; background: var(--brand-ink); transform-origin: left; transform: scaleX(.2); transition: transform .4s var(--ease); }
.kit3d:not(.pinned) .kit3d-count { display: none; }
.kit3d-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.kit3d-steps li { padding: 10px 16px; border-left: 2px solid var(--line-2); opacity: .42; transition: opacity .35s, border-color .35s, background .35s, transform .35s var(--ease); }
.kit3d-steps li b { display: block; font-weight: 600; font-size: 1.02rem; }
.kit3d-steps li > span { font-size: .9rem; color: var(--muted); }
.kit3d-steps li.on { opacity: 1; border-color: var(--brand-ink); background: rgba(255, 255, 255, .7); border-radius: 0 14px 14px 0; transform: translateX(4px); }
.kit3d:not(.pinned) .kit3d-steps li { opacity: 1; }
.kit3d-steps li:last-child .kit3d-sw, .kit3d-steps li:last-child .btn { display: none; }
.kit3d-steps li.on:last-child .kit3d-sw { display: flex; } .kit3d-steps li.on:last-child .btn { display: inline-flex; }
.kit3d.no3d .kit3d-sw { display: none !important; }
.kit3d-sw { margin-top: 12px; gap: 8px; } .kit3d-sw .sw { width: 30px; height: 30px; }
@media (max-width: 899px) {
  .kit3d.pinned .kit3d-grid { align-content: center; gap: 12px; }
  .kit3d.pinned .kit3d-stage { height: 38svh; min-height: 230px; }
  .kit3d.pinned .kit3d-count { margin: 6px 0 4px; }
  .kit3d.pinned .kit3d-stage { order: -1; }
  .kit3d.pinned .kit3d-steps li:not(.on) { display: none; }
  .kit3d.pinned h2 { font-size: 1.65rem; }
  .kit3d.pinned .eyebrow { display: none; }
}
@media (min-width: 900px) {
  .kit3d-grid { grid-template-columns: .78fr 1.22fr; gap: 48px; width: min(var(--container), 100% - 64px); }
  .kit3d-stage { height: min(76vh, 680px); }
}

/* rail họa tiết khi ghim trượt ngang (máy tính) */
.rail.rail-pinned { overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
.rail.rail-pinned .vcard { transition: box-shadow .25s, border-color .25s; will-change: transform; }

/* Lenis cuộn mượt */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* 3D nhẹ: thẻ nghiêng theo con trỏ, lưới thẻ lật vào khi hiện */
@media (hover: hover) and (pointer: fine) {
  .tilt.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0)); transition: transform .35s var(--ease), box-shadow .25s, border-color .25s; }
  .tilt.tilt:hover { --ty: -4px; }
  .tilt.tilt.tilting { transition: transform .08s linear, box-shadow .25s, border-color .25s; }
}
.vgrid > .vcard { animation: cardIn .7s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes cardIn { from { opacity: 0; transform: perspective(900px) rotateX(22deg) translateY(36px); } }
.gallery .main img.flip { animation: flipIn .55s var(--ease); }
@keyframes flipIn { from { opacity: .3; transform: perspective(1200px) rotateY(-14deg) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .tilt { transform: none !important; } }
.vcard.rail-more { display: grid; place-content: center; gap: 10px; text-align: center; min-height: 260px; background: var(--bg-sage); font-family: var(--f-display); font-size: 1.6rem; }
.vcard.rail-more .link { font-family: var(--f-body); font-size: .9rem; justify-content: center; }
.shots { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: thin; }
.shots button { flex: none; width: 72px; height: 72px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--bg-alt); }
.shots button[aria-pressed="true"] { border-color: var(--ink); }
.shots img { width: 100%; height: 100%; object-fit: cover; }

/* nút về trang quản trị (chỉ hiện trên máy đã đăng nhập admin) */
.admin-pill { position: fixed; left: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .85rem; font-weight: 600; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.admin-pill:hover { background: #000; }
body.has-buybar .admin-pill { bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 1000px) { body.has-buybar .admin-pill { bottom: 24px; } }
.footer .f-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ===== Trang chi tiết kiểu Shopee ===== */
.gallery .main { cursor: zoom-in; }
.gallery .main img { transition: opacity .3s, transform .15s ease-out; }
.gallery .main.zooming img { transform: scale(2.2); }
.gallery .main.zooming .nav-btn, .gallery .main.zooming .zoom, .gallery .main.zooming .shot-count { opacity: 0; }
.shot-count { position: absolute; left: 12px; bottom: 12px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; font-variant-numeric: tabular-nums; transition: opacity .2s; }
.gallery .nav-btn, .gallery .zoom { transition: opacity .2s; }
.shot-cap { margin-top: 12px; font-weight: 600; font-size: .95rem; }
.shots-wrap { position: relative; display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.shots-wrap .shots { flex: 1; margin-top: 0; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px; }
.shots-wrap .shots::-webkit-scrollbar { display: none; }
.shots-wrap .shots button { width: 80px; height: 80px; scroll-snap-align: start; }
.shots-nav { flex: none; width: 32px; height: 80px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); display: grid; place-items: center; }
.shots-nav .ico { width: 18px; height: 18px; }
@media (max-width: 640px) { .shots-nav { display: none; } .shots-wrap .shots button { width: 64px; height: 64px; } }
/* ô chọn mẫu bằng ảnh */
#vPicker { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; max-height: 372px; overflow: auto; padding: 4px; }
.vs { display: grid; gap: 4px; padding: 4px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); text-align: center; }
.vs img, .vs i { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; background: var(--bg-alt); }
.vs span { font-size: .74rem; line-height: 1.25; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.vs:hover { border-color: var(--ink-2); }
.vs[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.vs[aria-checked="true"] span { color: var(--ink); font-weight: 600; }
@media (max-width: 480px) { #vPicker { grid-template-columns: repeat(4, 1fr); } }
.footer .f-logo { width: 200px; height: auto; display: block; }

/* ===== màu chủ đạo trắng – xám – gold: các khối tối dùng xám than, chữ nhấn vàng ===== */
.topbar { background: var(--charcoal); color: #EADFC3; }
.cta-band { background: var(--charcoal); }
.cta-band p { color: #D9CBA6; }
.btn.primary { background: var(--brand-ink); } .btn.primary:hover { background: var(--brand-dark); }
.header { background: rgba(255, 255, 255, .92); }
.logo-img { height: 46px; width: auto; display: block; }

/* hotline trên header (thay nút Chat Zalo), menu Hỗ trợ khách hàng, footer liên hệ + QR */
.hotline { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border: 1px solid var(--brand); border-radius: 999px; color: var(--ink); }
.hotline .ico { width: 20px; height: 20px; color: var(--brand-ink); }
.hotline span { display: none; line-height: 1.15; } .hotline small { display: block; font-size: .7rem; color: var(--muted); } .hotline b { font-size: .95rem; letter-spacing: .01em; }
.hotline:hover { background: var(--bg-sage); }
@media (min-width: 1000px) { .hotline span { display: block; } }
@media (max-width: 999px) { .hotline { border: 0; padding: 0; width: 44px; height: 44px; justify-content: center; } }
.dd-menu.dd-list { min-width: 240px; } .dd-menu.dd-list a { padding: 10px 12px; }
.f-contact li { line-height: 1.5; }
.f-qr { display: flex; gap: 14px; align-items: center; margin-top: 18px; }
.f-qr .qr { width: 104px; height: 104px; background: #fff; border-radius: 10px; padding: 6px; flex: none; }
.f-qr .qr svg, .f-qr .qr img { width: 100%; height: 100%; display: block; }
.f-qr b { display: block; color: #fff; margin-bottom: 4px; } .f-qr span { display: block; font-size: .85rem; }
.p-foot .btn + .btn { margin-top: 0; }

.contact-card { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.contact-card .qr { width: 140px; height: 140px; flex: none; }
.contact-card .qr svg, .contact-card .qr img { width: 100%; height: 100%; display: block; }
.contact-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; flex: 1 1 260px; }
/* trang khuyến mãi */
.promo-list { padding-block: 32px 80px; display: grid; gap: 24px; }
.promo { display: grid; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.promo-media { aspect-ratio: 4 / 3; background: var(--bg-alt); } .promo-media img { width: 100%; height: 100%; object-fit: cover; }
.promo-body { padding: clamp(20px, 4vw, 40px); display: grid; gap: 12px; align-content: center; }
.promo-body .pill { justify-self: start; background: var(--bg-sage); color: var(--brand-ink); }
.promo-big { font-family: var(--f-display); font-style: italic; font-size: clamp(2rem, 4vw, 3rem); color: var(--sale); line-height: 1.1; }
.promo-body ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }
.promo-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.promo-more { text-align: center; }
@media (min-width: 900px) { .promo { grid-template-columns: 1fr 1.1fr; } .promo-media { aspect-ratio: auto; min-height: 420px; } }

/* nút Tư vấn trực tuyến 2 dòng */
.btn.consult { display: grid; gap: 2px; justify-items: center; text-align: center; white-space: normal; padding: 10px 18px; min-height: 58px; line-height: 1.3; }
.btn.consult small { font-weight: 400; font-size: .8rem; opacity: .9; }
#pDesc { display: grid; gap: 8px; color: var(--ink-2); } #pDesc p { margin: 0; } #pDesc ul { margin: 0; }
.desc-box { grid-column: 1 / -1; }

/* màn cảm ơn sau khi gửi đơn */
.done-body { text-align: center; } .done-msg { color: var(--ink-2); }
.done-qr { display: grid; justify-items: center; gap: 6px; } .done-qr .qr { width: 150px; height: 150px; }
.done-qr .qr svg, .done-qr .qr img { width: 100%; height: 100%; display: block; }
/* menu 5 mục + hotline: không xuống dòng */
.nav > a, .nav .dd > button { white-space: nowrap; padding: 10px 12px; }
.h-actions { flex: none; }
.header .container > a:has(.logo-img) { flex: none; }
.logo-img { height: 50px; }
@media (min-width: 1000px) and (max-width: 1180px) { .nav { margin-left: 0; gap: 0; } .nav > a, .nav .dd > button { padding: 10px 8px; font-size: .9rem; } .hotline small { display: none; } }

/* banner dạng hình trên trang chủ */
.hero-banner { background: var(--bg-alt); }
.hero-banner a { display: block; max-width: 1920px; margin-inline: auto; }
.hero-banner img { width: 100%; height: auto; display: block; }
.hero-banner .hb-m { display: none; }
@media (max-width: 720px) { .hero-banner .hb-d { display: none; } .hero-banner .hb-m { display: block; } }
/* quy cách + hướng dẫn chọn ga (ảnh), hướng dẫn giặt, ghi chú tư vấn */
.guide-box { grid-column: 1 / -1; }
.guides { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.guides button, .wash { padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-alt); cursor: zoom-in; display: block; width: 100%; }
.guides img, .wash img { width: 100%; height: auto; display: block; }
.consult-note { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 6px; }
/* khuyến mãi: sản phẩm áp dụng */
.promo-items { display: grid; gap: 10px; margin-top: 6px; }
.promo-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-sage); }
.promo-item img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }
.promo-item b { display: block; } .promo-item small { color: var(--muted); }
.promo-item em { margin-left: auto; font-style: normal; font-weight: 800; color: var(--sale); white-space: nowrap; }
