/* ==========================================================================
   STEM IoT Shop - Modern High-Tech UI/UX (UI/UX Pro Max Edition)
   Style: Modern Aurora + Frosted Glassmorphism + Liquid Glass
   Typography: Plus Jakarta Sans
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand & Core Palette */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-active: #1e40af;
  --primary-light: #eff6ff;
  --primary-glow: rgba(37, 99, 235, 0.22);

  --cyan: #06b6d4;
  --cyan-light: #ecfeff;
  --cyan-glow: rgba(6, 182, 212, 0.25);

  --indigo: #4f46e5;
  --purple: #8b5cf6;

  --success: #10b981;
  --success-light: #ecfdf5;
  --success-glow: rgba(16, 185, 129, 0.25);
  --emerald: #10b981;

  --warning: #f59e0b;
  --warning-light: #fffbeb;

  --danger: #ef4444;
  --danger-light: #fef2f2;

  /* Neutrals */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-alt: #f1f5f9;

  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-focus: #93c5fd;
  --border: #e2e8f0;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  --dark-navy: #090d16;
  --dark-surface: #0f172a;
  --dark-border: rgba(255, 255, 255, 0.08);

  /* Shadows (Multi-layered Depth) */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 4px -1px rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.1), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 40px -8px rgba(15, 23, 42, 0.14), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 24px -2px var(--primary-glow);

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
}

[hidden] {
  display: none !important;
}

/* Customer account */
.customer-account {
  position: relative;
}

.customer-account-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.customer-account-toggle:hover,
.customer-account-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.customer-account-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 120;
  min-width: 190px;
  padding: 6px;
  background: #1f1f21;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.customer-account-menu[hidden] {
  display: none !important;
}

.customer-account-menu button,
.customer-account-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  color: #ffffff;
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-xs);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.customer-account-menu button[hidden],
.customer-account-menu a[hidden] {
  display: none !important;
}

.customer-account-menu button:hover,
.customer-account-menu a:hover {
  color: #67e8f9;
  background: rgba(255, 255, 255, 0.08);
}

.customer-account-menu .customer-menu-link {
  background: rgba(37, 99, 235, 0.22) !important;
  color: #93c5fd !important;
  font-weight: 700 !important;
  margin-bottom: 4px;
}

.customer-account-menu .customer-menu-link:hover {
  background: var(--primary) !important;
  color: #ffffff !important;
}

.customer-account-menu .customer-logout-btn {
  color: #f87171 !important;
}

.customer-account-menu .customer-logout-btn:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #fca5a5 !important;
}

.account-modal-backdrop,
.account-modal-backdrop[hidden] {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(9, 13, 22, 0.65);
}

.account-modal-backdrop[hidden] {
  display: none;
}

.account-modal,
.account-modal[hidden] {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 201;
  width: min(420px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.account-modal[hidden] {
  display: none;
}

.account-modal h2 {
  margin-bottom: 4px;
  color: var(--text-primary);
  font-size: 24px;
}

.account-modal-subtitle {
  margin-bottom: 18px;
  color: var(--text-secondary);
  font-size: 13px;
}

.account-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  color: var(--text-muted);
  font-size: 26px;
}

.account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-sm);
}

.account-tabs button {
  padding: 8px;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.account-tabs button.is-active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

.account-form {
  display: grid;
  gap: 8px;
}

.account-form[hidden] {
  display: none;
}

.account-form label {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.account-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: none;
}

.account-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.password-field-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-field-wrapper input {
  padding-right: 42px;
}

.password-toggle-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.password-toggle-btn:hover {
  color: var(--primary);
  background: var(--bg-surface-alt);
}

.password-toggle-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.password-toggle-btn svg {
  pointer-events: none;
  flex-shrink: 0;
}

.password-toggle-btn[aria-pressed="true"] .eye-show {
  display: none !important;
}

.password-toggle-btn[aria-pressed="true"] .eye-hide {
  display: block !important;
}

.password-toggle-btn[aria-pressed="false"] .eye-show {
  display: block !important;
}

.password-toggle-btn[aria-pressed="false"] .eye-hide {
  display: none !important;
}

.account-form-message {
  min-height: 18px;
  color: var(--danger);
  font-size: 12px;
}

.account-submit {
  padding: 11px 14px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-weight: 700;
}

.account-submit:hover {
  background: var(--primary-hover);
}

.account-link {
  padding: 2px;
  color: var(--primary);
  font-size: 12px;
  text-align: center;
}

.account-link:hover {
  text-decoration: underline;
}

.checkout-customer-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-size: 12px;
  margin-bottom: 8px;
}

