/* RocketChaos4Me - blueprint-meets-brand theme for the Test4Me sandbox store.
   Dependency-free and deterministic: no external fonts, no idle animations
   (screenshots must diff clean between record and replay - hover/focus motion
   only). Brand palette: deep navy + lime-to-cyan gradient + amber prices. */

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

:root {
  --bg: #081627;
  --bg-deep: #050e1b;
  --panel: #0c1f33;
  --panel-2: #102941;
  --edge: #1b3a57;
  --edge-glow: #2a5a82;
  --ink: #dcecfb;
  --muted: #8aa7c2;
  --cyan: #53c8f5;
  --lime: #84e63e;
  --amber: #fbbf24;
  --ok: #34d399;
  --bad: #f87171;
  --grad: linear-gradient(100deg, var(--lime), var(--cyan));
}

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background:
    radial-gradient(1200px 500px at 80% -10%, #0d2a4466, transparent),
    linear-gradient(#12305022 1px, transparent 1px),
    linear-gradient(90deg, #12305022 1px, transparent 1px),
    var(--bg);
  background-size: auto, 28px 28px, 28px 28px, auto;
  color: var(--ink);
  line-height: 1.55;
}

a { color: var(--cyan); }
img { max-width: 100%; }

/* ------------------------------------------------------------ header */
header {
  position: sticky; top: 0; z-index: 40;
  background: #071322e6;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--edge);
}

.header-inner {
  max-width: 1160px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}

.brand { display: flex; align-items: center; }
.brand-logo { height: 44px; width: auto; display: block; }

.topnav { display: flex; align-items: center; gap: 20px; font-size: 14px; flex-wrap: wrap; }
.topnav a { text-decoration: none; color: var(--muted); font-weight: 600; }
.topnav a:hover { color: var(--ink); }
.topnav .basket-link {
  color: var(--ink);
  border: 1px solid var(--edge-glow); border-radius: 999px; padding: 6px 14px;
}
.topnav .basket-link:hover { border-color: var(--cyan); }
.badge-count {
  display: inline-block; min-width: 20px; text-align: center;
  background: var(--grad); color: #06283c; border-radius: 10px;
  font-size: 12px; font-weight: 800; padding: 0 6px;
}
.account { color: var(--amber); font-size: 13px; margin-right: 8px; }
.account-slot a { font-size: 13px; }

main { max-width: 1160px; margin: 0 auto; padding: 30px 20px 60px; }

h1 { font-size: 28px; letter-spacing: 0.01em; }
.sub { color: var(--muted); font-size: 15px; margin: 8px 0 26px; max-width: 680px; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.safe-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #0d3a2d99; color: var(--ok);
  border: 1px solid #14532d; border-radius: 999px; padding: 4px 14px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
}

/* -------------------------------------------------------------- hero */
.hero {
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--edge-glow);
  background: var(--bg-deep);
  margin-bottom: 22px;
}
/* The banner artwork stands alone (its own logo + tagline live inside it);
   cover-crop keeps it shorter than its native ratio without losing the
   centred wordmark and the rocket on the right. */
.hero-banner {
  display: block; width: 100%;
  height: clamp(160px, 24vw, 300px);
  object-fit: cover; object-position: center 42%;
}
/* Compact lede: headline, pitch and CTAs share the fold with the banner. */
.hero-lede {
  max-width: 1160px; margin: 0 0 20px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.hero-lede h1 { font-size: clamp(18px, 2.2vw, 25px); flex: 1 1 380px; }
.hero-sub { color: #b8cfe6; font-size: 13px; max-width: 460px; margin: 0; flex: 1 1 320px; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* stat strip under the hero */
.stat-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin-bottom: 40px;
}
.stat {
  background: var(--panel); border: 1px solid var(--edge); border-radius: 12px;
  padding: 14px 18px; text-align: center;
}
.stat b { display: block; font-size: 22px; }
.stat b.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { color: var(--muted); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }

/* ------------------------------------------------------ section titles */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 44px 0 6px; }
.section-head h2 { font-size: 22px; }
.section-head .more { font-size: 13px; font-weight: 700; text-decoration: none; }
.section-head .more:hover { text-decoration: underline; }

/* category cards on the landing page */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.cat-card {
  position: relative; display: block; overflow: hidden;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--edge);
  border-radius: 14px; padding: 22px; text-decoration: none; color: var(--ink);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.cat-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad);
}
.cat-card:hover { transform: translateY(-3px); border-color: var(--edge-glow); }
.cat-card h3 { font-size: 19px; }
.cat-card .tag { color: var(--amber); font-size: 13px; margin-top: 2px; }
.cat-card .subs { color: var(--muted); font-size: 12px; margin-top: 12px; line-height: 1.7; }
.cat-card .count {
  display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ----------------------------------------------------------- products */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--edge); border-radius: 14px;
  overflow: hidden; text-decoration: none; color: var(--ink); display: block;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-4px); border-color: var(--edge-glow);
  box-shadow: 0 14px 34px -18px #53c8f566;
}
.card .thumb { position: relative; background: #0b1e31; }
.card .thumb svg { width: 100%; height: auto; display: block; }
.card .thumb img { width: 100%; height: auto; display: block; aspect-ratio: 4/5; object-fit: cover; }
.card .thumb .price-chip {
  position: absolute; right: 10px; bottom: 10px;
  background: #050e1bd9; border: 1px solid var(--edge-glow);
  color: var(--amber); font-weight: 800; font-size: 13px;
  border-radius: 999px; padding: 4px 12px;
}
.card .body { padding: 12px 14px 16px; }
.card .name { font-weight: 700; font-size: 15px; line-height: 1.35; }
.card .stars { margin-top: 4px; }
.card .blurb { color: var(--muted); font-size: 12px; margin-top: 6px; }

/* subcategory tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 22px; }
.tabs a {
  text-decoration: none; font-size: 13px; color: var(--muted); font-weight: 600;
  border: 1px solid var(--edge); border-radius: 999px; padding: 6px 15px;
  background: var(--panel);
}
.tabs a.active { color: #06283c; background: var(--grad); border-color: transparent; font-weight: 800; }
.tabs a:hover:not(.active) { color: var(--ink); border-color: var(--edge-glow); }

/* part detail */
.detail { display: grid; grid-template-columns: minmax(280px, 460px) 1fr; gap: 32px; align-items: start; }
@media (max-width: 760px) { .detail { grid-template-columns: 1fr; } }
.detail .drawing img, .detail .drawing svg {
  width: 100%; height: auto; border-radius: 14px; display: block;
  border: 1px solid var(--edge);
}
.kicker { color: var(--cyan); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; }
.bigprice { color: var(--amber); font-size: 28px; font-weight: 800; margin: 12px 0 4px; }
table.specs { border-collapse: collapse; margin-top: 18px; width: 100%; max-width: 460px; }
table.specs td { border-top: 1px solid var(--edge); padding: 8px 4px; font-size: 13px; color: var(--muted); }
table.specs td.v { text-align: right; color: var(--ink); font-family: Consolas, monospace; }

.btn {
  display: inline-block; background: var(--grad); color: #06283c;
  border: 0; border-radius: 10px; padding: 12px 24px;
  font-size: 15px; font-weight: 800; cursor: pointer; text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn.secondary { background: transparent; color: var(--cyan); border: 1px solid var(--cyan); }
.btn.ghost { background: #0c1f33cc; color: var(--ink); border: 1px solid var(--edge-glow); }

.note { display: inline-block; margin-left: 12px; color: var(--ok); font-size: 13px; font-weight: 700; }

/* stars + reviews */
.stars, .stars-line { color: var(--amber); letter-spacing: 2px; font-size: 13px; }
.stars-line { margin: 6px 0 10px; }
.reviews-wrap { margin-top: 28px; max-width: 540px; }
.reviews-wrap h2 { font-size: 15px; margin-bottom: 10px; letter-spacing: 0.04em; }
.review {
  background: var(--panel); border: 1px solid var(--edge); border-left: 3px solid;
  border-image: var(--grad) 1;
  border-radius: 10px; padding: 13px 16px; margin-bottom: 10px;
}
.review p { font-size: 14px; font-style: italic; }
.review footer { color: var(--muted); font-size: 12px; margin-top: 6px; }

/* "as seen in the print catalogue" (part pages for spread-only items) */
.spread-note {
  display: block; margin-top: 14px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--edge); text-decoration: none;
  transition: border-color 0.15s ease;
}
.spread-note:hover { border-color: var(--edge-glow); }
.spread-note img { display: block; width: 100%; height: auto; }
.spread-note span {
  display: block; padding: 9px 13px; font-size: 12px; font-weight: 700;
  color: var(--muted); background: var(--panel);
}
.spread-note:hover span { color: var(--ink); }

/* quote wall (landing) */
.quote-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.quote-wall .review { margin-bottom: 0; }

/* catalogue spreads */
.spread-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.spread-strip a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--edge); transition: transform 0.15s ease, border-color 0.15s ease; }
.spread-strip a:hover { transform: translateY(-3px); border-color: var(--edge-glow); }
.spread-strip img { display: block; width: 100%; height: auto; }

