/* ═════════════════════════════════════════════════════════════
   APEX FLUID SYSTEMS — Frontend Stylesheet
   Powering Performance · Navy + Electric Blue Design System
═════════════════════════════════════════════════════════════ */

:root {
  --navy: #0B1D33;
  --navy-mid: #122540;
  --navy-light: #1a3352;
  --navy-dark: #06121f;
  --blue: #1E90FF;
  --blue-dark: #1270CC;
  --blue-light: #4AAEFF;
  --steel: #6B7280;
  --light-gray: #E5E7EB;
  --off-white: #F4F6F8;
  --white: #FFFFFF;
  --border: #D1D5DB;
  --border-light: #E5E7EB;
  --text-dark: #0B1D33;
  --text-mid: #374151;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 3px rgba(11,29,51,.08), 0 1px 2px rgba(11,29,51,.04);
  --shadow-md: 0 4px 16px rgba(11,29,51,.10), 0 2px 6px rgba(11,29,51,.06);
  --shadow-lg: 0 12px 40px rgba(11,29,51,.14), 0 4px 12px rgba(11,29,51,.08);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--off-white); color: var(--text-dark); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100vh; }
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
input, select, textarea, button { font-family: inherit; }

/* ─── BUTTONS ─── */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--blue); color: white; border: none; border-radius: var(--radius-md); padding: 0 24px; height: 48px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, transform .15s; text-decoration: none; white-space: nowrap; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: transparent; color: var(--navy); border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 0 24px; height: 48px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; text-decoration: none; white-space: nowrap; }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
.btn-dark { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--navy); color: white; border: none; border-radius: var(--radius-md); padding: 0 24px; height: 48px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s; text-decoration: none; white-space: nowrap; }
.btn-dark:hover { background: var(--navy-light); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }

input[type="text"], input[type="email"], input[type="search"], input[type="password"], input[type="number"], input[type="url"], input[type="tel"], select, textarea {
  font-size: 15px; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 11px 14px; color: var(--text-dark); outline: none; transition: border-color .2s, box-shadow .2s; width: 100%;
}
@media (max-width: 768px) { input, select, textarea { font-size: 16px; } }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,144,255,.12); }

/* ─── ANNOUNCEMENT BAR ─── */
.announcement-bar { background: var(--blue); padding: 9px 48px; text-align: center; font-size: 13px; color: white; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 10px; position: relative; }
.announcement-bar a { color: white; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.ann-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: rgba(255,255,255,.85); cursor: pointer; padding: 6px; border-radius: 4px; transition: background .15s; display: flex; align-items: center; justify-content: center; }
.ann-close:hover { background: rgba(0,0,0,.12); }

/* ─── TOPBAR ─── */
.topbar { background: var(--navy); padding: 7px 0; border-bottom: 1px solid var(--navy-light); }
.topbar-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar-left { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.topbar-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.65); letter-spacing: .02em; transition: color .2s; }
.topbar-item:hover { color: var(--blue-light); }
.topbar-item svg { opacity: .7; flex-shrink: 0; }
.topbar-right { display: flex; gap: 16px; align-items: center; }
.topbar-right a { font-size: 12px; color: rgba(255,255,255,.6); transition: color .2s; letter-spacing: .02em; }
.topbar-right a:hover { color: var(--blue-light); }
.topbar-divider { width: 1px; height: 14px; background: rgba(255,255,255,.15); }

/* ─── NAVBAR ─── */
.navbar { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.navbar-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 24px; height: 72px; }

/* Logo */
.logo-area { display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.logo-wordmark { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 28px; color: var(--navy); letter-spacing: -.01em; }
.logo-wordmark span { color: var(--blue); }
.logo-sub { font-family: 'Barlow', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: .22em; color: var(--steel); text-transform: uppercase; margin-top: 1px; }

/* Big search bar in nav */
.search-bar { flex: 1; position: relative; max-width: 600px; }
.search-bar input { width: 100%; height: 44px; padding: 0 110px 0 44px; font-size: 14px; background: var(--off-white); border: 1.5px solid var(--border); }
.search-bar input::placeholder { color: var(--text-light); }
.search-bar input:focus { background: var(--white); }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--steel); pointer-events: none; }
.search-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: var(--blue); color: white; border: none; border-radius: 6px; height: 32px; padding: 0 14px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s; white-space: nowrap; }
.search-btn:hover { background: var(--blue-dark); }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0; }
.nav-action-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 10px; border-radius: var(--radius-md); cursor: pointer; transition: background .15s; border: none; background: transparent; color: var(--text-dark); position: relative; min-width: 50px; }
.nav-action-btn:hover { background: var(--off-white); }
.nav-action-btn svg { color: var(--navy); }
.nav-action-label { font-size: 10px; font-weight: 500; color: var(--text-muted); letter-spacing: .03em; white-space: nowrap; }
.cart-badge { position: absolute; top: 4px; right: 4px; background: var(--blue); color: white; font-size: 9px; font-weight: 700; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.quote-btn-nav { background: var(--navy); color: white; border: none; border-radius: var(--radius-md); padding: 0 16px; height: 40px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s; white-space: nowrap; margin-left: 4px; }
.quote-btn-nav:hover { background: var(--navy-light); }

/* Mobile hamburger */
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 10px; border-radius: var(--radius-md); margin-left: auto; transition: background .15s; }
.mobile-menu-btn:hover, .mobile-menu-btn:active { background: var(--off-white); }
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: all .25s; }
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--white); z-index: 99; overflow-y: auto; padding: 70px 0 40px; flex-direction: column; transform: translateX(-100%); transition: transform .3s; }
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-section { padding: 8px 24px; border-bottom: 1px solid var(--border-light); }
.mobile-nav-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; margin-top: 8px; }
.mobile-nav-link { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; font-size: 15px; font-weight: 500; color: var(--text-dark); border-bottom: 1px solid var(--light-gray); transition: color .15s; }
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover, .mobile-nav-link:active { color: var(--blue); }
.mobile-nav-link .chev { color: var(--text-light); }
.mobile-nav-actions { padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.mobile-nav-actions .btn-primary, .mobile-nav-actions .btn-secondary { width: 100%; }
.mobile-search { padding: 16px 24px; border-bottom: 1px solid var(--border-light); }
.mobile-search input { height: 46px; }

/* ─── CATEGORY NAV STRIP ─── */
.category-nav { background: var(--navy); border-bottom: 2px solid var(--blue); }
.cat-nav-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; }
.cat-all-btn { display: flex; align-items: center; gap: 8px; padding: 0 20px; height: 48px; background: var(--blue); color: white; font-size: 13px; font-weight: 600; border: none; cursor: pointer; white-space: nowrap; letter-spacing: .02em; transition: background .2s; flex-shrink: 0; text-decoration: none; }
.cat-all-btn:hover { background: var(--blue-dark); }
.cat-nav-links { display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; }
.cat-nav-links::-webkit-scrollbar { display: none; }
.cat-nav-link { display: flex; align-items: center; gap: 6px; padding: 0 16px; height: 48px; color: rgba(255,255,255,.75); font-size: 13px; font-weight: 500; white-space: nowrap; transition: color .15s, background .15s; border-left: 1px solid rgba(255,255,255,.06); cursor: pointer; position: relative; }
.cat-nav-link:hover { color: white; background: rgba(255,255,255,.06); }
.cat-nav-link.active { color: var(--blue-light); }
.cat-nav-link.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--blue-light); }
.cat-nav-right { margin-left: auto; display: flex; align-items: center; gap: 16px; padding-left: 20px; border-left: 1px solid rgba(255,255,255,.08); flex-shrink: 0; }
.cat-nav-right a { font-size: 12px; color: rgba(255,255,255,.55); transition: color .15s; white-space: nowrap; }
.cat-nav-right a:hover { color: var(--blue-light); }

/* ─── HERO ─── */
.hero { background: linear-gradient(135deg, var(--navy) 0%, #122540 50%, #0d2040 100%); position: relative; overflow: hidden; min-height: 520px; display: flex; align-items: center; }
.hero::before { content: ''; position: absolute; right: -10%; top: -20%; width: 60%; height: 140%; background: radial-gradient(circle, rgba(30,144,255,.12), transparent 60%); pointer-events: none; }
.hero-accent-line { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--blue) 0%, transparent 100%); }
.hero-inner { max-width: 1400px; margin: 0 auto; padding: 60px 24px; display: grid; grid-template-columns: 1fr 460px; gap: 56px; align-items: center; width: 100%; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(30,144,255,.12); border: 1px solid rgba(30,144,255,.25); border-radius: 100px; padding: 5px 14px 5px 8px; margin-bottom: 20px; }
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(.85)} }
.hero-badge span { font-size: 12px; font-weight: 600; color: var(--blue-light); letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 62px; line-height: .95; color: white; letter-spacing: -.01em; margin-bottom: 20px; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-desc { font-size: 16px; color: rgba(255,255,255,.6); max-width: 500px; line-height: 1.65; margin-bottom: 32px; }
.hero-cta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero .btn-secondary { color: white; border-color: rgba(255,255,255,.25); background: transparent; }
.hero .btn-secondary:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.05); color: white; }
.hero-stats { display: flex; gap: 28px; margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; }
.hero-stat-num { font-family: 'Barlow Condensed', sans-serif; font-size: 32px; font-weight: 800; color: white; line-height: 1; }
.hero-stat-num span { color: var(--blue); }
.hero-stat-label { font-size: 11px; color: rgba(255,255,255,.45); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; margin-top: 4px; }

