/* =====================================================================
 * ÉLORA Boutique — giao diện
 * Tông ngà – mực – vàng champagne; chữ tiêu đề serif (Cormorant Garamond), nội dung Be Vietnam Pro.
 * ===================================================================== */
:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --soft: #f3ede3;
  --ink: #1d1b18;
  --ink-2: #3a362f;
  --muted: #746e65;
  --line: #e7dfd2;
  --accent: #a8834a;
  --accent-dark: #86672f;
  --accent-soft: #f5ecdc;
  --sale: #a3261f;
  --ok: #2f6b3a;
  --err: #b3261e;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 12px 40px rgba(29, 27, 24, .12);
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 68px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html, body { margin: 0; }
body { font-family: var(--sans); font-weight: 400; font-size: 15px; color: var(--ink); background: var(--bg); line-height: 1.6; }
body.no-scroll { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; flex: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
main.container { min-height: 60vh; padding-top: 24px; padding-bottom: 64px; outline: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: .01em; }
h1 { font-size: 40px; margin: 6px 0 14px; }
h2 { font-size: 30px; margin: 0 0 16px; }
h3 { font-size: 20px; margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 300; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.demo-banner { background: #fff4d6; color: #6b4e00; text-align: center; font-size: 12px; padding: 4px 12px; }
.announce { background: var(--ink); color: #f2ead9; text-align: center; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  padding: 9px 16px; transition: opacity .3s; }
.announce.fade { opacity: 0; }

/* ---------- Header ---------- */
/* Không dùng backdrop-filter: nó biến header thành khung chứa cho menu "position: fixed" trên điện thoại */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; transition: box-shadow .2s; }
.site-header:has(.main-nav.open) { z-index: 82; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(29, 27, 24, .06); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { text-decoration: none; display: flex; flex-direction: column; align-items: center; line-height: 1; color: var(--ink); }
.logo-main { font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: .18em; padding-left: .18em; }
.logo-sub { font-size: 9.5px; letter-spacing: .5em; padding-left: .5em; text-transform: uppercase; color: var(--accent-dark); margin-top: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cur-switch select { appearance: none; -webkit-appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px;
  font: 600 12.5px/1 var(--sans); letter-spacing: .04em; padding: 8px 12px; cursor: pointer; margin-right: 4px; }
.cur-switch select:hover { border-color: var(--ink); }
.icon-btn {background: none; border: 0; cursor: pointer; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; position: relative; text-decoration: none; color: var(--ink); }
.icon-btn:hover { background: var(--soft); }
.header-icons { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.count { position: absolute; top: 3px; right: 1px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 600;
  min-width: 18px; height: 18px; line-height: 18px; border-radius: 9px; text-align: center; padding: 0 4px; }
.count[hidden] { display: none; }
.menu-toggle { display: none; }

.main-nav { flex: 1; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; justify-content: center; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 10px 12px; text-decoration: none; font-size: 13.5px; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; white-space: nowrap; position: relative; }
.main-nav > ul > li > .nav-row > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: var(--ink);
  transform: scaleX(0); transition: transform .25s; transform-origin: left; }
.main-nav > ul > li > .nav-row > a:hover::after, .main-nav > ul > li > .nav-row > a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--accent-dark); }
.main-nav .submenu { display: block; visibility: hidden; opacity: 0; transform: translateY(6px); transition: .2s; position: absolute; top: 100%; left: 0;
  min-width: 220px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); list-style: none; margin: 0; padding: 10px; z-index: 5; }
.main-nav li:hover > .submenu, .main-nav li:focus-within > .submenu { visibility: visible; opacity: 1; transform: none; }
.main-nav .submenu a { text-transform: none; letter-spacing: 0; font-size: 14px; padding: 8px 10px; }
.main-nav .submenu a:hover { background: var(--soft); }
.main-nav .submenu .submenu { top: 0; left: 100%; }
.nav-row { display: flex; align-items: center; }
.sub-toggle { display: none; }
.nav-mobile-only, .nav-head { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink); background: var(--ink); color: #fff;
  padding: 13px 26px; border-radius: var(--radius); cursor: pointer; text-decoration: none; font-size: 13px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--ink); }
