/* ==========================================================================
   Big Sky Dynamics — Forge skin: bsdyno-partner-portal v1.0.0
   Static export of the Big Sky Dynamics partner-portal skin.
   Palette: #1B1BFF electric blue / #0B1220 ink / #E91E8C magenta / #F7F8FE surface
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  /* Latin subset (92% smaller: 56KB woff2 vs 745KB ttf) with the original as fallback. */
  src: url("assets/fonts/Montserrat-subset.woff2") format("woff2"),
       url("assets/fonts/Montserrat.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  /* `optional` (not `swap`): a late font swap was reflowing the primary nav and
     shifting <main> by ~74px (CLS 0.79 at 1440). The woff2 is preloaded and tiny, so
     browsers that can load it in time use it; otherwise the fallback stays for the
     page load and the font is cached for the next one. */
  font-display: optional;
}

:root {
  --blue: #1B1BFF;
  --blue-dark: #1212d4;
  --ink: #0B1220;
  --ink-2: #101a2e;
  --magenta: #E91E8C;
  --surface: #F7F8FE;
  --white: #ffffff;
  --line: #e3e5f2;
  --line-strong: #cfd3e8;
  --muted: #5b6079;
  --muted-2: #8b90ad;
  --good: #0c7a3d;
  --good-bg: #e9f9ef;
  --warn: #a06000;
  --warn-bg: #fff5e5;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(11, 18, 32, 0.22);
  --shadow-lg: 0 24px 60px -24px rgba(11, 18, 32, 0.35);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--font);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 2px; border-radius: 3px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200; }
.skip:focus { left: 12px; top: 12px; }