.checkout-customer-notice[hidden] {
  display: none !important;
}

.customer-orders-modal {
  width: min(580px, calc(100% - 32px)) !important;
  max-height: 85vh;
  overflow-y: auto;
}

.customer-orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.customer-order-card {
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: var(--bg-surface-alt);
}

.customer-order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.customer-order-card-id {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 14px;
}

.customer-order-card-status {
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
}

.customer-order-card-status.pending {
  background: #fef3c7;
  color: #92400e;
}

.customer-order-card-status.processing {
  background: #e0f2fe;
  color: #0369a1;
}

.customer-order-card-status.shipped {
  background: #ede9fe;
  color: #6d28d9;
}

.customer-order-card-status.completed {
  background: #d1fae5;
  color: #065f46;
}

.customer-order-card-status.cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.customer-order-items {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 8px;
}

.customer-order-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px dashed var(--border-subtle, #e2e8f0);
  padding-top: 8px;
}

.customer-order-card-total {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.customer-orders-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
  font-size: 13px;
}

.quote-file-input {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
}

.quote-file-input small {
  color: var(--text-muted);
}

.quote-file-input input {
  margin-top: 4px;
  font-size: 12px;
}

.customer-quote-attachment {
  display: inline-flex;
  margin-top: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

/* ==========================================================================
   TOPBAR
   ========================================================================== */
.topbar {
  background: var(--dark-navy);
  color: #cbd5e1;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 50;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}

.topbar-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.topbar-item,
.topbar-contact>span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-item svg,
.topbar-contact>span svg {
  width: 14px;
  height: 14px;
  color: var(--cyan);
}

.topbar-item strong,
.topbar-contact>span strong {
  color: #ffffff;
  font-weight: 600;
}

.topbar-right,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-portal-link,
.admin-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.4);
  border-radius: var(--radius-full);
  color: #93c5fd;
  font-weight: 600;
  font-size: 11.5px;
  transition: all var(--transition-fast);
}

.admin-portal-link:hover,
.admin-quick-link:hover {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 14px var(--primary-glow);
  border-color: var(--primary);
}

.admin-portal-link svg,
.admin-quick-link svg {
  width: 13px;
  height: 13px;
}

/* Language Picker */
.language-picker {
  position: relative;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.language-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.topbar-hotline,
.footer-hotline,
.topbar-email,
.footer-email {
  color: inherit;
}

.topbar-hotline:hover,
.footer-hotline:hover,
.topbar-email:hover,
.footer-email:hover {
  color: var(--cyan);
  text-decoration: underline;
}

.language-toggle svg {
  width: 14px;
  height: 14px;
}

.language-flag {
  flex: 0 0 auto;
  width: 18px;
  height: 14px;
  object-fit: contain;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 150px;
  overflow: hidden;
  z-index: 100;
  animation: dropdownFadeIn 200ms ease-out;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.language-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  transition: background var(--transition-fast);
}

.language-menu button:hover,
.language-menu button.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

/* ==========================================================================
   MAIN HEADER (Glassmorphic)
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 18px -4px rgba(15, 23, 42, 0.04);
  transition: background var(--transition-normal);
}

.header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

/* Brand */
.brand-logo {
  display: block;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  object-fit: contain;
  background: #ffffff;
  border-radius: 6px;
}

.brand-logo-compact {
  width: 34px;
  height: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-badge,
.brand-mark {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #1d4ed8, #06b6d4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: transform var(--transition-bounce);
}

.brand:hover .brand-badge,
.brand:hover .brand-mark {
  transform: scale(1.05) rotate(2deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #0f172a 30%, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text small {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Smart Search Box */
.search-box {
  flex: 1;
  max-width: 580px;
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px 6px 4px 14px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.search-scope-select {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  padding-right: 8px;
  border-right: 1px solid var(--border-subtle);
  margin-right: 10px;
  flex-shrink: 0;
}

.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.search-icon-inside {
  color: var(--text-light);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-primary);
  min-width: 0;
}

.search-input::placeholder {
  color: var(--text-light);
}

.search-kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-light);
  background: var(--bg-surface-alt);
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 8px;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.search-button,
.search-submit {
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
  color: #ffffff;
  min-width: 38px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.search-button:hover,
.search-submit:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.search-button svg,
.search-submit svg {
  width: 16px;
  height: 16px;
}

/* Search Suggestions Popup */
.suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.16), 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  max-height: 420px;
  overflow-y: auto;
  z-index: 150;
  animation: dropdownFadeIn 180ms ease-out;
}

.suggestions[hidden] {
  display: none !important;
}

.suggestion-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
  transition: all var(--transition-fast);
  cursor: pointer;
  background: #ffffff;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.is-selected {
  background: #f0f7ff;
}

.suggestion-item:hover h4,
.suggestion-item.is-selected h4 {
  color: var(--primary);
}

.suggestion-item img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.suggestion-info {
  flex: 1;
  min-width: 0;
}

.suggestion-info h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition-fast);
}