.btn-sm { padding: 9px 14px; }
.btn-block { display: flex; width: 100%; }
.btn-grow { flex: 1; }
.btn-text { background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2);
  font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.btn-text svg { width: 17px; height: 17px; }
.btn-text.danger, .btn-link { color: var(--err); }
.btn-link { background: none; border: 0; cursor: pointer; padding: 4px; text-decoration: underline; }
.link-more { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

.price { color: var(--ink); font-weight: 600; }
.old-price { color: var(--muted); text-decoration: line-through; font-size: 13.5px; margin-left: 8px; }
.badge { display: inline-block; background: var(--surface); color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 2px; }
.badge.sale { background: var(--sale); color: #fff; }
.kicker { display: inline-block; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--accent-dark); }
.empty { text-align: center; padding: 56px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.empty svg { width: 40px; height: 40px; margin: 0 auto 8px; color: var(--accent); }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Blocks ---------- */
.block { margin-top: 64px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.block-head h2 { margin: 0; }

/* ---------- Hero slider ---------- */
.hero { position: relative; background: var(--soft); border-radius: var(--radius-lg); overflow: hidden; min-height: 520px; margin-top: -4px; }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; opacity: 0; visibility: hidden; transition: opacity .7s, visibility .7s; }
.slide.on { opacity: 1; visibility: visible; position: relative; }
.slide-text { padding: 56px 64px; max-width: 560px; }
.slide-text h2 { font-size: 60px; margin: 14px 0 16px; }
/* Khối giới thiệu nổi bật đầu trang chủ */
.intro { position: relative; text-align: center; padding: 56px 24px 48px; margin: -4px 0 24px; border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #fff 0%, var(--accent-soft) 55%, var(--soft) 100%); border: 1px solid var(--line); }
.intro::before, .intro::after { content: ""; position: absolute; width: 220px; height: 220px; border: 1px solid rgba(168, 131, 74, .35); border-radius: 50%; }
.intro::before { left: -70px; top: -90px; } .intro::after { right: -60px; bottom: -110px; }
.intro .kicker { letter-spacing: .22em; }
.intro h1 { font-size: 54px; max-width: 900px; margin: 14px auto 16px; }
.intro p { max-width: 680px; margin: 0 auto; color: var(--ink-2, var(--muted)); font-size: 16px; }
.intro-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; position: relative; z-index: 1; }
.intro-points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; gap: 10px 28px; justify-content: center; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.intro-points li { display: inline-flex; align-items: center; gap: 8px; }
.intro-points svg { width: 20px; height: 20px; color: var(--accent); }
.slide-text p { color: var(--ink-2); font-size: 17px; margin: 0 0 28px; }
.slide-img { height: 100%; min-height: 520px; position: relative; }
.slide-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.slide.on .slide-text > * { animation: rise .8s both; }
.slide.on .slide-text > *:nth-child(2) { animation-delay: .08s; }
.slide.on .slide-text > *:nth-child(3) { animation-delay: .16s; }
.slide.on .slide-text > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .85); display: flex; align-items: center; justify-content: center; z-index: 2; color: var(--ink); }
.hero-nav:hover { background: #fff; }
.hero-nav.prev { left: 16px; } .hero-nav.next { right: 16px; }
.hero-dots { position: absolute; left: 64px; bottom: 28px; display: flex; gap: 8px; z-index: 2; }
.hero-dots button { width: 28px; height: 3px; border: 0; padding: 0; background: rgba(29, 27, 24, .25); cursor: pointer; }
.hero-dots button.on { background: var(--ink); }

.usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 24px; border-radius: var(--radius-lg); overflow: hidden; }
.usp > div { background: var(--surface); display: flex; gap: 14px; align-items: center; padding: 18px 20px; }
.usp svg { width: 28px; height: 28px; color: var(--accent); }
.usp strong { display: block; font-size: 14px; font-weight: 600; }
.usp span { font-size: 13px; color: var(--muted); }

