/* =========================================================
   Royal House — Đồ bếp inox cao cấp
   Design tokens: Premium dark stone + gold accent
   Fonts: Cormorant Garamond (display) / Be Vietnam Pro (body)
   ========================================================= */
:root {
  --c-primary: #1c1917;
  --c-on-primary: #ffffff;
  --c-secondary: #44403c;
  --c-accent: #a16207;
  --c-accent-hover: #854d0e;
  --c-accent-soft: #fef3c7;
  --c-bg: #fafaf9;
  --c-surface: #ffffff;
  --c-surface-2: #f3f0eb;
  --c-surface-3: #e9e4dc;
  --c-fg: #0c0a09;
  --c-muted: #57534e;
  --c-border: #e7e5e4;
  --c-border-strong: #d6d3d1;
  --c-success: #15803d;
  --c-danger: #b91c1c;
  --c-ring: #a16207;

  --f-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;

  --radius-sm: 6px; --radius: 12px; --radius-lg: 20px; --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(28,25,23,.06);
  --shadow: 0 6px 24px -8px rgba(28,25,23,.18);
  --shadow-lg: 0 24px 48px -16px rgba(28,25,23,.28);

  --container: 1240px;
  --header-h: 72px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.6;
  color: var(--c-fg); background: var(--c-bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 var(--space-3); line-height: 1.2; font-weight: 600; }
h1, h2, .display { font-family: var(--f-display); font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 var(--space-4); }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--c-ring); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 200; background: var(--c-primary); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); transition: top .2s; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: var(--radius-pill);
  border: 1px solid transparent; font-weight: 600; font-size: 15px; line-height: 1;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--c-primary); color: var(--c-on-primary); }
.btn-primary:hover { background: var(--c-secondary); }
.btn-accent { background: var(--c-accent); color: #fff; }
.btn-accent:hover { background: var(--c-accent-hover); }
.btn-outline { background: transparent; border-color: var(--c-border-strong); color: var(--c-fg); }
.btn-outline:hover { border-color: var(--c-primary); background: var(--c-surface); }
.btn-ghost-light { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent; color: inherit; position: relative; transition: background-color .2s;
}
.icon-btn:hover { background: var(--c-surface-2); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--c-accent); }
.link-arrow:hover { color: var(--c-accent-hover); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .2s var(--ease); }

/* ---------- Top bar & Header ---------- */
.topbar { background: var(--c-primary); color: #e7e5e4; font-size: 13px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar a:hover { color: #fff; }
.topbar-links { display: none; gap: 20px; }
@media (min-width: 768px) { .topbar-links { display: flex; } }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,250,249,.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--c-border); }
.header-inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 24px; letter-spacing: .02em; white-space: nowrap; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--c-primary); color: #e9c46a; display: grid; place-items: center; }
.logo small { display: block; font-family: var(--f-body); font-size: 10px; font-weight: 500; letter-spacing: .22em; color: var(--c-muted); text-transform: uppercase; margin-top: -4px; }
.main-nav { display: none; margin-left: 16px; }
.main-nav > ul { display: flex; gap: 4px; }
.main-nav a { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 14px; border-radius: var(--radius-pill); font-weight: 500; font-size: 15px; color: var(--c-secondary); transition: background-color .2s, color .2s; }
.main-nav a:hover { background: var(--c-surface-2); color: var(--c-fg); }
.main-nav a[aria-current="page"] { color: var(--c-fg); background: var(--c-surface-2); }
.has-mega { position: relative; }
.mega {
  position: absolute; left: 0; top: calc(100% + 8px); width: 560px; padding: 20px;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega a { height: auto; padding: 10px 12px; border-radius: var(--radius); display: flex; gap: 12px; align-items: center; }
.mega-thumb { width: 44px; height: 44px; border-radius: 10px; background: var(--c-surface-2); padding: 4px; flex: none; }
.mega strong { display: block; color: var(--c-fg); font-size: 14px; }
.mega span { display: block; font-size: 12px; color: var(--c-muted); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.header-search { display: none; position: relative; }
.header-search input { width: 240px; height: 44px; padding: 0 16px 0 42px; border-radius: var(--radius-pill); border: 1px solid var(--c-border-strong); background: var(--c-surface); font-size: 14px; }
.header-search input:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(161,98,7,.15); }
.header-search .icon { position: absolute; left: 14px; top: 12px; color: var(--c-muted); }
.badge-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--c-accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.menu-toggle { display: inline-grid; }
.only-mobile-search { display: inline-grid; }
@media (min-width: 1024px) {
  .main-nav { display: block; }
  .menu-toggle, .only-mobile-search { display: none; }
  .header-search { display: block; }
}
@media (min-width: 1024px) and (max-width: 1180px) { .header-search input { width: 180px; } }

/* Mobile search panel */
.search-panel { display: none; padding: 12px 0 16px; border-top: 1px solid var(--c-border); }
.search-panel.is-open { display: block; }
.search-panel form { display: flex; gap: 8px; }
.search-panel input { flex: 1; height: 48px; padding: 0 16px; border-radius: var(--radius-pill); border: 1px solid var(--c-border-strong); background: var(--c-surface); font-size: 16px; }

/* Drawer */
.drawer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(12,10,9,.5); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.drawer { position: fixed; z-index: 100; top: 0; bottom: 0; left: 0; width: min(86vw, 360px); background: var(--c-surface); transform: translateX(-100%); transition: transform .3s var(--ease); display: flex; flex-direction: column; overflow-y: auto; }
.drawer.drawer-right { left: auto; right: 0; transform: translateX(100%); }
.drawer.is-open { transform: none; }
.drawer.is-open + .drawer-backdrop, .drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--c-border); }
.drawer-nav a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 20px; border-bottom: 1px solid var(--c-border); font-weight: 500; }
.drawer-nav a[aria-current="page"] { color: var(--c-accent); }
.drawer-sub a { padding-left: 36px; font-size: 14px; color: var(--c-muted); min-height: 44px; }
.drawer-foot { margin-top: auto; padding: 20px; background: var(--c-surface-2); font-size: 14px; }
.drawer-foot a { display: flex; gap: 10px; align-items: center; min-height: 40px; }
body.no-scroll { overflow: hidden; }

