/* ===== Vạn Phát — Luxury stationery brand ===== */
:root {
  --navy: #1F4E78;
  --navy-dark: #163A5A;
  --navy-deep: #0F2A42;
  --cream: #F7F4EE;
  --cream-dark: #EFE9DE;
  --white: #FFFFFF;
  --gold: #C9A227;
  --gold-light: #E8D48A;
  --gold-dark: #A8861F;
  --text: #1A2332;
  --text-muted: #5A6577;
  --border: #E2DDD3;
  --shadow: 0 8px 30px rgba(31, 78, 120, 0.08);
  --shadow-lg: 0 20px 50px rgba(31, 78, 120, 0.14);
  --radius: 14px;
  --radius-sm: 10px;
  --nav-h: 72px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
  --max: 1180px;
}

@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/be-vietnam-pro-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0102-0103, U+0110-0111, U+0128-0129, U+0131, U+0152-0153, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+2000-206F, U+2074, U+20AB-20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/be-vietnam-pro-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0102-0103, U+0110-0111, U+0128-0129, U+0131, U+0152-0153, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+2000-206F, U+2074, U+20AB-20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/be-vietnam-pro-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0102-0103, U+0110-0111, U+0128-0129, U+0131, U+0152-0153, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+2000-206F, U+2074, U+20AB-20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/be-vietnam-pro-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0102-0103, U+0110-0111, U+0128-0129, U+0131, U+0152-0153, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+2000-206F, U+2074, U+20AB-20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/be-vietnam-pro-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0102-0103, U+0110-0111, U+0128-0129, U+0131, U+0152-0153, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+2000-206F, U+2074, U+20AB-20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; background: var(--cream); }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select { font: inherit; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ===== Top bar ===== */
.topbar {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.85);
  font-size: 0.8125rem;
  padding: calc(0.45rem + env(safe-area-inset-top)) 0 0.45rem;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: var(--gold-light); transition: color 0.2s; }
.topbar a:hover { color: var(--white); }

/* ===== Nav ===== */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top);
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(31,78,120,0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.logo-mark { /* replaced by img logo; kept for fallback */
display: none; /* hide old VP mark */

  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--navy), var(--navy-dark));
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(31,78,120,0.25);
  flex-shrink: 0;
}
.logo-text { line-height: 1.15; }
.logo-text small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  background: var(--cream);
}
.nav-cta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: 0.2s;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(31,78,120,0.3);
}
.btn-primary:hover {
  background: var(--navy-dark);
  box-shadow: 0 6px 20px rgba(31,78,120,0.35);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-deep);
  box-shadow: 0 4px 14px rgba(201,162,39,0.35);
}
.btn-gold:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 20px rgba(201,162,39,0.45);
}
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.45);
  color: var(--white);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}
.btn-outline-navy {
  background: var(--white);
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: transparent;
}
.btn-sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.875rem;
}
.btn-zalo {
  background: #0068FF;
  color: #fff;
  border-color: transparent;
}
.btn-zalo:hover {
  background: #0056d6;
  color: #fff;
}
@media (max-width: 1200px) {
  .nav:not(.open) .nav-cta .btn-zalo { display: none; }
}
.btn-lg {
  padding: 0.95rem 1.7rem;
  font-size: 1rem;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(201,162,39,0.18), transparent),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(31,78,120,0.35), transparent),
    linear-gradient(145deg, var(--navy-deep) 0%, var(--navy) 55%, #2A5F8F 100%);
  color: var(--white);
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent);
  pointer-events: none;
}
/* Cột hero là grid item. min-width:auto (mặc định) lấy min-content của hàng chip
   nowrap, nên dưới 900px track phình khoảng 436px và .hero {overflow:hidden} cắt mất
   H1, ô tìm và nút. minmax(0, …) cộng min-width:0 cho cột co theo khung; chip vẫn
   cuộn trong .chip-rail-scroll. */
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}
.hero .container > * { min-width: 0; }
@media (min-width: 900px) {
  .hero .container { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(201,162,39,0.15);
  border: 1px solid rgba(201,162,39,0.35);
  color: var(--gold-light);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.hero h1 span { color: var(--gold-light); }
.hero-lead {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.82);
  max-width: 36rem;
  margin-bottom: 1.1rem;
}
.hero-address {
  font-size: 0.98rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  max-width: 36rem;
  margin: -0.45rem 0 1.1rem;
}
.hero .hero-search.nav-search {
  max-width: none;
  width: 100%;
  margin: 0 0 0.85rem;
  background: #fff;
  border-radius: 14px;
  padding: 0.35rem 0.35rem 0.35rem 1rem;
}
.hero .hero-search.nav-search input {
  font-size: 1rem;
  padding: 0.7rem 0.35rem;
}
.hero .hero-search.nav-search button {
  width: auto;
  min-width: 4.5rem;
  height: auto;
  border-radius: 10px;
  padding: 0.7rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 800;
}
.hero .hero-search .search-suggest { width: 100%; }
.hero-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
}
.hero-quick a {
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
}
.hero-quick a:hover { background: rgba(255,255,255,0.18); }
.cat-rail {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.cat-rail .container {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}
.cat-rail a {
  flex: none;
  color: var(--navy);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
}
.cat-rail a:hover,
.cat-rail a[aria-current="page"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.field-label {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy);
}
.product-grid .product-img[data-product-zoom]::after {
  content: "Xem ảnh";
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  z-index: 1;
  background: rgba(31, 78, 120, 0.92);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.32rem 0.5rem;
  border-radius: 999px;
  pointer-events: none;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}
.hero-meta strong {
  display: block;
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 700;
}
.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  padding: 1.75rem;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
}
.hero-card h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--gold-light);
}
.hero-card ul { display: grid; gap: 0.75rem; }
.hero-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.88);
}
.hero-card .icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(201,162,39,0.2);
  color: var(--gold-light);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

/* ===== Sections ===== */
.section { padding: 4rem 0; }
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header .eyebrow {
  display: inline-block;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.section-header p {
  color: var(--text-muted);
  max-width: 36rem;
  margin-inline: auto;
}

/* ===== Category cards ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .cat-grid { grid-template-columns: repeat(6, 1fr); }
}
.cat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: var(--shadow);
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(31,78,120,0.25);
}
.cat-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.85rem;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--cream), var(--cream-dark));
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}
.cat-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.cat-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== Product cards ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
@media (min-width: 960px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-img {
  aspect-ratio: 1;
  background: linear-gradient(160deg, #faf8f4, #eee9df);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-img picture {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  transition: transform 0.35s;
}
.product-card:hover .product-img img { transform: scale(1.05); }
.product-img .fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 1rem;
  text-align: center;
}
.product-img .fallback.show { display: flex; }
.product-body {
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
}
.product-nhom {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.product-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}
.product-dvt {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.product-price {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.product-price small {
  font-size: 0.8rem;
  font-weight: 600;
}

/* ===== Trust strip ===== */
.trust {
  background: var(--white);
  border-block: 1px solid var(--border);
  padding: 2.5rem 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}
.trust-item {
  text-align: center;
  padding: 0.5rem;
}
.trust-item .t-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--navy), var(--navy-dark));
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}
.trust-item h4 {
  font-size: 0.9375rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.trust-item p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy));
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.cta-band p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
  max-width: 32rem;
  margin-inline: auto;
}
.cta-band .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ===== Catalog toolbar ===== */
.page-hero {
  background: linear-gradient(145deg, var(--navy-deep), var(--navy));
  color: var(--white);
  padding: 2.75rem 0 2.5rem;
}
.page-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.page-hero p { color: rgba(255,255,255,0.78); max-width: 36rem; }

.toolbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.15rem 0;
  position: sticky;
  top: var(--header-h, var(--nav-h));
  z-index: 50;
  box-shadow: 0 4px 16px rgba(31,78,120,0.05);
}
.toolbar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.search-wrap {
  flex: 1 1 220px;
  position: relative;
}
.search-wrap input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.6rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-wrap input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(31,78,120,0.12);
  background: var(--white);
}
.search-wrap .s-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.filter-select {
  padding: 0.7rem 2.2rem 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231F4E78' d='M6 8L0 0h12z'/%3E%3C/svg%3E") no-repeat right 0.9rem center;
  appearance: none;
  cursor: pointer;
  min-width: 160px;
  outline: none;
}
.filter-select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(31,78,120,0.12);
}
.result-count {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-left: auto;
}
.result-count strong { color: var(--navy); }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.chip {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: 0.15s;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.catalog-section { padding: 2rem 0 4rem; }
.empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--text-muted);
}
.empty-state h3 { color: var(--navy); margin-bottom: 0.5rem; }

/* ===== Photocopy ===== */
.service-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.service-card .s-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--navy), var(--navy-dark));
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}
.service-card h3 {
  font-size: 1.125rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}
.service-card .price-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  background: var(--cream);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.875rem;
  border: 1px dashed rgba(201,162,39,0.5);
}
.size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 1rem;
}
.size-pills span {
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background: var(--cream-dark);
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 600;
}

