/* ==========================================================================
   Tạp Hóa AI 1986 — Phiên bản Hoài Cổ Nâng Cấp (Báo cũ • Tem phiếu • Bách hóa 1986)
   Flat Vintage Print (Zero Shadow) + Day (Giấy ố vàng) / Night (Đèn dây tóc)
   ========================================================================== */

:root,
[data-theme="light"] {
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Lora', Georgia, 'Times New Roman', serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --bg: #e7d8b9;
  --bg-vignette: linear-gradient(90deg, rgba(112, 82, 38, 0.09) 0%, transparent 10%, transparent 90%, rgba(112, 82, 38, 0.09) 100%);
  --bg-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
  --surface: #f4ebd4;
  --surface-soft: #e2d1ae;
  --surface-hover: #d7c299;
  --header-bg: #efe2c4;
  --border: rgba(135, 108, 69, 0.28);
  --border-strong: rgba(135, 108, 69, 0.48);
  --border-ink: #5a442a;
  --border-hover: #9e261d;

  --text: #271b10;
  --text-secondary: #4a3826;
  --text-muted: #705a42;

  --primary: #1c4a39;
  --primary-hover: #133629;
  --primary-fg: #f8f0dc;
  --primary-soft: rgba(28, 74, 57, 0.12);
  --primary-border: rgba(28, 74, 57, 0.48);

  --accent-red: #9e261d;
  --accent-red-hover: #7f1c15;
  --accent-red-fg: #f8f0dc;
  --stamp-bg: #f6eed9;
  --stamp-fg: #9e261d;
  --accent-gold: #8c5a10;
  --accent-gold-soft: rgba(140, 90, 16, 0.12);
  --accent-gold-border: rgba(140, 90, 16, 0.52);

  --brand-color: #9e261d;
  --price-color: #9e261d;
  --price-box-bg: #ede0c0;
  --price-box-border: #9e261d;
  --photo-tint: rgba(156, 114, 48, 0.075);

  --awning-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='15' viewBox='0 0 96 15'%3E%3Cpath d='M0 0 H32 V6 A16 8 0 0 1 0 6 Z' fill='%239e261d'/%3E%3Cpath d='M32 0 H64 V6 A16 8 0 0 1 32 6 Z' fill='%23f4ebd4'/%3E%3Cpath d='M64 0 H96 V6 A16 8 0 0 1 64 6 Z' fill='%231c4a39'/%3E%3Cpath d='M0 6 A16 8 0 0 0 32 6 A16 8 0 0 0 64 6 A16 8 0 0 0 96 6' fill='none' stroke='%235a4226' stroke-width='1.3'/%3E%3C/svg%3E");
  --sign-bg: #1c4a39;
  --sign-border: #123326;
  --sign-inner: rgba(244, 232, 198, 0.5);
  --sign-title: #fbf2da;
  --sign-kicker: #e4c17a;
  --sign-tagline: #d8cdb0;
  --sign-rivet: #d5ae62;
  --sign-stamp: #f0c97a;

  --shopee: #9b2e20;
  --tiktok: #2b2016;
  --tiktok-accent: #9e261d;
  --lazada: #244566;
  --emerald: #1c4a39;

  --media-bg: #e5d5b4;
  --radius: 2px;
  color-scheme: light;
}