/* Hero card on right */
.hero-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-xl); padding: 28px; backdrop-filter: blur(8px); }
.hero-card-title { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.5); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.hero-card-title::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.08); }
.hero-search-big { display: flex; gap: 8px; margin-bottom: 16px; }
.hero-search-big input { flex: 1; height: 48px; border: 1.5px solid rgba(255,255,255,.12); border-radius: var(--radius-md); background: rgba(255,255,255,.06); color: white; font-size: 14px; padding: 0 16px; }
.hero-search-big input::placeholder { color: rgba(255,255,255,.3); }
.hero-search-big input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,144,255,.15); background: rgba(255,255,255,.08); }
.hero-search-big button { background: var(--blue); color: white; border: none; border-radius: var(--radius-md); width: 48px; height: 48px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .2s; }
.hero-search-big button:hover { background: var(--blue-dark); }
.hero-quick-links { border-top: 1px solid rgba(255,255,255,.07); padding-top: 16px; }
.hero-quick-label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.3); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.quick-link-row { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-link { display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 6px; padding: 5px 12px; font-size: 12px; color: rgba(255,255,255,.6); cursor: pointer; transition: all .15s; }
.quick-link:hover { background: rgba(30,144,255,.1); border-color: rgba(30,144,255,.25); color: var(--blue-light); }

/* ─── TRUST STRIP ─── */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--border-light); padding: 18px 0; }
.trust-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-around; align-items: center; gap: 12px; }
.trust-item { display: flex; align-items: center; gap: 10px; padding: 4px 12px; border-right: 1px solid var(--border-light); flex: 1; justify-content: center; min-width: 0; }
.trust-item:last-child { border-right: none; }
.trust-icon { width: 36px; height: 36px; background: rgba(30,144,255,.08); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--blue); }
.trust-title { font-size: 13px; font-weight: 700; color: var(--text-dark); line-height: 1.2; }
.trust-sub { font-size: 11px; color: var(--text-muted); line-height: 1.2; margin-top: 1px; }

/* ─── SECTIONS ─── */
.section { padding: 56px 0; }
.section-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; gap: 16px; flex-wrap: wrap; }
.section-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.section-eyebrow::before { content: ''; display: inline-block; width: 20px; height: 2px; background: var(--blue); }
.section-title { font-family: 'Barlow Condensed', sans-serif; font-size: 34px; font-weight: 800; color: var(--navy); line-height: 1.05; letter-spacing: -.01em; }
.section-title em { color: var(--blue); font-style: normal; }
.section-sub { font-size: 14px; color: var(--text-muted); margin-top: 6px; }
.section-view-all { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--blue); white-space: nowrap; transition: gap .2s; cursor: pointer; }
.section-view-all:hover { gap: 10px; }

/* ─── BRANDS ─── */
.brands-section { background: var(--white); padding: 40px 0; border-bottom: 1px solid var(--border-light); }
.brands-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); text-align: center; margin-bottom: 24px; }
.brands-grid { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; align-items: center; }
.brand-logo-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 16px 24px; border: 1.5px solid var(--border); border-radius: var(--radius-lg); cursor: pointer; transition: all .2s; min-width: 110px; background: var(--white); position: relative; overflow: hidden; }
.brand-logo-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform .2s; }
.brand-logo-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.brand-logo-card:hover::after { transform: scaleX(1); }
.brand-logo-name { font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 800; color: var(--navy); letter-spacing: .02em; }
.brand-logo-count { font-size: 11px; color: var(--text-muted); font-weight: 500; }

/* ─── CATEGORY CARDS ─── */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 22px 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; transition: all .2s; position: relative; overflow: hidden; text-align: center; }
.cat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--blue-light)); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.cat-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.cat-card:hover::before { transform: scaleX(1); }
.cat-icon { width: 48px; height: 48px; background: rgba(30,144,255,.08); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--blue); transition: background .2s; }
.cat-card:hover .cat-icon { background: rgba(30,144,255,.14); }
.cat-card-name { font-size: 13px; font-weight: 700; color: var(--navy); line-height: 1.25; }
.cat-card-count { font-size: 11px; color: var(--text-muted); font-weight: 500; }

/* ─── PRODUCT CARDS ─── */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; transition: all .22s; display: flex; flex-direction: column; position: relative; color: inherit; }
.product-card:hover { border-color: var(--blue); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-badge { position: absolute; top: 12px; left: 12px; padding: 3px 10px; border-radius: 100px; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; z-index: 2; }
.badge-new { background: var(--blue); color: white; }
.badge-sale { background: var(--error); color: white; }
.badge-popular { background: var(--navy); color: white; }
.badge-kit { background: var(--success); color: white; }
.product-img { height: 200px; background: var(--off-white); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border-light); position: relative; overflow: hidden; }
.product-img img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 20px; }
.product-img-placeholder { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--light-gray); }
.product-img-placeholder svg { width: 60px; height: 60px; opacity: .5; }
.product-img-placeholder span { font-size: 11px; color: var(--text-light); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.product-info { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.product-brand { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.product-name { font-size: 14px; font-weight: 700; color: var(--navy); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-part { font-size: 11px; font-family: 'Barlow', monospace; color: var(--steel); font-weight: 600; letter-spacing: .03em; }
.product-footer { padding: 12px 16px; border-top: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--off-white); }
.product-price { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 800; color: var(--navy); line-height: 1; }
.product-price-orig { font-size: 12px; color: var(--text-muted); text-decoration: line-through; font-weight: 500; }
.product-stock { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--success); font-weight: 600; }
.product-stock.low { color: var(--warning); }
.product-stock.out { color: var(--error); }
.product-stock-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.add-to-cart-btn { background: var(--blue); color: white; border: none; border-radius: var(--radius-md); width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, transform .15s; flex-shrink: 0; }
.add-to-cart-btn:hover { background: var(--blue-dark); transform: scale(1.05); }

/* ─── WHY APEX (4 cards) ─── */
.why-section { background: var(--white); padding: 64px 0; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.why-card { padding: 28px 24px; border: 1.5px solid var(--border); border-radius: var(--radius-xl); background: var(--off-white); display: flex; flex-direction: column; gap: 14px; transition: all .2s; position: relative; overflow: hidden; }
.why-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--blue); transform: scaleY(0); transform-origin: bottom; transition: transform .25s; }
.why-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); background: var(--white); }
.why-card:hover::before { transform: scaleY(1); }
.why-icon { width: 52px; height: 52px; background: rgba(30,144,255,.1); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--blue); }
.why-title { font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.why-text { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }

/* ─── FILTER BAR ─── */
.filter-bar { display: flex; align-items: center; gap: 8px; padding: 14px 0; margin-bottom: 24px; border-bottom: 1px solid var(--border-light); overflow-x: auto; scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-label { font-size: 12px; font-weight: 600; color: var(--text-muted); white-space: nowrap; letter-spacing: .04em; flex-shrink: 0; }
.filter-chip { padding: 7px 14px; border-radius: 100px; font-size: 12px; font-weight: 600; border: 1.5px solid var(--border); color: var(--text-mid); cursor: pointer; transition: all .15s; background: var(--white); white-space: nowrap; flex-shrink: 0; text-decoration: none; }
.filter-chip:hover { border-color: var(--blue); color: var(--blue); }
.filter-chip.active { background: var(--blue); border-color: var(--blue); color: white; }

/* ─── PAGE HEADER ─── */
.page-header { background: var(--white); padding: 32px 0 24px; border-bottom: 1px solid var(--border-light); }
.page-header-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); margin-bottom: 12px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { color: var(--text-light); }
.breadcrumb .current { color: var(--text-dark); font-weight: 500; }
.page-title { font-family: 'Barlow Condensed', sans-serif; font-size: 38px; font-weight: 800; color: var(--navy); line-height: 1.05; margin-bottom: 6px; letter-spacing: -.01em; }
.page-title em { color: var(--blue); font-style: normal; }
.page-desc { color: var(--text-muted); font-size: 14px; max-width: 720px; line-height: 1.6; }
.page-meta { margin-top: 12px; font-size: 12px; color: var(--text-muted); }
.page-meta strong { color: var(--navy); font-weight: 600; }

/* ─── CATEGORY LISTING ─── */
.listing { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 32px 0 64px; }
.filter-sidebar { font-size: 13px; }
.filter-sidebar-header { display: none; padding: 16px 20px; border-bottom: 1px solid var(--border-light); justify-content: space-between; align-items: center; background: var(--white); }
.filter-sidebar-header h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 800; color: var(--navy); }
.filter-group { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border-light); }
.filter-group:last-child { border-bottom: none; }
.filter-group-title { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); margin-bottom: 12px; }
.filter-option { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--text-mid); cursor: pointer; font-size: 13px; }
.filter-option:hover { color: var(--navy); }
.filter-option input { accent-color: var(--blue); }
.filter-option .count { margin-left: auto; font-size: 11px; color: var(--text-light); font-family: 'Barlow', monospace; }
.filter-toggle-btn { display: none; align-items: center; gap: 6px; padding: 10px 16px; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-md); font-size: 13px; cursor: pointer; font-weight: 600; color: var(--navy); }
.filter-toggle-btn:hover { border-color: var(--blue); }
.listing-main { min-width: 0; }
.listing-toolbar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--border-light); gap: 12px; flex-wrap: wrap; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.active-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--off-white); padding: 5px 12px; font-size: 12px; border-radius: 100px; color: var(--text-mid); border: 1px solid var(--border-light); }
.active-chip:hover { border-color: var(--blue); color: var(--blue); }
.sort-dropdown { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; cursor: pointer; }
.sort-dropdown strong { color: var(--navy); font-weight: 600; }

