/* ==========================================================================
   LUXAS PRECISION HARDWARE — ART DIRECTION & DESIGN SYSTEM LAYER
   Concept: Industrial Electronics Catalog meets Refined Hardware Craft
   - Replaces generic AI neon gradients, excessive glassmorphism, bubbly radii,
     and noisy infinite animations with crisp engineered geometry & restraint.
   ========================================================================== */

:root {
  /* Engineered Brand Palette */
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-active: #1e3a8a;
  --primary-light: #eff6ff;
  --primary-glow: rgba(29, 78, 216, 0.14);

  --bg-page: #f6f7f9;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;

  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  /* Sharper, Engineered Radii */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 14px;

  /* Subtle, Natural Elevation */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 10px 24px rgba(15, 23, 42, 0.09);
}

/* ---------- Topbar & Header Restraint ---------- */
.topbar {
  background: #0b1120;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- Hero Section: Editorial Hardware Framing ---------- */
.hero-panel {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: var(--shadow-sm);
}

.hero-overlay {
  background: linear-gradient(
    95deg,
    rgba(9, 13, 22, 0.92) 0%,
    rgba(9, 13, 22, 0.68) 52%,
    rgba(9, 13, 22, 0.18) 100%
  );
  padding: 40px 64px;
}

.hero-kicker {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius-sm);
  color: #e2e8f0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 5px 10px;
}

.hero-copy h1 {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

/* Solid, confident engineered CTAs (no neon gradient pills) */
.btn-hero-primary {
  background: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
  padding: 11px 20px;
}

.btn-hero-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}

.btn-hero-secondary {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: none;
  border-radius: var(--radius-md);
  padding: 11px 18px;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
}

.carousel-arrow {
  width: 36px;
  height: 36px;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-md);
}

.carousel-arrow:hover {
  background: #ffffff;
  color: var(--text-primary);
}

.carousel-progress-line {
  background: var(--primary);
}

/* ---------- Promo Side Cards: Crisp Technical Panels ---------- */
.promo-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
}

.promo-tag {
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.promo-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.promo-link-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* ---------- Product Cards: Precision Hardware Spec Card ---------- */
.product-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.product-image-wrap,
.product-card .product-image {
  background: #f8fafc;
  border-bottom: 1px solid var(--border-subtle);
}

.product-card:hover .product-image-wrap img,
.product-card:hover .product-image img {
  transform: scale(1.03);
}

.product-badge-pill,
.product-card .badge {
  background: #0f172a;
  color: #ffffff;
  backdrop-filter: none;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  box-shadow: none;
}

.product-stock-dot-wrap {
  background: #ffffff;
  backdrop-filter: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 12px;
  box-shadow: none;
}

/* Stop noisy infinite pulsing glow across every product card */
.stock-dot.in-stock {
  animation: none;
  box-shadow: none;
}

.stock-dot.low-stock {
  box-shadow: none;
}

.product-meta-line,
.product-card .sku {
  font-size: 12px;
  letter-spacing: 0.01em;
}

.product-price,
.product-card .price {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.product-stock-count,
.product-card .stock {
  font-size: 12px;
}

.qty-pill-group,
.qty-control {
  border-radius: var(--radius-md);
  background: #ffffff;
}

/* ---------- Mobile Hero Padding Adjustment ---------- */
@media (max-width: 768px) {
  .carousel-arrow {
    display: none;
  }
}

/* Prevent mobile topbar collision by stacking contact and action rows cleanly */
@media (max-width: 640px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .topbar-contact,
  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================================
   TECHNICAL SUPPLIER SIGNATURES (Engineering Workbench, Capability Bar, Index)
   ========================================================================== */

/* Subtle PCB / drafting dot-grid behind hardware product imagery */
.product-image-wrap,
.product-card .product-image {
  background-color: #f8fafc;
  background-image: radial-gradient(rgba(100, 116, 139, 0.24) 0.85px, transparent 0.85px);
  background-size: 16px 16px;
}

/* Numbered monospace index inside right-side technical resource panels */
.promo-idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #93c5fd;
  min-width: 20px;
}

/* Unified Engineering Capability Bar (replaces generic floating retail icon boxes) */
.service-strip {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  gap: 0;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.service-strip .service-card {
  background: transparent;
  border: none;
  border-right: 1px solid var(--border-subtle);
  border-radius: 0;
  box-shadow: none;
  padding: 16px 18px;
}

.service-strip .service-card:last-child {
  border-right: none;
}

.service-strip .service-card:hover {
  transform: none;
  background: #f8fafc;
  box-shadow: none;
}

.service-strip .service-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: #f1f5f9 !important;
  color: var(--primary) !important;
  border: 1px solid var(--border-subtle);
  box-shadow: none !important;
}

/* Parametric-style category sidebar */
.category-sidebar {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
}

@media (max-width: 768px) {
  .service-strip .service-card {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .service-strip .service-card:last-child {
    border-bottom: none;
  }
}

/* ==========================================================================
   PRIMARY HORIZONTAL SUB-NAVBAR & CLEAN 2-COL HERO LAYOUT
   ========================================================================== */
.primary-subnav {
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  z-index: 40;
}

.primary-subnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
}

.subnav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.subnav-brand strong {
  color: var(--primary);
}

.subnav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav-links::-webkit-scrollbar {
  display: none;
}

.subnav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 12px 14px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease, background-color 150ms ease;
}

.subnav-links a:hover,
.subnav-links a.is-active {
  color: var(--primary);
}

.subnav-links a.is-active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--primary);
}