.suggestion-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.suggestion-sku {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.suggestion-stock {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
}

.suggestion-stock.in-stock {
  background: #ecfdf5;
  color: #059669;
}

.suggestion-stock.out-of-stock {
  background: #fef2f2;
  color: #dc2626;
}

.suggestion-price {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  padding-left: 8px;
}

.suggestion-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.suggestion-footer {
  padding: 6px 10px;
  background: #f8fafc;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.suggestion-footer-btn {
  width: 100%;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: background var(--transition-fast);
}

.suggestion-footer-btn:hover {
  background: #eff6ff;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.cart-action:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.cart-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cart-icon-wrap svg {
  width: 20px;
  height: 20px;
  color: var(--text-primary);
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px var(--primary-glow);
}

.cart-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.nav-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 48px;
}

.category-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 18px;
  background: var(--primary);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: background var(--transition-fast);
}

.category-toggle:hover {
  background: var(--primary-hover);
}

.category-toggle svg {
  width: 16px;
  height: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link svg {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.free-shipping-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cyan-light);
  color: #0e7490;
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.free-shipping-tag svg {
  color: var(--cyan);
}

/* ==========================================================================
   MARKETPLACE HERO & MEGA MENU
   ========================================================================== */
.marketplace {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 30px;
}

/* Mega Menu */
.mega-menu {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.mega-menu h2 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-left: 6px;
}

#megaCategories {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mega-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  text-align: left;
  transition: all var(--transition-fast);
  position: relative;
}

.mega-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mega-item-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.mega-item-icon {
  width: 18px;
  height: 18px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mega-item-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.mega-item-count {
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-surface-alt);
  color: var(--text-muted);
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

.mega-item small {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 26px;
}

.mega-item:hover,
.mega-item.active {
  background: var(--primary-light);
}

.mega-item:hover .mega-item-label,
.mega-item.active .mega-item-label {
  color: var(--primary);
}

.mega-item.active .mega-item-count {
  background: var(--primary);
  color: #ffffff;
}

/* Hero Carousel */
.hero-panel {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--dark-navy);
  min-height: 380px;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1), transform 600ms ease;
  transform: scale(1.02);
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 13, 22, 0.85) 0%, rgba(9, 13, 22, 0.4) 60%, transparent 100%);
  display: flex;
  align-items: center;
  padding: 40px;
}

.hero-copy {
  max-width: 460px;
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(6, 182, 212, 0.2);
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: var(--radius-full);
  color: #67e8f9;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.hero-copy h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #ffffff;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: 0 4px 18px var(--primary-glow);
  transition: all var(--transition-fast);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 11px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 13.5px;
  transition: all var(--transition-fast);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Carousel Controls */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  z-index: 10;
  transition: all var(--transition-fast);
}

.carousel-arrow:hover {
  background: #ffffff;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.carousel-arrow.prev {
  left: 14px;
}

.carousel-arrow.next {
  right: 14px;
}

.carousel-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 10;
}

.carousel-progress-line {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  transition: width 100ms linear;
}