/* ─── PRODUCT DETAIL ─── */
.product-detail { padding: 28px 0 72px; }
.product-detail-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.product-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; margin-bottom: 56px; }
.product-gallery { position: sticky; top: 130px; height: fit-content; }
.product-image-main { background: var(--white); aspect-ratio: 1; margin-bottom: 10px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; color: var(--light-gray); border: 1px solid var(--border-light); overflow: hidden; padding: 32px; }
.product-image-main svg { width: 140px; height: 140px; opacity: .4; }
.product-image-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-image-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.product-thumb { background: var(--white); aspect-ratio: 1; border: 1.5px solid var(--border); border-radius: var(--radius-md); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--light-gray); overflow: hidden; transition: border-color .15s; }
.product-thumb.active { border-color: var(--blue); }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.product-info-col .breadcrumb { margin-bottom: 16px; }
.product-brand-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; padding: 4px 10px; background: rgba(30,144,255,.08); border-radius: 4px; }
.product-title-main { font-family: 'Barlow Condensed', sans-serif; font-size: 36px; font-weight: 800; color: var(--navy); line-height: 1.1; margin-bottom: 8px; letter-spacing: -.01em; }
.product-part-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; font-family: 'Barlow', monospace; letter-spacing: .03em; }
.product-part-meta strong { color: var(--navy); font-weight: 700; }
.product-tagline { font-size: 14px; color: var(--text-mid); line-height: 1.6; margin-bottom: 24px; }
.product-price-block { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; }
.product-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.product-price-main { font-family: 'Barlow Condensed', sans-serif; font-size: 36px; font-weight: 800; color: var(--navy); line-height: 1; }
.product-price-msrp { font-size: 14px; color: var(--text-muted); text-decoration: line-through; }
.product-price-save { font-size: 11px; background: var(--success); color: white; padding: 3px 8px; border-radius: 100px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.product-price-note { font-size: 12px; color: var(--text-muted); }
.product-stock-row { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: rgba(16,185,129,.08); border-radius: var(--radius-md); margin-bottom: 18px; flex-wrap: wrap; border: 1px solid rgba(16,185,129,.2); }
.product-stock-row.low { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.2); }
.product-stock-row.out { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.2); }
.stock-label { font-weight: 700; color: var(--success); font-size: 13px; }
.stock-row-detail { font-size: 12px; color: var(--text-mid); }
.product-actions { display: flex; gap: 8px; margin-bottom: 10px; }
.qty-selector { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-md); height: 48px; background: var(--white); }
.qty-selector button { width: 42px; height: 100%; background: transparent; font-size: 18px; color: var(--navy); border-radius: 0; cursor: pointer; border: none; font-weight: 600; }
.qty-selector input { width: 48px; text-align: center; border: none; background: transparent; height: 100%; padding: 0; font-size: 15px; font-weight: 600; }
.product-actions .btn-primary { flex: 1; height: 48px; }
.icon-btn-large { width: 48px; height: 48px; border: 1.5px solid var(--border); background: var(--white); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--navy); flex-shrink: 0; transition: border-color .15s; }
.icon-btn-large:hover { border-color: var(--blue); color: var(--blue); }
.product-quote-link { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border: 1.5px solid var(--border); border-radius: var(--radius-md); font-size: 13px; color: var(--navy); margin-bottom: 24px; cursor: pointer; background: var(--white); font-weight: 600; transition: border-color .15s; }
.product-quote-link:hover { border-color: var(--blue); color: var(--blue); }

/* Spec table */
.product-specs { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 4px 18px; }
.spec-row { display: flex; justify-content: space-between; padding: 11px 0; font-size: 13px; gap: 12px; border-bottom: 1px solid var(--border-light); }
.spec-row:last-child { border-bottom: none; }
.spec-label { color: var(--text-muted); }
.spec-value { color: var(--navy); font-weight: 600; text-align: right; }

/* Tabs & docs */
.product-tabs { border-top: 1px solid var(--border-light); padding-top: 32px; margin-bottom: 48px; }
.tab-nav { display: flex; gap: 28px; border-bottom: 1px solid var(--border-light); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tab-nav::-webkit-scrollbar { display: none; }
.tab-item { padding: 12px 0; font-size: 14px; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; display: flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 500; }
.tab-item.active { color: var(--navy); border-bottom-color: var(--blue); font-weight: 700; }
.tab-count { background: var(--off-white); color: var(--text-mid); font-size: 11px; padding: 1px 8px; border-radius: 10px; font-weight: 600; }
.tab-content { font-size: 14px; line-height: 1.75; color: var(--text-mid); max-width: 800px; }
.tab-content p { margin-bottom: 14px; }
.tab-content strong { color: var(--navy); font-weight: 700; }
.docs-block { background: var(--white); padding: 24px; margin-bottom: 48px; border-radius: var(--radius-lg); border: 1px solid var(--border-light); }
.docs-block-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.docs-block-title { font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 10px; }
.docs-block-title svg { color: var(--blue); }
.docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.doc-card { background: var(--off-white); padding: 14px; border: 1px solid var(--border-light); border-radius: var(--radius-md); display: flex; align-items: center; gap: 12px; cursor: pointer; transition: all .15s; }
.doc-card:hover { border-color: var(--blue); background: var(--white); }
.doc-icon { width: 34px; height: 34px; background: rgba(30,144,255,.1); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--blue); flex-shrink: 0; }
.doc-info { flex: 1; min-width: 0; }
.doc-name { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.doc-meta { font-size: 11px; color: var(--text-muted); font-family: 'Barlow', monospace; }

/* Related products */
.related-section { border-top: 1px solid var(--border-light); padding-top: 48px; }

/* Sticky mobile buy bar */
.mobile-buy-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--border); padding: 12px 16px calc(12px + var(--safe-bottom)); z-index: 90; box-shadow: 0 -4px 16px rgba(0,0,0,.08); align-items: center; gap: 10px; }
.mobile-buy-bar-info { flex: 1; min-width: 0; }
.mobile-buy-bar-price { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 800; color: var(--navy); line-height: 1; }
.mobile-buy-bar-stock { font-size: 11px; margin-top: 3px; font-weight: 600; }
.mobile-buy-bar .btn-primary { padding: 0 20px; flex-shrink: 0; height: 46px; }