[data-theme="dark"] {
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Lora', Georgia, 'Times New Roman', serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --bg: #18120c;
  --bg-vignette: linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0%, transparent 12%, transparent 88%, rgba(0, 0, 0, 0.28) 100%);
  --bg-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  --surface: #231b13;
  --surface-soft: #2e2419;
  --surface-hover: #3a2d1f;
  --header-bg: #1e1710;
  --border: rgba(176, 146, 102, 0.2);
  --border-strong: rgba(176, 146, 102, 0.38);
  --border-ink: #a0835c;
  --border-hover: #dca044;

  --text: #efe1c4;
  --text-secondary: #d2bf9c;
  --text-muted: #9b8768;

  --primary: #c98a2e;
  --primary-hover: #dda147;
  --primary-fg: #19120b;
  --primary-soft: rgba(201, 138, 46, 0.16);
  --primary-border: rgba(201, 138, 46, 0.5);

  --accent-red: #c44435;
  --accent-red-hover: #d85546;
  --accent-red-fg: #f8f0dc;
  --stamp-bg: #261812;
  --stamp-fg: #f48675;
  --accent-gold: #e0a548;
  --accent-gold-soft: rgba(224, 165, 72, 0.14);
  --accent-gold-border: rgba(224, 165, 72, 0.5);

  --brand-color: #e4a94d;
  --price-color: #e6aa4d;
  --price-box-bg: #2a2016;
  --price-box-border: #c98a2e;
  --photo-tint: rgba(185, 132, 58, 0.08);

  --awning-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='15' viewBox='0 0 96 15'%3E%3Cpath d='M0 0 H32 V6 A16 8 0 0 1 0 6 Z' fill='%238c2b21'/%3E%3Cpath d='M32 0 H64 V6 A16 8 0 0 1 32 6 Z' fill='%23d4be96'/%3E%3Cpath d='M64 0 H96 V6 A16 8 0 0 1 64 6 Z' fill='%23234c3c'/%3E%3Cpath d='M0 6 A16 8 0 0 0 32 6 A16 8 0 0 0 64 6 A16 8 0 0 0 96 6' fill='none' stroke='%23120d08' stroke-width='1.3'/%3E%3C/svg%3E");
  --sign-bg: #251b12;
  --sign-border: #b8802d;
  --sign-inner: rgba(228, 169, 77, 0.42);
  --sign-title: #f5e2ba;
  --sign-kicker: #dca044;
  --sign-tagline: #baa37d;
  --sign-rivet: #dca044;
  --sign-stamp: #e06a5a;

  --shopee: #9b3123;
  --tiktok: #120d08;
  --tiktok-accent: #c44435;
  --lazada: #2a4a6e;
  --emerald: #3a755d;

  --media-bg: #2b2117;
  --radius: 2px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

::selection {
  background: var(--accent-red);
  color: var(--accent-red-fg);
}

html {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  background-image: var(--bg-noise), var(--bg-vignette);
  background-repeat: repeat, no-repeat;
  background-attachment: scroll, scroll;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font-family: var(--font-body);
}

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Shopfront Masthead — Mái hiên lượn sóng & Biển hiệu Tạp Hóa 1986 */
.shop-masthead {
  background-color: var(--header-bg);
  background-image: var(--bg-noise);
  padding-bottom: 12px;
}

.shop-awning {
  width: 100%;
  height: 15px;
  background-image: var(--awning-svg);
  background-repeat: repeat-x;
  background-position: top center;
}

.signboard-dateline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 2px 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.signboard-dateline__mid {
  color: var(--accent-red);
  font-weight: 700;
}

.signboard-plate {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 13px 22px;
  background-color: var(--sign-bg);
  background-image:
    var(--bg-noise),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.018) 0 1px,
      transparent 1px 18px
    );
  border: 1px solid var(--sign-border);
  outline: 1px solid var(--sign-inner);
  outline-offset: -5px;
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}

.signboard-plate:hover {
  border-color: var(--accent-red);
}

/* 4 đinh tán đồng ở 4 góc biển hiệu */
.signboard-rivets {
  position: absolute;
  inset: 9px;
  pointer-events: none;
  background-image:
    radial-gradient(circle, var(--sign-rivet) 2.2px, transparent 2.4px),
    radial-gradient(circle, var(--sign-rivet) 2.2px, transparent 2.4px),
    radial-gradient(circle, var(--sign-rivet) 2.2px, transparent 2.4px),
    radial-gradient(circle, var(--sign-rivet) 2.2px, transparent 2.4px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
  background-position: top left, top right, bottom left, bottom right;
}

.signboard-left {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  filter: sepia(0.12) contrast(1.03);
}

.signboard-logo {
  width: 54px;
  height: 54px;
  border-radius: 4px;
}

.signboard-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.signboard-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--sign-kicker);
  margin-bottom: 2px;
}