.subnav-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 150ms ease, color 150ms ease;
}

.subnav-cart-link:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Expand hero to clean 2-column layout (Categories + Full Hero) after moving promos to dedicated page */
.marketplace {
  grid-template-columns: 256px minmax(0, 1fr) !important;
}

/* Full-width New Arrivals after moving Quick Quote to bao-gia-gio-hang.html */
.split-section {
  grid-template-columns: 1fr !important;
}

.new-box-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.new-box-cta:hover {
  background: var(--primary);
  color: #ffffff;
}

@media (max-width: 1024px) {
  .marketplace {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .primary-subnav-inner {
    flex-wrap: wrap;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .subnav-links {
    width: 100%;
    gap: 2px;
  }

  .subnav-links a {
    padding: 8px 10px;
    font-size: 13px;
  }

  .subnav-cart-link {
    display: none;
  }
}

/* ==========================================================================
   UNIFIED HEADER UTILITIES (Login & Cart Icons) + COBALT BLUE NAVBAR
   ========================================================================== */
.header-util-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}

.header-util-item {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #334155;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  padding: 4px 2px;
  transition: color 150ms ease;
}

.header-util-item:hover {
  color: var(--primary);
}

.header-util-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.util-cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
}

/* Keep header stacking context above .blue-navbar so account/language/search dropdowns are never clipped */
.main-header {
  z-index: 60;
}

/* Unified Solid Blue Navigation Bar */
.blue-navbar {
  background: var(--primary);
  color: #ffffff;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.35);
  position: relative;
  z-index: 35;
}

.blue-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
}

.blue-nav-links {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.blue-nav-links::-webkit-scrollbar {
  display: none;
}

.blue-nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 16px;
  color: #ffffff;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  transition: background-color 150ms ease;
}

.blue-nav-links a:first-child {
  padding-left: 0;
}

.blue-nav-links a:last-child {
  border-right: none;
}

.blue-nav-links a:hover,
.blue-nav-links a.is-active {
  background: rgba(255, 255, 255, 0.14);
}

.blue-nav-hotline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ffffff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 820px) {
  .blue-nav-hotline {
    display: none;
  }

  .header-util-actions {
    gap: 14px;
  }
}

/* ==========================================================================
   HEADER LANGUAGE PICKER (LIGHT THEME) & FLOATING HERO WORK HOURS BADGE
   ========================================================================== */
.header-util-actions .language-picker {
  position: relative;
}

.header-util-actions .language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.header-util-actions .language-toggle:hover {
  border-color: var(--primary);
  background: #eff6ff;
}

.header-util-actions .customer-account {
  position: relative;
}

.header-util-actions .customer-account-toggle.header-util-item {
  background: transparent;
  border: none;
  padding: 4px 2px;
  color: #334155;
  cursor: pointer;
}

.header-util-actions .customer-account-toggle.header-util-item:hover {
  color: var(--primary);
}

/* Floating Work Hours Badge on Hero Banner */
.hero-hours-badge {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: rgba(11, 17, 32, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius-md);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero-hours-badge strong {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #93c5fd;
}

@media (max-width: 640px) {
  .hero-hours-badge {
    display: none;
  }

  .header-util-actions .language-toggle #currentLanguage {
    display: none;
  }
}