/* ─── BRAND PAGE ─── */
.brand-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); color: white; padding: 56px 0; position: relative; overflow: hidden; }
.brand-hero::before { content: ''; position: absolute; right: -10%; top: -20%; width: 60%; height: 140%; background: radial-gradient(circle, rgba(30,144,255,.15), transparent 60%); }
.brand-hero-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; position: relative; }
.brand-hero-eyebrow { display: inline-flex; align-items: center; gap: 6px; background: rgba(30,144,255,.12); border: 1px solid rgba(30,144,255,.25); border-radius: 100px; padding: 5px 14px; font-size: 11px; font-weight: 700; color: var(--blue-light); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.brand-hero h1 { font-family: 'Barlow Condensed', sans-serif; font-size: 64px; font-weight: 800; line-height: 1; margin-bottom: 16px; letter-spacing: -.01em; }
.brand-hero p { font-size: 16px; color: rgba(255,255,255,.7); max-width: 640px; line-height: 1.65; margin-bottom: 28px; }
.brand-hero-stats { display: flex; gap: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); flex-wrap: wrap; }
.brand-hero-stat-num { font-family: 'Barlow Condensed', sans-serif; font-size: 32px; font-weight: 800; line-height: 1; }
.brand-hero-stat-num span { color: var(--blue); }
.brand-hero-stat-label { font-size: 11px; color: rgba(255,255,255,.5); letter-spacing: .05em; text-transform: uppercase; margin-top: 4px; }
.brand-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.brand-cat-card { border: 1.5px solid var(--border); background: var(--white); border-radius: var(--radius-lg); padding: 24px; cursor: pointer; transition: all .2s; position: relative; overflow: hidden; }
.brand-cat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.brand-cat-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.brand-cat-card:hover::before { transform: scaleX(1); }
.brand-cat-card .num { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; color: var(--blue); font-weight: 800; letter-spacing: .05em; margin-bottom: 8px; }
.brand-cat-card h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.brand-cat-card p { font-size: 13px; color: var(--text-muted); line-height: 1.55; margin-bottom: 14px; }
.brand-cat-card .count { font-size: 12px; color: var(--blue); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }

/* ─── CART DRAWER ─── */
.cart-overlay { position: fixed; inset: 0; background: rgba(11,29,51,.5); z-index: 200; opacity: 0; pointer-events: none; transition: opacity .2s; }
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 440px; max-width: 100vw; background: var(--white); z-index: 201; transform: translateX(100%); transition: transform .3s; display: flex; flex-direction: column; }
.cart-drawer.open { transform: translateX(0); }
.cart-header { padding: 20px 24px; border-bottom: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: center; background: var(--navy); color: white; }
.cart-header h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 800; }
.cart-header h3 span { color: rgba(255,255,255,.5); font-weight: 500; font-size: 14px; margin-left: 6px; }
.cart-close { background: transparent; border: none; cursor: pointer; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: white; border-radius: 6px; }
.cart-close:hover { background: rgba(255,255,255,.1); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border-light); }
.cart-item-img { background: var(--off-white); width: 60px; height: 60px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--light-gray); overflow: hidden; }
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cart-item-info { min-width: 0; }
.cart-item-sku { font-size: 10px; color: var(--blue); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.cart-item-name { font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.35; margin: 2px 0 6px; }
.cart-item-qty { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cart-item-qty button { background: var(--white); border: 1px solid var(--border); border-radius: 4px; width: 24px; height: 24px; font-size: 14px; cursor: pointer; color: var(--navy); font-weight: 600; }
.cart-item-remove { background: transparent; border: none; font-size: 11px; color: var(--text-muted); cursor: pointer; padding: 4px; text-decoration: underline; }
.cart-item-price { font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 800; color: var(--navy); }
.cart-footer { padding: 16px 20px calc(16px + var(--safe-bottom)); border-top: 1px solid var(--border-light); background: var(--off-white); }
.cart-summary { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; color: var(--text-mid); }
.cart-summary.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 10px; font-size: 14px; color: var(--navy); font-weight: 600; }
.cart-summary.total .price { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 800; }
.cart-checkout-btn { width: 100%; margin-top: 14px; }

/* ─── TOAST ─── */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%); background: var(--navy); color: white; padding: 14px 20px; border-radius: var(--radius-md); display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; z-index: 300; box-shadow: var(--shadow-lg); opacity: 0; transition: transform .3s, opacity .3s; max-width: 90vw; border: 1px solid var(--navy-light); }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast .check-icon { color: var(--success); }
.toast .toast-action { margin-left: 8px; padding: 5px 12px; background: var(--blue); border: none; color: white; border-radius: 4px; font-size: 12px; font-weight: 700; cursor: pointer; }
.toast .toast-action:hover { background: var(--blue-dark); }
@media (max-width: 768px) { .toast { bottom: calc(80px + var(--safe-bottom)); font-size: 13px; padding: 12px 16px; } }

/* ─── NEWSLETTER ─── */
.newsletter { background: var(--navy); padding: 64px 0; position: relative; overflow: hidden; }
.newsletter::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue), transparent); }
.newsletter-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.newsletter-title { font-family: 'Barlow Condensed', sans-serif; font-size: 42px; font-weight: 800; color: white; line-height: 1; margin-bottom: 12px; }
.newsletter-title em { color: var(--blue); font-style: normal; }
.newsletter-desc { font-size: 15px; color: rgba(255,255,255,.55); line-height: 1.65; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.newsletter-input { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-md); height: 46px; padding: 0 16px; font-size: 14px; color: white; outline: none; transition: border-color .2s; width: 100%; }
.newsletter-input::placeholder { color: rgba(255,255,255,.3); }
.newsletter-input:focus { border-color: var(--blue); background: rgba(255,255,255,.1); box-shadow: 0 0 0 3px rgba(30,144,255,.15); }
.newsletter-submit { background: var(--blue); color: white; border: none; border-radius: var(--radius-md); height: 46px; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s; letter-spacing: .02em; }
.newsletter-submit:hover { background: var(--blue-dark); }
.newsletter-fine { font-size: 12px; color: rgba(255,255,255,.3); line-height: 1.5; }

/* ─── FOOTER ─── */
.footer { background: var(--navy-dark); padding: 56px 0 0; border-top: 1px solid rgba(255,255,255,.05); }
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 280px 1fr; gap: 56px; }
.footer-brand-col { color: white; }
.footer-logo-wordmark { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 28px; color: white; letter-spacing: -.01em; margin-bottom: 4px; }
.footer-logo-wordmark span { color: var(--blue); }
.footer-logo-sub { font-size: 10px; font-weight: 600; letter-spacing: .22em; color: rgba(255,255,255,.35); text-transform: uppercase; margin-bottom: 16px; }
.footer-tagline { font-size: 13.5px; color: rgba(255,255,255,.45); line-height: 1.65; margin-bottom: 24px; }
.footer-contacts { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.6); }
.footer-contact-item svg { color: var(--blue); flex-shrink: 0; }
.footer-contact-item a { color: rgba(255,255,255,.6); }
.footer-contact-item a:hover { color: var(--blue-light); }
.footer-links-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.footer-col-title { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.45); transition: color .15s; }
.footer-links a:hover { color: var(--blue-light); }
.footer-bottom { max-width: 1400px; margin: 40px auto 0; padding: 20px 24px; border-top: 1px solid rgba(255,255,255,.06); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.3); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,.3); transition: color .15s; }
.footer-legal a:hover { color: rgba(255,255,255,.6); }
.footer-social { display: flex; gap: 10px; }
.social-btn { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.4); cursor: pointer; transition: all .15s; }
.social-btn:hover { border-color: var(--blue); color: var(--blue-light); background: rgba(30,144,255,.08); }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */

@media (max-width: 1200px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 54px; }
  .hero-inner { grid-template-columns: 1fr 400px; gap: 40px; }
  .footer-links-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 1024px) {
  .topbar { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-card { max-width: 500px; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 32px; }
  .cat-nav-right { display: none; }
  .trust-strip { display: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .listing { grid-template-columns: 1fr; gap: 16px; }
  .filter-toggle-btn { display: inline-flex; }
  .filter-sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 320px; max-width: 85vw; background: var(--white); z-index: 200; transform: translateX(-100%); transition: transform .3s; overflow-y: auto; padding: 0; box-shadow: var(--shadow-lg); }
  .filter-sidebar.open { transform: translateX(0); }
  .filter-sidebar-header { display: flex; }
  .filter-sidebar .filter-group { margin: 0 20px 20px; padding-bottom: 20px; padding-top: 4px; }
  .product-layout { grid-template-columns: 1fr; gap: 32px; }
  .product-gallery { position: static; }
  .brand-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-hero h1 { font-size: 48px; }
}

@media (max-width: 768px) {
  .announcement-bar { font-size: 12px; padding: 8px 40px; }
  .navbar-inner { height: 60px; gap: 12px; padding: 0 16px; }
  .search-bar { display: none; }
  .nav-actions { display: none; }
  .mobile-menu-btn { display: flex; }
  .mobile-nav { display: flex; }
  .logo-wordmark { font-size: 24px; }
  .logo-sub { font-size: 9px; letter-spacing: .2em; }
  .quote-btn-nav { display: none; }
  .cat-nav-inner { padding: 0; }
  .cat-all-btn { padding: 0 16px; font-size: 12px; height: 44px; }
  .cat-nav-link { height: 44px; font-size: 12px; padding: 0 14px; }
  .hero { min-height: auto; }
  .hero-inner { padding: 40px 20px; }
  .hero h1 { font-size: 40px; }
  .hero-desc { font-size: 15px; }
  .hero-cta-row { width: 100%; }
  .hero-cta-row .btn-primary, .hero-cta-row .btn-secondary { flex: 1; }
  .hero-stats { gap: 24px; margin-top: 28px; padding-top: 24px; }
  .hero-stat-num { font-size: 26px; }
  .hero-card { padding: 22px; }
  .section { padding: 40px 0; }
  .section-inner { padding: 0 16px; }
  .section-title { font-size: 26px; }
  .section-header { gap: 12px; margin-bottom: 24px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-card { padding: 18px 12px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-img { height: 140px; }
  .product-info { padding: 12px 14px; }
  .product-name { font-size: 13px; }
  .product-price { font-size: 19px; }
  .product-footer { padding: 10px 14px; }
  .why-grid { grid-template-columns: 1fr; }
  .newsletter { padding: 48px 0; }
  .newsletter-inner { padding: 0 16px; }
  .newsletter-title { font-size: 30px; }
  .newsletter-row { grid-template-columns: 1fr; }
  .footer { padding: 40px 0 0; }
  .footer-inner { padding: 0 16px; }
  .footer-links-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { padding: 20px 16px; }
  .brands-grid { gap: 6px; }
  .brand-logo-card { min-width: 90px; padding: 12px 16px; }
  .brand-logo-name { font-size: 14px; }
  .page-title { font-size: 28px; }
  .page-header-inner { padding: 0 16px; }
  .product-detail-inner { padding: 0 16px; }
  .product-title-main { font-size: 28px; }
  .product-price-main { font-size: 28px; }
  .product-detail { padding-bottom: 100px; }
  .product-info-col .product-actions, .product-info-col .product-quote-link { display: none; }
  .mobile-buy-bar { display: flex; }
  .docs-grid { grid-template-columns: 1fr; }
  .brand-hero { padding: 40px 0; }
  .brand-hero-inner { padding: 0 16px; }
  .brand-hero h1 { font-size: 36px; }
  .brand-hero-stats { gap: 24px; }
  .brand-hero-stat-num { font-size: 26px; }
  .brand-cat-grid { grid-template-columns: 1fr; }
  .listing { padding: 20px 0 56px; }
  .cart-drawer { width: 100%; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .section-title { font-size: 22px; }
  .page-title { font-size: 24px; }
  .product-title-main { font-size: 24px; }
  .footer-links-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════
   BACKWARD-COMPAT: maps older class names
   to Apex design system (for pages built
   before the rebrand: category, brand,
   search, product detail)
═══════════════════════════════════════ */

/* Generic container — used by older pages */
.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 768px) { .container { padding: 0 16px; } }

/* Listing grid (3-col by default, responsive) */
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1024px) { .listing-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .listing-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (max-width: 480px) { .listing-grid { grid-template-columns: 1fr; } }

/* Old product-card-* classes — restyled for Apex look */
.product-card-image { height: 200px; background: var(--off-white); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border-light); position: relative; overflow: hidden; color: var(--light-gray); }
.product-card-image i { font-size: 56px; opacity: .35; }
.product-card-image img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 20px; }
.product-card-badge { position: absolute; top: 12px; left: 12px; padding: 3px 10px; border-radius: 100px; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; z-index: 2; }
.product-card-badge.badge-top { background: var(--navy); color: white; }
.product-card-badge.badge-new { background: var(--blue); color: white; }
.product-card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.product-card-brand { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.product-card-title { font-size: 14px; font-weight: 700; color: var(--navy); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
.product-card-footer { margin: auto -16px -14px; padding: 12px 16px; border-top: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--off-white); }
.product-card-price { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 800; color: var(--navy); line-height: 1; }
.product-card-stock { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; }
.product-card-stock::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.product-card-stock.stock-in { color: var(--success); }
.product-card-stock.stock-low { color: var(--warning); }
.product-card-stock.stock-out { color: var(--error); }

/* Mobile: stack body content cleanly */
@media (max-width: 768px) {
  .product-card-image { height: 140px; }
  .product-card-body { padding: 12px 14px; }
  .product-card-title { font-size: 13px; margin-bottom: 8px; }
  .product-card-footer { margin: auto -14px -12px; padding: 10px 14px; }
  .product-card-price { font-size: 19px; }
}

/* Desktop: give filter sidebar breathing room from container edge */
@media (min-width: 1025px) {
  .filter-sidebar { padding-right: 12px; }
}

/* ═══════════════════════════════════════
   v7 FIXES — mobile drawer + product card
   aspect + frequently-bought layout
═══════════════════════════════════════ */

/* Backdrop overlay for mobile nav drawer */
.mobile-nav-overlay { position: fixed; inset: 0; background: rgba(11,29,51,.55); z-index: 98; opacity: 0; pointer-events: none; transition: opacity .25s; backdrop-filter: blur(2px); }
.mobile-nav-overlay.open { opacity: 1; pointer-events: auto; }

/* Mobile nav drawer — premium slide-in from left */
.mobile-nav { display: none; position: fixed; top: 0; left: 0; bottom: 0; width: 340px; max-width: 88vw; background: var(--white); z-index: 99; overflow-y: auto; padding: 0 0 40px; flex-direction: column; transform: translateX(-100%); transition: transform .3s cubic-bezier(.4,0,.2,1); box-shadow: 4px 0 32px rgba(11,29,51,.18); }
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--border-light); position: sticky; top: 0; background: var(--white); z-index: 1; }
.mobile-nav-close { width: 40px; height: 40px; background: transparent; border: none; border-radius: var(--radius-md); cursor: pointer; color: var(--navy); display: flex; align-items: center; justify-content: center; }
.mobile-nav-close:hover, .mobile-nav-close:active { background: var(--off-white); }

/* Frequently bought together / related grid */
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
@media (max-width: 1024px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .related-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (max-width: 480px) { .related-grid { grid-template-columns: 1fr; } }

/* Force square aspect on product card images (overrides fixed heights) */
.product-card-image, .product-img { aspect-ratio: 1 / 1 !important; height: auto !important; }
@media (max-width: 768px) {
  .product-card-image, .product-img { aspect-ratio: 1 / 1 !important; }
}

/* HIDE category nav strip on mobile — categories live in the side drawer instead */
@media (max-width: 768px) {
  .category-nav { display: none !important; }
}

/* ═══════════════════════════════════════
   v8 — CRITICAL: re-assert mobile drawer
   display + premium mobile polish
═══════════════════════════════════════ */

/* CRITICAL FIX: drawer must be flex on mobile (later v7 rule clobbered earlier display:flex) */
@media (max-width: 768px) {
  .mobile-nav { display: flex !important; }
}

/* Smooth drawer reveal — initial state must allow render */
.mobile-nav { will-change: transform; }
.mobile-nav-overlay { will-change: opacity; }

/* Drawer body — give links premium spacing & dividers */
.mobile-nav-section { padding: 14px 24px 6px; }
.mobile-nav-section + .mobile-nav-section { border-top: 6px solid var(--off-white); }
.mobile-nav-label { color: var(--blue); font-weight: 700; }
.mobile-nav-link { padding: 14px 0; font-size: 15px; font-weight: 500; min-height: 48px; }
.mobile-nav-link:active { background: var(--off-white); margin: 0 -24px; padding-left: 24px; padding-right: 24px; }
.mobile-nav-link .chev { color: var(--text-light); font-size: 18px; font-weight: 400; }
.mobile-nav-actions { background: var(--off-white); padding: 20px 24px; margin-top: 8px; gap: 10px; }
.mobile-nav-actions .btn-primary, .mobile-nav-actions .btn-secondary { width: 100%; height: 48px; }

/* Mobile search input inside drawer — prominent */
.mobile-search { padding: 16px 24px; border-bottom: 1px solid var(--border-light); background: var(--off-white); }
.mobile-search input { height: 48px; border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 0 16px; background: var(--white); font-size: 15px; }
.mobile-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,144,255,.12); }