.signboard-title {
  font-family: var(--font-display);
  font-size: clamp(23px, 3vw, 35px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sign-title);
}

.signboard-tagline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 12.5px;
  font-style: italic;
  font-weight: 500;
  color: var(--sign-tagline);
}

.signboard-tagline::before,
.signboard-tagline::after {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--sign-inner);
}

.signboard-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sign-stamp);
  transform: rotate(-7deg);
  opacity: 0.92;
  flex-shrink: 0;
}

/* Sticky Counter Bar — Thanh quầy giao dịch dính đầu trang */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding-top: 7px;
  padding-bottom: 7px;
  flex-wrap: wrap;
}

.sticky-brand {
  display: none;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-right: 10px;
  border-right: 1px solid var(--border);
}

.site-header.is-stuck .sticky-brand {
  display: inline-flex;
}

.sticky-brand__logo {
  width: 28px;
  height: 28px;
  border-radius: 3px;
}

.sticky-brand strong {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--brand-color);
  white-space: nowrap;
}

.header-search {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px 3px 3px 12px;
  transition: border-color 0.15s, background-color 0.15s;
}

.header-search:focus-within {
  border-color: var(--accent-red);
}

.header-search .search-icon {
  color: var(--text-muted);
  display: inline-flex;
  margin-right: 8px;
}

.header-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13.5px;
  color: var(--text);
  min-width: 0;
}

.header-search input::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.header-search button {
  border: 0;
  background: var(--accent-red);
  color: var(--accent-red-fg);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 15px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s;
}

.header-search button:hover {
  background: var(--accent-red-hover);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background-color 0.15s, color 0.15s;
}

.nav-link:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.nav-link.is-active {
  background: var(--primary);
  color: var(--primary-fg);
}

/* Day / Night Theme Toggle & Mobile Header Actions */
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.mobile-header-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-header-btn.is-active,
.mobile-header-btn[aria-expanded="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-fg);
}

.menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-icon--close {
  display: none;
}

.site-header.is-menu-open .menu-icon--open {
  display: none;
}

.site-header.is-menu-open .menu-icon--close {
  display: inline-flex;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.theme-toggle-btn:hover {
  border-color: var(--accent-red);
  background: var(--surface-soft);
  color: var(--accent-red);
}

.theme-icon {
  display: inline-flex;
  align-items: center;
}

[data-theme="dark"] .theme-icon--moon { display: none; }
[data-theme="dark"] .theme-icon--sun { display: inline-flex; color: var(--primary); }
[data-theme="light"] .theme-icon--sun { display: none; }
[data-theme="light"] .theme-icon--moon { display: inline-flex; color: var(--text); }

/* Sections — Bảng niêm yết hàng hóa kiểu báo cũ */
.section {
  padding-top: 22px;
  padding-bottom: 12px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0.015em;
  color: var(--text);
}

.section-head p {
  margin: 2px 0 0;
  font-size: 13px;
  font-style: italic;
  color: var(--text-muted);
}

.section-more {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-red);
  border-bottom: 1px dashed var(--accent-red);
}

.section-more:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Sort & Category Bar — Thẻ mục lục giấy bìa 1986 */
.sort-form {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.sort-form label {
  font-style: italic;
}

.sort-form select {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 5px 10px;
  font-size: 13px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  cursor: pointer;
}

.sort-form select:focus {
  border-color: var(--accent-red);
}

.category-sort-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: nowrap;
}