.feature-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.feature-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
}
.feature-list .check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(31,78,120,0.1);
  color: var(--navy);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  gap: 1.5rem;
}
.contact-grid > * { min-width: 0; }
@media (min-width: 800px) {
  .contact-grid { grid-template-columns: 1.1fr 0.9fr; }
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.contact-card h2 {
  color: var(--navy);
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}
.contact-row {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-row:last-of-type { border-bottom: none; }
.contact-row .c-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--navy), var(--navy-dark));
  color: var(--gold);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-row h4 {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.2rem;
}
.contact-row p, .contact-row a {
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.contact-row a:hover { color: var(--gold-dark); }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.map-placeholder {
  background:
    linear-gradient(160deg, rgba(31,78,120,0.92), rgba(15,42,66,0.95)),
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 20px);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
  box-shadow: var(--shadow-lg);
}
.map-placeholder h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--gold-light);
}
.map-placeholder p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* ===== Footer ===== */
.site-footer {
  margin-top: auto;
  background: var(--navy-deep);
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-brand .logo { color: var(--white); margin-bottom: 1rem; }
.footer-brand .logo small { color: rgba(255,255,255,0.55); }
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 28rem;
}
.footer-col h4 {
  color: var(--gold-light);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col a, .footer-col li, .footer-col p {
  display: block;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  color: rgba(255,255,255,0.72);
  transition: color 0.15s;
}
.footer-nap-name {
  color: rgba(255,255,255,0.92) !important;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: var(--gold-light); }

/* Hotline là số chính. CSKH cùng họ navy/vàng, nhỏ hơn một bậc, vẫn đọc được. */
.topbar-phones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem 0.85rem;
}
.topbar .topbar-hotline { font-weight: 600; }
.topbar .topbar-hotline a[href^="tel:"] {
  font-weight: 800;
  font-size: 0.9375rem;
}
.vp-cskh {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.75rem;
}
.vp-cskh-link {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem 0.4rem;
  padding: 0.15rem 0;
  line-height: 1.35;
  font-weight: 600;
}
.vp-cskh-role { font-weight: 600; }
.vp-cskh-num { font-weight: 700; font-variant-numeric: tabular-nums; }
.topbar .vp-cskh-top .vp-cskh-link {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8125rem;
  font-weight: 600;
}
.topbar .vp-cskh-role {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  font-weight: 600;
}
.topbar .vp-cskh-num {
  color: var(--gold-light);
  font-size: 0.8125rem;
  font-weight: 600;
}
.footer-col a.footer-hotline {
  color: var(--gold-light);
  font-weight: 800;
  font-size: 1.05rem;
}
.footer-col .vp-cskh-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin: 0.1rem 0 0.2rem;
}
.footer-col a.vp-cskh-link {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.875rem;
  font-weight: 600;
}
.footer-col .vp-cskh-role {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.8125rem;
  font-weight: 600;
}
.footer-col .vp-cskh-num {
  color: var(--gold-light);
  font-size: 0.875rem;
  font-weight: 600;
}
.contact-row a.hotline-num {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.contact-row .vp-cskh-card,
.pwa-steps .vp-cskh-card,
.pwa-offline .vp-cskh-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}
.contact-row a.vp-cskh-link,
.pwa-steps a.vp-cskh-link,
.pwa-offline a.vp-cskh-link {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
}
.contact-row .vp-cskh-role,
.pwa-steps .vp-cskh-role,
.pwa-offline .vp-cskh-role {
  color: var(--navy-dark);
  font-size: 0.8125rem;
  font-weight: 600;
}
.contact-row .vp-cskh-num,
.pwa-steps .vp-cskh-num,
.pwa-offline .vp-cskh-num {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
}
.cta-band .vp-cskh-band {
  justify-content: center;
  margin-top: 0.9rem;
}
.cta-band .vp-cskh-link {
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(232, 212, 138, 0.65);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
}
.cta-band .vp-cskh-role { color: rgba(255, 255, 255, 0.92); font-weight: 600; }
.cta-band .vp-cskh-num { color: var(--gold-light); font-weight: 700; }
@media (max-width: 860px) {
  .topbar .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .topbar-phones {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0.15rem;
  }
  .vp-cskh-top { width: 100%; flex-direction: column; align-items: stretch; }
  .vp-cskh-link { min-height: 44px; align-items: center; }
  .footer-col a.vp-cskh-link,
  .contact-row a.vp-cskh-link,
  .pwa-steps a.vp-cskh-link,
  .pwa-offline a.vp-cskh-link,
  .cta-band .vp-cskh-link {
    min-height: 44px;
    align-items: center;
  }
  .cta-band .vp-cskh-band { flex-direction: column; align-items: stretch; }
}

/* ===== Mobile nav ===== */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav.open .nav-links,
  .nav.open .nav-cta {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--white);
  }
  .nav.open .nav-links {
    order: 3;
    padding: 0.75rem 0 0.25rem;
    gap: 0.15rem;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
  }
  .nav.open .nav-cta {
    order: 4;
    padding: 0.5rem 0 0.75rem;
    gap: 0.5rem;
  }
  .nav.open .nav-cta .btn { width: 100%; }
  .site-header .nav {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--nav-h);
    padding: 0.35rem 0;
  }
  .toolbar { top: var(--header-h, 124px); }
}

/* ===== Utils ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

/* ===== Product cart controls ===== */
.product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.65rem;
}
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--cream);
  width: fit-content;
}
.qty-control-sm { border-radius: 6px; }
.qty-btn {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s;
}
.qty-control-sm .qty-btn {
  width: 28px;
  height: 28px;
  font-size: 1rem;
}
.qty-btn:hover { background: rgba(31, 78, 120, 0.08); }
.qty-input {
  width: 42px;
  height: 34px;
  border: none;
  border-inline: 1px solid var(--border);
  text-align: center;
  background: var(--white);
  color: var(--text);
  font-weight: 600;
  font-size: 0.875rem;
  -moz-appearance: textfield;
}
.qty-control-sm .qty-input {
  width: 36px;
  height: 28px;
  font-size: 0.8125rem;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.btn-add-cart {
  width: 100%;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: var(--gold-light);
  border: none;
  padding: 0.6rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(31, 78, 120, 0.25);
  cursor: pointer;
}
.btn-add-cart:hover {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-deep));
  color: var(--gold);
  filter: none;
}

/* ===== Header cart toggle ===== */
.cart-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1.5px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  font-size: 1.15rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.cart-toggle:hover {
  background: var(--navy);
  color: var(--gold-light);
  box-shadow: 0 4px 12px rgba(31, 78, 120, 0.25);
}
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.6875rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(201, 162, 39, 0.45);
}
.cart-badge[hidden] { display: none !important; }

@media (max-width: 860px) {
  .nav-cta .cart-toggle {
    display: inline-flex !important;
  }
  .nav:not(.open) .nav-cta {
    display: flex !important;
    position: absolute;
    right: 3.5rem;
    top: 50%;
    transform: translateY(-50%);
    gap: 0.35rem;
    background: transparent;
    width: auto;
    padding: 0;
  }
  .nav:not(.open) .nav-cta > .btn { display: none; }
  .nav.open .nav-cta {
    position: static;
    transform: none;
  }
  .nav.open .nav-cta .cart-toggle {
    width: 100%;
    height: 44px;
  }
}

/* ===== Cart overlay + drawer ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 42, 66, 0.45);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100%;
  background: var(--white);
  z-index: 210;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(31, 78, 120, 0.18);
  transform: translateX(105%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
.cart-drawer.open { transform: translateX(0); }
body.cart-open { overflow: hidden; }
/* Pill gọi nổi trên lớp mờ giỏ (200), panel giỏ (210) vẫn phủ pill nếu chồng. */
body.cart-open .vp-reach { z-index: 205; }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: var(--white);
}
.cart-drawer-header h2 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cart-drawer-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}
.cart-drawer-close:hover { background: rgba(255,255,255,0.22); }

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cart-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cart-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
}
.cart-item-img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.cart-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.cart-item-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.cart-item-remove {
  border: none;
  background: transparent;
  color: #b33;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
  border-radius: 4px;
}
.cart-item-remove:hover { background: rgba(180, 40, 40, 0.08); }

.cart-drawer-footer {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.cart-total-row strong {
  font-size: 1.25rem;
  color: var(--navy);
  font-weight: 800;
}
.cart-checkout {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.cart-checkout[hidden],
.cart-btn-checkout[hidden],
.cart-empty-hint[hidden] {
  display: none !important;
}
.cart-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}
.cart-field em {
  color: #c0392b;
  font-style: normal;
}
.cart-field input,
.cart-field textarea {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-weight: 400;
  background: var(--white);
  color: var(--text);
  resize: vertical;
  transition: border-color 0.15s;
}
.cart-field input:focus,
.cart-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(31, 78, 120, 0.12);
}
.cart-field input.is-invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}
.cart-btn-wa,
.cart-btn-order,
.cart-btn-checkout {
  width: 100%;
  justify-content: center;
}
.cart-btn-order {
  font-size: 0.8125rem;
  padding: 0.6rem 1rem;
}
.cart-empty-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