/* ---------- Danh mục & bộ sưu tập ---------- */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.cat-tile { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius-lg); text-decoration: none; color: #fff; background: var(--ink); }
.cat-tile img, .cat-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .55)); }
.cat-label { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.1; }
.cat-label small { display: block; font-family: var(--sans); font-size: 12px; font-weight: 400; opacity: .9; letter-spacing: .05em; margin-top: 4px; }
.collections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.collection { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-lg); text-decoration: none; color: #fff; }
.collection img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.collection:hover img { transform: scale(1.04); }
.collection::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .6)); }
.collection span { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; }
.collection strong { display: block; font-family: var(--serif); font-size: 30px; font-weight: 600; }
.collection em { font-style: normal; font-size: 14px; opacity: .9; display: block; margin-bottom: 10px; }
.collection u { font-size: 12px; letter-spacing: .15em; text-transform: uppercase; text-underline-offset: 4px; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: -6px 0 20px; }
.tab { border: 1px solid var(--line); background: transparent; padding: 7px 16px; border-radius: 999px; cursor: pointer; font-size: 13.5px; }
.tab:hover { border-color: var(--ink); }
.tab.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Lưới sản phẩm ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 18px; }
.card { display: flex; flex-direction: column; min-width: 0; }
.card-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--soft); aspect-ratio: 3 / 4; }
.card .thumb { display: block; width: 100%; height: 100%; }
.card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s, transform .8s; }
.card .thumb img.alt { opacity: 0; }
.card:hover .thumb img.alt { opacity: 1; }
.card:hover .thumb img { transform: scale(1.03); }
.badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; z-index: 1; }
.quick-btn { position: absolute; left: 10px; right: 10px; bottom: 10px; border: 0; background: rgba(255, 255, 255, .95); color: var(--ink);
  padding: 11px; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; border-radius: var(--radius);
  opacity: 0; transform: translateY(8px); transition: .25s; z-index: 1; }