.chip-bar {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-sort-row .chip-row {
  flex: 1 1 0%;
  min-width: 0;
  align-items: center;
  padding-bottom: 0;
  margin-bottom: 0;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.category-sort-row .chip-row::-webkit-scrollbar {
  display: none;
}

.chip-nav-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  padding: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.chip-nav-btn[hidden] {
  display: none;
}

.chip-nav-btn:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  background: var(--surface-soft);
}

.chip-more-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  height: 31px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.chip-more-btn:hover,
.chip-more-btn[aria-expanded="true"] {
  border-color: var(--accent-red);
  color: var(--accent-red-fg);
  background: var(--accent-red);
}

.category-all-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  margin-top: -6px;
  margin-bottom: 16px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.category-all-panel[hidden] {
  display: none;
}

.category-sort-row .sort-form {
  flex: 0 0 auto;
  white-space: nowrap;
}

.chip-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.chip {
  white-space: nowrap;
  padding: 5px 11px;
  border-radius: var(--radius);
  font-size: 12.5px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.chip span {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.78;
}

.chip:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  background: var(--surface-soft);
}

.chip.is-active {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}

.chip.is-active span {
  opacity: 0.92;
}

/* Product Grid — Kệ hàng & Phiếu hàng Tạp Hóa 1986 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-grid.is-virtualized,
.scene-grid.is-virtualized,
.loadmore-wrap,
.seo-content-wrap,
.site-main,
.site-footer {
  overflow-anchor: none;
}

.product-card {
  position: relative;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  contain: layout style paint;
}

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--media-bg);
  overflow: hidden;
}

.product-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(156, 114, 48, 0.045);
  pointer-events: none;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.08) contrast(1.02);
}

@media (hover: hover) and (pointer: fine) {
  .product-card {
    transition: transform 0.16s ease, border-color 0.16s ease;
  }
  .product-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
  }
  .product-card__media::after {
    transition: opacity 0.2s ease;
  }
  .product-card:hover .product-card__media::after {
    opacity: 0;
  }
  .product-card__media img {
    transition: transform 0.25s ease, filter 0.25s ease;
  }
  .product-card:hover .product-card__media img {
    transform: scale(1.03);
    filter: none;
  }
}

.media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--media-bg);
}

.media-placeholder--dark {
  background: #17110b;
  color: #8f7b62;
}

.badge-platform {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  max-width: calc(100% - 16px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f8f0dc;
  padding: 3px 8px;
  border-radius: var(--radius);
}

.badge-platform--with-discount {
  max-width: calc(100% - 76px);
}

.badge-platform--shopee, .pill-platform--shopee { background: var(--shopee); color: #f8f0dc; }
.badge-platform--tiktok, .pill-platform--tiktok { background: var(--tiktok); color: #f8f0dc; }
.badge-platform--lazada, .pill-platform--lazada { background: var(--lazada); color: #f8f0dc; }
.badge-platform--other, .pill-platform--other { background: #4a3f33; color: #f8f0dc; }

/* Dấu mộc đỏ đóng giảm giá 1986 */
.badge-discount {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  background: var(--stamp-bg);
  color: var(--stamp-fg);
  border: 1px solid var(--stamp-fg);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 2px 7px;
  border-radius: var(--radius);
  transform: rotate(2.5deg);
}

.badge-video {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(24, 18, 12, 0.88);
  color: #f3d291;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: var(--radius);
}

.product-card__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.product-card__title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.42;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

.product-card__title:hover {
  color: var(--accent-red);
}

.product-card__prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.price-now {
  font-family: var(--font-mono);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--price-color);
  letter-spacing: -0.02em;
}

.price-old {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--text-muted);
}

.meta-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
  color: var(--accent-gold);
  font-weight: 700;
}

.meta-sold {
  font-family: var(--font-mono);
  font-size: 11px;
}

.meta-shop {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__actions {
  margin-top: auto;
  display: flex;
  gap: 7px;
  padding-top: 8px;
}

.btn-outline-sm {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.btn-outline-sm:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  background: var(--surface);
}

.btn-buy-sm {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: var(--radius);
  border: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--primary);
  color: var(--primary-fg);
  transition: background-color 0.15s;
}

.btn-buy-sm:hover,
.btn-buy-lg:hover {
  background: var(--primary-hover);
}