/* ═══════════════════════════════════════
   PREMIUM MOBILE OPTIMIZATIONS
═══════════════════════════════════════ */
@media (max-width: 768px) {
  /* Navbar — tighten + larger touch targets */
  .navbar-inner { height: 64px; gap: 8px; padding: 0 14px; }
  .logo-area { gap: 1px; }
  .logo-wordmark { font-size: 22px; }
  .logo-sub { font-size: 8.5px; letter-spacing: .18em; }
  .mobile-menu-btn { padding: 12px 10px; margin: 0 -4px 0 0; }
  .mobile-menu-btn span { width: 24px; height: 2.5px; background: var(--navy); }

  /* Show cart icon on mobile (was hidden via .nav-actions display:none) */
  .nav-actions { display: flex !important; gap: 0; margin-left: auto; }
  .nav-action-btn { padding: 8px; min-width: 44px; }
  .nav-action-btn .nav-action-label { display: none; }
  .nav-action-btn svg { width: 22px; height: 22px; }
  .cart-badge { top: 2px; right: 2px; }
  .nav-actions > a:first-child { display: none; }
  .quote-btn-nav { display: none; }

  /* Hero — premium mobile balance */
  .hero { min-height: auto; }
  .hero-inner { padding: 36px 20px 44px; gap: 28px; }
  .hero-badge { padding: 4px 12px 4px 8px; margin-bottom: 16px; }
  .hero-badge span { font-size: 11px; }
  .hero h1 { font-size: 36px; line-height: 1; margin-bottom: 14px; }
  .hero-desc { font-size: 14.5px; line-height: 1.55; margin-bottom: 24px; }
  .hero-cta-row { gap: 8px; }
  .hero-cta-row .btn-primary, .hero-cta-row .btn-secondary { padding: 0 18px; font-size: 13.5px; height: 46px; min-width: 0; }
  .hero-stats { gap: 20px; margin-top: 28px; padding-top: 22px; }
  .hero-stat-num { font-size: 24px; }
  .hero-stat-label { font-size: 10px; }
  .hero-card { padding: 20px; border-radius: var(--radius-lg); }
  .hero-search-big input { height: 46px; font-size: 14px; }
  .hero-search-big button { width: 46px; height: 46px; }

  /* Brand chips — tighter */
  .brand-logo-card { min-width: 80px; padding: 12px 14px; }
  .brand-logo-name { font-size: 14px; }
  .brand-logo-count { font-size: 10px; }

  /* Category cards — modern compact look */
  .cat-card { padding: 18px 10px; min-height: 110px; }
  .cat-icon { width: 40px; height: 40px; }
  .cat-icon svg { width: 18px; height: 18px; }
  .cat-card-name { font-size: 12.5px; line-height: 1.3; }
  .cat-card-count { font-size: 10.5px; }

  /* Product cards — keep square, premium info */
  .product-card { border-radius: var(--radius-md); }
  .product-card-image, .product-img { border-bottom-width: 1px; }
  .product-info, .product-card-body { padding: 11px 12px; gap: 3px; }
  .product-brand, .product-card-brand { font-size: 9.5px; letter-spacing: .08em; }
  .product-name, .product-card-title { font-size: 12.5px; line-height: 1.3; margin-bottom: 8px; }
  .product-part { font-size: 10.5px; }
  .product-footer, .product-card-footer { padding: 10px 12px; margin: auto -12px -11px; gap: 4px; }
  .product-price, .product-card-price { font-size: 18px; }
  .product-stock, .product-card-stock { font-size: 10px; }
  .add-to-cart-btn { width: 34px; height: 34px; }

  /* Section headers — better wrap behavior */
  .section { padding: 36px 0; }
  .section-header { margin-bottom: 20px; gap: 8px; }
  .section-eyebrow { font-size: 10px; margin-bottom: 4px; }
  .section-title { font-size: 24px; }
  .section-sub { font-size: 13px; margin-top: 4px; }
  .section-view-all { font-size: 12px; }

  /* Why-section cards — tighter */
  .why-section { padding: 44px 0; }
  .why-grid { gap: 12px; margin-top: 24px; }
  .why-card { padding: 22px 20px; gap: 12px; }
  .why-icon { width: 44px; height: 44px; }
  .why-title { font-size: 15px; }
  .why-text { font-size: 13px; }

  /* Newsletter — tighter mobile layout */
  .newsletter { padding: 40px 0; }
  .newsletter-title { font-size: 26px; }
  .newsletter-desc { font-size: 14px; }

  /* Footer — tighter, more readable */
  .footer { padding: 32px 0 0; }
  .footer-inner { gap: 28px; }
  .footer-logo-wordmark { font-size: 24px; }
  .footer-tagline { font-size: 13px; margin-bottom: 18px; }
  .footer-contact-item { font-size: 12.5px; }
  .footer-col-title { font-size: 10.5px; margin-bottom: 12px; }
  .footer-links a { font-size: 12.5px; }
  .footer-bottom { padding: 16px 16px; margin-top: 28px; flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Page header — tighter on mobile */
  .page-header { padding: 24px 0 20px; }
  .page-title { font-size: 26px; }
  .page-desc { font-size: 13.5px; }

  /* Cart drawer — full-width premium feel */
  .cart-drawer { width: 100%; max-width: 100%; }
  .cart-header { padding: 18px 20px; }
  .cart-header h3 { font-size: 20px; }
  .cart-items { padding: 14px 16px; }
  .cart-item { gap: 12px; padding: 14px 0; grid-template-columns: 56px 1fr auto; }
  .cart-item-img { width: 56px; height: 56px; }
  .cart-footer { padding: 14px 16px calc(14px + var(--safe-bottom)); }

  /* Toast positioning to avoid mobile buy bar overlap */
  .toast { bottom: calc(86px + var(--safe-bottom)); }

  /* Filter sidebar drawer — match nav drawer style */
  .filter-sidebar { width: 320px; max-width: 88vw; box-shadow: 4px 0 32px rgba(11,29,51,.18); }
  .filter-sidebar-header { padding: 18px 20px; background: var(--white); }
  .filter-sidebar-header h3 { font-size: 22px; }
  .filter-toggle-btn { padding: 11px 16px; font-size: 13.5px; }
}

/* Extra small phones (~360px) */
@media (max-width: 380px) {
  .navbar-inner { padding: 0 12px; gap: 6px; }
  .logo-wordmark { font-size: 20px; }
  .hero h1 { font-size: 30px; }
  .hero-cta-row { flex-direction: column; }
  .hero-cta-row .btn-primary, .hero-cta-row .btn-secondary { width: 100%; }
  .hero-stats { gap: 14px; }
  .hero-stat-num { font-size: 22px; }
  .section-title { font-size: 22px; }
  .cat-grid { gap: 8px; }
  .product-grid, .listing-grid { gap: 8px; }
}

/* ═══════════════════════════════════════
   v9 — Z-INDEX FIX + ACCORDION SUBMENUS
═══════════════════════════════════════ */

/* CRITICAL: drawer must sit ABOVE the sticky navbar (z-index 100) — was 99 = cut off */
.mobile-nav-overlay { z-index: 200; }
.mobile-nav { z-index: 201; }

/* Drawer header — make sure it's pinned at the very top with safe-area support for notch */
.mobile-nav-header { padding-top: max(18px, env(safe-area-inset-top)); }

/* Accordion submenu */
.mobile-nav-group { border-bottom: 1px solid var(--light-gray); }
.mobile-nav-group:last-child { border-bottom: none; }
.mobile-nav-toggle { width: 100%; background: transparent; border: none; font-family: inherit; cursor: pointer; text-align: left; color: var(--text-dark); padding: 14px 0; min-height: 48px; display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 500; }
.mobile-nav-toggle:active { background: var(--off-white); margin: 0 -24px; padding: 14px 24px; }
.mobile-nav-toggle .chev.expand { transition: transform .25s; display: inline-flex; align-items: center; color: var(--text-muted); }
.mobile-nav-toggle.open { color: var(--blue); }
.mobile-nav-toggle.open .chev.expand { transform: rotate(180deg); color: var(--blue); }

.mobile-nav-submenu { max-height: 0; overflow: hidden; transition: max-height .3s cubic-bezier(.4,0,.2,1); background: var(--off-white); margin: 0 -24px; padding: 0 24px; }
.mobile-nav-submenu.open { max-height: 800px; padding: 4px 24px 12px; }
.mobile-nav-sublink { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px; font-size: 14px; color: var(--text-mid); border-bottom: 1px solid rgba(0,0,0,.05); min-height: 44px; }
.mobile-nav-sublink:last-child { border-bottom: none; }
.mobile-nav-sublink:hover, .mobile-nav-sublink:active { color: var(--blue); }
.mobile-nav-sublink strong { color: var(--navy); font-weight: 700; }
.mobile-nav-sublink .sub-count { font-size: 11px; color: var(--text-light); font-family: 'Barlow', monospace; background: var(--white); padding: 1px 8px; border-radius: 10px; border: 1px solid var(--border-light); }

/* Hide animation chev when expanded — replace with inline content */
.mobile-nav-link span:first-child { flex: 1; }

/* ═══════════════════════════════════════
   v10 — SMOOTHER DRAWER + RELIABLE SUBMENUS
═══════════════════════════════════════ */

/* Drawer slide-in: Apple-style ease-out + opacity fade */
.mobile-nav {
  opacity: 0;
  transition: transform .42s cubic-bezier(.16, 1, .3, 1), opacity .28s ease-out;
  will-change: transform, opacity;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.open { opacity: 1; }

/* Backdrop fades faster than drawer slides — layered feel */
.mobile-nav-overlay {
  transition: opacity .3s ease-out;
  will-change: opacity;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* Kill 300ms tap delay + tap highlight on all drawer elements */
.mobile-nav, .mobile-nav *, .mobile-menu-btn, .mobile-nav-close {
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-link, .mobile-nav-toggle, .mobile-nav-sublink, .mobile-nav-close, .mobile-menu-btn {
  touch-action: manipulation;
}

/* Stop SVG/span children from intercepting click → kills the iOS "moved-during-tap" cancel bug */
.mobile-nav-toggle > *, .mobile-nav-link > *, .mobile-nav-close > *, .mobile-menu-btn > * {
  pointer-events: none;
}

/* CRITICAL: NO layout-shift active state. Use background-color only. */
.mobile-nav-section { padding: 0 !important; }
.mobile-nav-section + .mobile-nav-section { border-top: 6px solid var(--off-white); }
.mobile-nav-label {
  display: block;
  padding: 18px 24px 8px !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--white);
  margin: 0;
}
.mobile-nav-section .mobile-nav-link,
.mobile-nav-section .mobile-nav-toggle {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 24px !important;
  margin: 0 !important;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--light-gray);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
  min-height: 52px;
  transition: background-color .15s ease, color .15s ease;
  text-decoration: none;
}
/* Hover (desktop) + active (touch) — color only, NO position change */
.mobile-nav-link:hover, .mobile-nav-toggle:hover { background-color: var(--off-white); }
.mobile-nav-link:active, .mobile-nav-toggle:active { background-color: rgba(30, 144, 255, 0.1); color: var(--blue); }

/* Chevron rotation when expanded */
.mobile-nav-toggle .chev.expand {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1), color .15s;
}
.mobile-nav-toggle.open { color: var(--blue); background-color: rgba(30, 144, 255, 0.05); }
.mobile-nav-toggle.open .chev.expand { transform: rotate(180deg); color: var(--blue); }

/* Submenu — height driven by JS for clean open/close */
.mobile-nav-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4, 0, .2, 1);
  background: var(--off-white);
  margin: 0 !important;
  padding: 0 !important;
  will-change: max-height;
}
.mobile-nav-submenu .mobile-nav-sublink {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 24px 13px 44px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  border-bottom: 1px solid rgba(0,0,0,.04);
  min-height: 46px;
  text-decoration: none;
  transition: background-color .15s, color .15s;
  opacity: 0;
  transform: translateY(-6px);
}
.mobile-nav-submenu .mobile-nav-sublink:last-child { border-bottom: none; }
.mobile-nav-submenu.open .mobile-nav-sublink {
  animation: drawerSubFadeIn .4s cubic-bezier(.16, 1, .3, 1) forwards;
}
@keyframes drawerSubFadeIn {
  to { opacity: 1; transform: translateY(0); }
}
.mobile-nav-submenu.open .mobile-nav-sublink:nth-child(1) { animation-delay: .04s; }
.mobile-nav-submenu.open .mobile-nav-sublink:nth-child(2) { animation-delay: .07s; }
.mobile-nav-submenu.open .mobile-nav-sublink:nth-child(3) { animation-delay: .10s; }
.mobile-nav-submenu.open .mobile-nav-sublink:nth-child(4) { animation-delay: .13s; }
.mobile-nav-submenu.open .mobile-nav-sublink:nth-child(5) { animation-delay: .16s; }
.mobile-nav-submenu.open .mobile-nav-sublink:nth-child(6) { animation-delay: .19s; }
.mobile-nav-submenu.open .mobile-nav-sublink:nth-child(n+7) { animation-delay: .22s; }
.mobile-nav-sublink:hover { background-color: var(--white); color: var(--blue); }
.mobile-nav-sublink:active { background-color: rgba(30, 144, 255, 0.08); color: var(--blue); }
.mobile-nav-sublink strong { color: var(--navy); font-weight: 700; }
.mobile-nav-sublink .sub-count {
  font-size: 11px; color: var(--text-light);
  font-family: 'Barlow', monospace;
  background: var(--white); padding: 2px 9px;
  border-radius: 10px; border: 1px solid var(--border-light);
}