.card:hover .quick-btn, .quick-btn:focus-visible { opacity: 1; transform: none; }
.quick-btn:hover { background: var(--ink); color: #fff; }
.card .body { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 4px; }
.card .name { text-decoration: none; font-size: 14.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .name:hover { text-decoration: underline; text-underline-offset: 3px; }
.dots { display: flex; gap: 5px; align-items: center; }
.dot { display: inline-block; width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); }
.dots .more { font-size: 12px; color: var(--muted); }
.prices { font-size: 15px; }

/* ---------- Danh sách & bộ lọc ---------- */
.list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.chip { padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--surface); font-size: 13.5px; }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.toolbar { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.toolbar .filter-open { display: none; }
.toolbar .sort { margin-left: auto; font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.toolbar select { border: 1px solid var(--line); background: var(--surface); padding: 8px 10px; border-radius: var(--radius); color: var(--ink); }
.listing { display: grid; grid-template-columns: 230px 1fr; gap: 32px; align-items: start; }
.listing .grid { grid-template-columns: repeat(3, 1fr); }
.filters { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; padding-right: 4px; }
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.filters-head strong { font-size: 13px; letter-spacing: .15em; text-transform: uppercase; }
.close-filters, .show-results { display: none !important; }
.filters fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 14px 0; }
.filters legend { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 0; margin-bottom: 8px; float: left; width: 100%; }
.check { display: flex; align-items: center; gap: 9px; padding: 5px 0; cursor: pointer; font-size: 14px; clear: both; }
.check input { accent-color: var(--ink); width: 16px; height: 16px; }
.check .dot { width: 15px; height: 15px; }
.size-checks { display: flex; flex-wrap: wrap; gap: 6px; clear: both; }
.size-checks .check { padding: 0; }
.size-checks input { position: absolute; opacity: 0; pointer-events: none; }
.size-checks span { display: inline-block; min-width: 44px; text-align: center; padding: 7px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 13px; }
.size-checks input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.size-checks input:focus-visible + span { outline: 2px solid var(--accent); }
.load-more { text-align: center; margin-top: 36px; }

/* ---------- Trang sản phẩm ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 16px); }
.main-wrap { display: block; width: 100%; padding: 0; border: 0; background: var(--soft); border-radius: var(--radius-lg); overflow: hidden; cursor: zoom-in; position: relative; }
.main-img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.zoom-hint { position: absolute; right: 12px; bottom: 12px; background: rgba(255, 255, 255, .9); border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumb-btn { flex: 0 0 72px; padding: 0; border: 1px solid transparent; border-radius: var(--radius); background: none; cursor: pointer; overflow: hidden; opacity: .7; }
.thumb-btn[aria-pressed="true"] { border-color: var(--ink); opacity: 1; }
.thumb-btn img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pdp-info h1 { font-size: 38px; margin-top: 8px; }
.pdp-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.rating { background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.stars { display: inline-flex; gap: 1px; }
.stars i { color: #d8cfc0; display: inline-flex; }
.stars i.on { color: var(--accent); }
.stars svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.price-row { font-size: 26px; margin: 14px 0 22px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.price-row .old-price { font-size: 17px; margin: 0; }
.opt-group { margin-bottom: 20px; }
.label { font-size: 14px; margin-bottom: 9px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.label .btn-text { margin-left: auto; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.opt { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 10px 14px; cursor: pointer; min-width: 52px; font-size: 14px; }
.opt:hover { border-color: var(--ink); }
.opt[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.pack-opts .opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 16px; }
.pack-opts .opt em { font-style: normal; color: var(--accent-dark); font-weight: 600; }
.color-opt { padding: 3px; width: 56px; min-width: 0; }
.color-opt img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; }
.color-opt .swatch { display: block; width: 100%; aspect-ratio: 3 / 4; border-radius: 2px; margin: 0; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); vertical-align: -2px; margin-right: 6px; }
.buy-row { display: flex; gap: 10px; align-items: stretch; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.qty button { width: 40px; border: 0; background: transparent; cursor: pointer; font-size: 18px; }
.qty button:hover { background: var(--soft); }
.qty input { width: 46px; text-align: center; border: 0; padding: 8px 0; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.sm button { width: 30px; font-size: 15px; } .qty.sm span { min-width: 26px; text-align: center; align-self: center; font-size: 14px; }
.perks { list-style: none; padding: 16px 0; margin: 22px 0 6px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 10px; font-size: 14px; }
.perks li { display: flex; gap: 10px; align-items: center; }
.perks svg { color: var(--accent); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 500; display: flex; justify-content: space-between; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 20px; font-weight: 300; }
.acc[open] summary::after { content: "−"; }
.acc p { margin: 0 0 16px; color: var(--ink-2); }
.share { margin-top: 16px; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .06);
  display: flex; align-items: center; gap: 16px; padding: 10px 24px; transform: translateY(100%); transition: transform .25s; }
.sticky-buy.show { transform: none; }
.sticky-buy > div { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.sticky-buy strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- WhatsApp ---------- */
.btn-wa { background: #1f8a4c; border-color: #1f8a4c; }
.btn-wa:hover { background: #17703d; border-color: #17703d; }
.wa-ask { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border: 1px solid #cfe5d6; background: #f1f8f3;
  border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); }
.wa-ask:hover { border-color: #1f8a4c; }
.wa-ask svg { width: 28px; height: 28px; color: #1f8a4c; }
.wa-ask span { display: flex; flex-direction: column; font-size: 14px; }
.wa-ask em { font-style: normal; color: var(--muted); font-size: 13px; }
.wa-float { position: fixed; left: 20px; bottom: 24px; z-index: 35; display: flex; align-items: center; gap: 8px; background: #1f8a4c; color: #fff;
  text-decoration: none; padding: 11px 16px 11px 13px; border-radius: 999px; box-shadow: 0 8px 24px rgba(31, 138, 76, .35); font-size: 14px; font-weight: 500; }
.wa-float:hover { background: #17703d; }
body:has(.sticky-buy.show) .wa-float, body:has(.sticky-buy.show) .to-top { bottom: 84px; }
.wa-float svg { width: 24px; height: 24px; }
.contact-wa { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border: 1px solid #cfe5d6; background: #f1f8f3; border-radius: var(--radius-lg); margin-bottom: 24px; }
.contact-wa > svg { width: 44px; height: 44px; color: #1f8a4c; }
.contact-wa h2 { margin: 0 0 6px; }
.wa-num { font-size: 22px; font-weight: 600; letter-spacing: .03em; }

/* ---------- Lớp phủ, hộp thoại, giỏ trượt, tìm kiếm ---------- */
.overlay { position: fixed; inset: 0; background: rgba(20, 18, 15, .45); z-index: 70; animation: fadein .2s; }
@keyframes fadein { from { opacity: 0; } }
.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-box { position: relative; background: var(--surface); border-radius: var(--radius-lg); max-width: 640px; width: 100%; max-height: calc(100vh - 40px);
  overflow-y: auto; padding: 32px; box-shadow: var(--shadow); animation: rise .25s both; }
.modal-box.wide { max-width: 900px; }
.modal-close { position: absolute; top: 8px; right: 8px; z-index: 2; }
.lightbox { position: relative; }
.lightbox img { max-height: calc(100vh - 120px); margin: 0 auto; object-fit: contain; }
.lb-count { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); background: rgba(255, 255, 255, .9); padding: 2px 10px; border-radius: 99px; font-size: 13px; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.quick img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.quick h2 { font-size: 28px; margin-top: 8px; }
.quick .opts { margin-bottom: 14px; }
.quick .btn-block { margin: 10px 0 14px; }
.size-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 10px; }
.size-table th, .size-table td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: center; }
.size-table thead th { background: var(--soft); font-weight: 600; }

.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100%; background: var(--surface); z-index: 80; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .28s ease; box-shadow: var(--shadow); }
.drawer.show { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 26px; margin: 0; }
.drawer-note { margin: 0; padding: 10px 20px; background: #eef5ee; color: var(--ok); font-size: 14px; }
.ship-progress { padding: 12px 20px; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.ship-progress .bar { height: 4px; background: var(--soft); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.ship-progress .bar i { display: block; height: 100%; background: var(--accent); }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 20px; }
.mini-item { display: grid; grid-template-columns: 78px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mini-item img { width: 78px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.mini-item a { text-decoration: none; font-weight: 500; }
.mini-row { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 2px; }
.empty-mini { text-align: center; padding: 60px 0; }
.empty-mini svg { width: 44px; height: 44px; margin: 0 auto 8px; color: var(--accent); }
.drawer-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer-foot .row { display: flex; justify-content: space-between; font-size: 16px; }
.drawer-foot p { margin: 0; }

.search-panel { position: fixed; top: 0; left: 0; right: 0; z-index: 85; background: var(--surface); padding: 22px 0 28px; box-shadow: var(--shadow); animation: drop .25s both; }
@keyframes drop { from { transform: translateY(-20px); opacity: 0; } }
.search-form { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--ink); }
.search-form input { flex: 1; border: 0; background: none; font-family: var(--serif); font-size: 28px; padding: 10px 0; outline: none; }
.search-results { padding-top: 18px; }
.search-hits { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-bottom: 16px; }
.hit { display: flex; gap: 12px; align-items: center; text-decoration: none; padding: 8px; border-radius: var(--radius); }
.hit:hover { background: var(--soft); }
.hit img { width: 52px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; }
.hit span { font-size: 14px; display: flex; flex-direction: column; }
.hit em { font-style: normal; color: var(--muted); font-size: 13px; }

/* ---------- Giỏ hàng, đặt hàng, thanh toán ---------- */
.layout-2col { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding: 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); margin-bottom: 12px; align-items: center; }
.cart-item img { width: 96px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.cart-item .meta { font-size: 13.5px; color: var(--muted); }
.cart-item .right { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; position: sticky; top: calc(var(--header-h) + 16px); }
.summary h2 { font-size: 26px; }
.summary .row { display: flex; justify-content: space-between; margin: 7px 0; gap: 8px; }
.summary .total { font-size: 19px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.summary .line-item { font-size: 13.5px; }
.free-ship { color: var(--ok); font-weight: 600; }
.summary hr, .success hr { border: 0; border-top: 1px solid var(--line); }
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; flex-wrap: wrap; font-size: 13px; }
.steps li { padding: 5px 14px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.steps li.on { background: var(--ink); color: #fff; }
.steps li.done { background: var(--accent-soft); color: var(--accent-dark); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.form-card h2 { font-size: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 13.5px; }
.field label .req { color: var(--err); }
.field input, .field select, .field textarea, .inline-form input { width: 100%; padding: 12px 14px; border: 1px solid #d9cfbf; border-radius: var(--radius); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus, .inline-form input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); }
.field-error { color: var(--err); font-size: 13px; margin-top: 4px; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.pay-option { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 15px 16px; margin-bottom: 10px; cursor: pointer; background: #fff; }
.pay-option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pay-option input { margin-top: 5px; accent-color: var(--ink); }
.pay-detail { margin-top: 8px; font-size: 14px; background: var(--soft); border-radius: var(--radius); padding: 12px; }
.voucher { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px dashed var(--accent); background: var(--accent-soft); border-radius: var(--radius-lg); padding: 14px 16px; }
.voucher.on { border-style: solid; background: #eef5ee; border-color: var(--ok); }
.voucher.used { border-color: var(--line); background: #f5f5f5; display: block; }
.address-box { background: var(--soft); border-radius: var(--radius); padding: 14px; font-size: 14px; }
.success { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 24px; max-width: 680px; margin: 0 auto; }
.success .icon { font-size: 44px; color: var(--ok); }
.success .icon.wait { color: var(--accent); } .success .icon.off { color: var(--err); }
.paid-box { background: #e8f3ea; border: 1px solid #b9dcc0; color: #1f4d2a; }
.pp-box { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; margin: 6px 0 12px; background: var(--surface); }
.pp-mock { background: #ffc439; border-color: #ffc439; color: #111; font-weight: 700; }
.pp-pay { text-align: left; }
.pp-pay .btn { display: inline-flex; }
.pp-steps { margin: 12px 0 0; padding-left: 20px; font-size: 13.5px; }
.pp-steps li { margin: 4px 0; }
.pp-mock:hover { background: #f2b52a; border-color: #f2b52a; color: #111; }
.todo-note { background: #fff4d6; color: #6b4e00; padding: 8px 10px; border-radius: var(--radius); font-size: 12.5px; margin: 10px 0 0; }
.success .code { font-size: 22px; font-weight: 600; letter-spacing: .1em; }
.success .detail { text-align: left; margin-top: 22px; }

/* ---------- Tài khoản & trang thông tin ---------- */
.account-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-bottom: 36px; }
.inline-form { display: flex; gap: 10px; }
.inline-form input { flex: 1; }
.orders { display: grid; gap: 10px; }
.order-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr auto; gap: 12px; align-items: center; padding: 14px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; font-size: 14px; }
.order-row:hover { border-color: var(--ink); }
.order-row .status { color: var(--accent-dark); }
.info-page { max-width: 760px; }
.info-page ul { padding-left: 20px; } .info-page li { margin-bottom: 8px; }
.todo { background: #fff4d6; color: #6b4e00; padding: 0 6px; border-radius: 3px; font-size: 13px; }
.row-scroll .grid { grid-template-columns: repeat(4, 1fr); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9d1c3; margin-top: 40px; font-size: 14px; }
/* Phản hồi khách hàng (gần cuối mọi trang) */
.feedback { background: var(--soft); color: var(--ink); padding: 56px 0 60px; border-top: 1px solid var(--line); }
.feedback-head { text-align: center; margin-bottom: 28px; }
.feedback-head h2 { font-size: 40px; margin: 8px 0 6px; }
.sample-note { font-size: 12.5px; color: var(--muted); margin: 0; }
.feedback-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fb-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 24px 20px; display: flex; flex-direction: column; gap: 12px; }
.fb-card .stars { color: var(--accent); letter-spacing: 3px; font-size: 15px; }
.fb-card blockquote { margin: 0; font-family: var(--serif); font-size: 20px; line-height: 1.4; flex: 1; }
.fb-card figcaption { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); padding-top: 12px; }
.fb-card figcaption strong { color: var(--ink); font-weight: 600; }
@media (max-width: 960px) { .feedback-track { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) {
  .feedback { padding: 40px 0 44px; }
  .feedback-head h2 { font-size: 30px; }
  .feedback-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 0 16px 6px; }
  .fb-card { flex: 0 0 84%; scroll-snap-align: start; }
  .cur-switch select { padding: 7px 9px; font-size: 12px; }
}
.newsletter { background: var(--accent-dark); color: #fff; padding: 36px 0; }
.newsletter .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.newsletter h2 { margin: 0 0 4px; font-size: 30px; }
.newsletter p { margin: 0; opacity: .9; }
.newsletter .inline-form { min-width: min(440px, 100%); }
.newsletter input { border-color: transparent; }
.foot-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.foot-cols h3 { color: #fff; font-family: var(--sans); font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; margin-bottom: 16px; }
.foot-cols a { display: block; text-decoration: none; padding: 4px 0; color: #d9d1c3; }
.foot-cols a:hover { color: #fff; }
.foot-logo { align-items: flex-start; color: #fff; margin-bottom: 14px; }
.foot-logo .logo-sub { color: #cdb184; }
.socials { display: flex; gap: 16px; } .socials a { display: inline; text-decoration: underline; text-underline-offset: 3px; }
.muted-light { color: #a39a8b; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; padding-bottom: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #a39a8b; }
.foot-bottom p { margin: 0; }
.pay-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-icons span { border: 1px solid rgba(255, 255, 255, .2); border-radius: 3px; padding: 3px 9px; font-size: 12px; color: #e7dfd2; }

.to-top { position: fixed; right: 20px; bottom: 24px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow); cursor: pointer; z-index: 30; font-size: 18px; }
.to-top[hidden] { display: none; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 20px;
  border-radius: var(--radius); opacity: 0; pointer-events: none; transition: .25s; z-index: 120; max-width: calc(100% - 32px); font-size: 14px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .slide-text { padding: 40px; } .slide-text h2 { font-size: 48px; }
  .intro h1 { font-size: 44px; }
  .hero-dots { left: 40px; }
}
@media (max-width: 960px) {
  :root { --header-h: 60px; }
  .menu-toggle { display: inline-flex; }
  .header-inner { gap: 8px; }
  .logo { margin-right: auto; }
  .logo-main { font-size: 25px; }
  .main-nav { position: fixed; top: 0; left: 0; bottom: 0; width: min(340px, 86vw); background: var(--surface); z-index: 80; overflow-y: auto;
    transform: translateX(-100%); transition: transform .28s; padding: 0 8px 24px; }
  .nav-head { display: flex !important; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 4px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  .nav-head .logo { align-items: flex-start; }
  .main-nav.open { transform: none; box-shadow: var(--shadow); }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); }
  .main-nav > ul > li > .nav-row > a::after { display: none; }
  .main-nav a { padding: 14px 12px; flex: 1; }
  .main-nav .submenu, .main-nav li:hover > .submenu, .main-nav li:focus-within > .submenu {
    display: none; visibility: visible; opacity: 1; transform: none; position: static; box-shadow: none; border: 0; padding: 0 0 8px 14px; min-width: 0; }
  .main-nav li.expanded > .submenu { display: block; }
  .sub-toggle { display: block; background: none; border: 0; font-size: 20px; width: 44px; height: 44px; cursor: pointer; }
  .nav-mobile-only { display: block; }
  .hide-sm { display: none; }
  .pdp { grid-template-columns: 1fr; gap: 24px; }
  .gallery { position: static; }
  .layout-2col { grid-template-columns: 1fr; gap: 20px; }
  .summary { position: static; }
  .listing { grid-template-columns: 1fr; }
  .listing .grid { grid-template-columns: repeat(3, 1fr); }
  .toolbar .filter-open { display: inline-flex; }
  .filters { position: fixed; top: 0; bottom: 0; left: 0; width: min(360px, 88vw); max-height: none; background: var(--surface); z-index: 80; padding: 16px 20px 90px;
    transform: translateX(-105%); transition: transform .28s; }
  .filters.open { transform: none; box-shadow: var(--shadow); }
  .close-filters { display: inline-flex !important; }
  .show-results { display: flex !important; position: fixed; bottom: 16px; left: 20px; width: calc(min(360px, 88vw) - 40px); }
  .usp { grid-template-columns: repeat(2, 1fr); }
  .collections { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 14.5px; }
  .container { padding: 0 16px; }
  h1 { font-size: 32px; } h2 { font-size: 26px; }
  .hero { min-height: 0; border-radius: 0; margin: -24px -16px 0; }
  .slide { grid-template-columns: 1fr; }
  .slide-img { min-height: 0; aspect-ratio: 4 / 5; order: -1; }
  .slide-text { padding: 22px 20px 52px; }
  .slide-text h2 { font-size: 36px; margin: 8px 0 10px; }
  .intro { margin: -24px -16px 20px; border-radius: 0; border-width: 0 0 1px; padding: 40px 16px 32px; }
  .intro h1 { font-size: 32px; }
  .intro p { font-size: 14.5px; }
  .intro + .hero { margin-top: 0; }
  .slide-text p { font-size: 15px; margin-bottom: 18px; }
  .hero-dots { left: 20px; bottom: 22px; }
  .hero-nav { top: 38%; width: 38px; height: 38px; }
  .usp { grid-template-columns: 1fr 1fr; }
  .usp > div { padding: 14px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .block { margin-top: 44px; }
  .grid, .listing .grid { grid-template-columns: repeat(2, 1fr); gap: 22px 10px; }
  .row-scroll { margin: 0 -16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px; }
  .row-scroll .grid { display: flex; gap: 12px; }
  .row-scroll .card { flex: 0 0 44%; scroll-snap-align: start; }
  .quick-btn { opacity: 1; transform: none; font-size: 11px; padding: 8px; letter-spacing: .06em; }
  .wa-float { left: 14px; bottom: 16px; padding: 12px; }
  .wa-float span { display: none; }
  body:has(.sticky-buy.show) .wa-float { bottom: 76px; }
  .card .name { font-size: 13.5px; }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .collections { grid-template-columns: 1fr; }
  .collection { aspect-ratio: 16 / 10; }
  .collection img { object-position: center 25%; }
  .toolbar { gap: 10px; flex-wrap: wrap; }
  .toolbar > .muted { display: none; }
  .pdp-info h1 { font-size: 30px; }
  .quick { grid-template-columns: 1fr; gap: 14px; }
  .quick img { max-height: 46vh; object-fit: cover; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-box { border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 24px 18px; max-height: 92vh; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 18px; }
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item img { width: 80px; }
  .cart-item .right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .form-actions .btn { flex: 1; }
  .order-row { grid-template-columns: 1fr auto; }
  .order-row span:nth-of-type(2) { display: none; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .foot-cols > div:first-child { grid-column: 1 / -1; }
  .search-form input { font-size: 22px; }
  .sticky-buy { padding: 10px 16px; }
  .to-top { bottom: 84px; right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