/* ---------- Sections ---------- */
.section { padding: var(--space-8) 0; }
@media (min-width: 1024px) { .section { padding: var(--space-9) 0; } }
.section-alt { background: var(--c-surface-2); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: var(--space-6); flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 8px; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.section-title { font-size: clamp(30px, 4.2vw, 46px); margin: 0; }
.section-desc { color: var(--c-muted); max-width: 560px; margin: 8px 0 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 80% 30%, #3b3330 0%, var(--c-primary) 60%); color: #fff; }
.hero-inner { display: grid; gap: 32px; align-items: center; padding-top: 48px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.02; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: #e9c46a; font-weight: 500; }
.hero p.lead { font-size: 17px; color: #d6d3d1; max-width: 520px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; aspect-ratio: 1/1; max-width: 520px; width: 100%; justify-self: center; }
.hero-visual::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(233,196,106,.35), rgba(233,196,106,0) 65%); }
.hero-visual img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.hero-chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 13px; }
.hero-chip strong { display: block; font-size: 15px; }
.hero-chip.c1 { left: 0; top: 14%; }
.hero-chip.c2 { right: 0; bottom: 14%; }
.hero-stats { display: flex; gap: 28px; margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); flex-wrap: wrap; }
.hero-stats strong { display: block; font-family: var(--f-display); font-size: 32px; line-height: 1; color: #e9c46a; }
.hero-stats span { font-size: 13px; color: #a8a29e; }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; padding-top: 80px; padding-bottom: 96px; }
}

/* ---------- USP strip ---------- */
.usp { background: var(--c-surface); border-bottom: 1px solid var(--c-border); }
.usp ul { display: grid; grid-template-columns: repeat(2, 1fr); }
.usp li { display: flex; gap: 12px; align-items: center; padding: 18px 8px; font-size: 14px; }
.usp li strong { display: block; font-size: 14px; }
.usp li span { color: var(--c-muted); font-size: 12px; }
.usp .icon { color: var(--c-accent); width: 26px; height: 26px; }
@media (min-width: 900px) { .usp ul { grid-template-columns: repeat(4, 1fr); } .usp li { padding: 22px 16px; } }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 12px; border-radius: var(--radius-lg); background: var(--c-surface); border: 1px solid var(--c-border); transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease); }
.cat-card:hover { border-color: var(--c-border-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-card img { width: 100%; max-width: 140px; aspect-ratio: 1/1; object-fit: contain; margin-bottom: 8px; }
.cat-card h3 { font-size: 16px; margin: 0; }
.cat-card span { font-size: 13px; color: var(--c-muted); }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; } }

