/* ============================================================
   EPCOM Technology — design tokens & global styles
   ============================================================ */

:root {
  /* brand */
  --navy:        #1E3FA8;
  --navy-deep:   #142C7A;
  --sky:         #6CC4E9;
  --sky-soft:    #C7E6F5;
  --charcoal:    #2C2C36;

  /* neutrals */
  --bg:          #F4F7FB;
  --surface:     #FFFFFF;
  --surface-2:   #FAFBFE;
  --border:      #E4EAF3;
  --border-strong:#CFD8E8;
  --text:        #0F1A33;
  --text-muted:  #5C6B85;
  --text-faint:  #8896AE;

  /* status */
  --success:     #1F8A5B;
  --warning:     #D97757;
  --danger:      #C0392B;

  /* derived */
  --primary:     var(--navy);
  --primary-tint:#E8EEFB;
  --accent:      var(--sky);

  /* radii + shadows */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(15,26,51,.06), 0 1px 1px rgba(15,26,51,.04);
  --shadow-md: 0 4px 14px rgba(15,26,51,.08), 0 1px 2px rgba(15,26,51,.04);
  --shadow-lg: 0 20px 50px -20px rgba(15,26,51,.25), 0 8px 20px -10px rgba(15,26,51,.12);

  /* density (overridden by tweaks) */
  --grid-gap: 20px;
  --card-pad: 18px;

  /* type */
  --font-sans: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

[data-theme="dark"] {
  --bg:         #0B1326;
  --surface:    #121C36;
  --surface-2:  #182446;
  --border:     #233358;
  --border-strong:#34487A;
  --text:       #ECF1FB;
  --text-muted: #9DAFCF;
  --text-faint: #6E80A4;
  --primary-tint:#1B2A55;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 4px 14px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 50px -20px rgba(0,0,0,.7), 0 8px 20px -10px rgba(0,0,0,.5);
}

/* ============================================================
   Reset
   ============================================================ */

*,*::before,*::after { box-sizing: border-box; }
html,body { margin:0; padding:0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display:block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
h1,h2,h3,h4,h5 { margin: 0; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; }
ul { list-style: none; padding: 0; margin: 0; }

/* ============================================================
   App shell + layout
   ============================================================ */

#root { min-height: 100vh; }
.app { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 32px; }

/* ============================================================
   Top utility bar
   ============================================================ */

.utilbar {
  background: var(--navy-deep);
  color: rgba(255,255,255,.88);
  font-size: 12.5px;
}
.utilbar .container { display: flex; align-items: center; justify-content: space-between; height: 36px; }
.utilbar .left { display: flex; gap: 22px; align-items: center; }
.utilbar .right { display: flex; gap: 18px; align-items: center; }
.utilbar a { opacity: .85; transition: opacity .15s; }
.utilbar a:hover { opacity: 1; }
.util-divider { width: 1px; height: 14px; background: rgba(255,255,255,.18); }

/* ============================================================
   Header
   ============================================================ */

.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.header .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  height: 82px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 50px; width: auto; }
.brand-text { display:none; }

.search {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  transition: border-color .15s, background .15s;
}
.search:focus-within { border-color: var(--primary); background: var(--surface); }
.search svg { color: var(--text-muted); flex-shrink: 0; }
.search input {
  flex: 1; border: none; outline: none; background: transparent;
  padding: 8px 12px; font-size: 14px;
}
.search button {
  background: var(--primary); color: white;
  padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 13px;
  transition: background .15s;
}
.search button:hover { background: var(--navy-deep); }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  color: var(--text-muted);
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--bg); color: var(--text); }
.icon-btn .badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 18px; height: 18px; border-radius: 9px;
  background: var(--warning); color: white;
  font-size: 10.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
  border: 2px solid var(--surface);
}
.quote-btn {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--primary), var(--navy-deep));
  color: white;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 600; font-size: 13.5px;
  transition: transform .15s, box-shadow .15s;
  margin-left: 6px;
}
.quote-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.quote-btn .count {
  background: rgba(255,255,255,.22);
  padding: 2px 8px; border-radius: 999px;
  font-size: 12px;
}