.carousel-dots {
  position: absolute;
  bottom: 14px;
  right: 20px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.4);
  transition: all var(--transition-fast);
}

.carousel-dot.active {
  width: 24px;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Right Promos - Pro Max UI */
.right-promos {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.right-promos .promo-card {
  flex: 1;
  background: linear-gradient(135deg, #090e1a 0%, #151d38 60%, #1a163b 100%);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 12px;
  box-shadow: 0 10px 30px -8px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1;
}

.right-promos .promo-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -30%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  transition: transform 0.6s ease;
  pointer-events: none;
}

.right-promos .promo-card:hover::before {
  transform: scale(1.3);
}

.right-promos .promo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -10px rgba(79, 70, 229, 0.45), 0 0 0 1px rgba(129, 140, 248, 0.3) inset;
  border-color: rgba(129, 140, 248, 0.3);
}

.promo-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  width: fit-content;
}

.promo-tag.tech {
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #93c5fd;
}

.promo-tag.factory {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}

.promo-content {
  display: flex;
  flex-direction: column;
}

.right-promos .promo-card strong {
  font-size: 15px;
  font-weight: 800;
  background: linear-gradient(to right, #ffffff, #e0e7ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 6px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.right-promos .promo-card p {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
}

.promo-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  margin-top: auto;
}

.promo-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.3;
}

.promo-arrow {
  color: #818cf8;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.25s ease, color 0.25s ease;
}

.promo-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(129, 140, 248, 0.4);
  color: #ffffff;
  transform: translateX(3px);
}

.promo-links a:hover .promo-arrow {
  color: #a5b4fc;
  transform: translateX(2px);
}

/* ==========================================================================
   SERVICE STRIP (Bento Grid)
   ========================================================================== */
.service-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.service-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-icon-wrap.blue {
  background: #eff6ff;
  color: #2563eb;
}

.service-icon-wrap.cyan {
  background: #ecfeff;
  color: #0891b2;
}

.service-icon-wrap.emerald {
  background: #ecfdf5;
  color: #059669;
}

.service-icon-wrap.amber {
  background: #fffbeb;
  color: #d97706;
}

.service-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.service-info strong,
.service-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.service-info span,
.service-text span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   SHOP SECTION & FILTER
   ========================================================================== */
.shop-section {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

/* Filter Panel */
.filter-panel {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  height: fit-content;
  position: sticky;
  top: 90px;
}

.filter-header,
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.filter-header h3,
.panel-title h3,
.panel-title>span {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.filter-header svg,
.panel-title svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.reset-filter-btn,
.reset-filter {
  font-size: 12px;
  font-weight: 600;
  color: var(--danger);
  cursor: pointer;
  transition: opacity var(--transition-fast);
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.reset-filter-btn:hover,
.reset-filter:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.filter-group {
  margin-bottom: 18px;
}

.filter-group label,
.filter-panel label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.filter-select,
.filter-panel select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  outline: none;
  transition: all var(--transition-fast);
}

.filter-select:focus,
.filter-panel select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Product Column Header */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-head-title p,
.section-sub {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 2px;
}

.section-head-title h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.view-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.result-count-badge,
.count-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface-alt);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.sort-select,
.view-tools select {
  padding: 8px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.sort-select:focus,
.view-tools select:focus {
  border-color: var(--primary);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

/* Product Card (High-Tech E-commerce Standard) */
.product-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.3);
}

.product-image-wrap,
.product-card .product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-wrap img,
.product-card .product-image img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.product-card:hover .product-image-wrap img,
.product-card:hover .product-image img {
  transform: scale(1.07);
}

.product-badge-pill,
.product-card .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
  border: 1px solid rgba(226, 232, 240, 0.6);
  z-index: 2;
}

.product-stock-dot-wrap {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
  z-index: 2;
}

.stock-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
}

.stock-dot.in-stock {
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: pulseGreen 2s infinite;
}

.stock-dot.low-stock {
  background: var(--warning);
  box-shadow: 0 0 6px var(--warning);
}

