/* ==========================================================================
   CA Computer Warehouse - storefront
   ========================================================================== */

:root {
  --navy:        #0a1a33;
  --navy-2:      #122a4d;
  --blue:        #0052cc;
  --blue-dk:     #0041a3;
  --blue-lt:     #e8f0fc;
  --orange:      #e8590c;
  --orange-lt:   #fff1e8;
  --green:       #16a34a;
  --wa:          #25d366;
  --ink:         #16202e;
  --ink-2:       #5a6a7d;
  --ink-3:       #8b98a8;
  --line:        #e3e8ef;
  --line-2:      #f1f4f8;
  --bg:          #f6f8fb;
  --white:       #fff;
  --radius:      10px;
  --radius-lg:   14px;
  --shadow:      0 1px 3px rgba(16,32,58,.06), 0 1px 2px rgba(16,32,58,.04);
  --shadow-md:   0 4px 16px rgba(16,32,58,.10);
  --shadow-lg:   0 12px 32px rgba(16,32,58,.16);
  --wrap:        1280px;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 14px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 8px; font-size: 14px; font-weight: 600;
  transition: background .15s, box-shadow .15s, transform .08s; white-space: nowrap;
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary  { background: var(--blue);  color: #fff; }
.btn-primary:hover  { background: var(--blue-dk); }
.btn-orange   { background: var(--orange); color: #fff; }
.btn-orange:hover { background: #cc4d0a; }
.btn-wa       { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1fb855; }
.btn-ghost    { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-dark     { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-sm { padding: 8px 12px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* -------------------------------------------------------- payment marquee */
.marquee {
  background: var(--navy); color: #cbd7e8; font-size: 12px;
  overflow: hidden; white-space: nowrap; padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.marquee-track { display: inline-block; animation: slide 38s linear infinite; }
.marquee-track span { padding: 0 26px; }
.marquee-track b { color: #fff; font-weight: 600; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* -------------------------------------------------------------- util bar */
.utilbar { background: var(--navy-2); color: #b9c8dc; font-size: 12.5px; }
.utilbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 34px; gap: 20px; }
.utilbar a { color: #b9c8dc; }
.utilbar a:hover { color: #fff; text-decoration: none; }
.utilbar-links { display: flex; gap: 18px; }
.utilbar-contact { display: flex; gap: 18px; font-weight: 500; }

/* -------------------------------------------------------------- masthead */
.masthead { background: #fff; border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; gap: 28px; height: 74px; }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), #0a6ef0);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px;
  letter-spacing: -.5px;
}
.logo-text { line-height: 1.1; }
.logo-text strong { display: block; font-size: 17px; color: var(--navy); font-weight: 800; letter-spacing: -.3px; }
.logo-text small { font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

.searchbox { flex: 1; position: relative; max-width: 620px; }
.searchbox input {
  width: 100%; padding: 11px 42px 11px 15px; border: 1.5px solid var(--line);
  border-radius: 8px; font-size: 14px; background: var(--bg); transition: border-color .15s, background .15s;
}
.searchbox input:focus { outline: none; border-color: var(--blue); background: #fff; }
.searchbox button { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 36px; border-radius: 6px; color: var(--ink-2); display: grid; place-items: center; }
.searchbox button:hover { background: var(--blue-lt); color: var(--blue); }

.suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-lg); overflow: hidden; max-height: 420px; overflow-y: auto;
}
.suggest a { display: flex; gap: 12px; align-items: center; padding: 10px 14px; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.suggest a:last-child { border-bottom: none; }
.suggest a:hover { background: var(--blue-lt); text-decoration: none; }
.suggest img { width: 42px; height: 42px; object-fit: contain; flex-shrink: 0; }
.suggest .s-n { font-size: 13px; font-weight: 500; line-height: 1.3; }
.suggest .s-p { font-size: 13px; font-weight: 700; color: var(--blue); margin-left: auto; white-space: nowrap; }
.suggest .s-all { background: var(--bg); font-weight: 600; font-size: 13px; color: var(--blue); justify-content: center; }

.head-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.iconbtn {
  position: relative; width: 44px; height: 44px; border-radius: 9px;
  display: grid; place-items: center; color: var(--navy); font-size: 19px;
}
.iconbtn:hover { background: var(--blue-lt); color: var(--blue); text-decoration: none; }
.pill {
  position: absolute; top: 4px; right: 3px; min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--orange); color: #fff; border-radius: 10px; font-size: 11px;
  font-weight: 700; display: grid; place-items: center; line-height: 1;
}
.burger { display: none; }

/* ------------------------------------------------------------- main nav */
.mainnav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow); }
.mainnav > .wrap { display: flex; align-items: stretch; gap: 2px; }
.navitem { position: relative; }
.navitem > a {
  display: flex; align-items: center; gap: 7px; height: 46px; padding: 0 13px;
  font-size: 13.5px; font-weight: 600; color: var(--navy); border-bottom: 2.5px solid transparent;
}
.navitem > a:hover { color: var(--blue); border-bottom-color: var(--blue); text-decoration: none; background: var(--blue-lt); }
.navitem.is-hot > a { color: var(--orange); }
.navitem.is-hot > a:hover { color: var(--orange); border-bottom-color: var(--orange); background: var(--orange-lt); }

.mega {
  position: absolute; top: 100%; left: 0; min-width: 300px; background: #fff;
  border: 1px solid var(--line); border-top: none; border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow-lg); padding: 8px; display: none; z-index: 55;
}
.navitem:hover .mega { display: block; }
.mega .mega-tag { font-size: 12px; color: var(--ink-3); padding: 6px 12px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.mega a { display: flex; justify-content: space-between; gap: 16px; padding: 8px 12px; border-radius: 6px; color: var(--ink); font-size: 13.5px; }
.mega a:hover { background: var(--blue-lt); color: var(--blue); text-decoration: none; }
.mega a span { color: var(--ink-3); font-size: 12px; }
.mega a.mega-all { font-weight: 600; color: var(--blue); border-top: 1px solid var(--line-2); margin-top: 6px; padding-top: 10px; }

/* ------------------------------------------------------------------ hero */
.hero {
  background: linear-gradient(115deg, var(--navy) 0%, #113163 55%, var(--blue) 100%);
  color: #fff; border-radius: var(--radius-lg); margin: 22px 0;
  padding: 46px 44px; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -90px; top: -90px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255,255,255,.10), transparent 68%); border-radius: 50%;
}
.hero-eyebrow {
  display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2);
  padding: 5px 13px; border-radius: 20px; font-size: 12px; font-weight: 600;
  letter-spacing: .4px; margin-bottom: 16px;
}
.hero h1 { font-size: 40px; line-height: 1.12; font-weight: 800; letter-spacing: -1px; max-width: 660px; }
.hero h1 em { font-style: normal; color: #7fb4ff; }
.hero p { font-size: 16.5px; color: #cddcf2; margin-top: 14px; max-width: 580px; }
/* Fast local delivery is a genuine advantage over the national retailers, so it
   gets its own line in the hero rather than being buried in the stats row. */
.hero-promise {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 20px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.26);
  padding: 9px 16px 9px 13px; border-radius: 30px; position: relative;
  font-size: 15px; font-weight: 600; color: #fff;
}
.hero-promise .hp-ic { font-size: 18px; line-height: 1; }
.hero-promise b { color: #9fd4ff; font-weight: 800; }
.hero-promise .hp-sub { font-weight: 500; color: #cddcf2; font-size: 13.5px; }

@media (max-width: 760px) {
  .hero-promise { font-size: 13.5px; padding: 8px 13px; gap: 8px; align-items: flex-start; }
  .hero-promise .hp-sub { display: block; }
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 26px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); position: relative; }
.hero-stats div strong { display: block; font-size: 22px; font-weight: 800; }
.hero-stats div span { font-size: 12.5px; color: #a8c0de; }

/* -------------------------------------------------------------- sections */
.section { margin: 40px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-head h2 { font-size: 23px; font-weight: 800; letter-spacing: -.5px; color: var(--navy); }
.section-head p { font-size: 14px; color: var(--ink-2); margin-top: 3px; }
.section-head a { font-size: 13.5px; font-weight: 600; white-space: nowrap; }

/* ------------------------------------------------------------- use cases */
.usecases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.usecase {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; transition: border-color .15s, box-shadow .15s, transform .15s; color: var(--ink);
}
.usecase:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.usecase .uc-icon { font-size: 28px; margin-bottom: 12px; }
.usecase h3 { font-size: 16.5px; font-weight: 700; color: var(--navy); }
.usecase p { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.usecase .uc-go { font-size: 13px; font-weight: 600; color: var(--blue); margin-top: 12px; display: inline-block; }

/* ------------------------------------------------------------ product rail */
.rail { position: relative; }
.rail-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(216px, 1fr);
  gap: 16px; overflow-x: auto; scroll-snap-type: x proximity;
  padding-bottom: 8px; scrollbar-width: thin;
}
.rail-track > * { scroll-snap-align: start; }
.rail-track::-webkit-scrollbar { height: 7px; }
.rail-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.rail-nav { display: flex; gap: 6px; }
.rail-nav button { width: 32px; height: 32px; border-radius: 7px; border: 1px solid var(--line); background: #fff; color: var(--navy); display: grid; place-items: center; }
.rail-nav button:hover { border-color: var(--blue); color: var(--blue); }

/* ---------------------------------------------------------- product card */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 16px; }

.pcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.pcard:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-3px); }

.pcard-badges { position: absolute; top: 9px; left: 9px; z-index: 3; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.badge { font-size: 10.5px; font-weight: 800; padding: 4px 8px; border-radius: 5px; letter-spacing: .3px; text-transform: uppercase; }
.badge-save      { background: var(--orange); color: #fff; }
.badge-new       { background: var(--green); color: #fff; }
.badge-clearance { background: #b91c1c; color: #fff; }
.badge-unboxed   { background: #7c3aed; color: #fff; }
.badge-soon      { background: var(--ink-2); color: #fff; }
.badge-curated   { background: var(--navy); color: #fff; }

.pcard-img { display: block; padding: 18px; background: #fff; aspect-ratio: 4/3; }
.pcard-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s; }
.pcard:hover .pcard-img img { transform: scale(1.05); }

.pcard-body { padding: 0 15px 15px; display: flex; flex-direction: column; flex: 1; }
.pcard-brand { font-size: 10.5px; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: .7px; }
.pcard-name {
  font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--ink); margin: 5px 0 8px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 55px;
}
.pcard-name:hover { color: var(--blue); text-decoration: none; }
.pcard-spec { font-size: 11.5px; color: var(--ink-2); line-height: 1.45; margin-bottom: 9px; min-height: 33px; }
.pcard-spec b { color: var(--ink); font-weight: 600; }

.pcard-price { margin-top: auto; }
.price-now { font-size: 19px; font-weight: 800; color: var(--navy); letter-spacing: -.5px; }
.price-was { font-size: 12.5px; color: var(--ink-3); text-decoration: line-through; margin-left: 7px; }
.price-save { font-size: 11.5px; font-weight: 700; color: var(--orange); }
.price-vat { font-size: 10.5px; color: var(--ink-3); }

.stock { font-size: 11.5px; font-weight: 600; display: flex; align-items: center; gap: 5px; margin: 8px 0 11px; }
.stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.stock-in    { color: var(--green); }
.stock-in::before    { background: var(--green); }
.stock-eta   { color: var(--orange); }
.stock-eta::before   { background: var(--orange); }
.stock-order { color: var(--ink-2); }
.stock-order::before { background: var(--ink-3); }

.pcard-actions { display: grid; grid-template-columns: 1fr auto; gap: 7px; }

/* --------------------------------------------------------- listing layout */
.plp { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; margin: 24px 0 50px; }

.crumbs { font-size: 12.5px; color: var(--ink-2); margin: 18px 0 4px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--blue); }
.crumbs span { color: var(--ink-3); }

.plp-head { margin-bottom: 4px; }
.plp-head h1 { font-size: 27px; font-weight: 800; letter-spacing: -.7px; color: var(--navy); }
.plp-head p { font-size: 14px; color: var(--ink-2); margin-top: 4px; }

.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 4px 0; position: sticky; top: 60px; }
.fgroup { border-bottom: 1px solid var(--line-2); padding: 14px 16px; }
.fgroup:last-child { border-bottom: none; }
.fgroup h4 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--navy); margin-bottom: 10px; }
.fgroup label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); padding: 3.5px 0; cursor: pointer; }
.fgroup label:hover { color: var(--blue); }
.fgroup label input { accent-color: var(--blue); width: 15px; height: 15px; flex-shrink: 0; }
.fgroup label .fcount { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }
.fscroll { max-height: 228px; overflow-y: auto; margin: -2px -4px -2px 0; padding-right: 4px; }
.frange { display: flex; gap: 8px; align-items: center; }
.frange input { width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; }
.fclear { padding: 12px 16px; }

.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 15px; margin-bottom: 16px; flex-wrap: wrap;
}
.toolbar .count { font-size: 13.5px; color: var(--ink-2); }
.toolbar .count b { color: var(--ink); }
.toolbar select { padding: 8px 11px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.filter-toggle { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; background: var(--blue-lt); color: var(--blue);
  font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 20px;
}
.chip button { color: var(--blue); font-size: 15px; line-height: 1; opacity: .7; }
.chip button:hover { opacity: 1; }

.empty { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 60px 30px; text-align: center; }
.empty .e-icon { font-size: 40px; margin-bottom: 14px; }
.empty h3 { font-size: 19px; color: var(--navy); margin-bottom: 7px; }
.empty p { color: var(--ink-2); font-size: 14px; margin-bottom: 18px; }

.loadmore { text-align: center; margin-top: 28px; }

/* ------------------------------------------------------------------- PDP */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 20px 0 44px; align-items: start; }
.pdp-media { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; position: sticky; top: 62px; }
.pdp-main { aspect-ratio: 1; display: grid; place-items: center; }
.pdp-main img { max-height: 100%; object-fit: contain; }
.pdp-thumbs { display: flex; gap: 9px; margin-top: 16px; flex-wrap: wrap; }
.pdp-thumbs button { width: 62px; height: 62px; border: 1.5px solid var(--line); border-radius: 8px; padding: 5px; background: #fff; }
.pdp-thumbs button.on, .pdp-thumbs button:hover { border-color: var(--blue); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: contain; }

.pdp-brand { font-size: 12px; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: 1px; }
.pdp h1 { font-size: 26px; font-weight: 800; line-height: 1.25; letter-spacing: -.6px; color: var(--navy); margin: 7px 0 10px; }
.pdp-sku { font-size: 12.5px; color: var(--ink-3); }
.pdp-blurb { font-size: 14.5px; color: var(--ink-2); margin: 14px 0; line-height: 1.6; }

.pdp-pricebox { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; margin: 18px 0; }
.pdp-pricebox .price-now { font-size: 32px; }
.pdp-pricebox .price-was { font-size: 15px; }
.pdp-savebar { display: inline-block; background: var(--orange-lt); color: var(--orange); font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 6px; margin-top: 8px; }
.pdp-vat { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }

.qtyrow { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty button { width: 38px; height: 42px; font-size: 17px; color: var(--navy); background: var(--bg); }
.qty button:hover { background: var(--blue-lt); color: var(--blue); }
.qty input { width: 52px; height: 42px; text-align: center; border: none; font-size: 15px; font-weight: 600; }
.qty input:focus { outline: none; }

.pdp-buttons { display: grid; gap: 9px; }
.pdp-buttons .two { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

.warehouse { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.wh { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 12.5px; }
.wh b { display: block; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .5px; }
.wh.has { border-color: #bbf7d0; background: #f0fdf4; }
.wh.has span { color: var(--green); font-weight: 700; }

.trustrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 18px 0; }
.trust { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 12px; }
.trust .t-ic { font-size: 17px; }
.trust b { display: block; font-size: 12.5px; color: var(--navy); }
.trust span { font-size: 11.5px; color: var(--ink-2); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; }
.panel h3 { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 14px; letter-spacing: -.3px; }
.featlist { list-style: none; display: grid; gap: 10px; }
.featlist li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.featlist li::before { content: '\2713'; color: var(--green); font-weight: 800; flex-shrink: 0; }

.spectable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.spectable tr { border-bottom: 1px solid var(--line-2); }
.spectable tr:last-child { border-bottom: none; }
.spectable th { text-align: left; padding: 10px 14px 10px 0; color: var(--ink-2); font-weight: 600; width: 38%; vertical-align: top; }
.spectable td { padding: 10px 0; color: var(--ink); font-weight: 500; }

/* ------------------------------------------------------------------ cart */
.cartwrap { display: grid; grid-template-columns: 1fr 350px; gap: 26px; align-items: start; margin: 22px 0 50px; }
.cartlines { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.cartline { display: grid; grid-template-columns: 82px 1fr auto; gap: 16px; padding: 18px; border-bottom: 1px solid var(--line-2); align-items: center; }
.cartline:last-child { border-bottom: none; }
.cartline-img { width: 82px; height: 82px; border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.cartline-img img { width: 100%; height: 100%; object-fit: contain; }
.cartline-n { font-size: 14px; font-weight: 600; line-height: 1.35; }
.cartline-meta { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.cartline-right { text-align: right; }
.cartline-right .lt { font-size: 16px; font-weight: 800; color: var(--navy); }
.cartline-right .le { font-size: 11.5px; color: var(--ink-3); }
.cartline-ctl { display: flex; align-items: center; gap: 10px; margin-top: 9px; justify-content: flex-end; }
.linkbtn { font-size: 12.5px; color: var(--ink-3); }
.linkbtn:hover { color: #b91c1c; text-decoration: underline; }

.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; position: sticky; top: 62px; }
.summary h3 { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.sumline { display: flex; justify-content: space-between; font-size: 14px; padding: 7px 0; color: var(--ink-2); }
.sumline b { color: var(--ink); font-weight: 600; }
.sumline.free b { color: var(--green); }
.sumtotal { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--line); margin-top: 12px; padding-top: 14px; }
.sumtotal span { font-size: 15px; font-weight: 700; color: var(--navy); }
.sumtotal b { font-size: 25px; font-weight: 800; color: var(--navy); letter-spacing: -.6px; }
.summary-actions { display: grid; gap: 9px; margin-top: 18px; }
.summary-note { font-size: 11.5px; color: var(--ink-3); margin-top: 14px; line-height: 1.5; }

/* --------------------------------------------------------------- generic */
.form { display: grid; gap: 15px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--navy); margin-bottom: 5px; }
.field label .req { color: #b91c1c; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px;
  background: #fff; transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.field textarea { resize: vertical; min-height: 88px; }
.field .hint { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.field.bad input, .field.bad textarea { border-color: #dc2626; }
.field .err { font-size: 11.5px; color: #dc2626; margin-top: 4px; display: none; }
.field.bad .err { display: block; }

.notice { border-radius: 9px; padding: 13px 15px; font-size: 13.5px; line-height: 1.55; display: flex; gap: 10px; }
.notice-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.notice-info { background: var(--blue-lt); border: 1px solid #bfdbfe; color: #1e40af; }
.notice-ok   { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }

.paygrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.paycard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.paycard.off { opacity: .55; }
.paycard h4 { font-size: 15px; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.paycard p { font-size: 13px; color: var(--ink-2); margin-top: 7px; }
.paycard .tagline { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 3px 7px; border-radius: 4px; }
.tag-on  { background: #dcfce7; color: #166534; }
.tag-off { background: var(--line-2); color: var(--ink-3); }

.bankbox { background: var(--bg); border: 1px dashed var(--line); border-radius: 9px; padding: 16px; font-size: 13.5px; }
.bankbox dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; }
.bankbox dt { color: var(--ink-2); }
.bankbox dd { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }

.brandstrip { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 11px; }
.brandtile {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 10px;
  text-align: center; color: var(--navy); font-weight: 700; font-size: 13.5px;
}
.brandtile:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; box-shadow: var(--shadow-md); }
.brandtile span { display: block; font-size: 11px; color: var(--ink-3); font-weight: 500; margin-top: 3px; }

.cattiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 11px; }
.cattile { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--ink); font-size: 13.5px; font-weight: 500; }
.cattile:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.cattile span { font-size: 11.5px; color: var(--ink-3); }

.helpstrip {
  background: linear-gradient(115deg, var(--navy), var(--navy-2)); color: #fff;
  border-radius: var(--radius-lg); padding: 34px; display: flex; gap: 26px;
  align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.helpstrip h2 { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.helpstrip p { color: #cddcf2; font-size: 14.5px; margin-top: 7px; max-width: 520px; }
.helpstrip .hs-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- footer */
footer { background: var(--navy); color: #a8bcd6; margin-top: 50px; font-size: 13.5px; }
.footcols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; padding: 44px 0 32px; }
.footcols h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 14px; }
.footcols ul { list-style: none; display: grid; gap: 8px; }
.footcols a { color: #a8bcd6; }
.footcols a:hover { color: #fff; }
.footabout p { line-height: 1.65; margin-top: 12px; }
.footabout .fa-contact { margin-top: 16px; display: grid; gap: 6px; }
.footabout .fa-contact b { color: #fff; }
.footbar { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 12.5px; }

.wafloat {
  position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 56px; height: 56px;
  border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.45); font-size: 27px;
}
.wafloat:hover { text-decoration: none; transform: scale(1.06); }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 90px);
  background: var(--navy); color: #fff; padding: 13px 22px; border-radius: 9px;
  box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 600; z-index: 200;
  opacity: 0; transition: transform .25s, opacity .25s; display: flex; gap: 10px; align-items: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.loading { text-align: center; padding: 70px 20px; color: var(--ink-2); }
.spinner {
  width: 32px; height: 32px; border: 3px solid var(--line); border-top-color: var(--blue);
  border-radius: 50%; margin: 0 auto 14px; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================== printable documents */
.docsheet {
  background: #fff; max-width: 820px; margin: 22px auto 50px; padding: 44px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); color: #111;
  font-size: 13px; line-height: 1.5;
}
.dochead { display: flex; justify-content: space-between; gap: 30px; border-bottom: 3px solid var(--blue); padding-bottom: 20px; }
.dochead .d-co strong { font-size: 19px; color: var(--navy); display: block; }
.dochead .d-co div { color: #555; font-size: 12px; }
.dochead .d-tt { text-align: right; }
.dochead .d-tt h2 { font-size: 26px; color: var(--navy); letter-spacing: -.5px; text-transform: uppercase; }
.dochead .d-tt div { font-size: 12px; color: #555; margin-top: 4px; }
.dochead .d-tt b { color: #111; }
.docparties { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 24px 0; }
.docparties h5 { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: #888; margin-bottom: 7px; }
.docparties div { font-size: 12.5px; line-height: 1.6; }
.doctable { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 12.5px; }
.doctable th { background: var(--navy); color: #fff; text-align: left; padding: 9px 11px; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.doctable td { padding: 9px 11px; border-bottom: 1px solid #e5e7eb; vertical-align: top; }
.doctable .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.doctable tbody tr:nth-child(even) { background: #fafbfc; }
.doctable .d-sku { color: #888; font-size: 11px; }
.doctotals { margin-left: auto; width: 290px; font-size: 13px; }
.doctotals tr td { padding: 6px 0; }
.doctotals tr td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.doctotals tr.grand td { border-top: 2px solid var(--navy); padding-top: 11px; font-size: 17px; font-weight: 800; color: var(--navy); }
.docterms { margin-top: 28px; border-top: 1px solid #e5e7eb; padding-top: 18px; font-size: 11px; color: #666; }
.docterms h5 { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: #888; margin-bottom: 7px; }
.docterms ol { margin-left: 16px; display: grid; gap: 3px; }
.docbank { background: #f6f8fb; border: 1px solid #e3e8ef; border-radius: 8px; padding: 15px; margin-top: 20px; }
.docbank h5 { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--navy); margin-bottom: 9px; }
.docbank dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; font-size: 12.5px; }
.docbank dt { color: #666; }
.docbank dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.docactions { max-width: 820px; margin: 0 auto; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

@media print {
  .marquee, .utilbar, .masthead, .mainnav, footer, .wafloat, .docactions, .crumbs, .notice { display: none !important; }
  body { background: #fff; font-size: 11.5pt; }
  .docsheet { border: none; border-radius: 0; margin: 0; padding: 0; max-width: none; box-shadow: none; }
  .doctable th { background: #0a1a33 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { size: A4; margin: 15mm; }
}

/* -------------------------------------------------------- featured deals */
.hero-deals h1 { max-width: 800px; }
.hero-deals h1 em { color: #ffb27a; }          /* ties the headline to the Save badge */

/* Offset the scroll target so a jumped-to heading is not hidden behind the
   sticky masthead. */
.dealsec { scroll-margin-top: 96px; }

.dealsec .section-head h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ds-count {
  font-size: 10.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase;
  color: var(--orange); background: var(--orange-lt);
  border: 1px solid #ffd7bd; border-radius: 999px; padding: 3px 9px;
}

/* A fixed column count per section, so 4-up stays 4-up and a 2-item section
   renders two normal-sized cards rather than two stretched ones. Overrides
   the auto-fill .grid it sits on, including inside the media queries below -
   hence the explicit mobile rules. */
.deal-grid            { grid-template-columns: repeat(4, 1fr); }
.deal-grid.dg-1       { grid-template-columns: 1fr; max-width: 292px; }
.deal-grid.dg-2       { grid-template-columns: repeat(2, 1fr); max-width: 600px; }
.deal-grid.dg-3       { grid-template-columns: repeat(3, 1fr); max-width: 908px; }

.badge-pct { background: #d92d20; color: #fff; }

.pcard-deal .pcard-view {
  display: block; width: 100%; text-align: center; margin: 10px 0 7px;
}
.pcard-deal .pcard-view:hover { text-decoration: none; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .usecases { grid-template-columns: repeat(2, 1fr); }
  .footcols { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 34px; }
  /* Straight from 4-up to 2-up. A 3-column step would leave the 4th card
     stranded on a row of its own in every 4-item section. */
  .deal-grid, .deal-grid.dg-2, .deal-grid.dg-3 {
    grid-template-columns: repeat(2, 1fr); max-width: none;
  }
}

@media (max-width: 980px) {
  .plp { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; margin-bottom: 16px; }
  .filter-toggle { display: inline-flex; }
  .pdp { grid-template-columns: 1fr; gap: 26px; }
  .pdp-media { position: static; }
  .cartwrap { grid-template-columns: 1fr; }
  .summary { position: static; }
  .utilbar-links { display: none; }
  /* tablet: everything drops to a clean 2-up, including the 2-item sections */
  .deal-grid, .deal-grid.dg-2, .deal-grid.dg-3 {
    grid-template-columns: repeat(2, 1fr); max-width: none;
  }
}

@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .masthead .wrap { height: auto; padding: 12px 20px; flex-wrap: wrap; gap: 12px; }
  .searchbox { order: 3; flex-basis: 100%; max-width: none; }
  .burger { display: grid; }
  .mainnav { display: none; }
  .mainnav.open { display: block; }
  .mainnav > .wrap { flex-direction: column; padding: 8px 20px 14px; }
  .navitem { width: 100%; }
  .navitem > a { height: 44px; border-bottom: 1px solid var(--line-2); }
  .mega { position: static; display: none; box-shadow: none; border: none; min-width: 0; padding: 0 0 10px 14px; }
  .navitem.open .mega { display: block; }
  .hero { padding: 30px 22px; }
  .hero h1 { font-size: 27px; }
  .hero p { font-size: 15px; }
  .hero-stats { gap: 22px; }
  .usecases { grid-template-columns: 1fr; }
  .grid, .rail-track { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); }
  .rail-track { grid-auto-columns: minmax(158px, 1fr); }
  /* phone: 2-up. A single column would make each deal section a full screen
     of scrolling and bury the ones below it. */
  .deal-grid, .deal-grid.dg-1, .deal-grid.dg-2, .deal-grid.dg-3 {
    grid-template-columns: repeat(2, 1fr); max-width: none; gap: 11px;
  }
  .dealsec { scroll-margin-top: 20px; }
  .ds-count { font-size: 10px; }
  .pcard-name { font-size: 12.5px; min-height: 50px; }
  .price-now { font-size: 17px; }
  .pcard-actions { grid-template-columns: 1fr; }
  /* the deal card already has a full-width View deal button above, so keep the
     secondary row side-by-side instead of stacking three buttons */
  .pcard-deal .pcard-actions { grid-template-columns: 1fr auto; }
  .frow { grid-template-columns: 1fr; }
  .footcols { grid-template-columns: 1fr; gap: 26px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .docsheet { padding: 22px; }
  .docparties { grid-template-columns: 1fr; gap: 18px; }
  .doctotals { width: 100%; }
  .cartline { grid-template-columns: 62px 1fr; }
  .cartline-img { width: 62px; height: 62px; }
  .cartline-right { grid-column: 1 / -1; text-align: left; }
  .cartline-ctl { justify-content: flex-start; }
  .helpstrip { padding: 24px; }
}