/* ===== Toast ===== */
.cart-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--navy-deep);
  color: var(--white);
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(15, 42, 66, 0.35);
  z-index: 12000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
  border: 1px solid rgba(201, 162, 39, 0.35);
}
.cart-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}



.cart-email-hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  text-align: center;
}
.cart-btn-email { width: 100%; }


/* Brand mark (header + footer) — v20260925 */
.logo {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  max-width: min(360px, calc(100% - 3rem));
  min-width: 0;
  line-height: 1;
  text-decoration: none;
}
.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  object-position: center;
  display: block;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  transform: none;
  background: transparent;
  border-radius: 0;
}
.logo-img-sm { width: 40px; height: 40px; }
.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  white-space: normal;
  min-width: 0;
  margin: 0;
}
.logo-text small {
  display: block;
  margin-top: 2px;
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  white-space: normal;
  line-height: 1.25;
}
/* Footer sits on a dark background: give the mark a light chip and white text */
.footer-brand .logo-img {
  background: #fff;
  border-radius: 10px;
  padding: 3px;
  box-sizing: border-box;
}
.footer-brand .logo-text { color: var(--white); }
.footer-brand .logo-text small { color: rgba(255,255,255,0.6); }
@media (max-width: 480px) {
  .site-header .nav {
    height: auto;
    min-height: var(--nav-h);
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }
  .logo { gap: 0.5rem; max-width: calc(100% - 48px); }
  .logo-img { width: 40px; height: 40px; }
  .logo-img-sm { width: 36px; height: 36px; }
  .logo-text { font-size: 1rem; }
  .logo-text small { font-size: 0.62rem; }
}
@media (max-width: 414px) {
  .logo-text small {
    font-size: 0.58rem;
    letter-spacing: 0;
  }
}
.logo-mark { display: none !important; }

.nav-search {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 260px;
  margin: 0 0.5rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.15rem 0.15rem 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nav-search:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(31,78,120,0.12);
  background: #fff;
}
.nav-search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 0.875rem;
  color: var(--text);
  min-width: 0;
  padding: 0.4rem 0;
}
.nav-search button {
  border: 0;
  background: var(--navy);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}
.nav-search button:hover { background: var(--navy-dark); }
@media (max-width: 900px) {
  .nav { position: relative; }
  .logo { order: 1; }
  .nav-toggle { order: 2; margin-left: auto; }
  .nav-search {
    display: flex;
    order: 3;
    flex: 1 1 100%;
    max-width: none;
    margin: 0.15rem 0 0.45rem;
  }
  .nav-links { order: 4; }
  .nav-cta { order: 5; }
}

/* Product card — clearer color hierarchy */
.product-card {
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
}
.product-card:hover {
  border-color: rgba(31,78,120,0.28);
  box-shadow: var(--shadow-lg);
}
.product-nhom {
  display: inline-block;
  background: rgba(201,162,39,0.14);
  color: var(--gold-dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
}
.product-name {
  color: var(--navy-deep);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  min-height: 2.6em;
}
.product-dvt {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0.35rem 0 0.5rem;
}
.product-price {
  color: #b42318;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.65rem;
}
.product-actions {
  border-top: 1px dashed var(--border);
  padding-top: 0.65rem;
  margin-top: auto;
  gap: 0.5rem;
}
.btn-add-cart {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff !important;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(31,78,120,0.25);
}
.btn-add-cart:hover {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-deep) 100%);
  transform: translateY(-1px);
}
.qty-control {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.qty-btn {
  color: var(--navy);
  font-weight: 800;
}

.cart-alt-channels {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.cart-alt-channels summary {
  cursor: pointer;
  list-style: none;
  text-align: center;
  padding: 0.35rem;
}
.cart-alt-channels summary::-webkit-details-marker { display: none; }
.cart-alt-channels[open] summary { margin-bottom: 0.5rem; }
.cart-alt-channels .btn {
  width: 100%;
  margin-top: 0.4rem;
  font-size: 0.85rem;
}

.product-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0 0.45rem;
}
.product-ma {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy);
  background: rgba(31,78,120,0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.price-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ===== Staff order page (nhan-vien.html) ===== */
.staff-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--navy);
  border-radius: 999px;
}

.staff-pin-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 35, 55, 0.72);
  padding: 1.5rem;
}
.staff-pin-gate[hidden] { display: none !important; }
.staff-pin-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  max-width: 22rem;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.staff-pin-card h2 {
  margin: 0 0 0.35rem;
  color: var(--navy);
  font-size: 1.25rem;
}
.staff-pin-card p { color: var(--text-muted); margin: 0 0 1rem; font-size: 0.9rem; }
.staff-pin-error { color: #b42828; font-size: 0.85rem; margin-top: 0.75rem; }
.staff-pin-error[hidden] { display: none !important; }
body.staff-pin-locked #staff-main { visibility: hidden; }

.staff-layout {
  padding: 1.25rem 0 3rem;
}
.staff-layout-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 1100px) {
  .staff-layout-inner {
    grid-template-columns: 1fr min(420px, 38%);
  }
}

.staff-order-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(31,78,120,0.08);
  padding: 1rem 1rem 1.25rem;
  position: sticky;
  top: 5.5rem;
  max-height: calc(100vh - 6.5rem);
  overflow: auto;
}
.staff-order-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}
.staff-order-header h2 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--navy);
}
.staff-cart-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.staff-order-fields {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}
.staff-order-fields .cart-field { margin: 0; }