/* primary nav */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.nav .container { display: flex; align-items: center; gap: 4px; height: 48px; }
.nav-categories {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 14px;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  font-weight: 600; font-size: 13.5px;
  cursor: pointer;
  position: relative;
}
.nav a.nav-link, .nav button.nav-link {
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: background .15s, color .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav a.nav-link:hover, .nav button.nav-link:hover { background: var(--bg); color: var(--text); }
.nav a.nav-link.active, .nav button.nav-link.active { color: var(--primary); background: var(--primary-tint); }
.nav .spacer { flex: 1; }
.nav-tag {
  font-size: 10.5px; font-weight: 700;
  background: var(--sky-soft); color: var(--navy-deep);
  padding: 2px 7px; border-radius: 999px;
  letter-spacing: .04em; text-transform: uppercase;
}

/* mega menu */
.mega {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  width: 280px;
  z-index: 100;
}
.mega ul { display: flex; flex-direction: column; }
.mega li a {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px; color: var(--text);
  transition: background .15s;
}
.mega li a:hover { background: var(--bg); }
.mega li a .cat-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--primary-tint); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.mega li a .cat-count { margin-left: auto; color: var(--text-faint); font-size: 11.5px; }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  transition: all .15s;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-accent { background: var(--sky); color: var(--navy-deep); }
.btn-accent:hover { background: #4FB6E0; }
.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: var(--bg); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   Cards + product grid
   ============================================================ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap: var(--grid-gap);
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  cursor: pointer;
  position: relative;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.pc-media {
  position: relative;
  aspect-ratio: 1;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pc-media .placeholder-img {
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    135deg,
    var(--surface-2), var(--surface-2) 10px,
    var(--bg) 10px, var(--bg) 20px
  );
  display: flex; align-items: center; justify-content: center;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  text-align: center;
  padding: 12px;
}
.pc-badges {
  position: absolute; top: 10px; left: 10px;
  display: flex; flex-direction: column; gap: 5px;
}
.badge {
  font-size: 10.5px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
  letter-spacing: .04em; text-transform: uppercase;
}
.badge-sale { background: var(--warning); color: white; }
.badge-new { background: var(--success); color: white; }
.badge-stock-in { background: rgba(31,138,91,.12); color: var(--success); }
.badge-stock-low { background: rgba(217,119,87,.12); color: var(--warning); }
.badge-stock-out { background: rgba(192,57,43,.12); color: var(--danger); }

.pc-quick {
  position: absolute; top: 10px; right: 10px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transform: translateX(8px);
  transition: opacity .2s, transform .2s;
}
.product-card:hover .pc-quick { opacity: 1; transform: translateX(0); }
.pc-quick button {
  width: 34px; height: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: color .15s, border-color .15s;
}
.pc-quick button:hover { color: var(--primary); border-color: var(--primary); }

.pc-body {
  padding: var(--card-pad);
  display: flex; flex-direction: column;
  gap: 8px;
  flex: 1;
}
.pc-category {
  font-size: 11px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-faint);
}
.pc-title {
  font-size: 14px; font-weight: 600; line-height: 1.35;
  color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.pc-specs {
  font-size: 12px; color: var(--text-muted);
  display: flex; flex-wrap: wrap; gap: 4px 10px;
}
.pc-specs span { display: inline-flex; align-items: center; gap: 4px; }
.pc-price-row {
  display: flex; align-items: baseline; gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}
.pc-price {
  font-family: var(--font-mono);
  font-size: 17px; font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
}
.pc-price-was {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  text-decoration: line-through;
}
.pc-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  margin-top: 4px;
}
.pc-add {
  background: var(--primary);
  color: white;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .15s;
}
.pc-add:hover { background: var(--navy-deep); }
.pc-compare {
  width: 38px;
  background: var(--bg);
  color: var(--text-muted);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.pc-compare:hover { background: var(--primary-tint); color: var(--primary); }

/* ============================================================
   Section heading
   ============================================================ */

.section { padding: 48px 0; }
.section-sm { padding: 32px 0; }
.section-hd {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 24px;
  gap: 24px;
}
.section-hd h2 {
  font-size: 26px; letter-spacing: -.015em;
}
.section-hd .eyebrow {
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}
.section-hd a.more {
  font-size: 13px; font-weight: 600; color: var(--primary);
  display: inline-flex; align-items: center; gap: 4px;
}
.section-hd a.more:hover { gap: 8px; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  background:
    radial-gradient(1100px 600px at 80% -100px, rgba(108,196,233,.35), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(30,63,168,.18), transparent 60%),
    linear-gradient(135deg, #0E1F4D 0%, var(--navy-deep) 50%, var(--navy) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 80px; padding-bottom: 80px;
  min-height: 480px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px;
  background: rgba(108,196,233,.18);
  border: 1px solid rgba(108,196,233,.3);
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  color: var(--sky);
  letter-spacing: .04em;
  margin-bottom: 22px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 12px var(--sky); }
.hero h1 {
  font-size: 54px; line-height: 1.04; letter-spacing: -.025em;
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--sky); }
.hero p.lead { font-size: 17px; color: rgba(255,255,255,.82); margin-bottom: 32px; max-width: 540px; }
.hero-actions { display: flex; gap: 12px; }
.hero-actions .btn-primary { background: white; color: var(--navy-deep); }
.hero-actions .btn-primary:hover { background: var(--sky-soft); }
.hero-actions .btn-secondary { background: transparent; color: white; border-color: rgba(255,255,255,.25); }
.hero-actions .btn-secondary:hover { background: rgba(255,255,255,.08); border-color: white; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stats .stat .num {
  font-family: var(--font-mono);
  font-size: 26px; font-weight: 700; color: var(--sky);
  letter-spacing: -.02em;
}
.hero-stats .stat .lbl { font-size: 12.5px; color: rgba(255,255,255,.7); margin-top: 2px; }

.hero-card {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
}
.hero-card .hc-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 8px;
}
.hero-card .hc-title { font-size: 22px; margin-bottom: 4px; }
.hero-card .hc-sub { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 18px; }
.hero-build-stack {
  display: flex; flex-direction: column; gap: 8px;
}
.hero-build-row {
  display: grid; grid-template-columns: 24px 1fr auto;
  align-items: center; gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  font-size: 13px;
}
.hero-build-row.has { border-color: rgba(108,196,233,.35); background: rgba(108,196,233,.07); }
.hero-build-row .ico {
  width: 24px; height: 24px; border-radius: 6px;
  background: rgba(255,255,255,.08); color: var(--sky);
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.hero-build-row .nm { color: rgba(255,255,255,.85); }
.hero-build-row .nm small { display: block; color: rgba(255,255,255,.5); font-size: 11px; margin-top: 1px; }
.hero-build-row .pr { font-family: var(--font-mono); font-size: 12px; color: var(--sky); }
.hero-card .hc-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px dashed rgba(255,255,255,.15);
}
.hero-card .hc-total { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: white; }
.hero-card .hc-total small { display: block; font-size: 10.5px; color: rgba(255,255,255,.55); letter-spacing: .06em; text-transform: uppercase; font-family: var(--font-sans); margin-bottom: 2px; }

/* ============================================================
   Category tiles
   ============================================================ */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.cat-tile {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 22px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: transform .15s, border-color .15s, background .15s;
  text-align: center;
}
.cat-tile:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: var(--primary-tint);
}
.cat-tile .ic {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  transition: background .15s, color .15s;
}
.cat-tile:hover .ic { background: var(--primary); color: white; }
.cat-tile .nm { font-size: 13px; font-weight: 600; color: var(--text); }
.cat-tile .ct { font-size: 11px; color: var(--text-faint); font-family: var(--font-mono); }