.btn-buy--shopee,
.btn-buy--tiktok,
.btn-buy--lazada,
.btn-buy--other {
  background: var(--primary);
  color: var(--primary-fg);
}

/* Scenes Grid */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.scene-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scene-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  contain: layout style paint;
}

@media (hover: hover) and (pointer: fine) {
  .scene-card {
    transition: transform 0.16s ease, border-color 0.16s ease;
  }
  .scene-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
  }
}

.scene-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #17110b;
  overflow: hidden;
}

.scene-card__media img,
.scene-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to top, rgba(24, 17, 11, 0.86), transparent);
  color: #f8f0dc;
}

.scene-play-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-red);
  color: var(--accent-red-fg);
  border: 1px dashed rgba(248, 240, 220, 0.65);
  padding: 3px 9px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.scene-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  opacity: 0.92;
}

.scene-card__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.scene-card__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.scene-card__desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.scene-product-chip {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.scene-product-chip img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}

.scene-product-chip__info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.scene-product-chip__name {
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scene-product-chip__info strong {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--price-color);
}

.scene-product-chip__more {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: var(--radius);
}

/* Detail pages — Tờ phiếu hàng hóa đóng khung đôi 1986 */
.detail-wrap {
  padding-top: 18px;
  padding-bottom: 40px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.breadcrumb a {
  border-bottom: 1px dotted transparent;
}

.breadcrumb a:hover {
  color: var(--accent-red);
  border-bottom-color: var(--accent-red);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: 28px;
  background-color: var(--surface);
  background-image: var(--bg-noise);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.detail-gallery,
.detail-info {
  min-width: 0;
}

.gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--media-bg);
}

.gallery-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(156, 114, 48, 0.04);
  pointer-events: none;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #faf5e8;
}

.gallery-main .badge-platform {
  top: 10px;
  left: 10px;
}

.gallery-main .badge-discount {
  top: 10px;
  right: 10px;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.thumb-btn {
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid transparent;
  background: var(--surface-soft);
  cursor: pointer;
  flex-shrink: 0;
}

.thumb-btn.is-active {
  border-color: var(--accent-red);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.pill-platform,
.pill-soft,
.pill-video {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius);
}

.pill-soft {
  background: var(--surface-soft);
  color: var(--text-secondary);
}

.pill-video {
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
}

.detail-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.3vw, 26px);
  font-weight: 900;
  line-height: 1.28;
  color: var(--text);
}

.detail-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Phiếu giá tem phiếu gọn nhẹ */
.detail-price-box {
  background: var(--price-box-bg);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.detail-price-now {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--price-color);
  letter-spacing: -0.02em;
}

.detail-price-old {
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.detail-price-save {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--stamp-fg);
  background: var(--stamp-bg);
  border: 1px solid var(--stamp-fg);
  padding: 2px 8px;
  border-radius: var(--radius);
}

.detail-variations {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.var-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.var-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 84px;
  padding-top: 4px;
}

.var-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}

.var-chip {
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.detail-cta-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.btn-buy-lg {
  flex: 1 1 220px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 0;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--primary);
  color: var(--primary-fg);
  transition: background-color 0.15s;
}

.btn-video-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--accent-gold-border);
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-video-lg:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: var(--accent-red-fg);
}

.btn-share-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.btn-share-lg:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  background: var(--surface);
}

.detail-section {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 14px;
}

.detail-section h2,
.detail-section h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text);
}

.detail-specs-card {
  margin-top: 18px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.detail-specs-card h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
}

.detail-wrap .seo-content-wrap {
  padding-top: 18px;
  padding-bottom: 6px;
}

.attr-list {
  margin: 0;
  display: grid;
  gap: 5px;
}

.attr-list--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 28px;
}

.attr-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px;
  font-size: 13.5px;
}

.attr-row dt {
  color: var(--text-muted);
}

.attr-row dd {
  margin: 0;
  font-weight: 500;
  color: var(--text-secondary);
}

.detail-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.72;
  white-space: normal;
  word-break: break-word;
}