.staff-order-table-wrap {
  overflow-x: auto;
  margin-bottom: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.staff-order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.staff-order-table th,
.staff-order-table td {
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
.staff-order-table th {
  background: var(--cream);
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}
.staff-order-table tfoot td {
  border-bottom: none;
  font-weight: 700;
  background: rgba(31,78,120,0.04);
}
.staff-td-ten {
  max-width: 9rem;
  line-height: 1.3;
}
.staff-td-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.staff-total-label { text-align: right !important; }
.staff-total-value {
  color: var(--navy);
  font-size: 0.95rem !important;
  white-space: nowrap;
}
.staff-cart-empty-row td {
  text-align: center;
  color: var(--text-muted);
  padding: 1.25rem 0.75rem;
}
.staff-order-table .qty-control-sm {
  display: inline-flex;
  scale: 0.92;
}
.staff-order-actions .btn { width: 100%; }
.staff-order-actions code {
  font-size: 0.75rem;
  background: rgba(31,78,120,0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

@media (max-width: 1099px) {
  .staff-order-panel {
    position: static;
    max-height: none;
  }
}

/* —— Staff print / PDF slip (Excel «Đơn Đặt Hàng» A–H) —— */
.staff-print-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}
.staff-print-actions .btn {
  width: 100%;
  font-size: 0.82rem;
  padding: 0.55rem 0.4rem;
}
.staff-order-actions .btn-gold { width: 100%; }

.staff-print-slip {
  display: none;
}

@media print {
  @page {
    size: A4;
    margin: 10mm 8mm;
  }

  html, body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
  }

  body.staff-printing * {
    visibility: hidden;
  }
  body.staff-printing .staff-print-slip,
  body.staff-printing .staff-print-slip * {
    visibility: visible;
  }
  body.staff-printing .staff-print-slip {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
  }

  .topbar,
  .site-header,
  .site-footer,
  .page-hero,
  .toolbar,
  .staff-layout,
  .staff-pin-gate,
  .vp-chat-dock,
  .vp-reach,
  #cart-toast,
  .nav-cta {
    display: none !important;
  }
}

.staff-print-slip .slip-inner {
  font-family: "Times New Roman", "Be Vietnam Pro", Times, serif;
  color: #000;
  max-width: 190mm;
  margin: 0 auto;
}
.staff-print-slip .slip-company {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-bottom: 1.5px solid #185C34;
  padding-bottom: 6px;
  margin-bottom: 6px;
}
.staff-print-slip .slip-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}
.staff-print-slip .slip-company-text {
  font-size: 9.5pt;
  line-height: 1.35;
}
.staff-print-slip .slip-company-name {
  font-weight: 700;
  font-size: 11.5pt;
  text-transform: uppercase;
  color: #185C34;
  margin-bottom: 2px;
}
.staff-print-slip .slip-title {
  text-align: center;
  font-size: 18pt;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 8px 0 2px;
  color: #002060;
}
.staff-print-slip .slip-date {
  text-align: center;
  font-size: 10.5pt;
  font-style: italic;
  margin-bottom: 8px;
}
.staff-print-slip .slip-customer-name {
  color: #C00000; /* Excel A5 */
  font-weight: 700;
  font-size: 12pt;
  text-align: center;
}
.staff-print-slip .slip-date {
  color: #002060;
}
.staff-print-slip .slip-intro {
  color: #002060;
}
.staff-print-slip .slip-customer {
  font-size: 10.5pt;
  line-height: 1.45;
  margin-bottom: 4px;
}
.staff-print-slip .slip-receiver-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2px;
}
.staff-print-slip .slip-partner {
  margin-top: 2px;
  font-size: 10pt;
}
.staff-print-slip .slip-intro {
  font-size: 10pt;
  margin: 6px 0 8px;
  font-style: italic;
}
.staff-print-slip .slip-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 9.5pt;
  margin-bottom: 8px;
}
.staff-print-slip .slip-table th,
.staff-print-slip .slip-table td {
  border: 1px solid #333;
  padding: 3px 4px;
  vertical-align: middle;
  word-wrap: break-word;
}
.staff-print-slip .slip-table th {
  background: #0070C0;
  color: #fff;
  font-weight: 700;
  text-align: center;
  font-size: 9pt;
}
.staff-print-slip .slip-table col,
.staff-print-slip .slip-table th:nth-child(1),
.staff-print-slip .slip-table td:nth-child(1) { width: 5%; }
.staff-print-slip .slip-table th:nth-child(2),
.staff-print-slip .slip-table td:nth-child(2) { width: 9%; }
.staff-print-slip .slip-table th:nth-child(3),
.staff-print-slip .slip-table td:nth-child(3) { width: 34%; }
.staff-print-slip .slip-table th:nth-child(4),
.staff-print-slip .slip-table td:nth-child(4) { width: 11%; }
.staff-print-slip .slip-table th:nth-child(5),
.staff-print-slip .slip-table td:nth-child(5) { width: 7%; }
.staff-print-slip .slip-table th:nth-child(6),
.staff-print-slip .slip-table td:nth-child(6) { width: 9%; }
.staff-print-slip .slip-table th:nth-child(7),
.staff-print-slip .slip-table td:nth-child(7) { width: 12%; }
.staff-print-slip .slip-table th:nth-child(8),
.staff-print-slip .slip-table td:nth-child(8) { width: 13%; }
.staff-print-slip .slip-table .c { text-align: center; }
.staff-print-slip .slip-table .r { text-align: right; font-variant-numeric: tabular-nums; }
.staff-print-slip .slip-ten { text-align: left; line-height: 1.25; }
.staff-print-slip .slip-thumb {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.staff-print-slip .slip-thumb-empty {
  color: #888;
  font-size: 9pt;
}
.staff-print-slip .slip-total-label {
  text-align: right !important;
  font-weight: 800;
  background: #0070C0;
  color: #fff;
}
.staff-print-slip .slip-total-value {
  font-weight: 800;
  background: #0070C0;
  color: #fff;
}
.staff-print-slip .slip-notes {
  font-size: 8.5pt;
  line-height: 1.4;
  border: 1px solid #666;
  padding: 6px 8px;
  margin-bottom: 6px;
  white-space: pre-wrap;
}
.staff-print-slip .slip-extra-note,
.staff-print-slip .slip-staff-meta {
  font-size: 8.5pt;
  color: #333;
  margin-bottom: 4px;
}
.staff-print-slip .slip-signs {
  display: flex;
  justify-content: space-around;
  margin-top: 18px;
  page-break-inside: avoid;
}
.staff-print-slip .slip-sign {
  text-align: center;
  min-width: 35%;
}
.staff-print-slip .slip-sign-title {
  font-weight: 700;
  font-size: 11pt;
}
.staff-print-slip .slip-sign-hint {
  font-size: 8.5pt;
  font-style: italic;
  color: #444;
  margin-top: 2px;
  min-height: 48px;
}

/* Khung chat: css/chat-widget.css, do js/chat-widget.js nạp. */
#product-grid { scroll-margin-top: calc(var(--header-h, var(--nav-h)) + 0.75rem); }
/* Off-screen render target for html2pdf download */
.staff-print-slip.staff-pdf-exporting {
  display: block !important;
  position: fixed;
  left: 0;
  top: 0;
  width: 190mm;
  z-index: -1;
  opacity: 1;
  pointer-events: none;
  background: #fff;
  padding: 8mm;
}

.staff-bill-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}
.staff-bill-actions .btn { width: 100%; font-size: 0.82rem; padding: 0.55rem 0.4rem; }
.staff-print-fallback { width: 100%; margin-bottom: 0.45rem; font-size: 0.82rem; }

.staff-bill-sheet {
  position: fixed;
  inset: 0;
  background: rgba(15, 30, 50, 0.45);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.staff-bill-sheet[hidden] { display: none !important; }
.staff-bill-sheet-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.staff-bill-sheet-card h3 { margin: 0 0 0.5rem; color: #002060; }
.staff-bill-sheet-msg { font-size: 0.92rem; color: #333; margin: 0 0 1rem; line-height: 1.45; }
.staff-bill-sheet-actions { display: grid; gap: 0.45rem; }
.staff-bill-sheet-actions .btn { width: 100%; }
.staff-bill-sheet-close {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  color: #666;
  line-height: 1;
}

/* ===== Product image lightbox ===== */
.product-img[data-product-zoom] {
  cursor: zoom-in;
}
.product-img[data-product-zoom]:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: -3px;
}

.product-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 42, 66, 0.62);
  z-index: 11000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.product-lightbox-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.product-lightbox {
  position: fixed;
  z-index: 11010;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -46%) scale(0.98);
  width: min(880px, calc(100vw - 2rem));
  max-height: min(92vh, 860px);
  max-height: min(92dvh, 860px);
  background: var(--white);
  color: var(--text);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(15, 42, 66, 0.35);
  border: 1px solid rgba(201, 162, 39, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.product-lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.product-lightbox-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 2px solid var(--gold);
  border-radius: 10px;
  background: var(--navy);
  color: var(--gold-light);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 42, 66, 0.28);
}
.product-lightbox-close:hover {
  background: var(--navy-dark);
  color: var(--gold);
}
.product-lightbox-close:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

.product-lightbox-scroll {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.85fr);
  max-height: min(92vh, 860px);
  max-height: min(92dvh, 860px);
  overflow: auto;
}

.product-lightbox-media {
  background: linear-gradient(160deg, #faf8f4, #eee9df);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.5rem;
  min-height: 240px;
}
.product-lightbox-media img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}

.product-lightbox-body {
  padding: 1.4rem 1.35rem 1.45rem;
  padding-right: 3.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.product-lightbox-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-deep);
  line-height: 1.35;
  margin: 0.15rem 0 0.35rem;
}
.product-lightbox-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin: 0.15rem 0 0.35rem;
  font-size: 0.9rem;
  color: var(--text);
}
.product-lightbox-meta strong {
  color: var(--navy);
  font-weight: 700;
}
.product-lightbox-meta [hidden] {
  display: none;
}
.product-lightbox-price {
  color: #b42318;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.15rem 0 0.85rem;
}
.product-lightbox-body .product-actions {
  border-top: 1px dashed var(--border);
  padding-top: 0.85rem;
  margin-top: auto;
}
.product-lightbox-body .btn-add-cart {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

body.lightbox-open { overflow: hidden; }

@media (max-width: 720px) {
  .product-lightbox {
    top: 0.5rem;
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
    max-height: calc(100dvh - 1rem);
    border-radius: 14px;
    transform: translate(-50%, 8px) scale(0.98);
  }
  .product-lightbox.open {
    transform: translate(-50%, 0) scale(1);
  }
  .product-lightbox-scroll {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 1rem);
    max-height: calc(100dvh - 1rem);
  }
  .product-lightbox-media {
    padding: 0.85rem 0.85rem 0.5rem;
    min-height: 0;
  }
  .product-lightbox-media img {
    max-height: 60vh;
  }
  .product-lightbox-body {
    padding: 0.85rem 1rem 1.1rem;
  }
  .product-lightbox-title {
    font-size: 1.05rem;
  }
}