/* basket + checkout panels */
.panel {
  background: var(--panel); border: 1px solid var(--edge); border-radius: 14px;
  padding: 22px; max-width: 660px;
}
.row {
  display: flex; align-items: center; gap: 12px;
  justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--edge);
  font-size: 14px;
}
.row .grow { flex: 1; }
.row .qty { color: var(--muted); font-size: 12px; }
.row.total { border-bottom: 0; font-weight: 800; font-size: 19px; }
.row .mini img, .row .mini svg { width: 52px; height: 52px; display: block; border-radius: 8px; object-fit: cover; }
.link { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 12px; text-decoration: underline; }
.link:hover { color: var(--bad); }
.actions { margin-top: 18px; }
.empty { color: var(--muted); }

/* forms */
label { display: block; font-size: 13px; font-weight: 700; margin: 15px 0 5px; }
input {
  width: 100%; max-width: 420px; background: var(--panel-2); color: var(--ink);
  border: 1px solid var(--edge); border-radius: 9px; padding: 11px 13px; font-size: 14px;
}
input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px #53c8f522; }
.hint { color: var(--muted); font-size: 12px; margin-top: 5px; }
.error { color: var(--bad); font-size: 13px; margin-top: 10px; }
form .btn { margin-top: 22px; }

/* checkout T&C */
.terms {
  margin-top: 20px; border: 1px solid var(--edge); border-radius: 12px;
  background: var(--panel-2); padding: 16px 18px; max-width: 560px;
}
.terms h2 { font-size: 14px; letter-spacing: 0.04em; margin-bottom: 10px; }
.terms ol { padding-left: 20px; }
.terms li { color: var(--muted); font-size: 12.5px; margin-bottom: 8px; }
.terms li strong { color: var(--ink); }
.terms-accept {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 12px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.terms-accept input {
  width: 18px; height: 18px; max-width: 18px; margin-top: 1px;
  accent-color: var(--cyan); cursor: pointer;
}

/* confirmation */
.pill {
  display: inline-block; border-radius: 8px; padding: 3px 14px;
  font-weight: 800; font-size: 14px; letter-spacing: 0.06em;
}
.pill.ok { background: #0d3a2d; color: var(--ok); border: 1px solid #14532d; }
.pill.bad { background: #431a1a; color: var(--bad); border: 1px solid #7f1d1d; }

/* ------------------------------------------------------------- lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: #050e1bee;
  display: flex; align-items: center; justify-content: center;
  padding: 34px; cursor: zoom-out;
}
.lightbox img {
  max-width: min(1200px, 100%); max-height: 100%;
  border-radius: 12px; border: 1px solid var(--edge-glow);
  cursor: default;
}
.lightbox-close {
  position: absolute; top: 16px; right: 20px;
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--edge-glow);
  font-size: 24px; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { border-color: var(--cyan); color: var(--cyan); }
.zoomable { cursor: zoom-in; }

/* -------------------------------------------------------------- footer */
footer {
  border-top: 1px solid var(--edge);
  background: var(--bg-deep);
  margin-top: 40px;
}
.foot-inner {
  max-width: 1160px; margin: 0 auto; padding: 34px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
}
.foot-icon { height: 42px; width: auto; }
.foot-tag {
  font-weight: 800; letter-spacing: 0.3em; font-size: 12px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.foot-fine { color: var(--muted); font-size: 12px; flex: 1; min-width: 260px; }
.earth-btn { font-size: 13px; padding: 9px 18px; white-space: nowrap; }