/* ---------- Product card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.product-card { position: relative; display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .25s var(--ease), border-color .2s; }
.product-card:hover { box-shadow: var(--shadow); border-color: var(--c-border-strong); }
.product-media { position: relative; display: block; aspect-ratio: 1/1; background: var(--c-surface-2); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: 10%; transition: transform .5s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-tags { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 1; }
.tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; letter-spacing: .03em; background: var(--c-primary); color: #fff; }
.tag-sale { background: var(--c-danger); }
.tag-new { background: var(--c-accent); }
.tag-soft { background: var(--c-surface); color: var(--c-secondary); border: 1px solid var(--c-border); }
.wish-btn { position: absolute; top: 8px; right: 8px; z-index: 1; background: rgba(255,255,255,.9); }
.wish-btn[aria-pressed="true"] .icon { fill: var(--c-danger); stroke: var(--c-danger); }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 14px; gap: 6px; }
@media (min-width: 768px) { .product-body { padding: 18px; } }
.product-meta { font-size: 12px; color: var(--c-muted); letter-spacing: .04em; text-transform: uppercase; }
.product-title { font-family: var(--f-body); font-size: 15px; font-weight: 600; line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.product-title a:hover { color: var(--c-accent); }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--c-muted); }
.rating .icon { width: 14px; height: 14px; fill: #eab308; stroke: #eab308; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.price-now { font-weight: 700; font-size: 17px; color: var(--c-fg); font-variant-numeric: tabular-nums; }
.price-old { font-size: 13px; color: var(--c-muted); text-decoration: line-through; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock-in { color: var(--c-success); }
.stock-low { color: #b45309; }
.stock-out { color: var(--c-muted); }
.product-card .btn { margin-top: 10px; }
.product-card.is-out .product-media img { opacity: .55; }

/* ---------- Banner duo ---------- */
.promo-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .promo-grid { grid-template-columns: 1.4fr 1fr; } }
.promo { position: relative; overflow: hidden; display: grid; align-items: end; min-height: 280px; padding: 28px; border-radius: var(--radius-lg); color: #fff; background: var(--c-primary); }
.promo.light { background: var(--c-surface-3); color: var(--c-fg); }
.promo img { position: absolute; right: -6%; top: 50%; transform: translateY(-50%); width: 58%; max-width: 360px; opacity: .95; }
.promo-content { position: relative; max-width: 60%; }
.promo h3 { font-family: var(--f-display); font-size: clamp(26px, 3vw, 36px); }
.promo p { color: inherit; opacity: .8; font-size: 14px; }

/* ---------- Story / split ---------- */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.split-media { position: relative; border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--c-surface-3), var(--c-surface-2)); aspect-ratio: 5/4; display: grid; place-items: center; overflow: hidden; }
.split-media img { width: 70%; }
.check-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--c-border); }
.check-list .icon { color: var(--c-accent); margin-top: 2px; }

/* ---------- Testimonials ---------- */
.review-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card { padding: 24px; border-radius: var(--radius-lg); background: var(--c-surface); border: 1px solid var(--c-border); }
.review-card blockquote { margin: 12px 0 20px; font-size: 15px; }
.review-author { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--c-surface-3); display: grid; place-items: center; font-weight: 700; color: var(--c-secondary); }