/* ===== SEO catalog pages, breadcrumbs, maps, Zalo ===== */
.product-name a { color: inherit; }
.product-name a:hover,
.product-nhom a:hover { text-decoration: underline; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
  font-size: 0.8125rem;
  margin-bottom: 0.85rem;
}
.breadcrumb-dark { color: var(--text-muted); }
.breadcrumb-dark a { color: var(--navy); font-weight: 600; }
.breadcrumb-light { color: rgba(255,255,255,0.78); }
.breadcrumb-light a { color: var(--gold-light); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .product-page .breadcrumb {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }
  .product-page .breadcrumb > a,
  .product-page .breadcrumb > span[aria-hidden="true"] {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .product-page .breadcrumb > span[aria-current="page"] {
    flex: 0 1 auto;
    min-width: 2.5rem;
    max-width: 46%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.catalog-group-links { margin-top: 1rem; }
.catalog-static-groups { margin-bottom: 0.5rem; }
.catalog-static-groups a { text-decoration: none; }

.product-page { padding-top: 1.5rem; }
.product-detail .product-meta-row {
  flex-wrap: wrap;
  justify-content: flex-start;
  row-gap: 0.2rem;
  column-gap: 0.85rem;
}
.product-detail .product-fact {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.product-detail .product-ma {
  margin-left: auto;
}
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 1.5rem;
  padding: 0.75rem;
  overflow: visible;
}
.product-detail:hover {
  transform: none;
  box-shadow: var(--shadow);
}
.product-detail:hover .product-img img { transform: none; }
@media (min-width: 769px) {
  .product-detail {
    grid-template-columns: minmax(240px, 420px) 1fr;
    align-items: start;
  }
}
.product-detail-info { min-width: 0; }
.product-specs {
  display: grid;
  gap: 0.28rem;
  margin: 0.2rem 0 0.85rem;
}
.product-specs > div {
  display: grid;
  grid-template-columns: minmax(6.5rem, 8.25rem) minmax(0, 1fr);
  gap: 0.15rem 0.75rem;
  align-items: baseline;
  padding-bottom: 0.28rem;
  border-bottom: 1px solid var(--border);
}
.product-specs dt {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}
.product-specs dd {
  margin: 0;
  color: var(--navy-deep);
  font-size: 0.9375rem;
  font-weight: 700;
  min-width: 0;
}
.product-specs a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
.product-specs a:hover { text-decoration: underline; }
.product-vat-note {
  margin: -0.2rem 0 0.7rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}
.product-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.15rem 0 0.85rem;
}
.product-keywords .chip {
  text-decoration: none;
}
.product-tabs { margin: 0.15rem 0 0.35rem; }
.product-tablist { display: none; }
.product-tabs.is-ready .product-tablist {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.75rem;
}
.product-tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  min-height: 44px;
  padding: 0.45rem 0.85rem;
  margin-bottom: -1px;
  cursor: pointer;
}
.product-tab.is-active {
  color: var(--navy);
  border-bottom-color: var(--navy);
}
.product-tab:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.product-tab-fallback {
  font-size: 0.95rem;
  margin: 0.55rem 0 0.35rem;
  color: var(--navy);
}
.product-tabs.is-ready .product-tab-fallback { display: none; }
.product-tab-panel { min-width: 0; }
.product-tab-empty {
  margin: 0.2rem 0 0.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.product-desc-source {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.product-desc-source a { color: var(--navy); font-weight: 700; }
.product-related { margin-top: 2.5rem; }
.product-related .section-header { margin-top: 0; }
.product-detail-title {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.3;
  color: var(--navy-deep);
  font-weight: 800;
  margin: 0.15rem 0 0.35rem;
}
.product-detail .product-name,
.product-detail-title {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  min-height: 0;
}
.product-detail-desc {
  margin: 0.8rem 0 0.35rem;
  line-height: 1.55;
}
.product-detail-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.35rem 0 0.25rem;
}
.product-detail .btn-add-cart { width: 100%; }
.product-detail-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.catalog-section .text-center,
.product-detail-cta {
  align-items: center;
}
.catalog-section .text-center .btn { margin: 0.35rem; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-deep);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.map-embed iframe {
  width: 100%;
  height: 340px;
  border: 0;
  background: #d9e2ea;
}
.map-caption {
  padding: 0.9rem 1rem 0.35rem;
  color: rgba(255,255,255,0.88);
  font-size: 0.875rem;
  line-height: 1.55;
}
.map-caption a { color: var(--gold-light); font-weight: 700; }
.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
}
.contact-place {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.storefront-block {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.storefront-block picture { display: block; min-width: 0; max-width: 100%; }
.storefront-block img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}
@media (min-width: 560px) and (max-width: 799px) {
  .storefront-block img {
    max-height: 560px;
    object-fit: contain;
    object-position: center;
    background: var(--cream);
  }
}
.storefront-block figcaption {
  padding: 0.85rem 1rem 1rem;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.5;
}
.footer-storefront {
  display: block;
  max-width: 220px;
  margin: 0 0 0.9rem;
}
.footer-storefront img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.local-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
}
.local-links a { color: var(--navy); font-weight: 700; }
.local-links a:hover { text-decoration: underline; }
.sku-anchor-nav { margin: 1.5rem 0 0.25rem; }
.sku-anchor-nav h2 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.sku-anchor-nav p { margin: 0 0 0.75rem; }
.sku-anchor-nav ul {
  margin: 0;
  padding-left: 1.15rem;
  columns: 1;
}
.sku-anchor-nav li { break-inside: avoid; margin: 0 0 0.28rem; }
.sku-anchor-nav a { color: var(--navy); font-weight: 600; }
@media (min-width: 769px) {
  .sku-anchor-nav ul { columns: 2; column-gap: 1.5rem; }
}
@media (min-width: 1100px) {
  .sku-anchor-nav ul { columns: 3; }
}
.faq-item { border-top: 1px solid #e4ddd2; padding: 0.75rem 0; }
.faq-item summary { cursor: pointer; font-weight: 700; }
.faq-item p { margin: 0.45rem 0 0; }

/* Gọi + Zalo: sticky bar on small screens, floating buttons on desktop. */
.vp-reach {
  position: fixed;
  z-index: 90;
  display: flex;
}
.vp-reach a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-weight: 800;
  text-decoration: none;
  min-height: 48px;
}
.vp-reach a.vp-reach-call {
  background: var(--navy);
  color: #fff;
  font-weight: 800;
}
.vp-reach a.vp-reach-zalo { background: #0068FF; color: #fff; font-weight: 800; }
.vp-reach a.vp-reach-cskh {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  min-height: 44px;
}
.vp-reach-role { font-weight: 600; }
.vp-reach-num { font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  :root { --header-h: 124px; }
}
@media (max-width: 860px) {
  .vp-reach {
    left: 0;
    right: 0;
    bottom: 0;
    flex-wrap: wrap;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(15, 42, 66, 0.12);
    padding-right: 58px;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .vp-reach a {
    flex: 1 1 auto;
    border-radius: 0;
    padding: 0.75rem 0.7rem;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.2;
  }
  .vp-reach a.vp-reach-call { order: 1; flex: 1 1 auto; font-size: 14px; font-weight: 800; min-height: 48px; }
  .vp-reach a.vp-reach-zalo { order: 2; flex: 0 0 auto; padding-inline: 1rem; }
  .vp-reach a.vp-reach-cskh {
    order: 3;
    flex: 1 1 50%;
    max-width: 50%;
    min-height: 44px;
    padding: 0.3rem 0.45rem;
    font-size: 12px;
    font-weight: 600;
    flex-direction: column;
    gap: 0;
    white-space: normal;
    line-height: 1.15;
  }
  .vp-reach-role { font-size: 11px; font-weight: 600; }
  .vp-reach-num { font-size: 13px; font-weight: 700; }
  body { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
  .cart-toast { bottom: calc(116px + env(safe-area-inset-bottom)); }
}
@media (min-width: 861px) {
  .vp-reach {
    left: 1rem;
    bottom: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }
  .vp-reach a {
    border-radius: 999px;
    padding: 0.7rem 1.05rem;
    box-shadow: 0 8px 24px rgba(15, 40, 70, 0.28);
  }
  .vp-reach a.vp-reach-call { font-size: 15px; font-weight: 800; padding: 0.78rem 1.15rem; min-height: 48px; }
  .vp-reach a.vp-reach-cskh {
    font-size: 13px;
    font-weight: 600;
    min-height: 44px;
    padding: 0.38rem 0.85rem;
    gap: 0.35rem;
  }
  .vp-reach-role { font-size: 12px; }
  .vp-reach-num { font-size: 13px; }
}

.nav-cskh-group {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-cskh {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.15;
  padding: 0.18rem 0.45rem;
  border-radius: 10px;
  border: 1.5px solid var(--navy);
  background: #fff;
  color: var(--navy);
  text-decoration: none;
}
.nav-cskh-role {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--navy-dark);
}
.nav-cskh-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.nav-cta .nav-hotline { font-weight: 800; }
@media (min-width: 1240px) {
  .site-header .logo {
    flex: 0 1 200px;
    min-width: 150px;
    max-width: 230px;
  }
  .site-header .logo-text { min-width: 0; }
  .site-header .nav-links,
  .site-header .nav-cta { flex-shrink: 0; }
  .site-header .nav-links { flex-wrap: nowrap; }
  .site-header .nav-links a {
    padding: 0.4rem 0.42rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }
  .site-header .nav-search {
    flex: 1 1 140px;
    max-width: 200px;
    min-width: 120px;
    margin-inline: 0.35rem;
  }
  .site-header .logo-text small {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
  }
  .nav-cta { gap: 0.25rem; }
  .nav-cskh { padding: 0.1rem 0.32rem; }
  .nav-cskh-role { font-size: 0.6rem; }
  .nav-cskh-num { font-size: 0.72rem; }
  .site-header .nav { gap: 0.55rem; }
}
@media (min-width: 861px) and (max-width: 1239px) {
  .site-header .logo { max-width: min(280px, 36vw); min-width: 0; }
  .site-header .logo-text { min-width: 0; }
  .site-header .logo-text small {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
@media (max-width: 1239px) {
  .nav:not(.open) .nav-cskh-group { display: none; }
}
@media (max-width: 860px) {
  .nav.open .nav-cskh-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.4rem;
  }
  .nav.open .nav-cskh {
    width: 100%;
    min-height: 44px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.8rem;
  }
  .nav.open .nav-cskh-role { font-size: 0.82rem; }
  .nav.open .nav-cskh-num { font-size: 0.95rem; }
}

.quote-form {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.quote-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--navy);
}
.quote-form input,
.quote-form textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-weight: 500;
  color: var(--text);
  background: #fff;
}
.quote-form textarea { min-height: 96px; resize: vertical; }
.quote-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.quote-status { font-size: 0.875rem; color: var(--text-muted); min-height: 1.2em; }

/* ===== Lĩnh vực tiles, mega menu, search suggest ===== */
.nav { position: relative; }
.nav-item.has-mega { position: relative; }
.nav-products::after {
  content: "";
  display: inline-block;
  margin-left: 0.35rem;
  border: 4px solid transparent;
  border-top-color: currentColor;
  vertical-align: middle;
  transform: translateY(1px);
}
.mega-panel {
  display: none;
  position: absolute;
  z-index: 140;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, 78vw);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.1rem 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem 1.25rem;
}
.mega-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.nav-item.has-mega:hover > .mega-panel,
.nav-item.has-mega:focus-within > .mega-panel {
  display: grid;
}
.mega-col { min-width: 0; }
.mega-l1 {
  display: block;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.mega-l1:hover { color: var(--gold-dark); }
.mega-l2 { display: flex; flex-direction: column; gap: 0.15rem; }
.mega-l2 a {
  padding: 0.28rem 0.15rem;
  border-radius: 6px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
}
.mega-l2 a:hover { color: var(--navy); background: var(--cream); }
.mega-all {
  grid-column: 1 / -1;
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  font-weight: 700;
  color: var(--navy);
}
.lv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 800px) {
  .lv-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
.lv-tile {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}
.lv-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.lv-tile-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 108px 108px;
  gap: 3px;
  background: var(--navy-deep);
  min-height: 220px;
}
.lv-tile-media.is-duo { grid-template-rows: 220px; }
.lv-tile-media.is-single { grid-template-columns: 1fr; grid-template-rows: 220px; }
.lv-tile-media img { width: 100%; height: 100%; object-fit: cover; }
.lv-tile-body { padding: 1rem 1.1rem 1.15rem; }
.lv-kicker {
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.lv-tile-body h3 {
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.lv-tile-sub { color: var(--navy); font-weight: 700; margin: 0.35rem 0 0.2rem; }
.lv-tile-desc { color: var(--text-muted); font-size: 0.9rem; }
.lv-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.lv-group-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.lv-group-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.lv-group-media { background: var(--cream-dark); aspect-ratio: 4 / 3; }
.lv-group-media img { width: 100%; height: 100%; object-fit: cover; }
.lv-group-body { padding: 0.85rem 0.95rem 1rem; }
.lv-group-body h2 { color: var(--navy); font-size: 1.05rem; font-weight: 800; }
.lv-group-body p { color: var(--text-muted); font-size: 0.85rem; }
.lv-placeholder {
  border: 1px dashed var(--gold);
  background: #fff;
  border-radius: 16px;
  padding: 1.35rem 1.2rem;
  margin: 1rem 0;
  text-align: center;
}
.lv-placeholder h2 { color: var(--navy); margin-bottom: 0.35rem; }
.lv-placeholder p { color: var(--text-muted); }
.lv-placeholder-actions { justify-content: center; margin-top: 0.9rem; }
.product-badge {
  display: inline-block;
  background: rgba(31, 78, 120, 0.08);
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
}
.product-badge a { color: inherit; }
.nav-search.has-suggest { position: relative; }
.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(420px, 86vw);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 220;
  padding: 0.35rem;
  max-height: 70vh;
  overflow: auto;
}
.search-suggest a {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  color: var(--text);
}
.search-suggest a:hover,
.search-suggest a:focus { background: var(--cream); }
.search-suggest .sg-meta {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
}
.search-suggest .sg-all {
  font-weight: 700;
  color: var(--navy);
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
}
.search-suggest .sg-empty {
  padding: 0.55rem 0.65rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.search-suggest a.sg-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.search-suggest .sg-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--cream);
  flex: none;
}
.search-suggest .sg-copy { flex: 1; min-width: 0; }
.search-suggest .sg-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-suggest .sg-price {
  flex: none;
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 800;
}
.search-suggest .sg-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem 0.15rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
}
.search-suggest .sg-clear {
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.search-suggest [role="option"].is-active { background: var(--cream); }
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}
.active-filters[hidden] { display: none; }
.recent-strip {
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 1.75rem;
}
.recent-strip h2 {
  margin: 0 0 0.75rem;
  color: var(--navy);
  font-size: 1.05rem;
}
.recent-row {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.25rem;
}
.recent-card {
  flex: 0 0 148px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  color: inherit;
}
.recent-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  background: var(--cream-dark);
}
.recent-name,
.recent-price {
  display: block;
  padding: 0 0.55rem;
}
.recent-name {
  padding-top: 0.45rem;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recent-price {
  padding-bottom: 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
}
.scroll-top {
  position: fixed;
  right: calc(1rem + 8px);
  bottom: calc(1rem + 72px);
  z-index: 9980;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(15, 40, 70, 0.28);
  cursor: pointer;
}
.scroll-top[hidden] { display: none; }
@media (max-width: 860px) {
  .scroll-top { display: none; }
}
.lv-row { margin-top: 0.35rem; }
@media (max-width: 860px) {
  .nav-item.has-mega { width: 100%; }
  .nav-item.has-mega:hover > .mega-panel,
  .nav-item.has-mega:focus-within > .mega-panel { display: none; }
  .nav-item.has-mega.is-open > .mega-panel {
    display: grid;
    position: static;
    transform: none;
    width: auto;
    box-shadow: none;
    border: 0;
    padding: 0.15rem 0 0.35rem 0.35rem;
    background: transparent;
  }
  .mega-l2 { display: none; }
  .mega-col.is-open .mega-l2 { display: flex; }
  .mega-all { padding-left: 0.15rem; }
  .search-suggest { width: 100%; }
}

/* Catalog: mobile giữ sheet PR #23. Desktop/tablet: sidebar lĩnh vực → nhóm, thanh kết quả một dòng. */
@media (min-width: 769px) {
  body.page-catalog .cat-rail { display: none; }
  body.page-catalog .catalog-layout {
    display: grid;
    grid-template-columns: 228px minmax(0, 1fr);
    column-gap: 1rem;
    align-items: start;
  }
  body.page-catalog .catalog-side {
    position: sticky;
    top: calc(var(--header-h, 72px) + 8px);
    max-height: calc(100dvh - var(--header-h, 72px) - 16px);
    overflow: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.7rem 0.65rem 0.8rem;
    scrollbar-width: thin;
  }
  body.page-catalog .side-title {
    margin: 0.7rem 0.2rem 0.2rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--navy);
  }
  body.page-catalog .side-block:first-child .side-title { margin-top: 0.1rem; }
  body.page-catalog .catalog-side .field-label { display: none; }
  body.page-catalog .catalog-side .chip-row {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.1rem;
    margin-top: 0.15rem;
  }
  body.page-catalog .catalog-side .chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    text-align: left;
    border-radius: 8px;
    border-color: transparent;
    background: transparent;
    padding: 0.32rem 0.45rem;
    min-height: 32px;
  }
  body.page-catalog .catalog-side .chip:hover { background: var(--cream); }
  body.page-catalog .catalog-side .chip.active { background: var(--navy); color: #fff; }
  body.page-catalog .catalog-side .chip-count {
    flex: 0 0 auto;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
  }
  body.page-catalog .catalog-side .chip.active .chip-count { color: rgba(255,255,255,0.88); }
  body.page-catalog .catalog-main .toolbar > .container,
  body.page-catalog .catalog-main .catalog-section > .container {
    width: 100%;
    max-width: none;
    margin: 0;
  }
  body.page-catalog .toolbar {
    position: sticky;
    top: var(--header-h, 72px);
    z-index: 40;
    padding: 0;
    background: #fff;
    box-shadow: none;
  }
  body.page-catalog .toolbar > .container {
    display: flex;
    align-items: center;
    min-height: 44px;
    max-height: 56px;
    padding: 6px 0;
    overflow: hidden;
  }
  body.page-catalog .toolbar .search-wrap { display: none; }
  body.page-catalog .toolbar-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
  }
  body.page-catalog .toolbar .field-label {
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0 auto;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.78rem;
    white-space: nowrap;
  }
  body.page-catalog .toolbar .filter-select {
    min-width: 0;
    width: auto;
    height: 32px;
    padding: 0 1.5rem 0 0.55rem;
    border-radius: 8px;
  }
  body.page-catalog #result-count {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.875rem;
  }
  body.page-catalog #active-filters[hidden] { display: none !important; }
  body.page-catalog #active-filters:not([hidden]) {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0.35rem;
  }
  body.page-catalog #active-filters::-webkit-scrollbar { display: none; }
  body.page-catalog #active-filters .chip {
    flex: 0 0 auto;
    padding: 0.18rem 0.55rem;
    white-space: nowrap;
  }
  body.page-catalog .catalog-section { padding: 0.65rem 0 2.5rem; }
  body.page-catalog .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
    gap: 0.8rem;
  }
  body.page-catalog #product-grid {
    scroll-margin-top: calc(var(--header-h, 72px) + 56px);
  }
}
@media (min-width: 769px) and (max-height: 860px) {
  body.page-catalog .page-hero { padding: 0.4rem 0 0.35rem; }
  body.page-catalog .page-hero p { display: none; }
  body.page-catalog .page-hero h1 { font-size: 1.15rem; line-height: 1.2; margin: 0; }
  body.page-catalog .page-hero .breadcrumb { margin-bottom: 0.15rem; font-size: 0.75rem; }
  body.page-catalog .catalog-section { padding-top: 0.45rem; }
  body.page-catalog .product-body { padding: 0.5rem 0.6rem 0.6rem; gap: 0.15rem; }
  body.page-catalog .product-name { min-height: 2.4em; font-size: 0.86rem; }
  body.page-catalog .product-meta-row { margin: 0; }
  body.page-catalog .product-dvt { margin: 0; }
  body.page-catalog .product-price { margin-bottom: 0; padding-top: 0.1rem; font-size: 1rem; }
  body.page-catalog .product-actions { padding-top: 0.35rem; margin-top: 0.15rem; gap: 0.3rem; }
  body.page-catalog .product-badge {
    margin-bottom: 0;
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.page-catalog .qty-btn { width: 30px; height: 30px; }
  body.page-catalog .qty-input { width: 36px; height: 30px; }
  body.page-catalog .btn-add-cart { padding: 0.4rem 0.45rem; min-height: 32px; }
}
.filter-open { display: none; }
.filter-sheet[hidden] { display: none !important; }
.filter-sheet {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.filter-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(15, 42, 66, 0.48);
  cursor: pointer;
}
.filter-sheet-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: min(78dvh, 640px);
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -12px 40px rgba(15, 42, 66, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}
.filter-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex: 0 0 auto;
  padding: 0.85rem 0.9rem 0.55rem 1rem;
  border-bottom: 1px solid var(--border);
}
.filter-sheet-head h2 {
  margin: 0;
  font-size: 1rem;
  color: var(--navy);
  font-weight: 800;
}
.filter-sheet-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.filter-sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.85rem 1rem 0.35rem;
  overflow: auto;
}
.filter-sheet-body .field-label { margin-bottom: 0.75rem; }
.filter-sheet-body .filter-select { width: 100%; min-width: 0; }
.filter-sheet-body .chip-row { margin-top: 0.15rem; }
.filter-sheet-foot {
  flex: 0 0 auto;
  padding: 0.65rem 1rem 0.85rem;
  border-top: 1px solid var(--border);
}
.filter-sheet-foot .btn { width: 100%; }
.filter-open {
  align-items: center;
  gap: 0.28rem;
  border: 1px solid var(--navy);
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1;
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  min-height: 32px;
  cursor: pointer;
  white-space: nowrap;
}
.filter-open.is-on { background: var(--navy); color: #fff; }
.filter-open-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.68rem;
}
.filter-open:focus-visible,
.filter-sheet-close:focus-visible,
.filter-sheet .chip:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
}
body.filter-sheet-open { overflow: hidden; }
@media (min-width: 769px) {
  .filter-sheet { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .filter-sheet-panel { animation: none; }
}
@media (max-width: 768px) {
  body.page-catalog .catalog-layout.container { width: 100%; max-width: none; }
  body.page-catalog .catalog-side { display: none !important; }
  body.page-catalog #lv-row .chip-count { display: none; }
  body.page-catalog .filter-sheet .chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }
  body.page-catalog { scroll-padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
  body.page-catalog .topbar { display: none; }
  body.page-catalog .cat-rail { display: none; }
  body.page-catalog .site-header .nav {
    padding: 0.2rem 0 0.1rem;
    gap: 0.35rem;
    min-height: 0;
  }
  body.page-catalog .logo-img { width: 36px; height: 36px; }
  body.page-catalog .logo-text { font-size: 0.95rem; }
  body.page-catalog .nav-toggle { width: 40px; height: 40px; }
  body.page-catalog .nav:not(.open) .nav-cta {
    top: 0.28rem;
    transform: none;
  }
  body.page-catalog .nav-search {
    margin: 0 0 0.15rem;
    padding: 0.04rem 0.08rem 0.04rem 0.7rem;
  }
  body.page-catalog .nav-search input {
    font-size: 16px;
    padding: 0.28rem 0;
  }
  body.page-catalog .nav-search button { width: 32px; height: 32px; }
  body.page-catalog .page-hero { padding: 0.4rem 0 0.35rem; }
  body.page-catalog .page-hero .breadcrumb {
    margin-bottom: 0.12rem;
    font-size: 0.7rem;
  }
  body.page-catalog .page-hero h1 {
    font-size: 1rem;
    line-height: 1.2;
    margin: 0;
  }
  body.page-catalog .page-hero p { display: none; }
  body.page-catalog .toolbar {
    padding: 0.3rem 0 0.35rem;
    top: var(--header-h, 92px);
    z-index: 80;
  }
  body.page-catalog .search-suggest.catalog-suggest-floating {
    position: fixed;
    top: calc(var(--catalog-stack-b, 220px) + 6px);
    left: 12px;
    right: 12px;
    width: auto;
    max-height: min(280px, 42vh);
    z-index: 70;
  }
  body.page-catalog .toolbar > .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0.4rem;
    row-gap: 0;
  }
  body.page-catalog .toolbar-inner { display: contents; }
  body.page-catalog .toolbar .search-wrap,
  body.page-catalog .toolbar .field-label,
  body.page-catalog .toolbar #chip-row { display: none; }
  body.page-catalog .toolbar > .container::after {
    content: "";
    order: 3;
    flex: 0 0 100%;
    height: 0;
  }
  body.page-catalog #lv-row {
    order: 1;
    flex: 1 1 0;
    min-width: 0;
    margin: 0 0 0.28rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.35rem;
  }
  body.page-catalog #lv-row::-webkit-scrollbar { display: none; }
  body.page-catalog #lv-row .chip {
    flex: 0 0 auto;
    padding: 0.28rem 0.68rem;
    font-size: 0.75rem;
  }
  body.page-catalog .filter-open {
    display: inline-flex;
    order: 2;
    margin: 0 0 0.28rem;
  }
  body.page-catalog #result-count {
    order: 4;
    flex: 0 0 auto;
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.2;
    white-space: nowrap;
  }
  body.page-catalog #active-filters[hidden] { display: none !important; }
  body.page-catalog #active-filters:not([hidden]) {
    order: 4;
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0.3rem;
  }
  body.page-catalog #active-filters::-webkit-scrollbar { display: none; }
  body.page-catalog #active-filters .chip {
    flex: 0 0 auto;
    padding: 0.1rem 0.45rem;
    font-size: 0.7rem;
  }
  body.page-catalog .filter-sheet .field-label { display: flex; }
  body.page-catalog .filter-sheet #chip-row {
    display: flex;
    flex-wrap: wrap;
    margin-top: 0.2rem;
  }
  body.page-catalog .filter-sheet .chip { min-height: 36px; }
  body.page-catalog .catalog-section { padding: 0.45rem 0 1rem; }
  body.page-catalog .product-grid { gap: 0.55rem; }
  body.page-catalog .product-body {
    padding: 0.4rem 0.45rem 0.5rem;
    gap: 0.15rem;
  }
  body.page-catalog .product-badge {
    margin-bottom: 0.1rem;
    font-size: 0.62rem;
    padding: 0.12rem 0.4rem;
  }
  body.page-catalog .product-name {
    font-size: 0.78rem;
    line-height: 1.3;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  body.page-catalog .product-meta-row { margin: 0; }
  body.page-catalog .product-dvt { font-size: 0.68rem; margin: 0; }
  body.page-catalog .product-ma { font-size: 0.66rem; }
  body.page-catalog .product-price {
    font-size: 0.92rem;
    padding-top: 0.1rem;
    margin-bottom: 0;
  }
  body.page-catalog .product-img img { padding: 0.35rem; }
  body.page-catalog .product-actions {
    gap: 0.3rem;
    margin-top: 0.25rem;
    padding-top: 0.35rem;
  }
  body.page-catalog .qty-btn { width: 32px; height: 32px; }
  body.page-catalog .qty-input { width: 36px; height: 32px; }
  body.page-catalog .btn-add-cart {
    padding: 0.38rem 0.4rem;
    font-size: 0.75rem;
    min-height: 32px;
  }
  body.page-catalog #product-grid {
    scroll-margin-top: calc(var(--header-h, 92px) + 4.5rem);
    scroll-margin-bottom: calc(72px + env(safe-area-inset-bottom));
  }
}