/* ------------------------------- utilities ------------------------------- */
.utility-bar {
  background: var(--ink);
  color: #c9cde4;
  font-size: 12px;
  padding: 8px 0;
}
.utility-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.u-left { display: flex; align-items: center; gap: 12px; }
.u-pill {
  background: rgba(27, 27, 255, 0.22);
  border: 1px solid rgba(133, 136, 255, 0.45);
  color: #dfe0ff;
  border-radius: 999px;
  padding: 2px 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.u-note { color: #9aa0c0; }
.u-right { display: flex; align-items: center; gap: 18px; }
.u-right a { color: #c9cde4; }
.u-right a:hover { color: #fff; }
.u-right .signin { color: #fff; font-weight: 700; border-left: 1px solid #2a3350; padding-left: 18px; }

/* -------------------------------- header -------------------------------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 80;
  box-shadow: var(--shadow-sm);
}
.header-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 190px;
  gap: 26px;
  align-items: center;
  padding: 16px 0;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 46px; width: auto; }
.search {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27, 27, 255, 0.12); }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 12px 16px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
}
.search input::placeholder { color: #9aa0b8; }
.search button {
  border: 0;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 0 24px;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.15s ease;
}
.search button:hover { background: var(--blue-dark); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.cart {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--ink);
  color: #fff;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.cart:hover { background: var(--ink-2); }
.cart-count {
  background: var(--magenta);
  color: #fff;
  border-radius: 999px;
  min-width: 22px;
  padding: 2px 7px;
  font-size: 11.5px;
  text-align: center;
  line-height: 1.4;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: var(--white);
  border-radius: 7px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

nav.primary { border-top: 1px solid var(--line); background: var(--white); }
nav.primary .wrap { display: flex; padding: 0 24px; }
nav.primary ul { display: flex; flex-wrap: wrap; gap: 26px; }
nav.primary a {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #333a52;
  padding: 13px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
nav.primary a:hover, nav.primary a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }

/* ---------------------------------- hero -------------------------------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--ink) url("assets/hero-datacenter.jpg") center / cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(92deg, rgba(11, 18, 32, 0.96) 0%, rgba(11, 18, 32, 0.82) 46%, rgba(11, 18, 32, 0.34) 100%);
  z-index: -1;
}
.hero .wrap { padding: 92px 24px 84px; }
.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.4px;
  color: #b9bcff;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -0.5px;
  max-width: 760px;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: #a9abff; }
.lead { font-size: 18px; color: #d8dcf2; max-width: 640px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #e7e9f8;
  letter-spacing: 0.2px;
}

/* --------------------------------- buttons ------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-accent { background: var(--magenta); color: #fff; }
.btn-accent:hover { background: #c91576; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 9px 14px; font-size: 12.5px; }

/* --------------------------------- stats --------------------------------- */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 26px 24px;
}
.stat { padding: 2px 22px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font-size: 27px; line-height: 1.15; color: var(--ink); letter-spacing: -0.4px; }
.stat strong span { color: var(--blue); }
.stat small { display: block; margin-top: 4px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* -------------------------------- sections ------------------------------- */
.section { padding: 62px 0; }
.section--tight { padding: 46px 0; }
.section--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--ink { background: var(--ink); color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.3px; line-height: 1.15; }
.section-head p { color: var(--muted); font-size: 14px; margin-top: 6px; max-width: 560px; }
.section-head .link {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
}
.section-head .link:hover { border-bottom-color: var(--blue); }
.kicker { font-size: 11.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--magenta); margin-bottom: 10px; }
.section--ink .section-head p, .section--ink .muted { color: #b8bdd6; }

/* ----------------------------- category tiles ---------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-card {
  position: relative;
  min-height: 176px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  isolation: isolate;
}
.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  transition: opacity 0.25s ease, transform 0.4s ease;
  z-index: -1;
}
.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.05) 30%, rgba(11, 18, 32, 0.88) 100%);
  z-index: -1;
}
.cat-card:hover img { opacity: 0.68; transform: scale(1.04); }
.cat-card b { font-size: 17px; letter-spacing: 0.2px; }
.cat-card small { font-size: 12px; color: #c8cce6; margin-top: 2px; }
.cat-card .cat-arrow { position: absolute; top: 16px; right: 16px; font-size: 16px; color: #fff; opacity: 0.8; }

/* ------------------------------ product cards ---------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--line-strong); }
.product-card .pimg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e9ebf5; }
.product-card .pbody { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sku { font-size: 10.5px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted-2); }
.product-card h3 { font-size: 16px; line-height: 1.3; letter-spacing: -0.1px; }
.spec { font-size: 12.5px; color: var(--muted); }
.price { font-size: 21px; font-weight: 700; letter-spacing: -0.4px; margin-top: 2px; }
.price small { font-size: 11.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 4px 8px;
  border-radius: 5px;
  width: max-content;
}
.badge-good { background: var(--good-bg); color: var(--good); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-blue { background: #ececff; color: var(--blue); }
.badge-pink { background: #ffe7f4; color: #b0126a; }
.pcard-actions { margin-top: auto; padding-top: 10px; display: flex; gap: 8px; }
.pcard-actions .btn { flex: 1; }

/* ------------------------------ how it works ----------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.step b { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.6px; color: var(--magenta); margin-bottom: 10px; }
.step h4 { font-size: 15.5px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--muted); }

/* -------------------------------- programs ------------------------------- */
.program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.program {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.program:hover { border-color: rgba(133, 136, 255, 0.6); background: rgba(27, 27, 255, 0.12); }
.program .ico {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
  margin-bottom: 14px;
}
.program h3 { font-size: 16px; margin-bottom: 7px; }
.program p { font-size: 13px; color: #b8bdd6; }

/* --------------------------------- CTA band ------------------------------ */
.cta-band {
  background: linear-gradient(100deg, var(--blue) 0%, #4a2bff 58%, var(--magenta) 130%);
  color: #fff;
  border-radius: 14px;
  padding: 40px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.2; letter-spacing: -0.3px; }
.cta-band p { color: rgba(255, 255, 255, 0.86); font-size: 14px; margin-top: 8px; max-width: 560px; }
.cta-band .btn-ink { white-space: nowrap; }

/* -------------------------------- breadcrumbs ---------------------------- */
.crumbs { padding: 18px 0 0; font-size: 12px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li::after { content: "/"; margin-left: 8px; color: var(--line-strong); }
.crumbs li:last-child::after { content: ""; }
.crumbs a:hover { color: var(--blue); }
.page-head { padding: 22px 0 8px; }
.page-head h1 { font-size: clamp(1.7rem, 3vw, 2.35rem); letter-spacing: -0.5px; line-height: 1.1; }
.page-head p { color: var(--muted); font-size: 14px; margin-top: 8px; max-width: 720px; }

/* --------------------------------- catalog ------------------------------- */
.catalog-layout { display: grid; grid-template-columns: 246px minmax(0, 1fr); gap: 28px; padding: 26px 0 64px; align-items: start; }
.filters {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 18px 18px;
  position: sticky;
  top: 168px;
}
.filter-group { padding: 16px 0; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; }
.filter-group h4 { font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.filter-group label { display: flex; align-items: center; gap: 9px; font-size: 13.5px; padding: 4px 0; cursor: pointer; color: #333a52; }
.filter-group input { accent-color: var(--blue); width: 15px; height: 15px; }
.filter-group .count { margin-left: auto; font-size: 11.5px; color: var(--muted-2); }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.results-head h2 { font-size: 17px; }
.results-head .muted { font-size: 12.5px; color: var(--muted); }
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 24px; }
.cat-strip a {
  position: relative;
  border-radius: 9px;
  overflow: hidden;
  min-height: 86px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  font-size: 11.5px;
  font-weight: 700;
  isolation: isolate;
}
.cat-strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; z-index: -1; }
.cat-strip a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(11, 18, 32, 0.9)); z-index: -1; }

/* --------------------------------- PDP ----------------------------------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 34px; padding: 26px 0 30px; align-items: start; }
.gallery { background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.gallery .main-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px; }
.gallery .thumbs img { border-radius: 6px; aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--line); }
.pdp-info h1 { font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.15; letter-spacing: -0.4px; margin: 6px 0 8px; }
.pdp-info .sku { display: block; margin-bottom: 14px; }
.pdp-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.avail {
  border: 1px solid #c9eed8;
  background: var(--good-bg);
  border-radius: 9px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.avail b { color: var(--good); font-size: 13.5px; }
.avail small { display: block; color: #2c6b47; font-size: 12px; }
.pdp-price { font-size: 30px; font-weight: 700; letter-spacing: -0.8px; }
.pdp-price small { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; display: block; margin-top: 2px; }
.buy-row { display: flex; gap: 12px; align-items: stretch; margin: 18px 0; flex-wrap: wrap; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--white); }
.qty button { width: 40px; border: 0; background: transparent; font-size: 18px; cursor: pointer; color: var(--muted); }
.qty button:hover { color: var(--blue); }
.qty input { width: 56px; border: 0; text-align: center; font: inherit; font-weight: 700; padding: 10px 0; background: transparent; }
.buy-row .btn { flex: 1; min-width: 180px; }
.tier-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 24px 0; }
.tier-table th, .tier-table td { text-align: left; padding: 11px 14px; font-size: 13px; border-bottom: 1px solid var(--line); }
.tier-table th { background: #f0f1fa; font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.tier-table tr:last-child td { border-bottom: 0; }
.tier-table td:last-child { font-weight: 700; color: var(--ink); }
.spec-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 14px; font-size: 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 38%; color: var(--muted); font-weight: 600; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.pdp-notes { font-size: 12.5px; color: var(--muted); margin-top: 18px; display: grid; gap: 6px; }

/* ---------------------------------- quote -------------------------------- */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; padding: 26px 0 64px; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.panel h2 { font-size: 18px; margin-bottom: 4px; }
.panel .panel-sub { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.qtable { width: 100%; border-collapse: collapse; }
.qtable th, .qtable td { text-align: left; padding: 13px 8px; font-size: 13px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.qtable th { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.qtable tr:last-child td { border-bottom: 0; }
.qline { display: flex; align-items: center; gap: 12px; }
.qline img { width: 54px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.qline b { display: block; font-size: 13px; }
.qline span { font-size: 11px; color: var(--muted); }
.qty-mini { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; }
.qty-mini button { width: 28px; height: 30px; border: 0; background: transparent; cursor: pointer; color: var(--muted); }
.qty-mini input { width: 38px; border: 0; text-align: center; font: inherit; font-size: 12.5px; font-weight: 700; background: transparent; }
.remove { border: 0; background: transparent; color: var(--magenta); font-size: 11.5px; font-weight: 700; cursor: pointer; }
.totals { margin-top: 16px; display: grid; gap: 9px; }
.totals .row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.totals .row b { color: var(--ink); }
.totals .grand { border-top: 1px solid var(--line); padding-top: 12px; font-size: 17px; font-weight: 700; color: var(--ink); }
.quote-note { font-size: 12px; color: var(--muted); background: #f0f1fa; border-radius: 8px; padding: 12px 14px; margin-top: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 700; letter-spacing: 0.9px; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 13.5px;
  background: var(--white);
  color: var(--ink);
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27, 27, 255, 0.12); }
.field .err { color: var(--magenta); font-size: 11.5px; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select { border-color: var(--magenta); }
.form-actions { margin-top: 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.form-ok { display: none; background: var(--good-bg); color: var(--good); border-radius: 8px; padding: 12px 14px; font-size: 13px; font-weight: 600; }
.contact-card { background: var(--ink); color: #fff; border-radius: 12px; padding: 24px; margin-top: 20px; }
.contact-card h3 { font-size: 15px; margin-bottom: 8px; }
.contact-card p { font-size: 13px; color: #b8bdd6; margin-bottom: 14px; }
.contact-card a { display: block; font-size: 15px; font-weight: 700; color: #fff; margin: 6px 0; }
.empty-cart { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 14px; display: none; }
.empty-cart b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }

/* -------------------------------- footer --------------------------------- */
.site-footer { background: #070d18; color: #c3c8df; padding: 54px 0 26px; font-size: 13px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.foot-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 14px;
  background: #fff;
  border-radius: 7px;
  padding: 7px 10px;
  box-sizing: content-box;
}
.foot-brand p { font-size: 12.5px; color: #9aa0c0; max-width: 320px; }
.site-footer h5 { color: #fff; font-size: 11px; text-transform: uppercase; letter-spacing: 1.3px; margin-bottom: 12px; }
.site-footer a { display: block; color: #c3c8df; font-size: 12.5px; margin-bottom: 7px; }
.site-footer a:hover { color: #fff; }
.site-footer .tel { font-size: 14px; font-weight: 700; color: #fff; }
.foot-bottom { padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.legal { color: #8b90ad; font-size: 12px; }
.fineprint { color: #6f7593; font-size: 11.5px; }

/* --------------------------------- toast --------------------------------- */
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--ink);
  color: #fff;
  border-left: 4px solid var(--magenta);
  border-radius: 8px;
  padding: 13px 18px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 120;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ------------------------------- responsive ------------------------------ */
@media (max-width: 1120px) {
  .cat-grid,
  .product-grid,
  .results-grid,
  .steps,
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-strip { grid-template-columns: repeat(3, 1fr); }
  .catalog-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 20px; }
  .pdp { grid-template-columns: 1fr; }
  .quote-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 32px; }
}

@media (max-width: 820px) {
  .utility-bar .u-note { display: none; }
  .utility-bar .wrap { flex-wrap: wrap; row-gap: 6px; }
  .u-right { flex-wrap: wrap; gap: 12px; }
  .u-right .signin { border-left: 0; padding-left: 0; }
  .header-grid { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px 0; }
  .brand img { height: 38px; }
  .header-actions { justify-self: end; gap: 8px; }
  .cart { padding: 10px 12px; font-size: 12.5px; }
  .nav-toggle { padding: 10px 12px; font-size: 12.5px; }
  .search { grid-column: 1 / -1; order: 3; }
  .search button { padding: 0 16px; }
  nav.primary { display: none; }
  nav.primary.open { display: block; }
  nav.primary ul { flex-direction: column; gap: 0; padding: 6px 0; }
  nav.primary a { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: inline-block; }
  .hero .wrap { padding: 60px 24px 56px; }
  .stats .wrap { grid-template-columns: 1fr 1fr; gap: 20px 0; padding: 22px 24px; }
  .stat { border-left: 0; padding: 0; }
  .cat-grid, .product-grid, .results-grid, .steps, .program-grid { grid-template-columns: 1fr; }
  .cat-strip { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .site-footer { margin-top: 0; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .results-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .buy-row .btn { min-width: 0; }
}


/* BSDYNO-MOBILE-FIX 2026-11-08 */
@media (max-width: 640px) {
  .panel { width: 100% !important; max-width: 100% !important; padding: 16px !important; }
  .qtable { display: block; width: 100%; overflow-x: auto; white-space: nowrap; }
  .grid, .results-grid, .cat-grid, .product-grid, .program-grid, .steps { grid-template-columns: 1fr !important; }
  .offer-card { width: 100% !important; max-width: 100% !important; }
  .wrap, .container { padding-left: 16px !important; padding-right: 16px !important; }
  html, body { overflow-x: hidden; }
}

/* ==========================================================================
   BSDYNO-FE-2026-11-08 (task-46): offers filters, cart, account, PDP SEO pages,
   empty/error/loading states, CWV image fallbacks. Append-only block.
   ========================================================================== */

/* --- CWV: hero background gets avif/webp with jpeg fallback ----------------- */
.conv-hero,
.hero {
  background-image: linear-gradient(100deg, rgba(11, 18, 32, 0.97) 0%, rgba(11, 18, 32, 0.9) 46%, rgba(11, 18, 32, 0.6) 100%),
    image-set(url("assets/hero-datacenter.avif") type("image/avif"),
              url("assets/hero-datacenter.webp") type("image/webp"),
              url("assets/hero-datacenter.jpg") type("image/jpeg"));
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
}
.hero { background-image: linear-gradient(92deg, rgba(11, 18, 32, 0.96) 0%, rgba(11, 18, 32, 0.82) 46%, rgba(11, 18, 32, 0.34) 100%),
    image-set(url("assets/hero-datacenter.avif") type("image/avif"),
              url("assets/hero-datacenter.webp") type("image/webp"),
              url("assets/hero-datacenter.jpg") type("image/jpeg")); }
.conv-hero::before, .hero::before { background: radial-gradient(1200px 500px at 78% 20%, rgba(27, 27, 255, 0.30), transparent 60%); }

/* --- layout hardening: nothing may push the document wider than the viewport */
.quote-layout > *, .catalog-layout > *, .pdp > *, .conv-hero-grid > *,
.offers-layout > *, .cart-layout > *, .account-layout > * { min-width: 0; }
.qtable-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.qtable-wrap .qtable { min-width: 560px; }
@media (max-width: 640px) { .qtable-wrap .qtable { min-width: 520px; } }
.offer-card, .product-card, .conv-case, .panel { min-width: 0; overflow-wrap: anywhere; }
.offer-card h3, .product-card h3, .offer-sku, .qline b, .qline span { overflow-wrap: anywhere; }

/* --- offers page: toolbar, filters, sort, inventory counts ------------------ */
.stat-band { display: flex; gap: 26px; flex-wrap: wrap; margin: 18px 0 6px; }
.stat-band > div { min-width: 120px; }
.stat-band b { display: block; font-size: 30px; letter-spacing: -1px; line-height: 1.05; }
.stat-band span { font-size: 12px; color: var(--muted); }

.offers-toolbar {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; margin: 8px 0 22px; display: grid; gap: 14px;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-row > label { font-size: 10.5px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  border: 1.5px solid var(--line-strong); background: var(--white); color: #333a52;
  border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: border-color .14s ease, color .14s ease, background .14s ease;
}
.chip-btn:hover { border-color: var(--blue); color: var(--blue); }
.chip-btn[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip-btn .count { opacity: .72; font-weight: 600; margin-left: 4px; }
.offers-toolbar select {
  font: inherit; font-size: 13px; padding: 8px 10px; border: 1.5px solid var(--line-strong);
  border-radius: 8px; background: var(--white); color: var(--ink); max-width: 100%;
}
.offers-toolbar .toolbar-note { font-size: 12px; color: var(--muted); }
.offers-toolbar .toolbar-note b { color: var(--ink); }
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1000px) { .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .offer-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) { .offers-toolbar { padding: 14px; } .stat-band { gap: 18px; } }

/* --- cart page ------------------------------------------------------------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; padding: 26px 0 64px; align-items: start; }
@media (max-width: 1120px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 64px; height: 50px; object-fit: cover; border-radius: 7px; border: 1px solid var(--line); }
.cart-line .cl-name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.cart-line .cl-sku { font-size: 11px; color: var(--muted); letter-spacing: .5px; }
.cart-line .cl-price { font-size: 13px; color: var(--muted); }
.cart-line .cl-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.cart-line .cl-total { font-weight: 700; font-size: 14px; min-width: 92px; text-align: right; }
.cart-summary { position: sticky; top: 168px; }
@media (max-width: 1120px) { .cart-summary { position: static; } }
.cart-summary .totals { margin-top: 12px; }
.cart-summary .btn { width: 100%; margin-top: 10px; }
.cart-summary .btn + .btn { margin-top: 8px; }
.cart-note { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.55; }
.cart-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 12.5px; }
.cart-links a { color: var(--blue); font-weight: 700; }

/* --- account area ---------------------------------------------------------- */
.account-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.account-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.account-card h2 { font-size: 17px; margin-bottom: 4px; }
.account-card .sub { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.account-session { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: 12.5px; color: var(--muted); }
.account-session b { color: var(--ink); }
.acct-list { display: grid; gap: 10px; margin-top: 6px; }
.acct-row { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 8px; }
.acct-row .ar-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; justify-content: space-between; }
.acct-row .ar-id { font-weight: 700; font-size: 14px; letter-spacing: .2px; }
.acct-row .ar-meta { font-size: 12px; color: var(--muted); }
.acct-row .ar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.acct-empty { border: 1px dashed var(--line-strong); border-radius: 10px; padding: 22px; text-align: center; color: var(--muted); font-size: 13px; }
.acct-empty b { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 4px; }
.eye { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: #f0f1fa; border-radius: 6px; padding: 3px 7px; word-break: break-all; }

/* --- loading / empty / error states --------------------------------------- */
.skeleton { border-radius: 9px; background: linear-gradient(90deg, #e9ebf5 25%, #f4f5fb 37%, #e9ebf5 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.skeleton-card { height: 168px; }
.skeleton-line { height: 14px; margin: 8px 0; }
.state-box { border-radius: 10px; padding: 18px; font-size: 13.5px; line-height: 1.6; }
.state-empty { background: var(--surface); border: 1px dashed var(--line-strong); color: var(--muted); }
.state-empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.state-error { background: #fdf0f6; border: 1px solid #f3c6dd; color: #8c1b52; }
.state-error a { color: #b0126a; font-weight: 700; text-decoration: underline; }
.state-loading { background: #eef0ff; border: 1px solid #d6d8ff; color: #2a2f6b; }
.state-loading .spinner { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #b9bcff; border-top-color: var(--blue); animation: spin .7s linear infinite; margin-right: 8px; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.muted { color: var(--muted); }
.noscript { background: var(--warn-bg); color: var(--warn); padding: 12px 16px; border-radius: 10px; font-size: 13px; }

/* --- static SEO PDP pages -------------------------------------------------- */
.pdp-copy p { font-size: 14.5px; color: #333a52; line-height: 1.7; margin-bottom: 12px; max-width: 880px; }
.pdp-faqs { display: grid; gap: 10px; max-width: 880px; }
.pdp-faq { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.pdp-faq summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.pdp-faq summary::-webkit-details-marker { color: var(--blue); }
.pdp-faq p { font-size: 13.5px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.pdp-stock-line { font-size: 12.5px; color: var(--muted); margin: -8px 0 12px; }
.pdp-stock-line b { color: var(--good); }
.pdp-info .pdp-price { margin-bottom: 6px; }
.gallery picture, .gallery picture img { display: block; width: 100%; }
.cat-card picture, .cat-card picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cat-card picture { z-index: -1; }

/* --- search page ----------------------------------------------------------- */
.search-shell { padding: 34px 0 64px; }
.search-form { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.search-form input { flex: 1 1 280px; min-width: 0; padding: 13px 15px; border: 1.5px solid var(--line-strong); border-radius: 10px; font: inherit; font-size: 15px; }
.search-form button { padding: 13px 22px; }
.search-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .search-grid { grid-template-columns: minmax(0, 1fr); } }
.search-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 7px; }
.search-card .sc-vendor { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted-2); }
.search-card h3 { font-size: 14.5px; line-height: 1.35; }
.search-card h3 a { color: var(--ink); }
.search-card h3 a:hover { color: var(--blue); }
.search-card .sc-sku { font-size: 11.5px; color: var(--muted); }
.search-card .sc-price { font-weight: 700; font-size: 16px; }

/* picture wrapper must not change layout (task-46 CWV pass) */
picture { display: block; }
.product-card picture { display: block; width: 100%; }
.cat-strip picture { display: block; }
.cat-strip picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; z-index: -1; }
.pdp .gallery picture img { aspect-ratio: 4 / 3; object-fit: cover; }

/* --- CWV fixes 2026-11-08 (task-46): reserve space for feed-hydrated regions ------- */
/* The hero "Live offers" panel starts as 4 skeletons then hydrates to 5 offers; without
   a reserved height that growth reflows the whole hero (CLS 0.03 + 0.11 at 1440). */
#conv-offers-list { min-height: 330px; }
@media (max-width: 1080px) { #conv-offers-list { min-height: 300px; } }
@media (max-width: 720px) { #conv-offers-list { min-height: 250px; } }
/* Live-catalog replaces these grids after load; keep a stable block height. */
.results-grid { min-height: 480px; }
.product-grid { min-height: 420px; }
@media (max-width: 820px) { .product-grid, .results-grid { min-height: 0; } }

/* Reserve the JS-hydrated offers toolbar so filter chips appearing after load do not
   push the results grid (CLS 0.15 at 768). */
.offers-toolbar { min-height: 132px; }
@media (max-width: 640px) { .offers-toolbar { min-height: 224px; } }

/* offers toolbar reserve at tablet widths too (CLS 0.15 at 768) */
@media (max-width: 1000px) { .offers-toolbar { min-height: 186px; } }
@media (max-width: 640px) { .offers-toolbar { min-height: 236px; } }

/* offers toolbar reserve matched to the hydrated height (measured 313px @768, 515px @390) */
@media (max-width: 1000px) { .offers-toolbar { min-height: 322px; } }
@media (max-width: 640px) { .offers-toolbar { min-height: 520px; } }
