/* ==========================================================================
   THIẾT BỊ ĐIỆN NHẬT TRUNG — Giao diện phân phối thiết bị điện chuẩn
   Màu chính: Xanh #0052A5 • Điểm nhấn: Đỏ #E32626 • Zalo #0068FF
   ========================================================================== */

:root {
  color-scheme: light;
  --primary: #0052a5;
  --primary-dark: #003e7e;
  --primary-soft: #eef5fc;
  --primary-fill: var(--primary);
  --primary-fill-hover: var(--primary-dark);
  --nav-bg: var(--primary-fill);
  --red: #e32626;
  --red-dark: #c41d1d;
  --red-fill: var(--red);
  --zalo: #0068ff;
  --price: #d62828;
  --price-fill: var(--price);
  --text: #111827;
  --text-2: #374151;
  --muted: #64748b;
  --border: #e2e8f0;
  --line: #eef2f6;
  --bg: #f5f7fa;
  --page: #fff;
  --surface: #fff;
  --radius: 6px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --primary: #8cc4ff;
  --primary-dark: #c0ddfa;
  --primary-soft: #203854;
  --primary-fill: #205b9d;
  --primary-fill-hover: #2867aa;
  --nav-bg: #183551;
  --red: #ff919d;
  --red-dark: #a72130;
  --red-fill: #bd2d3a;
  --price: #ff939a;
  --price-fill: #b82a34;
  --text: #f2f6fc;
  --text-2: #d1dceb;
  --muted: #a4b5cc;
  --border: #354760;
  --line: #2a3a50;
  --bg: #141e2b;
  --bg-soft: #121b27;
  --page: #101722;
  --surface: #192433;
  --soft-background: #1e2d40;
  --tinted-border: #3b526e;
  --error-bg: #3d242c;
  --error-border: #754450;
  --warning-bg: #412f18;
  --warning-text: #ffdb96;
  --stock-color: #8cdda9;
  --stock-warning: #ffd18b;
  --shopee-color: #ffa38f;
  --shopee-hover: #3a272a;
  --gallery-control: var(--surface);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 132px; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.58;
  color: var(--text);
  background: var(--page);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; font-size: 14px; font-weight: 600; line-height: 1.2;
  border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-md { padding: 10px 18px; }
.btn-lg { padding: 12px 22px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn-zalo { background: var(--zalo); color: #fff; }
.btn-zalo:hover { background: #0055d4; }
.btn-primary, .btn-amber { background: var(--primary-fill); color: #fff; }
.btn-primary:hover, .btn-amber:hover { background: var(--primary-fill-hover); }
.btn-outline, .btn-outline-dark { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-outline:hover, .btn-outline-dark:hover { border-color: var(--primary); color: var(--primary); }
.btn-shopee-outline { background: var(--surface); border-color: var(--shopee-color, #ee4d2d); color: var(--shopee-color, #ee4d2d); }
.btn-shopee-outline:hover { background: var(--shopee-hover, #fff4f1); }

/* ---------- Top Header Bar (Logo + Search + Zalo) ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--surface); box-shadow: 0 2px 10px rgba(15, 23, 42, .06); }
.header-top { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-top-inner { display: flex; align-items: center; gap: 18px; height: 80px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-wordmark { height: 50px; width: auto; display: block; }
.brand-wordmark-dark { display: none; }
:root[data-theme="dark"] .brand-wordmark:not(.brand-wordmark-dark) { display: none; }
:root[data-theme="dark"] .brand-wordmark-dark { display: block; }

.header-search-wrap { position: relative; display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; max-width: 600px; margin-left: auto; }
.header-search-form {
  display: flex; align-items: center; flex: 1; min-width: 0; min-height: 44px; padding-left: 14px;
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 8px;
  transition: border-color .15s, background .15s;
}
.header-search-form:focus-within { background: var(--surface); border-color: var(--primary); }
.hs-icon { color: var(--muted); flex-shrink: 0; }
.header-search-form input { flex: 1; min-width: 0; padding: 10px 11px; border: 0; outline: 0; background: transparent; font-size: 14.5px; }
.hs-submit-btn {
  align-self: stretch; padding: 0 20px; border: 0; border-radius: 0 6px 6px 0;
  background: var(--primary-fill); color: #fff; font-size: 14.5px; font-weight: 600; cursor: pointer;
}
.hs-submit-btn:hover { background: var(--primary-fill-hover); }
.theme-toggle {
  display: grid; place-items: center; flex: 0 0 44px; height: 44px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--primary); cursor: pointer;
}
.theme-toggle:hover { border-color: var(--primary); background: var(--primary-soft); }
.theme-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.theme-icon-sun, :root[data-theme="dark"] .theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-icon-sun { display: block; }
:root[data-theme="dark"] :is(input, textarea)::placeholder { color: var(--muted); }
:root[data-theme="dark"] :is(.pd-qty-stepper input, .sr-price-custom input) { background: var(--bg); }
.header-top-actions { flex-shrink: 0; }

/* Search suggestions */
.search-suggest-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 90;
  max-height: 70vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(16, 24, 40, .14);
}
.ss-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ss-item:hover { background: var(--bg); }
.ss-item .photo-preview { flex: 0 0 44px; }
.ss-item img { width: 44px; height: 44px; flex-shrink: 0; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: 4px; }
.ss-item-info { min-width: 0; }
.ss-item-name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-item-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--muted); }
.ss-brand { color: var(--primary); font-weight: 600; }
.ss-price { color: var(--price); }
.ss-empty { padding: 14px; font-size: 14px; color: var(--muted); }
.ss-empty a { color: var(--zalo); font-weight: 600; }
:root[data-theme="dark"] .ss-empty a { color: var(--primary); }
.ss-footer-btn {
  display: block; width: 100%; padding: 11px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--primary); font-size: 14px; font-weight: 600; text-align: center;
}
.ss-footer-btn:hover { background: var(--primary-soft); }

/* ---------- Corporate Blue Main Navbar (Exact Reference Style) ---------- */
.main-navbar { background: var(--nav-bg); color: #fff; }
.navbar-inner { display: flex; align-items: stretch; height: 48px; gap: 0; }

.nav-cat-trigger {
  display: flex; align-items: center; gap: 10px;
  width: 270px; flex-shrink: 0; padding: 0 16px;
  background: var(--red-fill); color: #fff; border: 0; cursor: pointer;
  font-size: 14.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase;
  transition: background .15s;
}
.nav-cat-trigger:hover { background: var(--red-dark); }

.nav-cat-dropdown-wrap { position: relative; display: flex; align-items: stretch; }
.cat-sidebar-list.nav-cat-dropdown {
  position: absolute; top: 100%; left: 0; width: 270px; z-index: 85;
  height: auto;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .16);
}
.cat-sidebar-list.nav-cat-dropdown > li:first-child > a { border-radius: 0; }

.nav-links {
  list-style: none; display: flex; align-items: center; flex: 1;
  padding-left: 6px; overflow: hidden;
}
.nav-links a, .nav-catalog-link {
  display: inline-flex; align-items: center; height: 48px; padding: 0 7px;
  font-size: 13px; font-weight: 600; letter-spacing: .2px; color: rgba(255, 255, 255, .94);
  white-space: nowrap; transition: background .15s, color .15s;
}
.nav-links a:hover, .nav-links a.active,
.nav-catalog-link:hover, .nav-catalog-link[aria-current="page"] { background: rgba(255, 255, 255, .14); color: #fff; }

.nav-right { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0; }
.nav-hotline {
  display: inline-flex; align-items: center; gap: 7px; padding: 0 8px; height: 48px;
  font-size: 14.5px; font-weight: 700; letter-spacing: .3px; color: #fff; white-space: nowrap;
}
.nav-hotline:hover { background: rgba(255, 255, 255, .12); }
.nav-search-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 48px; border: 0; background: transparent; color: #fff; cursor: pointer;
}
.nav-search-btn:hover { background: rgba(255, 255, 255, .14); }
.nav-catalog-link:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

/* ---------- Showcase Section: Left Category Sidebar + Right Banner Slider ---------- */
.showcase-section { padding: 14px 0 8px; background: var(--page); }
.showcase-grid { display: grid; grid-template-columns: 270px 1fr; gap: 16px; align-items: stretch; }

.cat-sidebar { position: relative; background: transparent; z-index: 30; }
.cat-sidebar-list {
  position: relative; list-style: none; background: var(--surface);
  height: 100%; display: flex; flex-direction: column;
  border: 1px solid var(--tinted-border, #dbe4f0);
  border-radius: 8px;
  box-shadow: 0 6px 22px rgba(0, 62, 126, .06);
}
.cat-sidebar-list > li {
  flex: 1; display: flex; align-items: stretch;
  border-top: 1px solid #f1f5f9;
}
.cat-sidebar-list > li:first-child { border-top: 0; }
.cat-sidebar-list > li > button,
.cat-sidebar-list > li > a {
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: 44px; padding: 8px 12px; text-align: left;
  background: transparent; border: 0; cursor: pointer;
  font-size: 13.5px; font-weight: 500; color: var(--text); letter-spacing: 0;
  transition: background .14s, color .14s, box-shadow .14s;
}
.cat-sidebar-list > li:first-child > button,
.cat-sidebar-list > li:first-child > a { border-radius: 7px 7px 0 0; }
.cat-sidebar-list > li:last-child > button,
.cat-sidebar-list > li:last-child > a { border-radius: 0 0 7px 7px; }
.side-icon-box {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--primary-soft); color: var(--primary);
  transition: background .14s, color .14s;
}
.side-label {
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cat-sidebar-list > li:hover > button,
.cat-sidebar-list > li:hover > a,
.cat-sidebar-list > li > button[aria-expanded="true"],
.cat-sidebar-list > li > button.active {
  background: var(--soft-background, #f3f7fd); color: var(--primary); font-weight: 600;
  box-shadow: inset 3px 0 0 var(--primary);
}
.cat-sidebar-list > li > button.active { box-shadow: inset 3px 0 0 var(--red); }
.cat-sidebar-list > li:hover > button .side-icon-box,
.cat-sidebar-list > li:hover > a .side-icon-box,
.cat-sidebar-list > li > button[aria-expanded="true"] .side-icon-box,
.cat-sidebar-list > li > button.active .side-icon-box {
  background: var(--primary-fill); color: #fff;
}
.side-arrow {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: #94a3b8; transition: transform .14s, color .14s;
}
.cat-sidebar-list > li:hover > button .side-arrow,
.cat-sidebar-list > li:hover > a .side-arrow {
  color: var(--primary); transform: translateX(2px);
}
.side-leaf-count {
  flex-shrink: 0; padding: 2px 7px; border-radius: 999px;
  background: var(--soft-background, #f1f5f9); color: var(--muted); font-size: 11.5px; font-weight: 600;
}

/* Flyout Submenu Panel */
.cat-flyout {
  display: none; position: absolute; top: 0; left: calc(100% + 2px); z-index: 45;
  width: 295px; min-height: 100%; list-style: none;
  background: var(--surface); border: 1px solid var(--tinted-border, #dbe4f0); border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .14);
}
.cat-sidebar-list > li > button[aria-expanded="true"] + .cat-flyout { display: block; }
.cat-flyout li { border-bottom: 1px solid #f1f5f9; }
.cat-flyout li:last-child { border-bottom: 0; }
.cat-flyout button,
.cat-flyout a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 11.5px 16px; text-align: left;
  background: var(--surface); border: 0; cursor: pointer;
  font-size: 13.5px; font-weight: 500; color: var(--text); text-transform: none;
  transition: background .12s, color .12s;
}
.cat-flyout button:hover,
.cat-flyout a:hover,
.cat-flyout button.active {
  background: var(--primary-soft); color: var(--primary); font-weight: 600;
}
.side-count { font-size: 12px; font-weight: 600; color: var(--muted); flex-shrink: 0; }

/* Right Banner Slider — matches compact 8-row sidebar height */
.hero-slider {
  position: relative; overflow: hidden; min-height: 400px; height: 100%;
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  background: var(--soft-background, #eef3f9); border: 1px solid var(--tinted-border, #dbe4f0); border-radius: 8px;
  box-shadow: 0 6px 22px rgba(0, 62, 126, .08);
}
.slider-track { position: relative; min-height: 0; }
.slide {
  position: absolute; inset: 0; opacity: 0; pointer-events: none; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2px;
  background: var(--surface);
  transition: opacity .5s ease;
}
.slide.active { opacity: 1; pointer-events: auto; }
.slide--balanced { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.slide-panel { min-width: 0; min-height: 0; overflow: hidden; }
.slide-panel img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 6s ease;
}
.slide.active .slide-panel:not(.slide-panel--product) img { transform: scale(1.015); }
.slide-panel--product { background: #fff; padding: clamp(12px, 3vw, 36px); }
.slide-panel--product img { object-fit: contain; }
.slide-panel--tinted { background: radial-gradient(ellipse at center, #f8fbfd, #e7eff6); }
.slide-panel--cabinet img { object-position: center 24%; }
.slide-panel--ceiling-fan img { object-position: center 6%; }
.slide-panel--standing-fan img { object-position: 43% center; }

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .32); cursor: pointer;
  background: rgba(0, 52, 115, .58); color: #fff; font-size: 24px; line-height: 1;
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s, background .15s, transform .15s;
}
.hero-slider:hover .slider-arrow { opacity: 1; }
.slider-arrow:hover { background: rgba(0, 82, 165, .88); transform: translateY(-50%) scale(1.06); }
.slider-arrow.prev { left: 12px; padding-right: 2px; }
.slider-arrow.next { right: 12px; padding-left: 2px; }

.slider-bar {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 22px;
  background: linear-gradient(90deg, #154571, #2a639b);
  border-top: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
}
.slider-caption {
  font-size: 18px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}
.slider-dots { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.slider-dot {
  width: 9px; height: 9px; border-radius: 999px; cursor: pointer; padding: 0;
  background: rgba(255, 255, 255, .42); border: 0;
  transition: width .22s ease, background .15s;
}
.slider-dot:hover { background: rgba(255, 255, 255, .78); }
.slider-dot.active { width: 26px; background: #fff; }

/* ---------- Sections ---------- */
.section { padding: 34px 0 44px; }
.section-alt { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-trust { padding: 18px 0 18px; background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-bottom: 12px; margin-bottom: 16px; border-bottom: 2px solid var(--primary);
}
.section-title { font-size: 22px; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: .2px; }
.section-head-right { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.result-count { font-size: 14px; color: var(--muted); font-weight: 500; }
.view-toggle-link {
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--primary); font-size: 14px; font-weight: 700;
}
.view-toggle-link:hover { color: var(--primary-dark); text-decoration: underline; }

/* ---------- Brand Quick Strip ---------- */
.brand-strip {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border);
}
.brand-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); cursor: pointer; font-size: 13.5px; color: var(--text-2);
  transition: border-color .15s, background .15s, color .15s;
}
.brand-chip strong { color: var(--primary); font-weight: 700; }
.brand-chip span { color: var(--muted); font-size: 12.5px; }
.brand-chip:hover { border-color: var(--primary); background: var(--primary-soft); }
.brand-chip.active { background: var(--primary-fill); border-color: var(--primary); color: #fff; }
.brand-chip.active strong, .brand-chip.active span { color: #fff; }

/* ---------- Multi-Section Homepage Showcase (vi-header ribbon pattern) ---------- */
.showcase-sections { display: flex; flex-direction: column; gap: 34px; margin-top: 4px; }
.shelf-section { scroll-margin-top: 84px; }
.shelf-header {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  border-bottom: 2px solid var(--primary); margin-bottom: 12px;
}
.shelf-title {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 22px 7px 14px;
  background: var(--primary-fill); color: #fff;
  font-size: 16.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase;
  line-height: 1.3;
}
.shelf-title::after {
  content: ""; position: absolute; left: 100%; top: 0; bottom: 0; width: 18px;
  background: var(--primary-fill);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}
.shelf-more-btn {
  flex-shrink: 0; padding: 6px 2px; border: 0; background: none; cursor: pointer;
  color: var(--primary); font-size: 14px; font-weight: 700; white-space: nowrap;
}
.shelf-more-btn:hover { color: var(--primary-dark); text-decoration: underline; }

.shelf-subtabs {
  display: flex; flex-wrap: nowrap; gap: 7px; overflow-x: auto;
  padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: none;
}
.shelf-subtabs::-webkit-scrollbar { display: none; }
.shelf-subtab {
  flex-shrink: 0; padding: 6px 13px; font-size: 13.5px; font-weight: 500; color: var(--text-2);
  background: var(--bg); border: 1px solid var(--border); border-radius: 4px; cursor: pointer;
  transition: all .12s;
}
.shelf-subtab:hover { border-color: var(--primary); color: var(--primary); background: var(--surface); }
.shelf-subtab.active {
  background: var(--primary-soft); border-color: var(--primary); color: var(--primary); font-weight: 700;
}

.shelf-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.shelf-footer-link { margin-top: 12px; text-align: center; }
.showcase-footer { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); text-align: center; }

.promo-quote-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; border-radius: 8px;
  background: linear-gradient(105deg, #003e7e 0%, #0052a5 62%, #0b68c4 100%);
  color: #fff; box-shadow: 0 8px 24px rgba(0, 62, 126, .14);
}
.promo-quote-text strong { display: block; font-size: 18px; font-weight: 800; margin-bottom: 3px; }
.promo-quote-text span { font-size: 14.5px; color: rgba(255, 255, 255, .9); }
.promo-quote-actions { display: flex; flex-wrap: wrap; gap: 10px; }


/* ---------- Catalog PDF Library ---------- */
.catalog-library { min-height: 70vh; padding: 36px 0 56px; background: var(--bg); }
.catalog-intro { margin-bottom: 26px; }
.catalog-intro h1 { font-size: clamp(25px, 4vw, 34px); line-height: 1.25; }
.catalog-intro p { margin-top: 6px; color: var(--text-2); }
.catalog-brand-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.catalog-brand-nav a {
  padding: 7px 13px; color: var(--primary); font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
}
.catalog-brand-nav a:hover { border-color: var(--primary); }
.catalog-groups { display: grid; gap: 16px; }
.catalog-group {
  min-width: 0; padding: 18px 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
}
.catalog-group:target { border-color: var(--primary); }
.catalog-group h2 { margin-bottom: 10px; color: var(--primary-dark); font-size: 20px; }
.catalog-document {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start;
  gap: 12px 22px; padding: 14px 0; border-top: 1px solid var(--line);
}
.catalog-document:last-child { padding-bottom: 0; }
.catalog-document h3 { font-size: 16px; line-height: 1.45; }
.catalog-document p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.catalog-file-list { min-width: 0; display: grid; gap: 6px; list-style: none; }
.catalog-file {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 8px 12px; min-height: 48px; padding: 6px 8px 6px 10px;
  background: var(--bg); border-radius: var(--radius);
}
.catalog-file-info { font-size: 14px; font-weight: 600; }
.catalog-file-size { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.catalog-file-actions { display: flex; gap: 6px; }
.catalog-file-actions .btn { min-height: 38px; }

@media (min-width: 1121px) and (max-width: 1199px) {
  .nav-links a, .nav-catalog-link { padding-inline: 6px; font-size: 12px; }
}

@media (max-width: 768px) {
  .catalog-library-page { padding-bottom: 0; }
  .catalog-library { padding: 24px 0 36px; }
  .catalog-group { padding: 14px; }
  .catalog-document { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 901px) and (max-width: 1050px), (max-width: 480px) {
  .nav-catalog-link + .nav-hotline span {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
}

/* ---------- Catalog Filters ---------- */
.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cat-tab {
  flex-shrink: 0; padding: 8px 15px; font-size: 14px; font-weight: 500; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer;
  transition: all .15s;
}
.cat-tab:hover { border-color: var(--primary); color: var(--primary); }
.cat-tab.active { background: var(--primary-fill); border-color: var(--primary); color: #fff; }

.sub-category-tabs {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin-top: -6px; margin-bottom: 14px; padding: 10px 12px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
}
.sub-tab {
  padding: 6px 13px; font-size: 13.5px; font-weight: 500; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--border); border-radius: 4px; cursor: pointer;
  transition: all .12s;
}
.sub-tab:hover { border-color: var(--primary); color: var(--primary); }
.sub-tab.active { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); font-weight: 600; }

.catalog-brand-filter {
  min-width: 0; margin: 0 0 14px; padding: 9px 12px 12px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg);
}
.catalog-brand-filter legend { padding: 0 6px; color: var(--text); font-size: 14px; font-weight: 700; }
.catalog-brand-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 7px; }
.catalog-brand-options .catalog-brand-choice { min-height: 38px; padding: 6px 9px; border: 1px solid var(--border); background: var(--surface); }
.catalog-brand-options .catalog-brand-choice:hover,
.catalog-brand-options .catalog-brand-choice.active { border-color: var(--primary); background: var(--primary-soft); }
.catalog-brand-choice .sr-check-label { white-space: normal; overflow-wrap: anywhere; }
.catalog-brand-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.catalog-brand-actions button {
  margin-top: 7px; padding: 4px 0; border: 0; background: none; color: var(--primary);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.catalog-brand-actions button:hover { text-decoration: underline; }
#clearBrandsBtn { margin-left: auto; }
@media (max-width: 600px) {
  .catalog-brand-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-brand-options .catalog-brand-choice { min-height: 42px; padding: 5px 6px; gap: 5px; }
}

.catalog-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.catalog-toolbar select {
  padding: 8px 12px; font-size: 14px; background: var(--surface); cursor: pointer; outline: 0;
  border: 1px solid var(--border); border-radius: var(--radius);
}
.catalog-toolbar select:focus { border-color: var(--primary); }
.clear-filters-btn { margin-left: auto; border: 0; background: none; color: var(--red); font-size: 14px; font-weight: 600; cursor: pointer; }

/* ---------- Product Cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.product-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.product-card:hover { border-color: var(--primary); box-shadow: 0 6px 18px rgba(0, 82, 165, .09); }
.product-media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: opacity .25s; }
.product-media .hover-img { opacity: 0; }
.product-media:hover .has-hover-swap .hover-img { opacity: 1; }
.product-media:hover .has-hover-swap .primary-img { opacity: 0; }
.photo-unavailable { display: grid; place-items: center; height: 100%; padding: 12px; color: var(--muted); background: var(--bg); font-size: 13px; text-align: center; }
.photo-reference-label { position: absolute; bottom: 8px; left: 8px; padding: 2px 7px; border-radius: 4px; background: var(--bg); color: var(--muted); font-size: 11px; }
.media-tag { position: absolute; top: 8px; left: 8px; padding: 2px 8px; font-size: 12px; font-weight: 600; color: var(--warning-text, #92400e); background: var(--warning-bg, #fef3c7); border-radius: 4px; }
.product-body { display: flex; flex: 1; flex-direction: column; gap: 5px; padding: 12px; }
.product-brand { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--primary); }
.product-title {
  min-height: 41px; font-size: 14.5px; font-weight: 500; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-title a:hover { color: var(--primary); }
.product-variants { font-size: 12.5px; color: var(--muted); }
.price-main { margin-top: auto; padding-top: 4px; font-size: 16.5px; font-weight: 700; color: var(--price); }
.price-main.contact-price { font-size: 15px; color: var(--primary); }
.price-vat { color: var(--muted); font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.price-main .price-vat,
.variant-pick-price .price-vat { display: block; }
.variant-pick-price .price-vat { text-align: right; }
.product-actions { display: flex; gap: 7px; margin-top: 8px; }
.product-actions .btn { flex: 1; }
.btn-icon-call {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px;
  color: var(--primary); border: 1px solid var(--border); border-radius: var(--radius);
}
.btn-icon-call:hover { border-color: var(--primary); background: var(--primary-soft); }

.load-more-wrap { margin-top: 28px; text-align: center; }
.load-more-info { margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.load-more-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.empty-state { padding: 44px 20px; text-align: center; border: 1px dashed var(--border); border-radius: var(--radius); }
.empty-state p { font-weight: 600; }
.empty-state .empty-sub { margin-top: 6px; font-size: 13.5px; font-weight: 400; color: var(--muted); }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { display: flex; align-items: flex-start; gap: 14px; }
.feature-icon {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 44px; height: 44px; color: var(--primary); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.feature h3 { margin-bottom: 4px; font-size: 16px; font-weight: 700; }
.feature p { font-size: 14px; color: var(--muted); }

/* ---------- Construction / Project Supply & FAQ ---------- */
.section-projects { padding: 40px 0 46px; background: var(--surface); border-top: 1px solid var(--border); }
.projects-lead { font-size: 15px; color: var(--text-2); margin-bottom: 18px; max-width: 820px; }

.project-cards-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px;
}
.project-card {
  position: relative; display: flex; flex-direction: column; padding: 16px 16px 14px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.project-card:hover { background: var(--surface); border-color: var(--primary); box-shadow: 0 6px 18px rgba(0, 82, 165, .07); }
.project-card-num {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  margin-bottom: 10px; border-radius: 5px;
  background: var(--primary-fill); color: #fff; font-size: 12px; font-weight: 800;
}
.project-card h3 { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 6px; line-height: 1.35; }
.project-card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.project-card-link:focus-visible { outline: none; }
.project-card-link:focus-visible::after { outline: 2px solid var(--primary); outline-offset: 2px; }
.project-card p { font-size: 14px; color: var(--text-2); line-height: 1.5; margin-bottom: 12px; flex: 1; }
.project-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.project-card-tags a {
  position: relative;
  padding: 5px 10px; font-size: 12.5px; font-weight: 600; color: var(--primary);
  background: var(--surface); border: 1px solid var(--tinted-border, #cdddf0); border-radius: 999px; cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.project-card-tags a:hover, .project-card-tags a:focus-visible { background: var(--primary-fill); border-color: var(--primary); color: #fff; }

.project-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  padding: 16px 18px; margin-bottom: 34px;
  background: var(--primary-soft); border: 1px solid var(--tinted-border, #cfe0f5); border-radius: var(--radius);
}
.project-step { display: flex; align-items: flex-start; gap: 12px; }
.step-badge {
  flex-shrink: 0; padding: 3px 9px; border-radius: 4px;
  background: var(--primary-fill); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.project-step strong { display: block; font-size: 14.5px; color: var(--primary-dark); margin-bottom: 2px; }
.project-step p { font-size: 13.5px; color: var(--text-2); line-height: 1.45; }

/* FAQ Accordion */
.faq-block { margin-top: 8px; }
.faq-heading-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.faq-line { flex: 1; height: 1px; background: var(--border); }
.faq-heading { font-size: 20px; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; padding: 14px 6px; border: 0; background: none; cursor: pointer;
  text-align: left; font-size: 15px; font-weight: 600; color: var(--text);
  transition: color .15s, background .15s;
}
.faq-trigger:hover { color: var(--primary); }
.faq-item.open .faq-trigger { color: var(--primary); }
.faq-chevron { font-size: 16px; color: var(--muted); transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--primary); }
.faq-panel { display: none; padding: 0 6px 14px; font-size: 14.5px; color: var(--text-2); line-height: 1.6; }
.faq-item.open .faq-panel { display: block; }

/* ---------- Contact & Quote Request ---------- */
.contact-cards-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 20px; align-items: stretch;
}
.contact-box, .quote-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 26px; display: flex; flex-direction: column; min-width: 0;
}
.contact-intro { font-size: 14.5px; color: var(--text-2); line-height: 1.6; margin-bottom: 16px; }
.contact-company-title {
  font-size: 16px; font-weight: 800; color: var(--text); text-transform: uppercase;
  margin-bottom: 14px; line-height: 1.4;
}
.contact-region-title {
  font-size: 13.5px; font-weight: 700; color: var(--text); text-transform: uppercase;
  margin-bottom: 10px;
}
.contact-info-lines { display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; color: var(--text-2); }
.contact-info-lines strong { color: var(--text); font-weight: 700; }
.contact-info-lines a { color: var(--primary); font-weight: 600; }
.contact-info-lines a:hover { text-decoration: underline; }
.contact-icon-row {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: auto; padding-top: 20px;
}
.contact-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; border-radius: 50%;
  background: var(--soft-background, #f1f5f9); border: 1px solid var(--border); color: var(--muted);
  font-size: 11px; font-weight: 700; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.contact-icon-btn:hover { background: var(--primary-fill); border-color: var(--primary); color: #fff; transform: translateY(-1px); }
.contact-icon-zalo { color: #fff; background: var(--zalo); border-color: var(--zalo); }
.contact-icon-zalo:hover { background: #0055d4; border-color: #0055d4; color: #fff; }

.quote-box-title {
  font-size: 15.5px; font-weight: 800; color: var(--text); text-transform: uppercase;
  margin-bottom: 16px; letter-spacing: .2px;
}
.quote-form { display: flex; flex-direction: column; gap: 13px; flex: 1; }
.quote-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quote-field { display: flex; flex-direction: column; gap: 5px; }
.quote-field label { font-size: 14px; font-weight: 700; color: var(--text-2); }
.quote-field input, .quote-field select, .quote-field textarea {
  width: 100%; padding: 10px 12px; font-size: 14.5px; color: var(--text);
  background: var(--surface); border: 1px solid var(--tinted-border, #cbd5e1); border-radius: 4px; outline: 0;
  transition: border-color .15s, box-shadow .15s;
}
.quote-field textarea { resize: vertical; min-height: 108px; line-height: 1.5; }
.quote-field input:focus, .quote-field select:focus, .quote-field textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 82, 165, .1);
}
.quote-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 2px; }
.quote-submit-btn { padding: 10px 26px; font-weight: 700; letter-spacing: .3px; }
.quote-preview-box {
  margin-top: 4px; padding: 10px 12px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.quote-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 12.5px; color: var(--primary); }
.quote-copy-btn {
  border: 0; background: none; color: var(--primary); font-size: 12px; font-weight: 700; cursor: pointer;
}
.quote-copy-btn:hover { text-decoration: underline; }
.quote-preview-text { white-space: pre-wrap; font-family: inherit; font-size: 12.5px; color: var(--text-2); line-height: 1.45; }

.map-embed { min-height: 300px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); }
.map-embed-wide { margin-top: 20px; min-height: 290px; }
.map-embed iframe { display: block; width: 100%; height: 100%; min-height: 290px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { padding: 22px 0; background: var(--surface); border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 32px; height: 32px; }
.footer-brand strong { display: block; font-size: 15px; color: var(--primary); }
.footer-brand span { display: block; font-size: 13px; color: var(--muted); }
.footer-meta { font-size: 13.5px; color: var(--muted); }

/* ---------- Mobile Contact Bar ---------- */
.mobile-sticky-bar { display: none; }
.mobile-bar-btn { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 11px; font-size: 14px; font-weight: 600; border-radius: var(--radius); }
.mobile-call { color: var(--primary); background: var(--surface); border: 1px solid var(--border); }
.mobile-zalo { color: #fff; background: var(--zalo); }

/* ---------- Floating Contact Links ---------- */
.quick-contact {
  position: fixed; right: 22px; bottom: 24px; z-index: 85;
}
.floating-contact {
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.floating-maps-btn, .floating-zalo-btn {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
}
.floating-maps-btn {
  flex-direction: column; gap: 2px; background: #fff; color: #17633e;
  border: 1px solid #c5e5d4; box-shadow: 0 8px 24px rgba(15, 23, 42, .22);
  font-size: 11px; line-height: 1; font-weight: 700;
  transition: background .15s ease, transform .18s ease;
}
.floating-maps-btn:hover { background: #e9f8ef; transform: scale(1.06); }
.floating-zalo-wrap { position: relative; }
.floating-zalo-tooltip {
  position: absolute; right: calc(100% + 10px); top: 50%;
  padding: 7px 12px; border-radius: 999px;
  background: #0f172a; color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .22);
  opacity: 0; transform: translate(6px, -50%); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.floating-zalo-wrap:hover .floating-zalo-tooltip, .floating-zalo-wrap:focus-within .floating-zalo-tooltip {
  opacity: 1; transform: translate(0, -50%);
}
.floating-zalo-btn {
  position: relative;
  background: var(--zalo); color: #fff;
  box-shadow: 0 8px 24px rgba(0, 104, 255, .36);
  transition: transform .18s ease, background .15s ease;
}
.floating-zalo-btn::before {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(0, 104, 255, .42);
  animation: zaloPulse 2.2s ease-out infinite;
}
.floating-zalo-btn:hover { background: #0055d4; transform: scale(1.06); }
@keyframes zaloPulse {
  0% { transform: scale(.96); opacity: .85; }
  75% { transform: scale(1.28); opacity: 0; }
  100% { transform: scale(1.28); opacity: 0; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translateX(-50%);
  max-width: calc(100% - 32px); padding: 11px 18px; font-size: 13.5px;
  color: #fff; background: #111827; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}

/* ==========================================================================
   PRODUCT DETAIL PAGE
   ========================================================================== */
.pd-page { padding: 18px 0 56px; }
.pd-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; font-size: 13.5px; color: var(--muted); }
.pd-breadcrumb a:hover { color: var(--primary); }
.bc-current { max-width: 440px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pd-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.pd-gallery-col { position: sticky; top: 126px; min-width: 0; }
.pd-main-stage { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.pd-main-img { width: 100%; height: 100%; object-fit: contain; padding: 18px; cursor: zoom-in; }
.pd-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  font-size: 22px; line-height: 1; color: var(--text); cursor: pointer;
  background: var(--gallery-control, rgba(255, 255, 255, .95)); border: 1px solid var(--border); border-radius: 50%;
}
.pd-nav-btn:hover { border-color: var(--primary); color: var(--primary); }
.pd-nav-btn.prev { left: 10px; }
.pd-nav-btn.next { right: 10px; }
.pd-counter { position: absolute; bottom: 10px; left: 10px; padding: 3px 9px; font-size: 12px; color: #fff; background: rgba(17, 24, 39, .75); border-radius: 999px; }
.pd-zoom-hint { position: absolute; bottom: 10px; right: 10px; padding: 5px 10px; font-size: 12px; cursor: pointer; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; }
.pd-photo-reference { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; padding-bottom: 4px; overflow-x: auto; }
.pd-thumb-btn { flex-shrink: 0; width: 66px; height: 66px; padding: 4px; cursor: pointer; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.pd-thumb-btn img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumb-btn.active { border: 2px solid var(--primary); }

.pd-info-col { display: flex; flex-direction: column; gap: 14px; }
.pd-top-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.badge-pill { display: inline-block; padding: 4px 11px; font-size: 12.5px; font-weight: 600; border-radius: 4px; }
.badge-brand { color: var(--primary); background: var(--primary-soft); }
.badge-project { color: var(--warning-text, #92400e); background: var(--warning-bg, #fef3c7); }
.sku-code { font-size: 13px; color: var(--muted); }
.stock-status { font-size: 13.5px; font-weight: 600; color: var(--stock-color, #15803d); }
.stock-status.out { color: var(--stock-warning, #b45309); }
.pd-title { font-size: 24px; font-weight: 700; line-height: 1.35; }
.pd-catalog-links { display: flex; flex-wrap: wrap; gap: 0 16px; }
.pd-catalog-link { padding: 6px 0; color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pd-catalog-link:hover { color: var(--primary-dark); }
.spec-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.spec-chip { padding: 4px 10px; font-size: 12.5px; color: var(--text-2); background: var(--bg); border: 1px solid var(--border); border-radius: 4px; }

.pd-price-card { padding: 14px 16px; background: var(--bg); border-radius: var(--radius); }
.pd-price-main { font-size: 28px; font-weight: 800; color: var(--price); }
.pd-variant-meta { margin-top: 6px; font-size: 13.5px; font-weight: 500; color: var(--text-2); line-height: 1.5; }
.pd-price-note { margin-top: 4px; font-size: 13.5px; color: var(--muted); }

.variant-selector-label { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.pd-var-selected { color: var(--primary); }
.variant-search-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.variant-search-input {
  flex: 1; padding: 7px 11px; font-size: 13px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); outline: 0;
}
.variant-search-input:focus { border-color: var(--primary); }
.variant-search-count { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.variant-chips-list { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-chips-list.is-many {
  max-height: 215px; overflow-y: auto; padding: 8px;
  background: var(--soft-background, #fafafa); border: 1px solid var(--border); border-radius: var(--radius);
}
.variant-btn { padding: 8px 12px; font-size: 13.5px; text-align: left; cursor: pointer; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.variant-btn:hover { border-color: var(--primary); }
.variant-btn.active { color: var(--primary); font-weight: 600; background: var(--primary-soft); border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.variant-btn.oos { opacity: .5; }

.pd-qty-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; }
.pd-qty-row label { font-weight: 600; }
.pd-qty-stepper { display: flex; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); }
.pd-qty-stepper button { width: 36px; font-size: 18px; cursor: pointer; background: var(--surface); border: 0; }
.pd-qty-stepper button:hover { background: var(--bg); }
.pd-qty-stepper input {
  width: 54px; padding: 7px 0; text-align: center; outline: 0;
  border: 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  -moz-appearance: textfield; appearance: textfield;
}
.pd-qty-stepper input::-webkit-outer-spin-button,
.pd-qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pd-cta-group { display: flex; flex-direction: column; gap: 10px; }
.pd-cta-subrow { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-cta-subrow .btn { flex: 1; }
.pd-store-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; font-size: 13.5px; border: 1px solid var(--border); border-radius: var(--radius); }
.pd-store-banner strong { display: block; font-size: 14.5px; }
.pd-store-banner span { color: var(--muted); }
.pd-map-pill { font-weight: 600; color: var(--primary); white-space: nowrap; }

.pd-details-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 22px; align-items: start; margin-top: 40px; }
.pd-card { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); }
.pd-card-title { margin-bottom: 12px; font-size: 18px; font-weight: 700; color: var(--primary); }
.specs-table { width: 100%; font-size: 14px; border-collapse: collapse; }
.specs-table th, .specs-table td { padding: 9px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.specs-table th { width: 42%; padding-right: 12px; font-weight: 500; color: var(--muted); }
.pd-full-desc { font-size: 14.5px; line-height: 1.7; color: var(--text-2); white-space: pre-line; }

.pd-related-section { margin-top: 48px; }
.pd-related-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 2px solid var(--primary); }
.pd-not-found { padding: 64px 20px; text-align: center; }
.pd-not-found h1 { margin-bottom: 10px; font-size: 22px; }
.pd-not-found p { max-width: 560px; margin: 0 auto; color: var(--muted); }

/* Lightbox */
.lightbox-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(10, 12, 16, .92); }
.lightbox-stage { position: relative; max-width: 90vw; max-height: 86vh; }
.lightbox-stage img { max-width: 90vw; max-height: 86vh; object-fit: contain; background: #fff; border-radius: 6px; }
.lightbox-counter { position: absolute; bottom: -32px; left: 50%; transform: translateX(-50%); font-size: 13px; color: #fff; }
.lightbox-close, .lightbox-nav { position: absolute; color: #fff; cursor: pointer; background: rgba(255, 255, 255, .14); border: 0; border-radius: 50%; }
.lightbox-close { top: 18px; right: 20px; width: 42px; height: 42px; font-size: 20px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; font-size: 28px; }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, .28); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1120px) {
  .nav-cat-trigger, .cat-sidebar-list.nav-cat-dropdown { width: 264px; }
  .nav-cat-trigger { padding: 0 12px; font-size: 13px; gap: 8px; }
  .showcase-grid { grid-template-columns: 264px 1fr; }
  .cat-sidebar-list > li > button,
  .cat-sidebar-list > li > a { padding: 7px 10px; gap: 8px; font-size: 12.8px; }
  .side-icon-box { width: 25px; height: 25px; }
  .nav-links { padding-left: 6px; gap: 0; }
  .nav-links a, .nav-catalog-link { padding: 0 6px; font-size: 12px; }
  .nav-hotline { padding: 0 8px; font-size: 13.5px; }
  .nav-search-btn { width: 36px; }
  .shelf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .project-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .navbar-inner .nav-cat-trigger { width: 190px; }
  .nav-links a, .nav-catalog-link { padding-inline: 4px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .showcase-grid { grid-template-columns: 1fr; gap: 12px; }
  .cat-sidebar { display: none; }
  .cat-sidebar.mobile-open { display: block; }
  .cat-sidebar-list { height: auto; }
  .cat-sidebar-list.nav-cat-dropdown { max-height: 60vh; max-height: 60dvh; overflow-y: auto; overscroll-behavior-y: contain; }
  .cat-sidebar-list > li { flex: none; flex-direction: column; align-items: stretch; }
  .cat-flyout {
    position: static; width: 100%; min-height: 0;
    border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none;
    background: var(--soft-background, #f8fafc);
  }
  .cat-flyout button, .cat-flyout a { padding: 10px 14px 10px 46px; background: var(--soft-background, #f8fafc); font-size: 13px; }
  .hero-slider { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
  .slider-caption { font-size: 14.5px; }
  .features { grid-template-columns: 1fr; gap: 18px; }
  .project-steps { grid-template-columns: 1fr; gap: 12px; }
  .contact-cards-grid { grid-template-columns: 1fr; gap: 16px; }
  .pd-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .pd-gallery-col { position: static; }
  .pd-details-grid { grid-template-columns: 1fr; }
  .shelf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  html { scroll-padding-top: 150px; }
  body { padding-bottom: 66px; }
  .header-top-inner { flex-wrap: wrap; height: auto; gap: 12px; padding: 12px; }
  .brand-wordmark { height: 40px; }
  .header-top-actions { margin-left: auto; }
  .header-search-wrap { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
  .nav-cat-trigger { width: auto; flex: 1; padding: 0 12px; font-size: 12.5px; }
  .nav-hotline { font-size: 13.5px; padding: 0 10px; }
  .slider-arrow { opacity: .9; width: 32px; height: 32px; font-size: 20px; }
  .slider-bar { min-height: 59px; padding: 9px 14px; }
  .slider-caption { font-size: 12.5px; letter-spacing: .3px; text-wrap: balance; }
  .section { padding: 28px 0 36px; }
  .section-title { font-size: 18px; }
  .category-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .category-tabs::-webkit-scrollbar { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shelf-title { font-size: 14.5px; padding: 6px 16px 6px 11px; }
  .shelf-more-btn { font-size: 12.5px; }
  .promo-quote-band { padding: 16px; }
  .promo-quote-text strong { font-size: 15.5px; }
  .contact-box, .quote-box { padding: 18px 16px; }
  .quote-field-row { grid-template-columns: 1fr; }
  .project-cards-grid { grid-template-columns: 1fr; }
  .faq-heading { font-size: 15.5px; }
  .product-body { padding: 10px; }
  .product-title { font-size: 13.5px; min-height: 38px; }
  .price-main { font-size: 15px; }
  .product-actions .btn { padding: 7px 6px; font-size: 12.5px; }
  .btn-icon-call { width: 34px; }
  .ci-label { width: 96px; }
  .pd-title { font-size: 19px; }
  .pd-price-main { font-size: 22px; }
  .quick-contact { left: 0; right: 0; bottom: 0; pointer-events: none; }
  .mobile-sticky-bar {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--border);
    pointer-events: auto;
  }
  .floating-zalo-wrap { display: none; }
  .floating-contact { margin: 0 12px 8px; }
  .floating-maps-btn { width: 48px; height: 48px; pointer-events: auto; }
  .toast { bottom: 82px; }
}

/* ==========================================================================
   CART & AUTH (shop-cart-auth.js)
   ========================================================================== */

/* Header actions: align Zalo + Cart + Account cleanly on white header */
.header-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-top-actions .btn-zalo {
  height: 44px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 8px;
}

.header-cart-btn,
.header-account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 44px;
  padding: 0 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  transition: background 0.16s, border-color 0.16s, color 0.16s;
  position: relative;
  white-space: nowrap;
}

.header-cart-btn svg,
.header-account-btn svg {
  color: var(--primary);
  flex-shrink: 0;
}

.header-cart-btn:hover,
.header-account-btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}

.header-account-btn.logged-in {
  background: var(--primary-soft);
  border-color: var(--tinted-border, #b7d3f7);
  color: var(--primary);
}

.cart-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--price-fill);
  color: #fff;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}

.cart-badge.hidden { display: none; }

.account-label {
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Product card actions: 2 clean rows so buttons never clip on any grid width */
.product-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}

.product-actions-row {
  display: flex;
  gap: 6px;
  width: 100%;
}

.product-actions-row .btn {
  flex: 1;
  min-width: 0;
}

.btn-cart {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--primary);
  gap: 6px;
  width: 100%;
}

.btn-cart:hover {
  background: var(--primary-fill);
  color: #fff;
}

.btn-cart svg { flex-shrink: 0; }

/* Product detail page cart CTA */
.btn.btn-cart.btn-lg {
  font-size: 15px;
  font-weight: 700;
  padding: 12px 20px;
  background: var(--surface);
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn.btn-cart.btn-lg:hover {
  background: var(--primary-fill);
  color: #fff;
}

/* Modal overlay (Auth & Variant Picker) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInOverlay 0.16s ease;
}

.modal-overlay.hidden { display: none; }

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  background: var(--surface);
  border-radius: 10px;
  padding: 26px 24px 22px;
  max-width: 400px;
  width: 100%;
  position: relative;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.24);
  animation: slideUpBox 0.18s ease;
}

@keyframes slideUpBox {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  border-radius: 6px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover { color: var(--price); background: var(--error-bg, #fef2f2); }

.cart-close-btn { position: static; }

/* Auth modal tabs */
.modal-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  border-bottom: 1.5px solid var(--line);
}

.modal-tab-btn {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  padding: 8px 4px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.modal-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Auth form */
.auth-modal-box { max-width: 380px; }
.auth-form { display: flex; flex-direction: column; gap: 13px; }
.auth-form.hidden { display: none; }

.auth-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.auth-label input {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s;
}

.auth-label input:focus { border-color: var(--primary); }

.auth-error {
  color: var(--price);
  font-size: 12.5px;
  background: var(--error-bg, #fef2f2);
  border: 1px solid var(--error-border, #fecaca);
  border-radius: var(--radius);
  padding: 7px 10px;
  margin: 0;
}

.auth-error.hidden { display: none; }

.btn-auth-submit {
  margin-top: 2px;
  padding: 10px;
  font-size: 14.5px;
  font-weight: 700;
  width: 100%;
  justify-content: center;
}

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.auth-switch a { color: var(--primary); font-weight: 600; }

.account-dialog {
  position: fixed;
  inset: 0;
  width: min(380px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  overflow: auto;
  border: 0;
  color: var(--text);
}

.account-dialog::backdrop { background: rgba(15, 23, 42, 0.55); }

.account-dialog-title {
  padding-right: 28px;
  font-size: 20px;
  font-weight: 700;
}

.account-details {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg);
}

.account-details dt { color: var(--muted); font-size: 12px; }
.account-details dd { font-weight: 600; overflow-wrap: anywhere; }
.account-dialog .auth-error { margin-bottom: 12px; }
.btn.account-logout-btn { color: var(--price); border-color: var(--error-border, #fecaca); }
.btn.account-logout-btn:hover { border-color: var(--price); background: var(--error-bg, #fef2f2); }
.btn.account-logout-btn:disabled { opacity: .65; cursor: wait; }

/* Cart drawer overlay */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 8900;
  display: flex;
  justify-content: flex-end;
}

.cart-drawer-overlay.hidden { display: none; }
body.drawer-open { overflow: hidden; }

.cart-drawer {
  background: var(--surface);
  width: 410px;
  max-width: 100vw;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 28px rgba(15, 23, 42, 0.18);
  animation: slideInDrawer 0.2s ease;
}

@keyframes slideInDrawer {
  from { transform: translateX(100%); }
  to { transform: none; }
}

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.cart-drawer-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-drawer-title svg { color: var(--primary); }

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Cart item */
.cart-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}

.cart-item-thumb { flex-shrink: 0; display: block; }

.cart-item-img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  display: block;
}

.cart-item-img-placeholder {
  width: 66px;
  height: 66px;
  flex-shrink: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-name:hover { color: var(--primary); }
.cart-item-name em { font-style: normal; color: var(--muted); font-weight: 400; }

.cart-item-price {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--price);
}

.cart-item-qty-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  transition: background 0.14s, border-color 0.14s;
}

.qty-btn:hover { background: var(--bg); border-color: var(--primary); }

.qty-num {
  min-width: 24px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
}

.cart-remove-btn { border-color: var(--error-border, #fecaca); color: var(--price); margin-left: auto; }
.cart-remove-btn:hover { background: var(--error-bg, #fef2f2); border-color: var(--price); }

/* Cart footer */
.cart-drawer-foot {
  border-top: 1px solid var(--line);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.cart-total-price { font-size: 17px; font-weight: 800; color: var(--price); }
.cart-contact-note { font-size: 11.5px; font-weight: 400; color: var(--muted); margin-left: 4px; font-style: normal; }
.cart-actions { display: flex; flex-direction: column; gap: 7px; }
.btn-block { width: 100%; justify-content: center; }
.cart-email-btn { font-size: 14px; }
.cart-clear-btn { font-size: 12.5px; color: var(--muted); border-color: var(--border); }
.cart-clear-btn:hover { color: var(--price); border-color: var(--price); }

/* Empty cart */
.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 14.5px;
  text-align: center;
  min-height: 220px;
}

/* Variant picker modal */
.variant-picker-box { max-width: 390px; }

.variant-picker-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
  padding-right: 26px;
}

.variant-picker-product {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.4;
}

.variant-picker-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 55vh;
  overflow-y: auto;
}

.variant-pick-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  font-size: 13px;
  text-align: left;
  width: 100%;
}

.variant-pick-price {
  font-weight: 700;
  color: var(--price);
  margin-left: 10px;
  flex-shrink: 0;
}

@media (max-width: 1120px) {
  .brand-wordmark { height: 44px; }
  .header-top-actions .btn-zalo { padding: 0 12px; font-size: 13.5px; }
  .cart-label { display: none; }
  .header-cart-btn { padding: 0 12px; }
}

@media (max-width: 768px) {
  .header-top-actions { gap: 7px; }
  .header-top-actions .btn-zalo span,
  .cart-label,
  .account-label { display: none; }
  .header-top-actions .btn-zalo,
  .header-cart-btn,
  .header-account-btn {
    padding: 0 11px;
    height: 40px;
  }
  .cart-drawer { width: 100vw; }
}

@media (max-width: 480px) {
  .brand-wordmark { height: 35px; }
  .header-top-actions .btn-zalo,
  .header-cart-btn,
  .header-account-btn {
    padding: 0 9px;
    height: 38px;
  }
  .nav-cat-trigger { padding: 0 9px; gap: 6px; font-size: 11.5px; }
  .nav-hotline { padding: 0 7px; font-size: 12.5px; gap: 5px; }
  .nav-search-btn { width: 38px; }
}


/* ---------- Dedicated Search Results Page ---------- */
.search-page {
  padding: 18px 0 48px;
  background: var(--bg-soft, #f5f7fb);
  min-height: 70vh;
}
.sr-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.sr-title {
  margin: 0;
  font-size: 23px;
  font-weight: 800;
  color: var(--primary-dark, #003e7e);
  line-height: 1.3;
}
.sr-subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text-2);
}
.sr-mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.sr-filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--primary-fill);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
}
.sr-layout {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.sr-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 15px;
  position: sticky;
  top: 120px;
}
.sr-sidebar-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.sr-clear-all {
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.sr-sidebar-close {
  display: none;
  border: 0;
  background: none;
  font-size: 18px;
  color: var(--text-2);
  cursor: pointer;
  padding: 2px 6px;
}
.sr-filter-group + .sr-filter-group {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.sr-filter-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.sr-filter-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}
.sr-facet-empty {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
}
.sr-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s;
}
.sr-check-row:hover {
  background: var(--soft-background, #f3f6fb);
}
.sr-check-row input {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
  flex-shrink: 0;
}
.sr-check-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sr-facet-count {
  font-size: 12.5px;
  color: var(--text-2);
  flex-shrink: 0;
}
.sr-cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.sr-cat-btn:hover {
  background: var(--soft-background, #f3f6fb);
}
.sr-cat-btn.active {
  background: var(--soft-background, #eaf2ff);
  color: var(--primary);
  font-weight: 700;
  border-color: var(--tinted-border, #c5dcff);
}
.sr-price-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.sr-price-pill {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.15s;
}
.sr-price-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.sr-price-pill.active {
  background: var(--primary-fill);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}
.sr-price-custom {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.sr-price-custom input {
  width: 96px;
  flex: 1 1 80px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
}
.sr-price-custom button {
  padding: 6px 10px;
  font-size: 12.5px;
}
.sr-main {
  min-width: 0;
}
.sr-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.sr-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--tinted-border, #c5dcff);
  background: var(--soft-background, #eaf2ff);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.sr-chip:hover {
  background: var(--soft-background, #dbe9ff);
}
.sr-chip-clear {
  border: 0;
  background: none;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
}
.sr-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.sr-count {
  font-size: 14px;
  color: var(--text-2);
}
.sr-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-2);
}
.sr-sort-wrap select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 13.5px;
  cursor: pointer;
}
.sr-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.sr-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 998;
}

@media (max-width: 1200px) {
  .sr-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .sr-layout {
    grid-template-columns: 1fr;
  }
  .sr-mobile-filter-btn {
    display: inline-flex;
  }
  .sr-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 86vw);
    border-radius: 0;
    z-index: 999;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  }
  .sr-sidebar.open {
    transform: translateX(0);
  }
  .sr-sidebar-close {
    display: inline-block;
    margin-left: auto;
  }
  .sr-clear-all + .sr-sidebar-close {
    margin-left: 4px;
  }
}

@media (max-width: 768px) {
  .sr-title {
    font-size: 19px;
  }
  .sr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}