/* ==========================================================================
   HERO + COMPACT SERVICE BASE BAR (Unified Right Column beside Mega Menu)
   ========================================================================== */
.hero-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.hero-column .hero-panel {
  flex: 1;
  min-height: 380px;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.hero-column .carousel-track {
  min-height: 380px;
}

@media (max-width: 768px) {
  .hero-panel,
  .carousel-track,
  .hero-column .hero-panel,
  .hero-column .carousel-track {
    min-height: 0;
    height: auto;
    aspect-ratio: 1200 / 509;
  }

  .hero-overlay {
    padding: 16px 18px 28px;
  }

  .hero-kicker {
    font-size: 10px;
    padding: 2px 7px;
    margin-bottom: 6px;
  }

  .hero-copy h1 {
    font-size: 17px;
    line-height: 1.22;
    margin-bottom: 10px;
  }

  .hero-actions {
    gap: 8px;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 6px 12px;
    font-size: 11.5px;
  }
}

@media (max-width: 480px) {
  .hero-panel,
  .carousel-track,
  .hero-column .hero-panel,
  .hero-column .carousel-track {
    min-height: 0;
    height: auto;
    aspect-ratio: 1200 / 509;
  }

  .hero-overlay {
    padding: 10px 12px 22px;
  }

  .hero-kicker {
    display: none;
  }

  .hero-copy h1 {
    font-size: 14px;
    line-height: 1.25;
    margin-bottom: 8px;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 5px 10px;
    font-size: 11px;
  }
}

.hero-column .hero-service-bar {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  max-width: none;
  border: none;
  border-top: 1px solid var(--border-subtle);
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-column .hero-service-bar .service-card {
  padding: 11px 12px;
  gap: 10px;
  align-items: center;
}

.hero-column .hero-service-bar .service-icon-wrap {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.hero-column .hero-service-bar .service-icon-wrap svg {
  width: 16px;
  height: 16px;
}

.hero-column .hero-service-bar .service-text strong {
  font-size: 12.5px;
  line-height: 1.25;
}

.hero-column .hero-service-bar .service-text span {
  font-size: 11.5px;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .hero-column .hero-service-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-column .hero-service-bar .service-card:nth-child(2) {
    border-right: none;
  }

  .hero-column .hero-service-bar .service-card:nth-child(1),
  .hero-column .hero-service-bar .service-card:nth-child(2) {
    border-bottom: 1px solid var(--border-subtle);
  }
}

@media (max-width: 768px) {
  .hero-column .hero-service-bar .service-icon-wrap {
    display: none;
  }

  .hero-column .hero-service-bar .service-text strong {
    font-size: 12px;
  }

  .hero-column .hero-service-bar .service-text span,
  .hero-column .hero-service-bar .service-info span {
    font-size: 9.5px;
    line-height: 1.2;
  }
}

@media (max-width: 480px) {
  .hero-column .hero-service-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-column .hero-service-bar .service-card {
    padding: 8px 9px;
    gap: 0;
  }

  .hero-column .hero-service-bar .service-text strong,
  .hero-column .hero-service-bar .service-info strong {
    font-size: 11px;
    line-height: 1.2;
  }

  .hero-column .hero-service-bar .service-text span,
  .hero-column .hero-service-bar .service-info span {
    font-size: 8px;
    line-height: 1.2;
  }
}

/* ==========================================================================
   FULL-WIDTH HERO, UNIFIED CATEGORY+FILTER BAR & 3-BLOCK PRODUCT SHOWCASE
   ========================================================================== */
.marketplace {
  grid-template-columns: 1fr !important;
}

/* 2-Column Catalog: Left Unified Sidebar (Categories + Filters) | Right 3 Product Blocks */
.shop-section {
  display: grid !important;
  grid-template-columns: 264px minmax(0, 1fr) !important;
  gap: 24px;
  align-items: start;
}

.unified-left-sidebar {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 106px);
  overflow-y: auto;
  scrollbar-width: thin;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.sidebar-section {
  padding: 16px;
}

.sidebar-section + .sidebar-section {
  border-top: 1px solid var(--border-subtle);
}

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

.sidebar-section-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.unified-left-sidebar .mega-categories-list {
  display: grid;
  gap: 2px;
}

.unified-left-sidebar .filter-group {
  margin-bottom: 12px;
}

.unified-left-sidebar .filter-group:last-child {
  margin-bottom: 0;
}

.unified-left-sidebar .filter-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.unified-left-sidebar .filter-select,
.unified-left-sidebar .sort-select {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  font-size: 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: #f8fafc;
  color: var(--text-primary);
}

.unified-left-sidebar .reset-filter-btn {
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.unified-left-sidebar .reset-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.catalog-right-column {
  min-width: 0;
}

@media (max-width: 960px) {
  .shop-section {
    grid-template-columns: 1fr !important;
  }

  .unified-left-sidebar {
    position: static;
  }
}

/* 3 Showcase Blocks */
.showcase-blocks {
  display: grid;
  gap: 40px;
}

.showcase-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--border-subtle);
}

.showcase-block-head h2 {
  font-size: 21px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.showcase-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
}

.showcase-footer {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 26px;
  background: #ffffff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.btn-view-all:hover {
  background: var(--primary);
  color: #ffffff;
}

@media (max-width: 640px) {
  .showcase-block-head h2 {
    font-size: 18px;
  }

  .inline-catalog-filters {
    width: 100%;
    justify-content: flex-start;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inline-catalog-filters .filter-select,
  .inline-catalog-filters .sort-select {
    min-width: 0;
    width: 100%;
  }

  .unified-filter-bar .filter-select,
  .unified-filter-bar .sort-select {
    max-width: none;
    flex: 1 1 calc(50% - 8px);
  }
}

.sidebar-heading-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  text-decoration: none;
  transition: color 150ms ease;
}

.sidebar-heading-link:hover {
  color: var(--primary);
}

/* Inline Catalog Filter Controls inside Section Header */
.inline-catalog-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.inline-catalog-filters .filter-select,
.inline-catalog-filters .sort-select {
  height: 34px;
  padding: 0 10px;
  font-size: 12.5px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text-primary);
  min-width: 118px;
}

.inline-catalog-filters .reset-filter-btn {
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.inline-catalog-filters .reset-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ==========================================================================
   CLEAN 4-COLUMN HAIRLINE CATALOG GRID FOR 3 SHOWCASE BLOCKS
   ========================================================================== */
.showcase-blocks {
  display: grid;
  gap: 24px;
}

.showcase-block {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 2px solid var(--primary);
  border-radius: 2px;
  padding: 0;
  box-shadow: none;
  overflow: hidden;
}

.showcase-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  margin: 0;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.showcase-block-head h2 {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
}

/* 4-column flush hairline grid */
.showcase-block .product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.showcase-block .product-card {
  border: none;
  border-right: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  padding: 16px 14px 18px;
  text-align: center;
  cursor: pointer;
}

.showcase-block .product-card:nth-child(4n) {
  border-right: none;
}

.showcase-block .product-card:hover {
  transform: none;
  box-shadow: inset 0 0 0 1px rgba(29, 78, 216, 0.25);
  background: #fcfdff;
}

.showcase-block .product-image-wrap,
.showcase-block .product-card .product-image {
  background: #ffffff;
  background-image: none;
  border-bottom: none;
  aspect-ratio: 4 / 3;
  margin-bottom: 12px;
}

.showcase-block .product-image-wrap img,
.showcase-block .product-card .product-image img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

/* Clean minimalist card inside showcase blocks: Image + Centered Name + Centered Blue Price + Mua ngay button */
.showcase-block .product-badge-pill,
.showcase-block .product-card .badge,
.showcase-block .product-stock-dot-wrap,
.showcase-block .product-meta-line,
.showcase-block .product-card .sku,
.showcase-block .product-desc-snippet,
.showcase-block .product-description,
.showcase-block .product-stock-count,
.showcase-block .product-card .stock,
.showcase-block .qty-pill-group {
  display: none !important;
}

.showcase-block .product-actions-row,
.showcase-block .product-card .card-actions {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
}

.showcase-block .btn-add-cart,
.showcase-block .product-card .buy-button {
  width: 100%;
  max-width: 152px;
  height: 34px;
  padding: 0 12px;
  border-radius: 5px;
  font-size: 12.5px;
  font-weight: 700;
  gap: 6px;
}

.showcase-block .product-body {
  padding: 0;
  align-items: center;
}

.showcase-block .product-name-btn,
.showcase-block .product-name-button {
  text-align: center;
  font-size: 13.5px;
  font-weight: 500;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 8px;
  min-height: 39px;
}

.showcase-block .product-name-btn:hover,
.showcase-block .product-name-button:hover {
  color: var(--primary);
}

.showcase-block .product-price-row {
  margin-top: auto;
  padding-top: 0;
  border-top: none;
  justify-content: center;
  margin-bottom: 0;
}

.showcase-block .product-price,
.showcase-block .product-card .price {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

.showcase-footer {
  display: flex;
  justify-content: center;
  padding: 14px 16px;
  margin-top: 0;
  background: #ffffff;
}

.showcase-footer .btn-view-all {
  min-height: 36px;
  padding: 7px 22px;
  border-radius: 3px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .showcase-block .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-block .product-card:nth-child(4n) {
    border-right: 1px solid #edf2f7;
  }

  .showcase-block .product-card:nth-child(2n) {
    border-right: none;
  }
}

/* ==========================================================================
   SIDEBAR ACCORDION, COMPACT SPACING, MOBILE DRAWER & SINGLE CONTACT FAB
   ========================================================================== */
.sidebar-section {
  padding: 12px 14px;
}

.sidebar-accordion > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.sidebar-accordion > summary::-webkit-details-marker {
  display: none;
}

.sidebar-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0;
}

.sidebar-accordion[open] > .sidebar-section-head {
  margin-bottom: 10px;
}

.sidebar-filter-title {
  white-space: nowrap;
  font-size: 13px !important;
}

.sidebar-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.reset-filter-icon-btn {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}

.reset-filter-icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #eff6ff;
}

.accordion-chevron {
  color: var(--text-muted);
  transition: transform 150ms ease;
  flex-shrink: 0;
}

.sidebar-accordion[open] > summary .accordion-chevron {
  transform: rotate(180deg);
}

/* Hierarchical compact spacing for categories & filters */
.unified-left-sidebar .mega-item {
  padding: 7px 9px;
  border-radius: var(--radius-sm);
}

.unified-left-sidebar .filter-group {
  margin-bottom: 9px;
}

.unified-left-sidebar .filter-select,
.unified-left-sidebar .sort-select {
  height: 34px;
  font-size: 12.5px;
}

.sidebar-more-cats-btn {
  width: 100%;
  margin-top: 6px;
  padding: 6px 8px;
  background: #f8fafc;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.sidebar-more-cats-btn:hover {
  background: #eff6ff;
  border-color: var(--primary);
}

/* Mobile Drawer Trigger & Drawer Layout (<= 960px) */
.mobile-sidebar-bar,
.mobile-drawer-head {
  display: none;
}

@media (max-width: 960px) {
  .mobile-sidebar-bar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 14px;
  }

  .mobile-sidebar-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    background: #ffffff;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
  }

  .mobile-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 900;
  }

  .unified-left-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 86vw;
    max-height: 100vh !important;
    z-index: 950;
    border-radius: 0;
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  .unified-left-sidebar.is-open {
    transform: translateX(0);
  }

  .mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-subtle);
    background: #0b1120;
    color: #ffffff;
    font-size: 14px;
  }

  .mobile-drawer-close {
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-radius: var(--radius-sm);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
  }
}