.detail-desc--fallback p {
  margin: 0 0 8px;
}

.detail-desc--fallback p:last-child {
  margin-bottom: 0;
}

.detail-desc__note {
  font-size: 13px;
  font-style: italic;
  color: var(--text-muted);
}

.detail-desc a {
  color: var(--accent-red);
  font-weight: 600;
  text-decoration: underline;
}

/* Scene Detail */
.scene-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.scene-player-box {
  background: #140f0a;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 76vh;
}

.scene-player-box video,
.scene-stage-img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
}

.video-playlist {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.playlist-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.playlist-btn.is-active {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}

.scene-info-card {
  margin-top: 14px;
  background-color: var(--surface);
  background-image: var(--bg-noise);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.scene-info-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.scene-info-head h1 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
}

.scene-meta-line {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.scene-meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.scene-detail-desc {
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.sidebar-card {
  background-color: var(--surface);
  background-image: var(--bg-noise);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  position: sticky;
  top: 76px;
}

.sidebar-card__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.sidebar-card__head p {
  margin: 2px 0 12px;
  font-size: 12.5px;
  font-style: italic;
  color: var(--text-muted);
}

.pinned-products {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pinned-product {
  display: flex;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.pinned-product__img {
  width: 78px;
  height: 78px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: #faf5e8;
  border: 1px solid var(--border);
}

.pinned-product__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pinned-product__body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pinned-product__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.32;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pinned-product__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pinned-product__price strong {
  font-family: var(--font-mono);
  color: var(--price-color);
  font-size: 14.5px;
}

.pinned-product__price span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.sidebar-empty {
  padding: 18px 12px;
  text-align: center;
  font-size: 13px;
  font-style: italic;
  color: var(--text-muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

/* Load More */
.loadmore-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.loadmore-progress {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
}

.loadmore-progress strong {
  color: var(--text);
}

.loadmore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.loadmore-btn:hover:not(:disabled) {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-fg);
}

.loadmore-btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

.loadmore-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: loadmore-spin 0.65s linear infinite;
}

.loadmore-btn.is-loading .loadmore-spinner {
  display: inline-block;
}

@keyframes loadmore-spin {
  to {
    transform: rotate(360deg);
  }
}

.empty-box {
  background-color: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
}

.empty-box h1,
.empty-box h2,
.empty-box h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  color: var(--text);
}

.empty-box p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* SEO Editorial Content, Category Guide, FAQ & Crawlable Pagination */
.seo-pagination {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.seo-pagination a {
  color: var(--text-secondary);
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.seo-pagination a:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.seo-content-wrap {
  padding-top: 26px;
}

.seo-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
}

.seo-card--compact {
  padding: 20px 22px;
}

.seo-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-red);
  margin-bottom: 6px;
}

.seo-card__head h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 900;
  line-height: 1.25;
  color: var(--text);
}

.seo-lead {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--text-secondary);
}

.seo-stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.seo-stat-box {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 13px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.seo-stat-box span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.seo-stat-box strong {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.seo-block {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.seo-block h3,
.seo-faq h2,
.seo-faq h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
}

.seo-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.seo-cat-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 13px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}

.seo-cat-card:hover {
  border-color: var(--accent-red);
}

.seo-cat-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.seo-cat-card__top strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.seo-cat-card:hover .seo-cat-card__top strong {
  color: var(--accent-red);
}

.seo-cat-card__top span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.seo-cat-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.seo-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.seo-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.seo-list--compact {
  margin: 10px 0;
  gap: 6px;
}

.detail-desc--editorial p {
  margin: 0 0 8px;
}

.detail-desc--editorial p:last-child {
  margin-bottom: 0;
}

.seo-top-links {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.seo-top-links h4 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.seo-top-links ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
}

.seo-top-links a {
  color: var(--text);
  font-weight: 600;
}

.seo-top-links a:hover {
  color: var(--accent-red);
  text-decoration: underline;
}

.seo-top-links span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

.seo-faq__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seo-faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.seo-faq__q {
  list-style: none;
  cursor: pointer;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.seo-faq__q::-webkit-details-marker {
  display: none;
}

.seo-faq__q::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-red);
  flex-shrink: 0;
}

.seo-faq__item[open] .seo-faq__q::after {
  content: "−";
}

.seo-faq__a {
  padding: 0 14px 12px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.seo-faq__a p {
  margin: 0;
}

/* Footer — Cuối trang sổ hàng 1986 */
.site-footer {
  margin-top: 44px;
  border-top: 1px solid var(--border);
  background-color: var(--header-bg);
  background-image: var(--bg-noise);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-inner strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--brand-color);
}

.footer-inner strong::after {
  content: "  •  CỬA HÀNG BÁCH HÓA";
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  vertical-align: middle;
}

.footer-inner p {
  margin: 4px 0 0;
  font-size: 13px;
  font-style: italic;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-red);
  text-decoration: underline;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--primary);
  color: var(--primary-fg);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 99;
}