.stock-dot.out-stock,
.stock-dot.out-of-stock {
  background: var(--danger);
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-meta-line,
.product-card .sku {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.product-name-btn,
.product-name-button {
  text-align: left;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.product-name-btn:hover,
.product-name-button:hover {
  color: var(--primary);
}

.product-desc-snippet,
.product-description {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-row {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.product-price,
.product-card .price {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.product-stock-count,
.product-card .stock {
  font-size: 11px;
  color: var(--text-muted);
}

.product-actions-row,
.product-card .card-actions {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
}

.qty-pill-group,
.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface-alt);
  overflow: hidden;
}

.qty-step-btn,
.qty-button {
  width: 26px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: background var(--transition-fast);
  cursor: pointer;
}

.qty-step-btn:hover,
.qty-button:hover {
  background: #ffffff;
  color: var(--primary);
}

.qty-pill-input,
.qty-control input {
  width: 34px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

.qty-pill-input::-webkit-outer-spin-button,
.qty-pill-input::-webkit-inner-spin-button,
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-add-cart,
.buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-md);
  height: 36px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-add-cart:hover,
.buy-button:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px var(--primary-glow);
  transform: scale(1.02);
}

.btn-add-cart svg,
.buy-button svg {
  width: 15px;
  height: 15px;
}

.empty-state-box,
.empty-state {
  grid-column: 1 / -1;
  background: #ffffff;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
}

.empty-state-box svg,
.empty-state svg {
  width: 48px;
  height: 48px;
  color: var(--text-light);
  margin-bottom: 12px;
}

/* ==========================================================================
   NEW ARRIVALS & QUOTE SPLIT SECTION
   ========================================================================== */
.split-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  margin-bottom: 48px;
  align-items: start;
}

.new-box,
.quote-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}

.mini-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.mini-card:hover {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.mini-card .product-image {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.mini-card .product-image img,
.mini-card img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #ffffff;
  border-radius: var(--radius-sm);
}

.mini-card h3 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.mini-card strong {
  font-size: 13.5px;
  color: var(--primary);
  font-weight: 700;
}

.quote-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quote-box input,
.quote-box textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.quote-box input:focus,
.quote-box textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.quote-box textarea {
  height: 85px;
  resize: vertical;
}

.quote-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-subtle);
}

.quote-benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.quote-benefit-item svg {
  color: var(--success, #10b981);
  flex-shrink: 0;
}

.btn-submit-quote {
  background: linear-gradient(135deg, var(--dark-navy), var(--primary));
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.btn-submit-quote:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* ==========================================================================
   FOOTER (High-End Corporate Dark)
   ========================================================================== */
.site-footer {
  background: var(--dark-navy);
  color: #94a3b8;
  padding: 56px 0 28px;
  border-top: 1px solid var(--dark-border);
  font-size: 13px;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-panel-header {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}

.footer-divider {
  width: 32px;
  height: 2px;
  background: var(--cyan);
  margin-bottom: 18px;
}

.footer-content h3 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-content li {
  line-height: 1.6;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}

/* ==========================================================================
   CART DRAWER & FREE SHIPPING METER
   ========================================================================== */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.6);
  backdrop-filter: blur(6px);
  z-index: 90;
  transition: opacity var(--transition-normal);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: min(460px, 100vw);
  height: 100vh;
  background: #ffffff;
  box-shadow: var(--shadow-xl);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-normal);
}

.cart-drawer.open {
  right: 0;
}

.drawer-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-head h2 {
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-head svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.close-button {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--bg-surface-alt);
  transition: all var(--transition-fast);
}

.close-button:hover {
  background: var(--danger-light);
  color: var(--danger);
}

/* Free Shipping Progress Meter */
.free-shipping-meter {
  padding: 12px 24px;
  background: var(--cyan-light);
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
}

.free-shipping-label {
  font-size: 12px;
  font-weight: 600;
  color: #0e7490;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.free-shipping-bar {
  height: 6px;
  background: rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.free-shipping-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #06b6d4, #10b981);
  border-radius: var(--radius-full);
  transition: width 350ms ease;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.cart-line img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: #ffffff;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.cart-line-info {
  flex: 1;
}

.cart-line-info h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cart-line-info small {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}

.cart-line-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-line-actions button {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  transition: all var(--transition-fast);
}

.cart-line-actions button:hover {
  background: var(--primary);
  color: #ffffff;
}

.cart-line-actions .cart-remove-btn {
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.2);
}