/* ============================================================
   Service blocks
   ============================================================ */

.services {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.service-tile {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.service-tile .ic {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.service-tile h4 { font-size: 14px; margin-bottom: 4px; }
.service-tile p { font-size: 12.5px; color: var(--text-muted); line-height: 1.45; }

/* ============================================================
   Quote cart / forms
   ============================================================ */

.page-head {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 36px 0 32px;
}
.page-head .crumbs {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.page-head .crumbs a:hover { color: var(--primary); }
.page-head .crumbs .sep { color: var(--text-faint); }
.page-head h1 { font-size: 32px; letter-spacing: -.02em; }
.page-head .sub { color: var(--text-muted); margin-top: 6px; font-size: 14.5px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: flex-start;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
}
.card-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.card-hd h3 { font-size: 17px; }
.card-hd .step-num {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-faint);
}

.quote-line {
  display: grid;
  grid-template-columns: 72px 1fr auto auto auto;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.quote-line:last-child { border-bottom: 0; }
.quote-line .thumb {
  width: 72px; height: 72px;
  border-radius: 8px;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  background-image: repeating-linear-gradient(
    135deg,
    var(--surface-2), var(--surface-2) 6px,
    var(--bg) 6px, var(--bg) 12px
  );
  color: var(--text-faint);
  font-family: var(--font-mono); font-size: 10px;
}
.quote-line .meta .nm { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.quote-line .meta .sku { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
.qty-stepper {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border-strong); border-radius: 8px;
  overflow: hidden;
}
.qty-stepper button {
  width: 32px; height: 32px;
  color: var(--text-muted);
  transition: background .15s;
}
.qty-stepper button:hover { background: var(--bg); color: var(--text); }
.qty-stepper .val {
  min-width: 36px; text-align: center;
  font-family: var(--font-mono); font-size: 13px;
  font-weight: 600;
}
.line-price { font-family: var(--font-mono); font-weight: 700; font-size: 15px; min-width: 110px; text-align: right; }
.line-remove {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-faint);
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.line-remove:hover { background: rgba(192,57,43,.08); color: var(--danger); }

.summary-row {
  display: flex; justify-content: space-between;
  font-size: 14px;
  padding: 10px 0;
}
.summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 10px;
  padding-top: 16px;
  font-size: 18px;
  font-weight: 700;
}
.summary-row.total .val { font-family: var(--font-mono); color: var(--primary); }
.summary-row .val { font-family: var(--font-mono); }

.field {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 14px;
}
.field label { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.field label .req { color: var(--danger); margin-left: 2px; }
.field input, .field select, .field textarea {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text);
  transition: border-color .15s, background .15s;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary);
  background: var(--surface);
}
.field textarea { resize: vertical; min-height: 80px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,.78);
  padding: 56px 0 24px;
  margin-top: auto;
}
[data-theme="dark"] .footer { background: #060B1C; }
.footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer-brand img { height: 44px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.62); line-height: 1.55; max-width: 320px; }
.footer h5 { font-size: 13px; color: white; margin-bottom: 16px; letter-spacing: .04em; text-transform: uppercase; }
.footer ul li { margin-bottom: 9px; }
.footer ul a { font-size: 13px; color: rgba(255,255,255,.6); transition: color .15s; }
.footer ul a:hover { color: var(--sky); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.footer-contact .row { display: flex; gap: 10px; }
.footer-contact .row .ic { color: var(--sky); flex-shrink: 0; }
.footer-bot {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,.5);
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.7);
  transition: background .15s, color .15s;
}
.socials a:hover { background: var(--primary); color: white; }

/* ============================================================
   Category page
   ============================================================ */

.cat-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: flex-start;
}
.filter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  position: sticky; top: 142px;
}
.filter-group { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.filter-group:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.filter-group h5 { font-size: 13px; margin-bottom: 12px; letter-spacing: .03em; text-transform: uppercase; color: var(--text); }
.filter-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13.5px; cursor: pointer; }
.filter-row .ck {
  width: 18px; height: 18px; border-radius: 4px;
  border: 1.5px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  color: white; flex-shrink: 0;
}
.filter-row.on .ck { background: var(--primary); border-color: var(--primary); }
.filter-row .ct { margin-left: auto; color: var(--text-faint); font-family: var(--font-mono); font-size: 11.5px; }
.filter-row:hover { color: var(--primary); }
.price-range {
  display: flex; gap: 10px; align-items: center;
}
.price-range input {
  flex: 1; min-width: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: var(--font-mono); font-size: 13px;
}
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 18px;
  margin-bottom: 18px;
}
.toolbar .count { font-size: 13.5px; color: var(--text-muted); }
.toolbar .count b { color: var(--text); }
.toolbar-right { display: flex; align-items: center; gap: 10px; }
.sort-select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
}
.view-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.view-toggle button { padding: 8px 10px; color: var(--text-muted); }
.view-toggle button.on { background: var(--primary-tint); color: var(--primary); }