/* Consolidate all floating contact buttons into 1 compact bottom-right FAB */
.floating-contact-btn {
  display: none !important;
}

.contact-fab-dock {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.contact-fab-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-fab-menu {
  position: absolute;
  bottom: -4px;
  right: 26px;
  min-width: 248px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  z-index: 1;
  transform-origin: bottom right;
  animation: fabMenuPopIn 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fabMenuPopIn {
  from {
    opacity: 0;
    transform: translateX(10px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes fabPulseRing {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  70% {
    transform: scale(1.48);
    opacity: 0;
  }
  100% {
    transform: scale(1.48);
    opacity: 0;
  }
}

@keyframes fabIconWiggle {
  0%, 72%, 100% {
    transform: rotate(0deg) scale(1);
  }
  78% {
    transform: rotate(-10deg) scale(1.06);
  }
  84% {
    transform: rotate(10deg) scale(1.06);
  }
  90% {
    transform: rotate(-6deg) scale(1.03);
  }
  95% {
    transform: rotate(4deg) scale(1);
  }
}

@keyframes fabCloseSpin {
  from {
    opacity: 0;
    transform: rotate(-90deg) scale(0.75);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

.contact-fab-menu[hidden] {
  display: none !important;
}

.contact-fab-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 44px 13px 16px;
  background: #ffffff;
  border: none;
  border-bottom: 1px solid #eef2f6;
  color: #1e293b;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}

.contact-fab-item:last-child {
  border-bottom: none;
}

.contact-fab-item:hover {
  background: #f8fafc;
  color: var(--primary);
}

.contact-fab-item-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.contact-fab-item-text {
  white-space: nowrap;
}

.contact-fab-trigger {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #0c1f8a;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 6px rgba(12, 31, 138, 0.18), 0 6px 18px rgba(12, 31, 138, 0.28);
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.contact-fab-trigger::before,
.contact-fab-trigger::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid rgba(29, 78, 216, 0.55);
  pointer-events: none;
  animation: fabPulseRing 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.contact-fab-trigger::after {
  animation-delay: 1.2s;
}

.contact-fab-trigger[aria-expanded="true"]::before,
.contact-fab-trigger[aria-expanded="true"]::after {
  animation: none;
  opacity: 0;
}

.contact-fab-icon-open {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.contact-fab-icon-open svg {
  animation: fabIconWiggle 3.6s ease-in-out infinite;
  transform-origin: center;
}

.contact-fab-icon-close {
  display: none;
  align-items: center;
  justify-content: center;
}

.contact-fab-trigger[aria-expanded="true"] .contact-fab-icon-open {
  display: none;
}

.contact-fab-trigger[aria-expanded="true"] .contact-fab-icon-close {
  display: inline-flex;
  animation: fabCloseSpin 200ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .contact-fab-trigger::before,
  .contact-fab-trigger::after,
  .contact-fab-icon-open svg,
  .contact-fab-menu,
  .contact-fab-trigger[aria-expanded="true"] .contact-fab-icon-close {
    animation: none !important;
  }
}

.contact-fab-label {
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
}

.contact-fab-trigger:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 0 0 9px rgba(29, 78, 216, 0.22), 0 8px 20px rgba(29, 78, 216, 0.32);
}

.scroll-top-fab {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #0c1f8a;
  color: #ffffff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(12, 31, 138, 0.26);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.92);
  transition: opacity 200ms ease, transform 200ms ease, background-color 150ms ease;
}

.scroll-top-fab.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-top-fab:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .contact-fab-dock {
    right: 14px;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }
}

/* ==========================================================================
   CATALOG BREADCRUMB, REFINED CATEGORY SIDEBAR & SORT + GRID/LIST TOOLBAR
   ========================================================================== */
.marketplace {
  margin-bottom: 18px;
}

.marketplace[hidden] {
  display: none !important;
}

.catalog-breadcrumb {
  padding: 14px 0 12px;
  font-size: 13px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.4;
}

.catalog-breadcrumb[hidden] {
  display: none !important;
}

.catalog-breadcrumb a {
  color: #334155;
  text-decoration: none;
  font-weight: 500;
  transition: color 150ms ease;
}

.catalog-breadcrumb a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.catalog-breadcrumb .current {
  color: var(--primary);
  font-weight: 600;
}

/* Refined Category Sidebar */
.unified-left-sidebar {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  overflow-y: auto;
}

.unified-left-sidebar .sidebar-section {
  padding: 0;
}

.sidebar-blue-header {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  padding: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.sidebar-blue-header-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background-color 150ms ease;
}

.sidebar-blue-header-link:hover {
  background: rgba(255, 255, 255, 0.09);
}

.unified-left-sidebar .mega-categories-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.unified-left-sidebar .mega-item {
  padding: 10px 14px;
  border-radius: 0;
  border-left: 3px solid transparent;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.unified-left-sidebar .mega-item:last-child {
  border-bottom: none;
}

.unified-left-sidebar .mega-item-top {
  gap: 8px;
}

.unified-left-sidebar .mega-item-label {
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
}

.unified-left-sidebar .mega-item-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  transition: background-color 140ms ease, color 140ms ease;
}

.unified-left-sidebar .mega-item-icon svg {
  width: 15px;
  height: 15px;
}

.unified-left-sidebar .mega-item-count {
  display: none;
}

.unified-left-sidebar .mega-item:hover {
  background: #f8fafc;
  border-left-color: #93c5fd;
}

.unified-left-sidebar .mega-item:hover .mega-item-label {
  color: var(--primary);
}

.unified-left-sidebar .mega-item:hover .mega-item-icon {
  background: #dbeafe;
  color: var(--primary);
}

.unified-left-sidebar .mega-item.active {
  background: #eff6ff;
  border-left-color: var(--primary);
}

.unified-left-sidebar .mega-item.active .mega-item-label {
  color: var(--primary);
  font-weight: 700;
}

.unified-left-sidebar .mega-item.active .mega-item-icon {
  background: var(--primary);
  color: #ffffff;
}

/* Catalog Toolbar Header (Title | Sắp xếp: [select] | Grid/List Icons + Blue Underline) */
.catalog-toolbar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1.5px solid var(--primary);
}

.catalog-toolbar-head h2 {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
}

.catalog-toolbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.sort-inline-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #334155;
  font-weight: 500;
}

.catalog-sort-select {
  height: 36px;
  min-width: 150px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  background: #ffffff;
  color: #334155;
  font-size: 13.5px;
  font-family: inherit;
}

.view-mode-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.view-mode-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 3px;
  transition: color 150ms ease;
}

.view-mode-btn:hover,
.view-mode-btn.is-active {
  color: var(--primary);
}

/* Consistent Buy Now button on sub-category & full catalog cards */
#allProductsWrap .product-actions-row,
#allProductsWrap .product-card .card-actions {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
}

#allProductsWrap .btn-add-cart,
#allProductsWrap .product-card .buy-button {
  width: 100%;
  height: 36px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
}

/* ==========================================================================
   SYNCHRONIZED 4-COLUMN PRECISION LAB FOOTER (LIGHT CLEAN SURFACE)
   ========================================================================== */
.site-footer {
  background: #ffffff;
  color: #475569;
  padding: 46px 0 22px;
  border-top: 2px solid var(--primary);
  font-size: 13.5px;
  box-shadow: 0 -2px 12px rgba(15, 23, 42, 0.03);
}

.footer-grid-4 {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 1fr 1.25fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 12px;
}

.footer-brand-row img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 3px;
}

.footer-brand-name {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.footer-brand-sub {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-desc {
  color: #475569;
  line-height: 1.65;
  margin: 0 0 16px;
  font-size: 13px;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  min-width: 44px;
  padding: 0 14px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.footer-social-pill:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.footer-col-title {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0f172a;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid #e2e8f0;
}

.footer-links-list,
.footer-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  color: #334155;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 140ms ease, transform 140ms ease;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 0;
}

.footer-links-list a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.footer-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #334155;
  font-size: 13px;
  line-height: 1.5;
}

.footer-info-list svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-info-list a {
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
}

.footer-info-list a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-payment-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-payment-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-right: 2px;
}

.footer-payment-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.payment-badge-card {
  height: 30px;
  padding: 0 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #475569;
}

.payment-badge-card svg {
  height: 18px;
  width: auto;
  display: block;
}

.payment-badge-card span {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.1;
  color: #475569;
  white-space: nowrap;
}

.site-footer .footer-bottom {
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: #64748b;
}

.site-footer .footer-bottom p {
  margin: 0;
}

@media (max-width: 960px) {
  .footer-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 560px) {
  .site-footer {
    padding: 36px 0 22px;
  }

  .footer-grid-4 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ==========================================================================
   REFINED HEADER SEARCH BOX & LIVE SUGGESTIONS DROPDOWN
   ========================================================================== */
.search-box {
  height: 44px;
  max-width: 600px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 3px 4px 3px 12px;
  box-shadow: none;
  gap: 0;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.search-box:hover {
  border-color: #94a3b8;
  background: #ffffff;
}

.search-box:focus-within {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14);
}

.search-scope-select {
  max-width: 148px;
  height: 32px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  padding: 0 10px 0 2px;
  margin-right: 10px;
  border-right: 1px solid #e2e8f0;
  text-overflow: ellipsis;
}

.search-input-wrap {
  gap: 6px;
}

.search-input {
  height: 36px;
  font-size: 14px;
  color: #0f172a;
}

.search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.search-clear-btn {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-right: 4px;
  transition: background-color 140ms ease, color 140ms ease;
}

.search-clear-btn:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.search-clear-btn[hidden] {
  display: none !important;
}

.search-kbd {
  font-size: 10.5px;
  color: #64748b;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 2px 6px;
  margin-right: 6px;
}

.search-kbd[hidden] {
  display: none !important;
}

.search-button,
.search-submit {
  height: 36px;
  padding: 0 16px;
  border-radius: 7px;
  background: var(--primary);
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: none;
}

.search-button:hover,
.search-submit:hover {
  background: var(--primary-hover);
  transform: none;
  box-shadow: none;
}

.suggestions {
  top: calc(100% + 8px);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.14);
  overflow: hidden;
  background: #ffffff;
}

.suggestion-item {
  border-left: 3px solid transparent;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.suggestion-item:hover,
.suggestion-item.is-selected {
  background: #eff6ff;
  border-left-color: var(--primary);
}

.suggestion-loading {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

.header-search-row {
  display: contents;
}

.mobile-nav-menu-btn {
  display: none;
}

@media (max-width: 768px) {
  .header-grid {
    gap: 10px 8px;
    padding: 10px 0;
  }

  .header-search-row {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-nav-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: #ffffff;
    cursor: pointer;
    transition: background-color 150ms ease;
  }

  .mobile-nav-menu-btn:hover {
    background: var(--primary-hover);
  }

  .mobile-nav-menu-btn .icon-close {
    display: none;
  }

  .mobile-nav-menu-btn[aria-expanded="true"] .icon-menu {
    display: none;
  }

  .mobile-nav-menu-btn[aria-expanded="true"] .icon-close {
    display: block;
  }

  .search-box {
    order: unset;
    flex: 1;
    min-width: 0;
    width: auto;
    margin-top: 0;
  }

  /* Collapse blue navbar into dropdown on mobile */
  .blue-navbar {
    display: none;
    border-bottom: none;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.2);
  }

  .blue-navbar.is-open {
    display: block;
  }

  .blue-navbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 4px;
    padding-bottom: 10px;
  }

  .blue-nav-links {
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    width: 100%;
  }

  .blue-nav-links a,
  .blue-nav-links a:first-child {
    padding: 12px 10px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 13px;
  }

  .blue-nav-links a:last-child {
    border-bottom: none;
  }

  .blue-navbar.is-open .blue-nav-hotline {
    display: inline-flex;
    padding: 11px 10px 4px;
    margin-top: 4px;
    border-top: 1px dashed rgba(255, 255, 255, 0.28);
    font-size: 13.5px;
  }
}

@media (max-width: 640px) {
  .search-scope-select,
  .search-kbd {
    display: none !important;
  }

  .search-box {
    padding-left: 12px;
  }

  .search-input {
    font-size: 16px;
  }

  .blue-nav-links a {
    padding: 10px 11px;
    font-size: 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 16.5px;
  }

  .brand-text small {
    display: none;
  }

  .header-util-actions {
    gap: 10px;
    min-width: 0;
  }

  .header-util-actions .language-toggle {
    height: 32px;
    padding: 0 7px;
    gap: 4px;
  }

  #customerAccountLabel {
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .header-grid {
    gap: 8px 6px;
    padding: 8px 0;
  }

  .brand {
    gap: 6px;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 16px;
  }

  .header-util-actions {
    gap: 8px;
  }

  .header-util-item {
    padding: 4px;
  }

  #customerAccountLabel,
  .header-util-item > span[data-i18n="cart"] {
    display: none;
  }
}

/* Catalog Pagination Bar */
.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}

.catalog-pagination[hidden] {
  display: none !important;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 11px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #334155;
  font-size: 13.5px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: #eff6ff;
}

.page-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-ellipsis {
  padding: 0 4px;
  color: #94a3b8;
  font-weight: 700;
}

.page-summary {
  margin-left: 10px;
  font-size: 12.5px;
  color: #64748b;
}

/* List View Mode for #productGrid */
.product-grid.is-list-view {
  grid-template-columns: 1fr !important;
  gap: 12px;
}

.product-grid.is-list-view .product-card {
  flex-direction: row;
  align-items: center;
}

.product-grid.is-list-view .product-image-wrap,
.product-grid.is-list-view .product-card .product-image {
  width: 180px;
  min-width: 180px;
  aspect-ratio: 4 / 3;
  border-bottom: none;
  border-right: 1px solid var(--border-subtle);
}

@media (max-width: 640px) {
  .product-grid.is-list-view .product-card {
    flex-direction: column;
    align-items: stretch;
  }

  .product-grid.is-list-view .product-image-wrap,
  .product-grid.is-list-view .product-card .product-image {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
}