/* Hàng chip nhóm: một dòng cuộn. Sidebar lọc catalog (PR #24) không nằm trong khối này. */
.toolbar:has(.catalog-group-links) {
  padding: 0.22rem 0;
}
.toolbar .catalog-group-links,
.hero-quick,
.catalog-section > .container > .chip-row {
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-top: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.toolbar .catalog-group-links::-webkit-scrollbar,
.hero-quick::-webkit-scrollbar,
.catalog-section > .container > .chip-row::-webkit-scrollbar { display: none; }
.toolbar .catalog-group-links > .chip,
.hero-quick > a,
.catalog-section > .container > .chip-row > .chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  white-space: nowrap;
}
.chip-rail {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  min-width: 0;
  width: 100%;
}
.chip-rail-scroll {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.chip-rail-scroll::-webkit-scrollbar { display: none; }
.chip-rail-scroll > .chip-rail-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  margin: 0;
  width: max-content;
  max-width: none;
  overflow: visible;
}
.chip-rail-scroll .chip,
.chip-rail-scroll a {
  scroll-snap-align: start;
}
.chip-rail.is-fade-right .chip-rail-scroll {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 1.75rem), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 1.75rem), transparent);
}
.chip-rail.is-fade-left .chip-rail-scroll {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.75rem);
  mask-image: linear-gradient(90deg, transparent, #000 1.75rem);
}
.chip-rail.is-fade-left.is-fade-right .chip-rail-scroll {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.75rem, #000 calc(100% - 1.75rem), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 1.75rem, #000 calc(100% - 1.75rem), transparent);
}
.chip-rail-arrow,
.chip-rail-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  padding: 0;
}
.chip-rail-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}
.chip-rail-arrow:focus-visible,
.chip-rail-toggle:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
}
.chip-rail.is-collapsed .chip-rail-scroll,
.chip-rail.is-collapsed .chip-rail-arrow { display: none; }
.chip-rail.is-collapsed { justify-content: flex-end; }
.chip-rail.is-scroll-hidden { display: none; }
.toolbar:not(:has(.toolbar-inner)):has(.chip-rail.is-scroll-hidden) {
  display: none;
}
.cat-rail.chip-rail {
  position: sticky;
  top: var(--header-h, var(--nav-h));
  z-index: 55;
  background: #fff;
  padding: 0.2rem 0.55rem;
  gap: 0.28rem;
}
.cat-rail.chip-rail .container {
  width: max-content;
  max-width: none;
  margin: 0;
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
  overflow: visible;
}
.hero .chip-rail { margin-bottom: 1.15rem; max-width: 100%; }
.hero .chip-rail .hero-quick { margin-bottom: 0; }
.hero .chip-rail-arrow,
.hero .chip-rail-toggle {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.chip-rail-toggle-lv { display: none; }
@media (max-width: 768px) {
  .chip-rail-arrow { display: none !important; }
  .chip-rail .chip,
  .toolbar .catalog-group-links > .chip {
    padding: 0.26rem 0.66rem;
    font-size: 0.75rem;
  }
  body:has(.catalog-group-links) .topbar { display: none; }
  body:has(.catalog-group-links) .page-hero { padding: 0.4rem 0 0.28rem; }
  body:has(.catalog-group-links) .page-hero p { display: none; }
  body:has(.catalog-group-links) .page-hero h1 {
    font-size: 1.02rem;
    line-height: 1.2;
    margin: 0;
  }
  body:has(.catalog-group-links) .page-hero .breadcrumb {
    margin-bottom: 0.1rem;
    font-size: 0.7rem;
  }
  body:has(.catalog-group-links) .site-header .nav {
    padding: 0.15rem 0 0.02rem;
    gap: 0.3rem;
  }
  body:has(.catalog-group-links) .logo-img { width: 34px; height: 34px; }
  body:has(.catalog-group-links) .logo-text { font-size: 0.92rem; }
  body:has(.catalog-group-links) .nav-toggle { width: 38px; height: 38px; }
  body:has(.catalog-group-links) .nav-search {
    margin: 0 0 0.08rem;
    padding: 0.02rem 0.06rem 0.02rem 0.65rem;
  }
  body:has(.catalog-group-links) .nav-search input {
    font-size: 16px;
    padding: 0.22rem 0;
  }
  body:has(.catalog-group-links) .nav-search button { width: 30px; height: 30px; }
  body.page-catalog #lv-row.chip-scroll-row {
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
  }
  body.page-catalog #lv-row .chip { scroll-snap-align: start; }
  body.page-catalog #lv-row.is-fade-right {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 1.4rem), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 1.4rem), transparent);
  }
  body.page-catalog #lv-row.is-fade-left {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.4rem);
    mask-image: linear-gradient(90deg, transparent, #000 1.4rem);
  }
  body.page-catalog #lv-row.is-fade-left.is-fade-right {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.4rem, #000 calc(100% - 1.4rem), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 1.4rem, #000 calc(100% - 1.4rem), transparent);
  }
  body.page-catalog.vp-chips-collapsed #lv-row,
  body.page-catalog.vp-chips-scrollhide #lv-row { display: none !important; }
  body.page-catalog.vp-chips-collapsed .toolbar > .container::after,
  body.page-catalog.vp-chips-scrollhide .toolbar > .container::after { display: none; }
  body.page-catalog .chip-rail-toggle-lv {
    display: inline-flex;
    order: 2;
    margin: 0 0 0.2rem;
  }
  body.page-catalog .filter-open { order: 3; }
  body.page-catalog.vp-chips-scrollhide .chip-rail-toggle-lv { display: none !important; }
  body.page-catalog.vp-chips-collapsed .chip-rail-toggle-lv { display: inline-flex !important; }
}
@media (min-width: 769px) {
  body.page-catalog .catalog-side .chip-row {
    overflow: visible;
  }
}