/* ============================================================
   Product detail
   ============================================================ */

.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; }
.pdp-gallery .main {
  aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
}
.pdp-gallery .main .placeholder-img {
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    135deg,
    var(--surface-2), var(--surface-2) 16px,
    var(--bg) 16px, var(--bg) 32px
  );
  display: flex; align-items: center; justify-content: center;
  color: var(--text-faint); font-family: var(--font-mono); font-size: 13px;
}
.pdp-gallery .thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.pdp-gallery .thumbs button {
  aspect-ratio: 1; border-radius: 10px;
  background: var(--surface); border: 1.5px solid var(--border);
  background-image: repeating-linear-gradient(
    135deg,
    var(--surface-2), var(--surface-2) 8px,
    var(--bg) 8px, var(--bg) 16px
  );
  cursor: pointer;
}
.pdp-gallery .thumbs button.on { border-color: var(--primary); }

.pdp-info .brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pdp-info .brand-row .b {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
  background: var(--primary-tint); color: var(--primary);
}
.pdp-info h1 { font-size: 28px; line-height: 1.2; margin-bottom: 10px; letter-spacing: -.015em; }
.pdp-info .sku-row { display: flex; gap: 18px; font-size: 12.5px; color: var(--text-muted); margin-bottom: 22px; }
.pdp-info .sku-row .v { font-family: var(--font-mono); color: var(--text); }
.pdp-info .price-block {
  display: flex; align-items: baseline; gap: 14px;
  padding: 18px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 20px;
}
.pdp-info .price-block .now {
  font-family: var(--font-mono); font-size: 28px; font-weight: 700; color: var(--primary);
  letter-spacing: -.02em;
}
.pdp-info .price-block .was {
  font-family: var(--font-mono); font-size: 15px; color: var(--text-faint); text-decoration: line-through;
}
.pdp-info .price-block .save {
  font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  background: var(--success); color: white;
}
.pdp-info .price-note { font-size: 11.5px; color: var(--text-faint); margin-top: 8px; }

.spec-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.spec-row {
  display: grid; grid-template-columns: 140px 1fr; gap: 10px;
  font-size: 13.5px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
}
.spec-row .k { color: var(--text-muted); font-weight: 500; }
.spec-row .v { color: var(--text); }

.cta-block {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}
.cta-block .qty-stepper button { height: 50px; width: 44px; font-size: 18px; }
.cta-block .qty-stepper .val { min-width: 50px; font-size: 15px; }
.cta-block .qty-stepper { border-radius: 10px; }

.trust-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.trust-tile {
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.trust-tile .ic { color: var(--primary); margin-bottom: 8px; }
.trust-tile .nm { font-size: 13px; font-weight: 600; }
.trust-tile .sub { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

/* tabs */
.tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.tabs button {
  padding: 12px 18px;
  font-size: 14px; font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs button.on { color: var(--primary); border-color: var(--primary); }

/* ============================================================
   Brand strip
   ============================================================ */

.brand-strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
}
.brand-strip .brand-tile {
  display: flex; align-items: center; justify-content: center;
  padding: 18px 6px;
  border-radius: 10px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-muted);
  letter-spacing: .04em;
  transition: background .15s, color .15s;
  cursor: pointer;
  font-weight: 600;
}
.brand-strip .brand-tile:hover { background: var(--bg); color: var(--primary); }

/* ============================================================
   PC Builder
   ============================================================ */

.builder-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: flex-start;
}
.build-stack { display: flex; flex-direction: column; gap: 12px; }
.build-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .15s;
}
.build-step.has { border-color: var(--primary); }
.build-step-hd {
  display: grid;
  grid-template-columns: 36px 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
}
.build-step .num {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--primary-tint); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 13px;
}
.build-step.has .num { background: var(--primary); color: white; }
.build-step .title-row .ttl { font-size: 15px; font-weight: 600; }
.build-step .title-row .req-tag {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  margin-left: 8px;
  color: var(--text-faint);
}
.build-step .title-row .req-tag.req { color: var(--danger); }
.build-step .picked { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }
.build-step .picked.has { color: var(--text); }
.build-step .pr {
  font-family: var(--font-mono); font-size: 14px; font-weight: 700;
  color: var(--primary);
}
.build-step .pr.empty { color: var(--text-faint); font-weight: 500; }
.build-step .body {
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  background: var(--surface-2);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.build-option {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.build-option:hover { border-color: var(--primary); }
.build-option.on { border-color: var(--primary); background: var(--primary-tint); }
.build-option .nm { font-size: 13.5px; font-weight: 600; }
.build-option .sub { font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }
.build-option .pr { font-family: var(--font-mono); font-weight: 700; font-size: 13px; }

.build-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  position: sticky; top: 142px;
  overflow: hidden;
}
.build-summary .hd { padding: 18px 20px; background: linear-gradient(135deg, var(--primary), var(--navy-deep)); color: white; }
.build-summary .hd .lbl { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); }
.build-summary .hd .total { font-family: var(--font-mono); font-size: 30px; font-weight: 700; margin-top: 4px; }
.build-summary .hd .ct { font-size: 12.5px; color: rgba(255,255,255,.7); margin-top: 2px; }
.build-summary .body { padding: 18px 20px; }
.build-summary .compat {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: rgba(31,138,91,.08);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--success);
  margin-bottom: 14px;
}
.build-summary .compat.warn { background: rgba(217,119,87,.08); color: var(--warning); }

/* ============================================================
   Thank you / confirmation
   ============================================================ */