.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1024px) {
  .product-grid,
  .scene-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .product-detail,
  .scene-detail-grid,
  .seo-two-col {
    grid-template-columns: minmax(0, 1fr);
  }
  .seo-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px), (hover: none) {
  .product-card__media::after,
  .gallery-main::after {
    display: none;
  }
  .product-card__media img,
  .brand-logo {
    filter: none;
  }
  .badge-discount {
    transform: none;
  }
}

@media (max-width: 768px) {
  body,
  .product-detail,
  .scene-info-card,
  .sidebar-card,
  .site-footer {
    background-image: none;
  }
  .shop-masthead {
    display: none;
  }
  .site-header::before {
    content: "";
    display: block;
    height: 4px;
    background: repeating-linear-gradient(
      90deg,
      var(--accent-red) 0 18px,
      var(--surface) 18px 36px,
      var(--primary) 36px 54px
    );
  }
  .header-inner {
    min-height: 48px;
    padding-top: 7px;
    padding-bottom: 7px;
    gap: 0 8px;
    justify-content: space-between;
  }
  .sticky-brand,
  .site-header.is-stuck .sticky-brand {
    display: inline-flex;
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 0;
    border-right: 0;
  }
  .sticky-brand strong,
  .site-header.is-stuck .sticky-brand strong {
    display: block;
    font-size: 14.5px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .header-actions {
    order: 2;
  }
  .mobile-header-btn {
    display: inline-flex;
  }
  .theme-toggle-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
  }
  .theme-toggle-btn .theme-label {
    display: none;
  }
  .header-search {
    display: none;
    order: 3;
    flex: 1 1 100%;
    margin-top: 8px;
  }
  .site-header.is-search-open .header-search {
    display: flex;
  }
  .header-search input {
    font-size: 16px;
  }
  .header-nav {
    display: none;
    order: 4;
    flex: 1 1 100%;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    gap: 6px;
  }
  .site-header.is-menu-open .header-nav {
    display: flex;
  }
  .header-nav .nav-link {
    flex: 1 1 auto;
    justify-content: center;
    padding: 8px 8px;
    text-align: center;
    white-space: nowrap;
    background: var(--surface);
    border: 1px solid var(--border);
  }
  .header-nav .nav-link.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--primary-fg);
  }
  .section {
    padding-top: 14px;
  }
  .attr-list--grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 680px) {
  .container {
    padding: 0 12px;
  }
  .product-grid,
  .scene-grid,
  .scene-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .product-card__body {
    padding: 9px;
  }
  .product-card__actions {
    flex-direction: column;
  }
  .chip-nav-btn {
    display: none !important;
  }
  .category-sort-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .chip-bar {
    flex: 1 1 100%;
  }
  .category-sort-row .sort-form {
    margin-left: auto;
  }
  .attr-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .detail-specs-card {
    padding: 16px 14px;
  }
  .seo-card,
  .seo-card--compact {
    padding: 16px 14px;
  }
  .seo-cat-grid {
    grid-template-columns: 1fr;
  }
}