.cart-line-actions .cart-remove-btn:hover {
  background: var(--danger);
  color: #ffffff;
}

.cart-summary {
  padding: 18px 24px;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
}

.cart-summary-row.total {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.cart-summary-row.total strong {
  color: var(--primary);
}

.checkout-form {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-form input {
  padding: 10px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.checkout-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn-place-order,
.checkout-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #ffffff;
  padding: 13px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  width: 100%;
}

.btn-place-order:hover,
.checkout-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

/* ==========================================================================
   PRODUCT DETAIL MODAL
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity var(--transition-normal);
}

.modal.hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: min(880px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalScaleIn 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

#closeProductModal {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 50;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-alt, #f1f5f9);
  border: 1px solid var(--border-subtle, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary, #475569);
  transition: all var(--transition-fast);
}

#closeProductModal:hover {
  background: #fee2e2;
  color: #ef4444;
  transform: scale(1.08);
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-detail-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  padding: 32px;
}

.modal-main-image-wrap {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border: 1px solid var(--border-subtle);
}

.modal-main-image-wrap img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.cart-product-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.cart-product-link:hover h4,
.cart-product-link:focus-visible h4 {
  color: var(--primary);
}

.cart-product-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.modal-thumbs {
  display: flex;
  gap: 8px;
}

.modal-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-subtle);
  background: var(--bg-surface-alt);
  overflow: hidden;
  padding: 4px;
  transition: all var(--transition-fast);
}

.modal-thumb.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-body h2 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 6px;
}

.modal-meta-line {
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.modal-price {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
}

.modal-detail-tabs {
  display: flex;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.tab-button {
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.tab-button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.spec-list li {
  padding: 6px 10px;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-sm);
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.btn-modal-add {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: all var(--transition-fast);
}

.btn-modal-add:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.modal-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
}

.modal-title-row h2 {
  min-width: 0;
}

.btn-modal-share {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.modal-detail-tabs .btn-modal-share {
  width: 30px;
  height: 30px;
  margin-left: auto;
  border: 0;
  border-radius: var(--radius-sm);
}

.btn-modal-share:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* Related Products Grid */
.modal-related {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.modal-related h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.related-item {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all var(--transition-fast);
}

.related-item:hover {
  border-color: var(--primary);
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.related-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #ffffff;
  border-radius: var(--radius-sm);
}

.related-item strong {
  font-size: 11.5px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-item span {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.4), 0 4px 14px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 9999;
  opacity: 0;
  transform: translateY(16px);
  transition: all 260ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(440px, calc(100% - 40px));
  line-height: 1.4;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast-success {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 16px 36px -4px rgba(16, 185, 129, 0.25), 0 4px 14px rgba(0, 0, 0, 0.2);
}

.toast-info {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 16px 36px -4px rgba(56, 189, 248, 0.25), 0 4px 14px rgba(0, 0, 0, 0.2);
}

.toast-error {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 16px 36px -4px rgba(239, 68, 68, 0.25), 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   FLOATING ACTIONS & QR MODAL
   ========================================================================== */
.floating-contact-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #ffffff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px var(--primary-glow);
  z-index: 70;
  transition: all var(--transition-bounce);
}

.floating-contact-btn:hover {
  transform: scale(1.08) rotate(4deg);
}

.floating-contact-btn.is-open {
  transform: rotate(90deg);
}

.floating-contact-btn svg {
  width: 24px;
  height: 24px;
}

/* Social Bar */
.social-bar {
  position: fixed;
  left: 20px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 60;
  transition: opacity var(--transition-normal);
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  transform: scale(1.1) translateX(4px);
}

.social-tooltip {
  position: absolute;
  left: calc(100% + 10px);
  background: var(--dark-navy);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.social-icon:hover .social-tooltip {
  opacity: 1;
}

.social-icon.phone-call {
  width: auto;
  padding: 0 16px 0 10px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  gap: 8px;
}

.social-icon.phone-call .phone-label {
  font-size: 13px;
  font-weight: 700;
  color: #dc2626;
}

/* QR Modal */
.qr-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.7);
  backdrop-filter: blur(6px);
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal);
}

.qr-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.qr-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-xl);
  z-index: 120;
  text-align: center;
  width: min(360px, 90vw);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.qr-modal.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.qr-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
}