/* ---------- Post card ---------- */
.post-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; background: var(--c-surface); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--c-border); transition: box-shadow .25s var(--ease); }
.post-card:hover { box-shadow: var(--shadow); }
.post-media { display: block; aspect-ratio: 16/10; overflow: hidden; display: grid; place-items: center; }
.post-media img { width: 52%; transition: transform .5s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.06) rotate(-2deg); }
.bg-1 { background: linear-gradient(135deg, #e9e4dc, #d6cfc4); }
.bg-2 { background: linear-gradient(135deg, #1c1917, #44403c); }
.bg-3 { background: linear-gradient(135deg, #fef3c7, #f5deb3); }
.bg-4 { background: linear-gradient(135deg, #e2e8f0, #cbd5e1); }
.post-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--c-muted); }
.post-meta .cat { color: var(--c-accent); font-weight: 600; }
.post-title { font-family: var(--f-display); font-size: 24px; line-height: 1.2; margin: 0; }
.post-title a:hover { color: var(--c-accent); }
.post-excerpt { color: var(--c-muted); font-size: 15px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card.featured { }
@media (min-width: 1024px) {
  .post-card.featured { grid-column: 1 / -1; flex-direction: row; }
  .post-card.featured .post-media { flex: 1.2; aspect-ratio: auto; min-height: 360px; }
  .post-card.featured .post-body { flex: 1; padding: 40px; justify-content: center; }
  .post-card.featured .post-title { font-size: 36px; }
}

/* ---------- Newsletter ---------- */
.newsletter { background: var(--c-primary); color: #fff; border-radius: var(--radius-lg); padding: 40px 24px; display: grid; gap: 24px; align-items: center; }
.newsletter h2 { font-size: clamp(28px, 3.5vw, 40px); margin: 0 0 8px; }
.newsletter p { color: #a8a29e; margin: 0; }
.newsletter form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter input { flex: 1 1 220px; height: 52px; padding: 0 20px; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; font-size: 16px; }
.newsletter input::placeholder { color: #a8a29e; }
.newsletter input:focus { outline: none; border-color: #e9c46a; }
.newsletter .btn { min-height: 52px; }
.form-note { font-size: 13px; margin-top: 8px; min-height: 1.2em; }
@media (min-width: 900px) { .newsletter { grid-template-columns: 1fr 1fr; padding: 56px; } }

/* ---------- Footer ---------- */
.site-footer { background: #0f0d0c; color: #a8a29e; font-size: 14px; margin-top: var(--space-8); }
.site-footer.flush { margin-top: 0; }
.footer-grid { display: grid; gap: 32px; padding: 56px 0 32px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer .logo { color: #fff; }
.site-footer .logo small { color: #78716c; }
.site-footer .footer-title { color: #fff; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact .icon { color: #e9c46a; margin-top: 2px; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #292524; transition: border-color .2s, color .2s; }
.socials a:hover { border-color: #e9c46a; color: #e9c46a; }
.footer-bottom { border-top: 1px solid #292524; padding: 20px 0 calc(20px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; }
.payments { display: flex; gap: 8px; flex-wrap: wrap; }
.payments span { padding: 4px 10px; border: 1px solid #292524; border-radius: 6px; font-size: 12px; color: #d6d3d1; }

/* ---------- Mobile bottom bar ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--c-border); padding-bottom: env(safe-area-inset-bottom); }
.mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; font-size: 11px; font-weight: 500; color: var(--c-muted); position: relative; }
.mobile-bar a[aria-current="page"] { color: var(--c-accent); }
.mobile-bar .hot { color: var(--c-accent); }
body { padding-bottom: 58px; }
@media (min-width: 1024px) { .mobile-bar { display: none; } body { padding-bottom: 0; } }
body.has-buybar { padding-bottom: 130px; }
@media (min-width: 1024px) { body.has-buybar { padding-bottom: 0; } }

/* ---------- Page header / breadcrumb ---------- */
.page-hero { background: var(--c-surface-2); padding: 28px 0 32px; border-bottom: 1px solid var(--c-border); }
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); margin: 8px 0 6px; }
.page-hero p { color: var(--c-muted); margin: 0; max-width: 640px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--c-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--c-border-strong); }
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb [aria-current] { color: var(--c-fg); }
.breadcrumb-bar { padding-top: 16px; padding-bottom: 16px; }

/* ---------- Catalog ---------- */
.catalog { display: grid; gap: 24px; padding-top: 32px; padding-bottom: 64px; }
/* Danh mục: không còn cột lọc bên trái, sản phẩm full chiều rộng; bộ lọc mở dạng ngăn trượt ở mọi màn hình */
.chip { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; min-width: 52px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--c-border-strong); background: var(--c-surface); font-size: 13px; font-weight: 500; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--c-primary); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.input { width: 100%; height: 44px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--c-border-strong); background: var(--c-surface); font-size: 14px; }
.input:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(161,98,7,.15); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar .result-count { color: var(--c-muted); font-size: 14px; }
.toolbar-right { display: flex; gap: 8px; align-items: center; }
.select { height: 44px; padding: 0 36px 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--c-border-strong); background: var(--c-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2357534e' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; -webkit-appearance: none; font-size: 14px; }
.subcats { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; margin-bottom: 8px; scrollbar-width: none; }
.subcats::-webkit-scrollbar { display: none; }
.subcats .chip { flex: none; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--c-border); background: var(--c-surface); font-weight: 500; font-size: 14px; }
.pagination a:hover { border-color: var(--c-primary); }
.pagination [aria-current="page"] { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.cat-intro { margin-top: 48px; padding: 28px; border-radius: var(--radius-lg); background: var(--c-surface-2); color: var(--c-secondary); font-size: 15px; }
.cat-intro h2 { font-size: 28px; }

/* ---------- Product detail ---------- */
.pdp { display: grid; gap: 28px; padding-top: 8px; padding-bottom: 48px; }
@media (min-width: 960px) { .pdp { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.gallery { display: grid; gap: 12px; }
@media (min-width: 960px) { .gallery { grid-template-columns: 84px 1fr; position: sticky; top: calc(var(--header-h) + 20px); align-self: start; } }
.gallery-main { position: relative; aspect-ratio: 1/1; border-radius: var(--radius-lg); background: var(--c-surface-2); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 10%; transition: opacity .25s; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
@media (min-width: 960px) { .gallery-thumbs { flex-direction: column; order: -1; } }
.thumb { flex: none; width: 72px; height: 72px; padding: 6px; border-radius: var(--radius); border: 2px solid transparent; background: var(--c-surface-2); transition: border-color .2s; }
@media (min-width: 960px) { .thumb { width: 84px; height: 84px; } }
.thumb[aria-current="true"] { border-color: var(--c-primary); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp-info h1 { font-family: var(--f-display); font-size: clamp(30px, 4vw, 42px); margin: 6px 0 10px; }
.pdp-sub { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; font-size: 14px; color: var(--c-muted); padding-bottom: 16px; border-bottom: 1px solid var(--c-border); }
.pdp-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 20px 0 6px; }
.pdp-price .price-now { font-size: 30px; }
.pdp-price .price-old { font-size: 16px; }
.save-badge { font-size: 13px; font-weight: 700; color: var(--c-danger); background: #fee2e2; padding: 4px 10px; border-radius: var(--radius-pill); }
.pdp-note { font-size: 13px; color: var(--c-muted); }
.opt-group { margin: 22px 0; }
.opt-label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.opt-label span { font-weight: 400; color: var(--c-muted); }
.variant-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-chips .chip { min-height: 44px; padding: 0 18px; border-radius: var(--radius); }
.variant-chips .chip[aria-disabled="true"] { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--c-border-strong); border-radius: var(--radius-pill); height: 52px; background: var(--c-surface); }
.qty button { width: 44px; height: 100%; border: 0; background: none; display: grid; place-items: center; border-radius: var(--radius-pill); }
.qty button:hover { background: var(--c-surface-2); }
.qty input { width: 44px; border: 0; text-align: center; font-weight: 600; background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-row .btn { flex: 1 1 160px; min-height: 52px; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0; }
.perks li { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: var(--radius); background: var(--c-surface-2); font-size: 13px; }
.perks .icon { color: var(--c-accent); }
.spec-quick { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; margin-top: 8px; }
.spec-quick div { padding: 12px; text-align: center; border-right: 1px solid var(--c-border); font-size: 12px; color: var(--c-muted); }
.spec-quick div:last-child { border-right: 0; }
.spec-quick strong { display: block; font-size: 14px; color: var(--c-fg); }
.tabs { margin-top: 24px; }
.tab-list { display: flex; gap: 4px; border-bottom: 1px solid var(--c-border); overflow-x: auto; scrollbar-width: none; }
.tab-list::-webkit-scrollbar { display: none; }
.tab-list button { flex: none; height: 52px; padding: 0 18px; border: 0; background: none; font-weight: 600; color: var(--c-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab-list button[aria-selected="true"] { color: var(--c-fg); border-bottom-color: var(--c-accent); }
.tab-panel { padding: 28px 0; }
.tab-panel[hidden] { display: none; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--c-border); vertical-align: top; }
.spec-table th { width: 38%; color: var(--c-muted); font-weight: 500; background: var(--c-surface-2); }
.buybar { position: fixed; left: 0; right: 0; bottom: 58px; z-index: 39; background: var(--c-surface); border-top: 1px solid var(--c-border); padding: 10px 16px; display: flex; gap: 10px; align-items: center; box-shadow: 0 -8px 24px -12px rgba(0,0,0,.18); transform: translateY(150%); transition: transform .3s var(--ease); }
.buybar.is-visible { transform: none; }
.buybar .price-now { font-size: 16px; }
.buybar .btn { flex: 1; min-height: 48px; }
@media (min-width: 1024px) { .buybar { display: none; } }
.rating-summary { display: grid; gap: 24px; }
@media (min-width: 768px) { .rating-summary { grid-template-columns: 220px 1fr; } }
.rating-big { font-family: var(--f-display); font-size: 56px; line-height: 1; }
.bars li { display: grid; grid-template-columns: 40px 1fr 40px; gap: 10px; align-items: center; font-size: 13px; margin-bottom: 6px; color: var(--c-muted); }
.bar { height: 8px; border-radius: 4px; background: var(--c-surface-3); overflow: hidden; }
.bar i { display: block; height: 100%; background: #eab308; }

/* ---------- Article ---------- */
.blog-layout { display: grid; gap: 40px; padding-top: 40px; padding-bottom: 64px; }
@media (min-width: 1024px) { .blog-layout { grid-template-columns: 1fr 320px; gap: 56px; } }
.sidebar { display: grid; gap: 24px; align-content: start; }
@media (min-width: 1024px) { .sidebar { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; } }
.widget { padding: 24px; border-radius: var(--radius-lg); background: var(--c-surface); border: 1px solid var(--c-border); }
.widget .widget-title { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 14px; }
.widget-list a { display: flex; justify-content: space-between; min-height: 40px; align-items: center; border-bottom: 1px dashed var(--c-border); font-size: 15px; }
.widget-list li:last-child a { border-bottom: 0; }
.widget-list a:hover { color: var(--c-accent); }
.mini-post { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.mini-post .thumb-sm { width: 64px; height: 64px; border-radius: var(--radius); flex: none; display: grid; place-items: center; }
.mini-post .thumb-sm img { width: 70%; }
.mini-post strong { font-size: 14px; line-height: 1.4; display: block; }
.mini-post span { font-size: 12px; color: var(--c-muted); }
.search-box { position: relative; }
.search-box .icon { position: absolute; left: 12px; top: 12px; color: var(--c-muted); }
.search-box .input { padding-left: 40px; }

.article-head { max-width: 780px; margin: 0 auto; text-align: center; padding: 32px 0 24px; }
.article-head h1 { font-size: clamp(34px, 5.4vw, 56px); margin: 12px 0 16px; }
.article-head .post-meta { justify-content: center; }
.article-cover { max-width: 1040px; margin: 0 auto; aspect-ratio: 21/9; border-radius: var(--radius-lg); display: grid; place-items: center; overflow: hidden; }
.article-cover img { width: 32%; }
.article-wrap { display: grid; gap: 40px; max-width: 1040px; margin: 0 auto; padding: 40px 0 64px; }
@media (min-width: 1024px) { .article-wrap { grid-template-columns: 220px 1fr; } }
.toc { font-size: 14px; }
@media (min-width: 1024px) { .toc { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; } }
.toc .toc-title { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }
.toc a { display: block; padding: 8px 0 8px 12px; border-left: 2px solid var(--c-border); color: var(--c-muted); }
.toc a:hover, .toc a.is-active { color: var(--c-fg); border-left-color: var(--c-accent); }
.prose { font-size: 17px; line-height: 1.75; max-width: 70ch; }
.prose h2 { font-size: 32px; margin: 40px 0 12px; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h3 { font-size: 20px; margin: 28px 0 8px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 20px; }
.prose ul { list-style: disc; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 28px 0; padding: 20px 24px; border-left: 3px solid var(--c-accent); background: var(--c-surface-2); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--f-display); font-size: 24px; line-height: 1.4; }
.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--c-accent-soft); font-size: 15px; margin: 24px 0; }
.callout .icon { color: var(--c-accent); margin-top: 3px; }
.inline-product { display: flex; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: var(--c-surface); margin: 28px 0; }
.inline-product .im { width: 96px; height: 96px; border-radius: var(--radius); background: var(--c-surface-2); padding: 8px; flex: none; }
.inline-product .btn { margin-left: auto; }
.share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--c-border); font-size: 14px; color: var(--c-muted); }
.share .icon-btn { border: 1px solid var(--c-border); }
.tags-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* ---------- Content page ---------- */
.about-hero { background: var(--c-primary); color: #fff; padding: 64px 0; }
.about-hero h1 { font-size: clamp(38px, 6vw, 68px); max-width: 860px; line-height: 1.05; }
.about-hero p { color: #d6d3d1; max-width: 620px; font-size: 17px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--c-border); border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 900px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-grid div { background: var(--c-surface); padding: 28px 20px; }
.stat-grid strong { display: block; font-family: var(--f-display); font-size: 44px; line-height: 1; color: var(--c-accent); margin-bottom: 6px; }
.stat-grid span { color: var(--c-muted); font-size: 14px; }
.value-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .value-grid { grid-template-columns: repeat(3, 1fr); } }
.value-card { padding: 28px; border-radius: var(--radius-lg); background: var(--c-surface); border: 1px solid var(--c-border); }
.value-card .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--c-accent-soft); color: var(--c-accent); display: grid; place-items: center; margin-bottom: 16px; }
.timeline { position: relative; display: grid; gap: 24px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--c-border-strong); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -28px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--c-surface); border: 3px solid var(--c-accent); }
.timeline strong { font-family: var(--f-display); font-size: 26px; color: var(--c-accent); display: block; line-height: 1; margin-bottom: 4px; }
.faq details { border-bottom: 1px solid var(--c-border); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 64px; cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .25s var(--ease); flex: none; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { color: var(--c-muted); padding-bottom: 20px; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 64px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 56px; } }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; gap: 16px; padding: 20px; border-radius: var(--radius-lg); background: var(--c-surface); border: 1px solid var(--c-border); transition: border-color .2s; }
a.contact-card:hover { border-color: var(--c-accent); }
.contact-card .ic { width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--c-primary); color: #e9c46a; display: grid; place-items: center; }
.contact-card strong { display: block; }
.contact-card span { color: var(--c-muted); font-size: 14px; }
.form-card { padding: 28px; border-radius: var(--radius-lg); background: var(--c-surface); border: 1px solid var(--c-border); box-shadow: var(--shadow-sm); }
@media (min-width: 768px) { .form-card { padding: 40px; } }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field label .req { color: var(--c-danger); }
.field .input, .field textarea, .field select { width: 100%; height: 48px; font-size: 16px; }
.field textarea { height: auto; min-height: 140px; padding: 12px; resize: vertical; border-radius: var(--radius-sm); border: 1px solid var(--c-border-strong); background: var(--c-surface); }
.field textarea:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(161,98,7,.15); }
.field .select { width: 100%; border-radius: var(--radius-sm); height: 48px; font-size: 16px; }
.field .hint { font-size: 12px; color: var(--c-muted); margin-top: 6px; }
.field .error { display: none; font-size: 13px; color: var(--c-danger); margin-top: 6px; }
.field.is-invalid .input, .field.is-invalid textarea { border-color: var(--c-danger); }
.field.is-invalid .error { display: flex; gap: 6px; align-items: center; }
.form-success { display: none; gap: 12px; padding: 16px; border-radius: var(--radius); background: #dcfce7; color: #14532d; margin-bottom: 20px; }
.form-success.is-visible { display: flex; }
.map { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; background: var(--c-surface-3); border: 1px solid var(--c-border); }
.map iframe { width: 100%; height: 100%; border: 0; }
.store-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .store-grid { grid-template-columns: repeat(3, 1fr); } }
.store-card { padding: 24px; border-radius: var(--radius-lg); background: var(--c-surface); border: 1px solid var(--c-border); font-size: 14px; }
.store-card h3 { font-family: var(--f-display); font-size: 24px; }
.store-card li { display: flex; gap: 10px; padding: 6px 0; color: var(--c-secondary); }
.store-card .icon { color: var(--c-accent); margin-top: 2px; }
.open-now { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; color: var(--c-success); background: #dcfce7; padding: 3px 10px; border-radius: var(--radius-pill); margin-bottom: 10px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 84px; z-index: 120; transform: translate(-50%, 20px); opacity: 0; visibility: hidden; display: flex; gap: 10px; align-items: center; padding: 14px 20px; border-radius: var(--radius-pill); background: var(--c-primary); color: #fff; font-size: 14px; box-shadow: var(--shadow-lg); transition: all .3s var(--ease); max-width: calc(100vw - 32px); }
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast .icon { color: #86efac; }
@media (min-width: 1024px) { .toast { bottom: 32px; } }

/* ---------- Reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-muted { color: var(--c-muted); }
.center { text-align: center; }
.stack-16 > * + * { margin-top: 16px; }
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: revert; } .icon-btn.hide-mobile { display: inline-grid; } }

.drawer { visibility: hidden; transition: transform .3s var(--ease), visibility 0s linear .3s; }
.drawer.is-open { visibility: visible; transition: transform .3s var(--ease), visibility 0s; }
[hidden] { display: none !important; }
@media (min-width: 1024px) and (max-width: 1180px) { .main-nav a { padding: 0 10px; } .main-nav { margin-left: 8px; } }
.catalog > *, .blog-layout > *, .pdp > *, .contact-grid > *, .article-wrap > *, .split > *, .gallery > * { min-width: 0; }
.topbar-extra { display: none; }
@media (min-width: 640px) { .topbar-extra { display: inline; } }

/* ===== Ảnh sản phẩm thật (JPG nền trắng + ảnh bối cảnh) ===== */
.product-media { background: #fff; border-bottom: 1px solid var(--c-border); }
.product-media img { padding: 0; object-fit: contain; }
.product-media .img-hover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s var(--ease), transform .5s var(--ease); }
@media (hover: hover) { .product-card:hover .product-media .img-hover { opacity: 1; } }
.product-card.is-out .product-media .img-hover { display: none; }
.cat-card img { border-radius: var(--radius); }
.mega-thumb { background: #fff; padding: 0; object-fit: contain; border: 1px solid var(--c-border); }
.hero-visual::before { display: none; }
.hero-visual img { border-radius: 28px; object-fit: cover; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.hero-chip.c1 { left: -12px; } .hero-chip.c2 { right: -12px; }
@media (max-width: 899px) { .hero-chip.c1 { left: 12px; } .hero-chip.c2 { right: 12px; } }
.promo img { left: 0; right: 0; top: 0; bottom: 0; transform: none; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 1; }
.promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,10,9,.88) 0%, rgba(12,10,9,.55) 55%, rgba(12,10,9,.1) 100%); }
.promo.light::after { background: linear-gradient(90deg, rgba(243,240,235,.95) 0%, rgba(243,240,235,.7) 55%, rgba(243,240,235,.05) 100%); }
.promo-content { z-index: 1; max-width: 70%; }
.promo img { transition: transform .6s var(--ease); }
.promo:hover img { transform: scale(1.04); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.post-media { position: relative; }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card:hover .post-media img { transform: scale(1.05); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.mini-post .thumb-sm { overflow: hidden; }
.mini-post .thumb-sm img { width: 100%; height: 100%; object-fit: cover; }
.inline-product .im { background: #fff; padding: 0; object-fit: contain; border: 1px solid var(--c-border); }
.gallery-main { background: #fff; border: 1px solid var(--c-border); }
.gallery-main img { padding: 0; }
.thumb { background: #fff; padding: 0; overflow: hidden; border-color: var(--c-border); border-width: 2px; }
.thumb img { object-fit: cover; }

/* ===== Fix tablet ===== */
.topbar .container > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-links { display: none !important; white-space: nowrap; }
@media (min-width: 1024px) { .topbar-links { display: flex !important; } }
@media (min-width: 768px) and (max-width: 959px) {
  .pdp { grid-template-columns: 1fr 1fr; gap: 28px; }
  .gallery { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; }
  .thumb { width: 64px; height: 64px; }
  .pdp-info h1 { font-size: 30px; }
  .perks { grid-template-columns: 1fr; }
}

/* ===== Fix mobile ===== */
@media (max-width: 767px) {
  .product-title { font-size: 14px; -webkit-line-clamp: 3; min-height: 4.2em; }
  .product-body { padding: 12px; gap: 4px; }
  .product-card .btn-sm { padding: 0 8px; font-size: 13px; gap: 6px; }
  .price-now { font-size: 16px; }
  .rating span { display: none; }
}
@media (max-width: 639px) { .hero-chip { display: none; } }
.article-cover { aspect-ratio: 4/3; }
.article-cover img { object-position: center 62%; }
@media (min-width: 768px) { .article-cover { aspect-ratio: 16/9; } }
@media (min-width: 1024px) { .article-cover { aspect-ratio: 2/1; } }
.footer-title, .widget-title, .toc-title { font-weight: 600; line-height: 1.3; margin-top: 0; }
.toc .toc-title { margin-bottom: 12px; }

/* ---------- Hero banner slider ---------- */
.hero-slider { position: relative; background: var(--c-primary); }
.hs-track { display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.hs-track::-webkit-scrollbar { display: none; }
.hs-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; aspect-ratio: 3 / 2; }
.hs-slide a, .hs-slide picture { display: block; width: 100%; height: 100%; }
.hs-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .hs-slide { aspect-ratio: 1920 / 750; } }
.hs-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; display: none; place-items: center; background: rgba(255,255,255,.88); color: var(--c-primary); box-shadow: 0 6px 18px rgba(0,0,0,.18); cursor: pointer; transition: background .2s, transform .2s; }
.hs-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.hs-nav:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.hs-prev { left: 24px; } .hs-next { right: 24px; }
@media (min-width: 768px) { .hs-nav { display: grid; } }
.hs-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 2px; }
.hs-dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hs-dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.7); box-shadow: 0 0 0 1px rgba(0,0,0,.2); transition: width .25s, background .25s; }
.hs-dot[aria-current="true"]::before { width: 22px; background: var(--c-accent); }
.hs-dot:focus-visible { outline: 2px solid var(--c-accent); border-radius: 6px; }
@media (min-width: 768px) { .hs-dots { bottom: 16px; } }
/* ---------- Slider đánh giá khách hàng ---------- */
.rv-slider { --rv-gap: 16px; --rv-per: 1.12; }
@media (min-width: 640px) { .rv-slider { --rv-per: 2; } }
@media (min-width: 1024px) { .rv-slider { --rv-gap: 24px; --rv-per: 3; } }
.rv-track { display: flex; gap: var(--rv-gap); margin: 0; padding: 4px 0 8px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.rv-track::-webkit-scrollbar { display: none; }
.rv-slide { flex: 0 0 calc((100% - (var(--rv-per) - 1) * var(--rv-gap)) / var(--rv-per)); min-width: 0; scroll-snap-align: start; display: flex; position: relative; }
.rv-track { position: relative; }
.rv-slide .review-card { margin: 0; width: 100%; display: flex; flex-direction: column; }
.rv-slide .review-card blockquote { flex: 1; }
.rv-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; }
.rv-nav { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-primary); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.rv-nav:hover:not(:disabled) { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.rv-nav:disabled { opacity: .35; cursor: default; }
.rv-nav:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.rv-dots { display: flex; gap: 2px; }
.rv-dots button { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.rv-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--c-border); transition: width .25s, background .25s; }
.rv-dots button[aria-current="true"]::before { width: 22px; background: var(--c-accent); }
.rv-dots button:focus-visible { outline: 2px solid var(--c-accent); border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .rv-track { scroll-behavior: auto; } }

/* PC: banner gói trong chiều rộng nội dung trang, thẳng mép với header/container */
@media (min-width: 1024px) {
  .hero-slider { max-width: calc(var(--container) - 48px); margin: 24px auto 0; width: calc(100% - 48px); overflow: hidden; background: var(--c-surface-2); }
}
