/* ==========================================================================
   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 {
  --primary: #0052a5;
  --primary-dark: #003e7e;
  --primary-soft: #eef5fc;
  --red: #e32626;
  --red-dark: #c41d1d;
  --zalo: #0068ff;
  --price: #d62828;
  --text: #111827;
  --text-2: #374151;
  --muted: #64748b;
  --border: #e2e8f0;
  --line: #eef2f6;
  --bg: #f5f7fa;
  --radius: 6px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { 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: #fff;
  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); color: #fff; }
.btn-primary:hover, .btn-amber:hover { background: var(--primary-dark); }
.btn-outline, .btn-outline-dark { background: #fff; 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: #fff; border-color: #ee4d2d; color: #ee4d2d; }
.btn-shopee-outline:hover { background: #fff4f1; }

/* ---------- Top Header Bar (Logo + Search + Zalo) ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; box-shadow: 0 2px 10px rgba(15, 23, 42, .06); }
.header-top { background: #fff; 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; }

.header-search-wrap { position: relative; flex: 1; max-width: 600px; margin-left: auto; }
.header-search-form {
  display: flex; align-items: center; 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: #fff; 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); color: #fff; font-size: 14.5px; font-weight: 600; cursor: pointer;
}
.hs-submit-btn:hover { background: var(--primary-dark); }
.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: #fff; 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; }
.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(--primary); 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); 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: 10px; gap: 2px; overflow: hidden;
}
.nav-links a {
  display: inline-flex; align-items: center; height: 48px; padding: 0 11px;
  font-size: 14px; 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 { 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 12px; height: 48px;
  font-size: 15.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); }

/* ---------- Showcase Section: Left Category Sidebar + Right Banner Slider ---------- */
.showcase-section { padding: 14px 0 8px; background: #fff; }
.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: #fff;
  height: 100%; display: flex; flex-direction: column;
  border: 1px solid #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: #eef5fc; 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.sub-open > button,
.cat-sidebar-list > li > button.active {
  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.sub-open > button .side-icon-box,
.cat-sidebar-list > li > button.active .side-icon-box {
  background: var(--primary); 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: #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: #fff; border: 1px solid #dbe4f0; border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .14);
}
.cat-sidebar-list > li:hover > .cat-flyout,
.cat-sidebar-list > li:focus-within > .cat-flyout,
.cat-sidebar-list > li.sub-open > .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: #fff; 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%;
  background: #eef3f9; border: 1px solid #dbe4f0; border-radius: 8px;
  box-shadow: 0 6px 22px rgba(0, 62, 126, .08);
}
.slider-track { position: relative; width: 100%; height: 100%; min-height: 400px; }
.slide {
  position: absolute; inset: 0; opacity: 0; pointer-events: none; cursor: pointer;
  transition: opacity .5s ease;
}
.slide.active { opacity: 1; pointer-events: auto; }
.slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 44%;
  transition: transform 6s ease;
}
.slide[data-slide-cat="quat-tran"] img { object-position: center 18%; }
.slide.active img { transform: scale(1.015); }

.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: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 22px;
  background: linear-gradient(90deg, rgba(0, 48, 104, .88) 0%, rgba(0, 74, 152, .78) 100%);
  backdrop-filter: blur(8px);
  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: #fff; 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); 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); 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);
  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: #fff; }
.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 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: #fff; 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); 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: #fff; 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-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.catalog-toolbar select {
  padding: 8px 12px; font-size: 14px; background: #fff; cursor: pointer; outline: 0;
  border: 1px solid var(--border); border-radius: var(--radius);
}
.catalog-toolbar select:focus { border-color: var(--primary); }
.toggle-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--text-2); cursor: pointer; user-select: none; }
.toggle-chip input { width: 16px; height: 16px; accent-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: #fff; 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; }
.media-tag { position: absolute; top: 8px; left: 8px; padding: 2px 8px; font-size: 12px; font-weight: 600; color: #92400e; background: #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); }
.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: #fff;
  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: #fff; 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 {
  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: #fff; 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); 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 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 button {
  padding: 5px 10px; font-size: 12.5px; font-weight: 600; color: var(--primary);
  background: #fff; border: 1px solid #cdddf0; border-radius: 999px; cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.project-card-tags button:hover { background: var(--primary); 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 #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); 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: #fff; 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: #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); 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: #fff; border: 1px solid #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: #fff; 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: #fff; border: 1px solid var(--border); }
.mobile-zalo { color: #fff; background: var(--zalo); }

/* ---------- Floating Zalo Quick Contact ---------- */
.floating-zalo-wrap {
  position: fixed; right: 22px; bottom: 24px; z-index: 85;
  display: flex; align-items: center; gap: 10px;
}
.floating-zalo-tooltip {
  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: translateX(6px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.floating-zalo-wrap:hover .floating-zalo-tooltip { opacity: 1; transform: translateX(0); }
.floating-zalo-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  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; }
.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: 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: #fff; border: 1px solid var(--border); border-radius: 4px; }
.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: #92400e; background: #fef3c7; }
.sku-code { font-size: 13px; color: var(--muted); }
.stock-status { font-size: 13.5px; font-weight: 600; color: #15803d; }
.stock-status.out { color: #b45309; }
.pd-title { font-size: 24px; font-weight: 700; line-height: 1.35; }
.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: #fff;
  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: #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: #fff; 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: #fff; 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 { 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 (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 > 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: #f8fafc;
  }
  .cat-flyout button, .cat-flyout a { padding: 10px 14px 10px 46px; background: #f8fafc; font-size: 13px; }
  .cat-sidebar-list > li:hover > .cat-flyout { display: none; }
  .cat-sidebar-list > li.sub-open > .cat-flyout { display: block; }
  .hero-slider, .slider-track { 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 0; }
  .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; }
  .hero-slider, .slider-track { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
  .slider-arrow { opacity: .9; width: 32px; height: 32px; font-size: 20px; }
  .slider-bar { padding: 9px 14px; }
  .slider-caption { font-size: 12.5px; letter-spacing: .3px; }
  .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; }
  .mobile-sticky-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--border);
  }
  .floating-zalo-wrap { display: none; }
  .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: #fff;
  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: #b7d3f7;
  color: var(--primary);
}

.cart-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--price);
  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: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
  gap: 6px;
  width: 100%;
}

.btn-cart:hover {
  background: var(--primary);
  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: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn.btn-cart.btn-lg:hover {
  background: var(--primary);
  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: #fff;
  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: #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: #fef2f2;
  border: 1px solid #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; }

/* 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: #fff;
  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: #fff;
  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: #fecaca; color: var(--price); margin-left: auto; }
.cart-remove-btn:hover { background: #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; }
}