.qr-modal-image-wrap {
  width: 220px;
  height: 220px;
  margin: 16px auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.qr-modal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-modal-caption {
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* Contact Popup */
.contact-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.5);
  backdrop-filter: blur(4px);
  z-index: 68;
}

.contact-popup {
  position: fixed;
  bottom: 94px;
  right: 28px;
  width: min(340px, calc(100vw - 32px));
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  z-index: 69;
  animation: dropdownFadeIn 200ms ease-out;
}

.popup-header {
  background: linear-gradient(135deg, var(--dark-navy), #1e293b);
  color: #ffffff;
  padding: 16px 20px;
}

.popup-header h2 {
  font-size: 15px;
  font-weight: 700;
}

.popup-content {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-section h3 {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-md);
}

.contact-role {
  font-size: 13px;
  font-weight: 600;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #0068ff;
  color: #ffffff;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  transition: opacity var(--transition-fast);
}

.action-btn:hover {
  opacity: 0.9;
}

.popup-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

.popup-footer p {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.contact-methods {
  display: flex;
  gap: 10px;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  height: 60px;
  z-index: 60;
  padding: 0 16px;
  justify-content: space-around;
  align-items: center;
}

.mobile-nav a,
.mobile-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
}

.mobile-nav a.active,
.mobile-nav a:hover,
.mobile-nav button:hover {
  color: var(--primary);
}

.mobile-nav svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   ENHANCED STOREFRONT COMPONENTS & UTILITIES
   ========================================================================== */
.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #0f172a 30%, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-accent {
  color: var(--cyan);
  -webkit-text-fill-color: var(--cyan);
}

.cart-action-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.cart-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  font-family: 'JetBrains Mono', monospace;
}

.mega-menu h2,
.mega-menu-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.mega-menu-title svg {
  color: var(--primary);
}

.mega-item-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cat-svg-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.cat-svg-icon svg {
  width: 18px;
  height: 18px;
}

.cat-label-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.mega-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-surface-alt);
  color: var(--text-muted);
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

.mega-preview {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 26px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(6, 182, 212, 0.2);
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: var(--radius-full);
  color: #67e8f9;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #ffffff;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: 0 4px 18px var(--primary-glow);
  transition: all var(--transition-fast);
}

.primary-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 11px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 13.5px;
  transition: all var(--transition-fast);
}

.secondary-link:hover {
  background: rgba(255, 255, 255, 0.22);
}

.stem-badge {
  background: #ecfeff !important;
  color: #0891b2 !important;
}

.product-column {
  display: flex;
  flex-direction: column;
}

.checkout-form-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
}

.modal-gallery-block {
  display: flex;
  flex-direction: column;
}

.tab-panel {
  display: none;
}

.tab-panel.active,
.tab-panel:not([hidden]) {
  display: block;
}