/* Drawer scroll body — momentum scroll on iOS */
.mobile-nav { overflow-y: auto; overscroll-behavior: contain; }

/* Drawer-action footer buttons — full width with proper spacing */
.mobile-nav-actions { padding: 22px 24px; background: var(--off-white); margin-top: 0; }

/* ═══════════════════════════════════════
   v11 — DESKTOP CATEGORY DROPDOWNS
═══════════════════════════════════════ */

/* Wrapper for each category nav item — relative for dropdown positioning */
.cat-nav-item { position: relative; display: flex; align-items: center; }
.cat-nav-item .cat-nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 0 16px; height: 48px;
  color: rgba(255,255,255,.78);
  font-size: 13px; font-weight: 500;
  white-space: nowrap;
  border-left: 1px solid rgba(255,255,255,.06);
  transition: color .15s, background-color .15s;
  cursor: pointer; text-decoration: none;
}
.cat-nav-item:hover .cat-nav-link,
.cat-nav-item:focus-within .cat-nav-link { color: white; background: rgba(255,255,255,.08); }
.cat-nav-caret {
  color: rgba(255,255,255,.45);
  transition: transform .25s ease, color .15s;
  flex-shrink: 0;
}
.cat-nav-item:hover .cat-nav-caret,
.cat-nav-item:focus-within .cat-nav-caret { color: var(--blue-light); transform: rotate(180deg); }

/* Dropdown panel */
.cat-nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  max-width: 340px;
  background: var(--white);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 18px 40px rgba(11,29,51,.18), 0 4px 10px rgba(11,29,51,.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .25s cubic-bezier(.16, 1, .3, 1), visibility 0s linear .25s;
  z-index: 99;
  padding: 8px;
  border-top: 3px solid var(--blue);
}
.cat-nav-dropdown.align-right { left: auto; right: 0; }

/* Invisible bridge zone so cursor moving from link to dropdown doesn't kill hover */
.cat-nav-dropdown::before {
  content: '';
  position: absolute;
  top: -10px; left: 0; right: 0;
  height: 10px;
}

.cat-nav-item:hover .cat-nav-dropdown,
.cat-nav-item:focus-within .cat-nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .2s ease, transform .25s cubic-bezier(.16, 1, .3, 1), visibility 0s;
}

/* Dropdown "View all" header */
.dropdown-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: var(--off-white);
  border-radius: 8px;
  font-size: 13px; font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  margin-bottom: 4px;
  transition: background-color .15s, color .15s;
}
.dropdown-header:hover { background: var(--blue); color: white; }
.dropdown-header:hover .dropdown-count {
  background: rgba(255,255,255,.18);
  color: white;
  border-color: rgba(255,255,255,.25);
}
.dropdown-count {
  font-family: 'Barlow', monospace;
  font-size: 11px; font-weight: 600;
  color: var(--text-muted);
  background: var(--white);
  padding: 2px 9px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  transition: all .15s;
}

/* Dropdown subcategory list */
.dropdown-subs { display: flex; flex-direction: column; }
.dropdown-sublink {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  font-size: 13.5px; font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  border-radius: 6px;
  transition: background-color .12s, color .12s, padding-left .15s ease;
}
.dropdown-sublink svg {
  color: var(--text-light);
  opacity: 0;
  transition: opacity .15s, transform .15s;
  flex-shrink: 0;
}
.dropdown-sublink:hover {
  background: rgba(30,144,255,.08);
  color: var(--blue);
  padding-left: 20px;
}
.dropdown-sublink:hover svg {
  opacity: 1;
  color: var(--blue);
  transform: translateX(2px);
}

/* Right-side nav items — adjust dropdown anchor */
.cat-nav-right .cat-nav-item .cat-nav-link {
  border-left: none;
  border-right: 1px solid rgba(255,255,255,.06);
}
.cat-nav-right > a { padding: 0 16px; height: 48px; display: flex; align-items: center; }

/* Make sure category nav doesn't clip the dropdowns vertically */
.category-nav { overflow: visible !important; }
.cat-nav-inner { overflow: visible; }

/* Don't show dropdowns on mobile — drawer takes over */
@media (max-width: 768px) {
  .cat-nav-dropdown { display: none !important; }
}

/* CRITICAL: cat-nav-links had overflow-x: auto which silently clips dropdowns.
   Browsers convert overflow-x: auto into overflow-y: auto too unless explicitly visible. */
.cat-nav-links { overflow: visible !important; }

/* ═══════════════════════════════════════
   v12 — MOBILE GRID, INPUTS, CART, OVERFLOW
═══════════════════════════════════════ */

/* === FIX 1: Prevent horizontal page slide everywhere === */
html, body { overflow-x: hidden; max-width: 100vw; }
.hero, .brand-hero, .newsletter { overflow: hidden; max-width: 100vw; }