/* ===== PWA: banner cài, thanh app, trang /app, mất mạng ===== */
.vp-install,
.vp-order-hold {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.55rem 1rem;
  padding-left: calc(1rem + env(safe-area-inset-left));
  padding-right: calc(1rem + env(safe-area-inset-right));
  background: var(--navy-deep);
  color: #fff;
}
.vp-install[hidden],
.vp-order-hold[hidden],
.vp-install [hidden] { display: none !important; }
.vp-install p,
.vp-order-hold p { margin: 0; flex: 1 1 14rem; font-size: 0.92rem; line-height: 1.35; }
.vp-install-help { color: var(--gold-light); font-weight: 700; text-decoration: underline; }
.vp-install-x {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}
.vp-tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 130;
  background: #fff;
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  box-shadow: 0 -8px 24px rgba(15, 42, 66, 0.08);
}
html.vp-standalone .vp-tabbar { display: flex; }
.vp-tabbar a,
.vp-tabbar button {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-height: 56px;
  padding: 0.3rem 0.15rem 0.4rem;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
}
.vp-tabbar a[aria-current="page"],
.vp-tabbar a:hover { color: var(--navy); }
.vp-tabbar svg { width: 22px; height: 22px; fill: currentColor; }
.vp-tab-badge {
  position: absolute;
  top: 0.2rem;
  right: calc(50% - 1.35rem);
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.65rem;
  line-height: 1rem;
  text-align: center;
}
html.vp-standalone { background: var(--navy-deep); }
html.vp-standalone body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
html.vp-standalone .scroll-top { bottom: calc(58px + 1rem + env(safe-area-inset-bottom)); }
@media (max-width: 860px) {
  html.vp-standalone .vp-reach { bottom: calc(58px + env(safe-area-inset-bottom)); }
  html.vp-standalone body { padding-bottom: calc(166px + env(safe-area-inset-bottom)); }
  html.vp-standalone .cart-toast { bottom: calc(174px + env(safe-area-inset-bottom)); }
}
@media (display-mode: standalone) {
  .vp-tabbar { display: flex; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
}
@media (display-mode: standalone) and (max-width: 860px) {
  .vp-reach { bottom: calc(58px + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(166px + env(safe-area-inset-bottom)); }
  .cart-toast { bottom: calc(174px + env(safe-area-inset-bottom)); }
}
.pwa-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  gap: 1.5rem;
  align-items: start;
}
.pwa-steps { display: grid; gap: 1rem; }
.pwa-step,
.pwa-qr,
.pwa-offline {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}
.pwa-step ol { margin: 0.45rem 0 0 1.15rem; }
.pwa-step li { margin: 0.28rem 0; }
.pwa-qr { text-align: center; }
.pwa-qr img { width: min(100%, 280px); height: auto; margin: 0 auto 0.75rem; }
.pwa-qr figcaption { color: var(--text-muted); font-size: 0.92rem; }
.pwa-offline-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; }
@media (max-width: 800px) {
  .pwa-guide { grid-template-columns: 1fr; }
}
@media print {
  body:has(.pwa-guide) .topbar,
  body:has(.pwa-guide) .site-header,
  body:has(.pwa-guide) .site-footer,
  body:has(.pwa-guide) .vp-reach,
  body:has(.pwa-guide) .vp-install,
  body:has(.pwa-guide) .vp-tabbar,
  body:has(.pwa-guide) .vp-chat-dock { display: none !important; }
  body:has(.pwa-guide) { padding: 0; background: #fff; }
  body:has(.pwa-guide) .pwa-qr { border-color: #ccc; }
}