.modal-description {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.modal-qty input {
  width: 54px;
  padding: 8px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 700;
  outline: none;
}

.modal-qty input:focus {
  border-color: var(--primary);
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-about ul,
.footer-address {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-address li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.footer-address .dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--cyan);
  margin-top: 7px;
  flex-shrink: 0;
}

.contact-method {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.contact-method:hover {
  transform: scale(1.12);
}

.qr-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.hero-carousel {
  position: relative;
}

.primary-button {
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.primary-button:hover {
  box-shadow: 0 4px 14px var(--primary-glow);
}

.compact {
  padding: 6px 12px !important;
  font-size: 12px !important;
}

.social-icon.zalo,
.contact-method.zalo {
  background: #0068ff;
  color: #ffffff;
}

.social-icon.line,
.contact-method.line {
  background: #00b900;
  color: #ffffff;
}

.social-icon.whatsapp,
.contact-method.whatsapp {
  background: #25d366;
  color: #ffffff;
}

.contact-method.phone {
  background: #10b981;
  color: #ffffff;
}

.contact-method.email {
  background: #ef4444;
  color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .marketplace {
    grid-template-columns: 1fr;
  }

  .mega-menu {
    display: none;
  }

  .mega-menu.open {
    display: flex;
  }

  .right-promos {
    flex-direction: row;
  }

  .shop-section {
    grid-template-columns: 1fr;
  }

  .service-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .topbar {
    display: block;
  }

  .topbar-inner {
    gap: 8px;
    padding: 6px 0;
  }

  .topbar-contact {
    flex: 1;
    min-width: 0;
    gap: 0;
  }

  .topbar-contact > .topbar-item:not(:first-child) {
    display: none;
  }

  .topbar-item,
  .topbar-contact > span {
    min-width: 0;
    font-size: 11px;
    white-space: nowrap;
  }

  .topbar-right,
  .topbar-actions {
    flex-shrink: 0;
    gap: 6px;
  }

  .admin-portal-link,
  .admin-quick-link {
    display: none;
  }

  .customer-account-toggle,
  .language-toggle {
    padding: 4px 7px;
    font-size: 11px;
  }

  .header-grid {
    flex-wrap: wrap;
  }

  .search-box {
    order: 3;
    max-width: 100%;
    margin-top: 4px;
  }

  .nav-links {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-body {
    padding: 10px;
  }

  .product-name-btn,
  .product-name-button {
    font-size: 12px;
  }

  .product-price,
  .product-card .price {
    font-size: 14px;
  }

  .product-actions-row,
  .product-card .card-actions {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 5px;
  }

  .qty-step-btn,
  .qty-button {
    width: 20px;
  }

  .qty-pill-input,
  .qty-control input {
    width: 24px;
  }

  .btn-add-cart,
  .buy-button {
    min-width: 0;
    padding: 0 6px;
    font-size: 11px;
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .mini-list {
    grid-template-columns: 1fr;
  }

  .service-strip {
    grid-template-columns: 1fr;
  }

  .modal-detail-layout {
    grid-template-columns: 1fr;
  }

  .social-bar {
    display: flex;
    left: 14px;
    bottom: 84px;
    gap: 8px;
  }

  .social-icon {
    width: 40px;
    height: 40px;
  }

  .mobile-nav {
    display: flex;
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }

  body {
    padding-bottom: 70px;
  }
}

.floating-contact-btn,
.contact-popup-backdrop,
.contact-popup {
  display: none !important;
}

/* ==========================================================================
   CHECKOUT ADDRESS MANAGEMENT & MODAL (UI/UX Pro Max Edition)
   ========================================================================== */
.checkout-address-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-no-address-wrap {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px dashed #f59e0b;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.12);
  transition: all var(--transition-fast);
}

.checkout-no-address-wrap[hidden] {
  display: none !important;
}

.checkout-no-address-alert {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #b45309;
}

.checkout-no-address-alert svg {
  flex-shrink: 0;
  color: #d97706;
}

.btn-checkout-add-address {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--primary-glow);
  transition: all var(--transition-fast);
}

.btn-checkout-add-address:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--primary-glow);
  filter: brightness(1.05);
}

.btn-checkout-add-address svg {
  flex-shrink: 0;
}

.checkout-no-address-hint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  padding-top: 6px;
  border-top: 1px dashed rgba(245, 158, 11, 0.3);
}

.checkout-no-address-hint a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.checkout-no-address-hint a:hover {
  text-decoration: underline;
}

.checkout-address-select-wrap {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout-address-select-wrap[hidden] {
  display: none !important;
}

.checkout-address-select-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-address-select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  font-size: 12.5px;
  outline: none;
  background: #ffffff;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.checkout-address-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.checkout-link-btn {
  background: none;
  border: none;
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.checkout-link-btn:hover {
  text-decoration: underline;
}

/* Modal Address Form in Index */
.addr-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.65);
  backdrop-filter: blur(5px);
  z-index: 1100;
  transition: opacity 0.2s ease;
}

.addr-modal-backdrop[hidden] {
  display: none !important;
}

.addr-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 32px));
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-xl);
  z-index: 1101;
}

.addr-modal[hidden] {
  display: none !important;
}

.addr-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.addr-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.addr-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface-alt);
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.addr-modal-close:hover {
  background: var(--danger-light);
  color: var(--danger);
}

.profile-field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.profile-field-input,
.profile-field-select {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-primary);
  background: #ffffff;
  transition: all var(--transition-fast);
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
}

.profile-field-input:focus,
.profile-field-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn-action-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
}

.btn-action-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