/* === FIX 2: iOS zoom prevention — ALL inputs 16px on mobile, with !important to defeat specific overrides === */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="search"],
  input[type="password"],
  input[type="number"],
  input[type="url"],
  input[type="tel"],
  select,
  textarea,
  .search-bar input,
  .hero-search-big input,
  .newsletter-input,
  .mobile-search input,
  .qlabel + input,
  .qlabel + textarea {
    font-size: 16px !important;
  }
}

/* === FIX 3: Newsletter input visibility — specificity beat by input[type] selector. Force transparent bg & visible placeholder === */
.newsletter .newsletter-input,
input.newsletter-input {
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  color: white !important;
}
.newsletter .newsletter-input::placeholder,
input.newsletter-input::placeholder {
  color: rgba(255,255,255,.55) !important;
  opacity: 1 !important;
}
.newsletter .newsletter-input:focus,
input.newsletter-input:focus {
  background: rgba(255,255,255,.12) !important;
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 3px rgba(30,144,255,.2) !important;
}

/* === FIX 4: Mobile grid — ALWAYS 2 columns on phones, never 1 === */
@media (max-width: 768px) {
  .product-grid,
  .listing-grid,
  .related-grid,
  .cat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}
@media (max-width: 480px) {
  .product-grid,
  .listing-grid,
  .related-grid,
  .cat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
}

/* === FIX 5: Cart drawer — symmetric to menu drawer on mobile (slides from right, 88vw, backdrop) === */
@media (max-width: 768px) {
  .cart-drawer {
    width: 88vw !important;
    max-width: 88vw !important;
    box-shadow: -4px 0 32px rgba(11,29,51,.22);
  }
}
.cart-overlay {
  background: rgba(11,29,51,.55) !important;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* === FIX 6: Cart item layout — Remove button doesn't wrap weirdly, image placeholder always visible === */
.cart-item-img {
  background: var(--off-white) !important;
  border: 1px solid var(--border-light);
  position: relative;
}
.cart-item-img svg.placeholder-svg {
  width: 28px; height: 28px;
  color: var(--text-light);
  opacity: .6;
}
.cart-item-qty {
  flex-wrap: nowrap;
  gap: 4px;
}
.cart-item-qty button {
  flex-shrink: 0;
}
.cart-item-remove {
  font-size: 12px !important;
  color: var(--text-muted) !important;
  text-decoration: none !important;
  margin-left: 8px !important;
  padding: 4px 6px !important;
  white-space: nowrap;
}
.cart-item-remove:hover { color: var(--error) !important; text-decoration: underline !important; }

/* ═══════════════════════════════════════
   v13 — STICKY HEADER FIX + PREMIUM CARDS
   + REAL CART SLIDE + REMOVE BUTTON FIX
═══════════════════════════════════════ */

/* === FIX 1: STICKY HEADER — overflow-x:hidden on html/body breaks sticky.
   Use overflow-x:clip instead — same protection, no scroll container. === */
html, body { overflow-x: clip !important; max-width: 100vw; }

/* === FIX 2: PREMIUM PRODUCT CARDS — clean, refined, no + button === */

/* Hide the loud "Image coming soon" text everywhere, keep just a tiny watermark icon */
.product-img-placeholder span { display: none !important; }
.product-img-placeholder {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%; height: 100%;
  gap: 0 !important;
}
.product-img-placeholder svg {
  width: 38px !important;
  height: 38px !important;
  opacity: .1 !important;
  color: var(--navy);
}

/* Same for the old card markup */
.product-card-image i, .product-card-image .ti {
  font-size: 32px !important;
  opacity: .1 !important;
  color: var(--navy) !important;
}

/* Kill the + add-to-cart buttons on listing cards — cards click through */
.add-to-cart-btn, .product-add-quick { display: none !important; }

/* === Premium product card redesign === */
.product-card {
  background: white;
  border: 1px solid rgba(11, 29, 51, 0.06) !important;
  border-radius: 10px !important;
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .28s cubic-bezier(.16, 1, .3, 1), box-shadow .25s ease, border-color .2s ease !important;
  position: relative;
}
.product-card:hover {
  border-color: rgba(30, 144, 255, 0.5) !important;
  box-shadow: 0 14px 40px rgba(11, 29, 51, 0.1), 0 4px 10px rgba(11, 29, 51, 0.04) !important;
  transform: translateY(-3px) !important;
}

/* Compact, elegant image area — never overgrows */
.product-card .product-img,
.product-card .product-card-image {
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  background: linear-gradient(135deg, #fbfcfd 0%, #f4f6f8 100%) !important;
  border-bottom: 1px solid rgba(11, 29, 51, 0.04) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 18px !important;
  overflow: hidden;
}
.product-card .product-img img,
.product-card .product-card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 0 !important;
}

/* Tighter, premium info section — price and stock on one row */
.product-card .product-info,
.product-card .product-card-body {
  padding: 14px 16px !important;
  display: flex !important;
  flex-direction: column;
  gap: 4px !important;
  flex: 1;
}
.product-card .product-brand,
.product-card .product-card-brand {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase;
  color: var(--blue) !important;
  margin-bottom: 2px !important;
}
.product-card .product-name,
.product-card .product-card-title {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: var(--navy) !important;
  line-height: 1.35 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0 !important;
  min-height: 36px;
}
.product-card .product-part { display: none !important; }

/* Hide the old separate .product-footer / .product-card-footer with the off-white background */
.product-card .product-footer,
.product-card .product-card-footer {
  background: transparent !important;
  border-top: 1px solid rgba(11, 29, 51, 0.06) !important;
  margin: 8px -16px 0 !important;
  padding: 12px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

/* Inline price+stock row inside info (NEW markup uses .product-meta-row) */
.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px !important;
  padding-top: 10px !important;
  border-top: 1px solid rgba(11, 29, 51, 0.06);
}

/* Price typography — elegant, bold */
.product-card .product-price,
.product-card .product-card-price {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--navy) !important;
  line-height: 1 !important;
  letter-spacing: -.01em;
}

/* Subtle stock badge — dot + small text, refined */
.product-card .product-stock,
.product-card .product-card-stock {
  font-size: 11px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.product-card .product-stock-dot,
.product-card .product-card-stock::before {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* Refined badges */
.product-card .product-badge {
  top: 10px !important;
  left: 10px !important;
  padding: 4px 9px !important;
  font-size: 9.5px !important;
  letter-spacing: .08em !important;
  font-weight: 700;
  backdrop-filter: blur(8px);
  background: rgba(11, 29, 51, 0.85) !important;
  color: white;
  border-radius: 100px !important;
}
.product-card .badge-new { background: rgba(30, 144, 255, 0.9) !important; }
.product-card .badge-popular { background: rgba(11, 29, 51, 0.85) !important; }

/* Mobile sizing — compact and premium, never sparse */
@media (max-width: 768px) {
  .product-card { border-radius: 8px !important; }
  .product-card .product-img, .product-card .product-card-image {
    padding: 14px !important;
  }
  .product-card .product-info, .product-card .product-card-body {
    padding: 10px 12px !important;
  }
  .product-card .product-name, .product-card .product-card-title {
    font-size: 12.5px !important;
    min-height: 34px;
  }
  .product-card .product-price, .product-card .product-card-price {
    font-size: 18px !important;
  }
  .product-card .product-stock, .product-card .product-card-stock {
    font-size: 10px !important;
  }
  .product-card .product-badge {
    font-size: 9px !important;
    padding: 3px 7px !important;
  }
  .product-meta-row {
    margin-top: 6px !important;
    padding-top: 8px !important;
  }
}

/* === FIX 3: CART ITEM LAYOUT — trash icon button, no Remove text === */
.cart-item {
  display: grid !important;
  grid-template-columns: 56px 1fr auto !important;
  gap: 14px !important;
  padding: 16px 0 !important;
  align-items: flex-start !important;
}
.cart-item-info { min-width: 0; }
.cart-item-qty {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap !important;
  margin-top: 6px;
  background: var(--off-white);
  padding: 3px;
  border-radius: 6px;
  width: fit-content;
}
.cart-item-qty button {
  background: white !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 4px !important;
  width: 26px !important;
  height: 26px !important;
  font-size: 14px !important;
  font-weight: 600;
  color: var(--navy) !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}
.cart-item-qty button:hover { background: var(--blue) !important; color: white !important; border-color: var(--blue) !important; }
.cart-item-qty span {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  min-width: 24px;
  text-align: center;
}
.cart-item-side {
  display: flex !important;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  height: 100%;
  gap: 8px;
}
.cart-item-remove-icon {
  background: transparent !important;
  border: none !important;
  padding: 4px !important;
  color: var(--text-light) !important;
  cursor: pointer;
  border-radius: 4px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  transition: background .15s, color .15s;
}
.cart-item-remove-icon:hover {
  color: var(--error) !important;
  background: rgba(239, 68, 68, 0.08) !important;
}
/* Old text-based Remove button — fully hide it now */
.cart-item-remove { display: none !important; }