.thanks {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 24px;
}
.thanks .check {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(31,138,91,.12);
  color: var(--success);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.thanks h1 { font-size: 32px; margin-bottom: 10px; letter-spacing: -.02em; }
.thanks p { color: var(--text-muted); margin-bottom: 22px; }
.thanks .qref {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  background: var(--surface);
  border: 1.5px dashed var(--primary);
  border-radius: var(--r-md);
  margin-bottom: 30px;
}
.thanks .qref .lbl { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.thanks .qref .v { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--primary); }

.next-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 30px;
  text-align: left;
}
.next-step {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.next-step .ic {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--primary-tint); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.next-step h4 { font-size: 13.5px; margin-bottom: 4px; }
.next-step p { font-size: 12.5px; color: var(--text-muted); line-height: 1.45; }

/* ============================================================
   Empty + small bits
   ============================================================ */

.empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}
.empty .ic {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--primary-tint); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

/* whatsapp float */
.wa-float {
  position: fixed; bottom: 24px; left: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366; color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  z-index: 100;
  cursor: pointer;
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }

/* ============================================================
   Density variants (tweakable)
   ============================================================ */
[data-density="compact"] {
  --grid-gap: 12px;
  --card-pad: 12px;
}
[data-density="comfy"] {
  --grid-gap: 28px;
  --card-pad: 22px;
}

/* ============================================
   EPCOM Custom Additions
   ============================================ */

/* Mega menu show/hide */
.mega { display: none; }
.nav-categories:hover .mega,
.nav-categories:focus-within .mega { display: block; }

/* Flash messages */
.flash { padding: 12px 20px; margin: 8px 0; border-radius: var(--r-sm); font-weight: 500; }
.flash--success { background: #D4EDDA; color: #155724; }
.flash--error { background: #F8D7DA; color: #721C24; }
.flash--info { background: #D1ECF1; color: #0C5460; }
.admin-flash { margin: 16px 24px 0; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%); color: #fff; padding: 64px 0; }
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero__eyebrow { font-size: 13px; opacity: .7; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.hero__title { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; line-height: 1.1; margin: 0 0 16px; }
.hero__sub { font-size: 16px; opacity: .85; line-height: 1.6; max-width: 500px; margin-bottom: 28px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero__stats { display: flex; gap: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); }
.hero-stat__num { display: block; font-size: 1.6rem; font-weight: 800; font-family: var(--font-mono); }
.hero-stat__label { font-size: 12px; opacity: .7; }

/* Hero card */
.hero-card { background: rgba(255,255,255,.08); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.15); border-radius: var(--r-lg); padding: 24px; }
.hero-card__header { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; opacity: .7; margin-bottom: 16px; }
.hero-card__items { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hero-card__items li { display: flex; justify-content: space-between; font-size: 13px; }
.hero-card__total { display: flex; justify-content: space-between; font-weight: 700; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.2); margin-bottom: 16px; }

/* Services strip */
.services-strip { background: var(--surface); border-bottom: 1px solid var(--border); padding: 28px 0; }
.services-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-tile { display: flex; gap: 12px; align-items: flex-start; }
.service-tile__icon { font-size: 1.5rem; flex-shrink: 0; }
.service-tile p { margin: 4px 0 0; font-size: 13px; color: var(--text-muted); }
.service-tile strong { font-size: 14px; }

/* Section */
.section { padding: 48px 0; }
.section--alt { background: var(--surface); }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.section-title { font-size: 1.5rem; font-weight: 800; margin: 0; }
.section-link { color: var(--navy); font-weight: 600; text-decoration: none; }

/* Category Grid */
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.category-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px 12px; text-align: center; text-decoration: none; color: inherit; transition: all .15s; }
.category-tile:hover { border-color: var(--navy); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.category-tile__icon { display: block; font-size: 1.8rem; margin-bottom: 8px; }
.category-tile__name { display: block; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.category-tile__count { display: block; font-size: 11px; color: var(--text-muted); }

/* Product Grid */
.product-grid { display: grid; gap: var(--grid-gap, 20px); }
.product-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Product Card */
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; transition: box-shadow .15s; }
.product-card:hover { box-shadow: var(--shadow-md); }
.product-card__media { position: relative; aspect-ratio: 1; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.product-card__img-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--text-muted); font-weight: 700; font-size: 1.1rem; }
.product-card__body { padding: var(--card-pad, 18px); display: flex; flex-direction: column; gap: 8px; }
.product-card__brand { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); letter-spacing: .06em; }
.product-card__name { font-size: 14px; font-weight: 600; color: inherit; text-decoration: none; line-height: 1.3; }
.product-card__name:hover { color: var(--navy); }
.product-card__specs { list-style: none; margin: 0; padding: 0; font-size: 12px; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 4px; }
.product-card__specs li { background: var(--bg); border-radius: 4px; padding: 2px 6px; }
.product-card__price-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.price { font-family: var(--font-mono); font-weight: 700; font-size: 15px; color: var(--navy); }
.price-was { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); text-decoration: line-through; margin-left: 6px; }

/* Stock Badge */
.stock-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.stock-badge--in { background: #D4EDDA; color: var(--success); }
.stock-badge--low { background: #FFF3CD; color: var(--warning); }
.stock-badge--out { background: #F8D7DA; color: var(--danger); }

/* Badges (old custom — design CSS handles .badge-* classes) */
.badge--sale { background: var(--danger); color: #fff; }
.badge--new { background: var(--navy); color: #fff; }
.badge--lg { font-size: 12px; padding: 3px 10px; }

/* Corporate Banner */
.corporate-banner { background: linear-gradient(135deg, #142C7A, #1E3FA8); color: #fff; border-radius: var(--r-xl); padding: 40px 48px; display: flex; align-items: center; gap: 48px; }
.corporate-banner__text h2 { margin: 0 0 12px; font-size: 1.8rem; }
.corporate-banner__text p { opacity: .85; max-width: 480px; margin-bottom: 20px; }
.corporate-banner__cta { display: flex; gap: 12px; }
.corporate-banner__icons { display: flex; gap: 24px; flex-shrink: 0; margin-left: auto; }
.corp-icon { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 2rem; opacity: .9; }
.corp-icon span { font-size: 12px; font-weight: 600; }

/* Brand Strip */
.brand-strip { display: flex; flex-wrap: wrap; gap: 12px; }
.brand-chip { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 16px; font-size: 13px; font-weight: 700; letter-spacing: .05em; color: var(--text-muted); }

/* Page Head */
.page-head { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); border-bottom: 1px solid var(--border); padding: 24px 0 20px; }
.page-head__title { font-size: 2rem; font-weight: 800; margin: 8px 0 4px; }
.page-head__sub { color: var(--text-muted); margin: 0; }
.breadcrumbs { font-size: 13px; color: var(--text-muted); }
.breadcrumbs a { color: var(--navy); text-decoration: none; }

/* Category Layout */
.category-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 24px 0; }
.filter-sidebar { position: sticky; top: 100px; align-self: start; }
.filter-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px; }
.filter-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-weight: 700; }
/* .filter-group defined by design CSS (line ~826) — border-bottom pattern */
.filter-group__title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: 0 0 10px; }
.filter-check { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; margin-bottom: 6px; }
.filter-price-row { display: flex; align-items: center; gap: 8px; }
.category-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.category-toolbar__count { font-size: 14px; color: var(--text-muted); }
.category-toolbar__controls { display: flex; gap: 8px; align-items: center; }
.field--sm { padding: 6px 10px; font-size: 13px; }
.loading-overlay { text-align: center; padding: 40px; color: var(--text-muted); }

/* Product List View */
.product-list { display: flex; flex-direction: column; gap: 8px; }
.product-list-row { display: grid; grid-template-columns: 60px 1fr auto auto auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 16px; }
.product-list-row__img { width: 60px; height: 60px; background: var(--surface-2); border-radius: var(--r-xs); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--text-muted); }
.product-list-row__name { font-weight: 600; color: inherit; text-decoration: none; }
.product-list-row__sku { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }
.product-list-row__specs { list-style: none; margin: 4px 0 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; font-size: 11px; color: var(--text-muted); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state p { font-size: 1rem; margin-bottom: 16px; }
.pagination { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 24px 0; }

/* Product Detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 32px 0; }
.product-gallery__main { background: var(--surface-2); border-radius: var(--r-lg); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.product-gallery__placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-muted); font-weight: 700; font-size: 1.2rem; }
.product-gallery__thumbs { display: flex; gap: 8px; }
.gallery-thumb { width: 60px; height: 60px; background: var(--surface-2); border: 2px solid var(--border); border-radius: var(--r-xs); cursor: pointer; }
.gallery-thumb.active { border-color: var(--navy); }
.gallery-thumb__inner { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 12px; color: var(--text-muted); }
.product-detail__brand-rating { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.product-detail__brand { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); letter-spacing: .06em; }
.product-detail__rating { font-size: 13px; color: var(--text-muted); }
.product-detail__name { font-size: 1.5rem; font-weight: 800; margin: 0 0 12px; line-height: 1.2; }
.product-detail__meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.product-detail__meta a { color: var(--navy); }
.product-detail__price-block { margin: 16px 0; }
.product-detail__price { font-size: 2rem; font-weight: 800; font-family: var(--font-mono); color: var(--navy); }
.product-detail__was { font-family: var(--font-mono); color: var(--text-muted); text-decoration: line-through; margin-left: 12px; }
.product-detail__save { background: #FFF3CD; color: var(--warning); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-left: 8px; }
.product-detail__desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.product-detail__key-specs { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.product-detail__key-specs li { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.spec-label { color: var(--text-muted); }
.product-detail__trust { display: flex; gap: 12px; margin-top: 20px; }
/* .trust-tile defined by design CSS (line ~966) */

/* Qty Stepper & CTA — .qty-stepper defined by design CSS (line ~702) */
.qty-cta-row { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.qty-btn { background: none; border: none; padding: 8px 14px; cursor: pointer; font-size: 1.1rem; font-weight: 700; color: var(--text); }
.qty-btn:hover { background: var(--surface-2); }
.qty-val { padding: 8px 16px; font-weight: 700; min-width: 40px; text-align: center; font-family: var(--font-mono); }

/* Tabs */
.product-tabs { margin-top: 40px; }
.tabs__nav { display: flex; border-bottom: 2px solid var(--border); gap: 0; margin-bottom: 24px; }
.tab-btn { background: none; border: none; padding: 12px 20px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab-btn.active { color: var(--navy); border-bottom-color: var(--navy); }
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.specs-grid__row { display: flex; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
.specs-grid__row:nth-child(odd) { background: var(--surface-2); }
.specs-grid__label { color: var(--text-muted); font-weight: 600; }
.review-aggregate { display: flex; align-items: center; gap: 12px; padding: 16px 0; font-size: 1.5rem; font-weight: 800; }
.review-list { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.review-card { background: var(--surface-2); border-radius: var(--r-sm); padding: 16px; }
.review-card__header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.info-block h4 { margin: 0 0 8px; }
.info-block p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* Quote Layout */
.quote-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; padding: 24px 0; }
.quote-stepper { display: flex; gap: 0; margin: 20px 0; }
.step { padding: 10px 24px; font-size: 13px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); }
.step:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.step:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.step.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.step.done { background: var(--success); color: #fff; border-color: var(--success); }
.bulk-banner { background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: var(--r-sm); padding: 10px 16px; font-size: 13px; color: var(--navy); margin-bottom: 16px; }
.quote-lines { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.quote-line { display: grid; grid-template-columns: 48px 1fr auto auto auto; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.quote-line:last-child { border-bottom: none; }
.quote-line__thumb { width: 48px; height: 48px; background: var(--surface-2); border-radius: var(--r-xs); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--text-muted); }
.quote-line__name { font-weight: 600; font-size: 14px; }
.quote-line__sku { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }
.quote-line__specs { list-style: none; margin: 4px 0 0; padding: 0; display: flex; gap: 4px; font-size: 11px; color: var(--text-muted); }
.quote-line__price { font-family: var(--font-mono); font-weight: 700; font-size: 14px; text-align: right; white-space: nowrap; }
.btn-icon { background: none; border: none; cursor: pointer; padding: 6px; color: var(--text-muted); font-size: 1rem; border-radius: var(--r-xs); }
.btn-icon:hover { background: var(--surface-2); color: var(--danger); }
.quote-sidebar { }
.quote-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px; position: sticky; top: 100px; }
.quote-summary h3 { margin: 0 0 16px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.summary-row:last-of-type { border-bottom: none; }
.summary-row--total { font-weight: 800; font-size: 16px; color: var(--navy); }
.summary-row--item { font-size: 12px; color: var(--text-muted); }
.summary-note { font-size: 12px; color: var(--text-muted); margin-top: 12px; }
.trust-tiles { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.trust-tiles .trust-tile { background: var(--surface-2); border-radius: var(--r-xs); padding: 6px 10px; font-size: 12px; }

/* Checkout Form */
.checkout-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 24px; }
.form-section { margin-bottom: 28px; }
.form-section h3 { font-size: 1rem; font-weight: 700; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.field-hint { font-size: 11px; color: var(--text-faint); }
.fulfillment-options { display: flex; gap: 12px; }
.fulfillment-option { flex: 1; border: 1.5px solid var(--border); border-radius: var(--r-sm); padding: 14px; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; }
.fulfillment-option input[type=radio] { margin-top: 2px; }
.fulfillment-option:has(input:checked) { border-color: var(--navy); background: #EFF6FF; }
.fulfillment-option__body strong { display: block; font-size: 14px; }
.fulfillment-option__body span { font-size: 12px; color: var(--text-muted); }

/* Quote confirmation */
.confirmation-page { max-width: 600px; margin: 60px auto; text-align: center; }
.confirmation-page__icon { font-size: 3rem; margin-bottom: 16px; }
.confirmation-page h1 { font-size: 2rem; margin-bottom: 8px; }
.quote-ref-card { background: var(--surface); border: 2px solid var(--navy); border-radius: var(--r-md); padding: 20px 32px; margin: 24px auto; display: inline-block; }
.quote-ref-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 4px; }
.quote-ref-number { display: block; font-size: 1.6rem; font-weight: 800; font-family: var(--font-mono); color: var(--navy); }
.confirmation-details { display: flex; flex-direction: column; gap: 8px; text-align: left; background: var(--surface-2); border-radius: var(--r-sm); padding: 16px 20px; margin: 20px 0; font-size: 14px; }
.next-steps { display: flex; flex-direction: column; gap: 16px; text-align: left; margin: 24px 0; }
.next-step { display: flex; gap: 16px; align-items: flex-start; }
.next-step__num { width: 32px; height: 32px; background: var(--navy); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.next-step strong { display: block; margin-bottom: 4px; }
.next-step p { margin: 0; font-size: 13px; color: var(--text-muted); }
.confirmation-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* Auth Layout */
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-panel--brand { background: linear-gradient(160deg, var(--navy-deep), var(--navy)); color: #fff; padding: 48px; display: flex; flex-direction: column; gap: 20px; }
.auth-panel__eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .7; margin: 0; }
.auth-panel--brand h2 { font-size: 2rem; margin: 0; line-height: 1.2; }
.auth-panel__benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.auth-panel__guest { margin-top: auto; font-size: 13px; opacity: .8; }
.auth-panel__guest a { color: #fff; }
.auth-panel--form { padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.auth-panel--form h3 { font-size: 1.5rem; margin-bottom: 4px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.auth-form__options { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.auth-link { color: var(--navy); font-weight: 600; text-decoration: none; }
.auth-check { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.auth-footer { margin-top: 16px; font-size: 13px; color: var(--text-muted); text-align: center; }

/* Dashboard */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 24px 0; }
.dashboard-sidebar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px; position: sticky; top: 100px; align-self: start; }
.dashboard-sidebar__profile { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.avatar { width: 40px; height: 40px; background: var(--navy); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.avatar--sm { width: 32px; height: 32px; font-size: 12px; }
.dashboard-nav { display: flex; flex-direction: column; gap: 2px; }
.dashboard-nav__item { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: var(--r-xs); font-size: 14px; font-weight: 500; color: var(--text-muted); text-decoration: none; }
.dashboard-nav__item:hover, .dashboard-nav__item.active { background: var(--bg); color: var(--navy); }
.dashboard-nav__item--danger:hover { color: var(--danger); }
.dashboard-nav hr { border: none; border-top: 1px solid var(--border); margin: 8px 0; }
.nav-badge { background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
.dashboard-main { }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.stat-card__num { font-size: 2rem; font-weight: 800; font-family: var(--font-mono); color: var(--navy); }
.stat-card__label { font-size: 13px; color: var(--text-muted); }
.dashboard-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.filter-inline { display: flex; gap: 8px; }

/* Quote Rows */
.quote-row { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); margin-bottom: 8px; overflow: hidden; }
.quote-row__header { display: flex; align-items: center; gap: 16px; padding: 14px 16px; font-size: 13px; }
.quote-row__ref { font-family: var(--font-mono); font-weight: 700; min-width: 120px; }
.quote-row__date { color: var(--text-muted); min-width: 100px; }
.quote-row__items { color: var(--text-muted); min-width: 60px; }
.quote-row__total { font-weight: 700; font-family: var(--font-mono); min-width: 120px; }
.quote-row__status { flex: 1; }
.quote-row__detail { display: none; padding: 0 16px 16px; border-top: 1px solid var(--border); }
.quote-row.expanded .quote-row__detail { display: block; }
.quote-row__items-table { width: 100%; font-size: 13px; margin-top: 12px; }
.quote-row__items-table td { padding: 4px 8px 4px 0; border-bottom: 1px solid var(--border); }
.quote-row__notes { font-size: 13px; color: var(--text-muted); margin-top: 8px; }
.settings-form { max-width: 500px; }
.mono { font-family: var(--font-mono); }

/* Status Badge */
.status-badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.status-badge--new { background: #FFF3CD; color: #856404; }
.status-badge--in_progress { background: #CCE5FF; color: #004085; }
.status-badge--quoted { background: #D4EDDA; color: #155724; }
.status-badge--converted { background: #D1ECF1; color: #0C5460; }
.status-badge--lost { background: #F8D7DA; color: #721C24; }
.status-badge--expired { background: var(--surface-2); color: var(--text-muted); }
.status-badge--lg { font-size: 13px; padding: 4px 14px; }

/* Admin */
.admin-body { margin: 0; background: var(--bg); }
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--charcoal); color: #fff; display: flex; flex-direction: column; padding: 20px; }
.admin-sidebar__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; margin-bottom: 32px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav__item { display: block; padding: 9px 12px; border-radius: var(--r-xs); font-size: 14px; color: rgba(255,255,255,.7); text-decoration: none; }
.admin-nav__item:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-nav__item.active { background: var(--navy); color: #fff; }
.admin-nav__item.disabled { opacity: .4; pointer-events: none; }
.admin-sidebar__footer { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.admin-sidebar__user { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.admin-sidebar__user span { display: block; font-size: 13px; }
.admin-main { display: flex; flex-direction: column; overflow: hidden; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; background: var(--surface); border-bottom: 1px solid var(--border); }
.admin-topbar__title { font-size: 1.3rem; font-weight: 800; margin: 0; }
.admin-content { padding: 24px; overflow-y: auto; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.kpi-card__icon { font-size: 1.5rem; }
.kpi-card__num { font-size: 2.2rem; font-weight: 800; font-family: var(--font-mono); color: var(--navy); }
.kpi-card__label { font-size: 13px; color: var(--text-muted); }
.admin-section { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px; }
.admin-card h3 { margin: 0 0 16px; font-size: 1rem; }
.pipeline-value { font-size: 2rem; font-weight: 800; font-family: var(--font-mono); color: var(--navy); display: block; margin: 12px 0 4px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { text-align: left; padding: 8px 12px; background: var(--surface-2); font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table--hoverable tr:hover td { background: var(--surface-2); }
.admin-table tfoot td { padding: 10px 12px; border-top: 1px solid var(--border); }
.total-row td { font-weight: 700; }
.text-right { text-align: right; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface); border: 1.5px solid var(--border); color: var(--text-muted); text-decoration: none; }
.filter-chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-count { font-family: var(--font-mono); font-size: 12px; }
.quote-detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; }
.quote-detail-main { display: flex; flex-direction: column; gap: 16px; }
.quote-detail-sidebar { display: flex; flex-direction: column; gap: 16px; }
.info-grid--3 { grid-template-columns: repeat(3, 1fr); }
.info-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 4px; }
.activity-log { display: flex; flex-direction: column; gap: 10px; }
.activity-entry { display: flex; gap: 12px; font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.activity-time { color: var(--text-muted); font-family: var(--font-mono); }
.activity-actor { font-weight: 600; }
.activity-action { color: var(--text-muted); }
.activity-note { width: 100%; color: var(--text-muted); background: var(--surface-2); border-radius: var(--r-xs); padding: 6px 10px; font-style: italic; }
.current-status { margin-bottom: 12px; }
.meta-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.meta-list li { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--border); }

/* Toast */
.toast-notification { position: fixed; bottom: 24px; right: 24px; background: var(--charcoal); color: #fff; padding: 12px 20px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; z-index: 9999; box-shadow: var(--shadow-lg); animation: slideIn .2s ease; }
@keyframes slideIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* WhatsApp Float */
.whatsapp-float { position: fixed; bottom: 24px; left: 24px; width: 50px; height: 50px; background: #25D366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; text-decoration: none; box-shadow: var(--shadow-md); z-index: 100; }

/* Responsive */
@media (max-width: 980px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__visual { display: none; }
    .services-strip__grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .category-layout { grid-template-columns: 1fr; }
    .filter-sidebar { position: static; }
    .product-detail { grid-template-columns: 1fr; }
    .quote-layout { grid-template-columns: 1fr; }
    .auth-layout { grid-template-columns: 1fr; }
    .auth-panel--brand { display: none; }
    .dashboard-layout { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .corporate-banner { flex-direction: column; }
}
