/* ============================================================
   JerseyFanShop — jerseyfanshop.com (light theme)
   ============================================================ */

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

:root {
  --bg: #f6f7f9;
  --bg-2: #eef1f5;
  --card: #ffffff;
  --card-2: #f2f4f8;
  --line: #e4e8ef;
  --line-2: #d3dae5;
  --text: #151a23;
  --muted: #5c6675;
  --accent: #f26419;
  --accent-2: #ff8a3d;
  --accent-ink: #ffffff;
  --accent-soft: #fff1e8;
  --good: #0a8a5c;
  --good-soft: #e6f6ef;
  --err: #d93829;
  --err-soft: #fdecea;
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(18, 26, 40, 0.07);
  --shadow: 0 14px 40px rgba(18, 26, 40, 0.13);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
svg.jersey-svg { max-width: 100%; height: auto; }

/* ------------------------------------------------------------
   Per-sport page theming — builder + product pages carry their
   sport's colors across buttons, accents and the preview stage.
   ------------------------------------------------------------ */
body[data-style="football"] { --accent: #2547a8; --accent-2: #4470e0; --accent-soft: #e9eefb; }
body[data-style="soccer"]   { --accent: #0e9f5a; --accent-2: #22c576; --accent-soft: #e6f7ee; }
body[data-style="hockey"]   { --accent: #0284c7; --accent-2: #38bdf8; --accent-soft: #e5f4fc; }
body[data-style="baseball"] { --accent: #b3261e; --accent-2: #e04a42; --accent-soft: #fceceb; }
body[data-style="rugby"]    { --accent: #1f2937; --accent-2: #374151; --accent-soft: #eef1f5; }

body[data-style="football"] .preview-stage { background: radial-gradient(340px 230px at 50% 38%, rgba(37, 71, 168, 0.09), transparent 75%); }
body[data-style="soccer"]   .preview-stage { background: radial-gradient(340px 230px at 50% 38%, rgba(14, 159, 90, 0.09), transparent 75%); }
body[data-style="hockey"]   .preview-stage { background: radial-gradient(340px 230px at 50% 38%, rgba(2, 132, 199, 0.10), transparent 75%); }
body[data-style="baseball"] .preview-stage { background: radial-gradient(340px 230px at 50% 38%, rgba(179, 38, 30, 0.08), transparent 75%); }
body[data-style="rugby"]    .preview-stage { background: radial-gradient(340px 230px at 50% 38%, rgba(31, 41, 55, 0.09), transparent 75%); }
body[data-style="football"] .builder-page-head,
body[data-style="soccer"] .builder-page-head,
body[data-style="hockey"] .builder-page-head,
body[data-style="baseball"] .builder-page-head { padding-bottom: 6px; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

.container { width: min(1160px, 92vw); margin: 0 auto; }
.muted { color: var(--muted); }

/* ------------------------------------------------------------
   Nav
   ------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 13px 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  line-height: 0;
  padding: 6px 0;
}
.logo .logo-img { height: 58px; width: auto; max-width: 100%; border-radius: 6px; }
.footer .logo { padding: 2px 0; }
.footer .logo .logo-img { height: 44px; }
.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;
}
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line-2);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 14px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s;
}
.cart-btn:hover { border-color: var(--accent); }
.badge {
  position: absolute;
  top: -7px;
  right: -7px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 13px 22px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s, background 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 8px 22px rgba(242, 100, 25, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(242, 100, 25, 0.42); }
.btn-ghost {
  background: var(--card);
  color: var(--text);
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 16px 30px; font-size: 19px; }
.btn-block { width: 100%; }

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(720px 420px at 82% -10%, rgba(242, 100, 25, 0.13), transparent 62%),
    radial-gradient(560px 380px at 4% 110%, rgba(29, 78, 216, 0.07), transparent 60%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 72px 0 64px;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 99px;
  padding: 5px 14px;
  margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.4vw, 76px);
  font-weight: 800;
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.hero-title .accent { color: var(--accent); }
.hero-sub { color: var(--muted); font-size: 18px; max-width: 46ch; margin: 20px 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 26px; margin-top: 34px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.hero-stats strong { color: var(--text); font-family: var(--font-display); font-size: 18px; letter-spacing: 0.04em; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-jersey { animation: float 6s ease-in-out infinite; }
.hero-example { margin: 0; text-align: center; animation: float 6s ease-in-out infinite; }
.hero-example img {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border-radius: 22px;
  transform: rotate(1.2deg);
  box-shadow: 0 30px 60px rgba(15, 18, 24, 0.22), 0 6px 18px rgba(15, 18, 24, 0.12);
}
.hero-example figcaption {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.hero-example .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */
.section { padding: 68px 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 42px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.section-title .accent { color: var(--accent); }
.section-sub { color: var(--muted); margin-top: 10px; }

/* page header (shop, faq, about, contact) */
.page-head {
  text-align: center;
  padding: 64px 0 10px;
}
.page-head .section-sub { max-width: 560px; margin: 12px auto 0; }

.breadcrumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--muted);
  padding-top: 22px;
}
.breadcrumbs a:hover { color: var(--accent); }

/* Style / product cards */
.styles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}
.style-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.style-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.style-card .thumb { display: flex; justify-content: center; margin-bottom: 14px; }
.style-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.style-card .price { color: var(--muted); font-size: 14px; margin: 4px 0 12px; }
.style-card .go { color: var(--accent); font-weight: 700; font-size: 14px; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.step-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 14px;
}
.step-card h3 { font-family: var(--font-display); font-size: 21px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.step-card p { color: var(--muted); font-size: 15px; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.feature-card .ico {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.feature-card p { color: var(--muted); font-size: 14px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 10px; font-size: 15px; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border-radius: 20px;
  color: #fff;
  padding: 46px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 18px 44px rgba(242, 100, 25, 0.35);
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
}
.cta-banner p { opacity: 0.92; margin-top: 6px; }
.cta-banner .btn { background: #fff; color: var(--accent); box-shadow: none; }
.cta-banner .btn:hover { transform: translateY(-2px); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 34px 0; background: var(--card); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner a:hover { color: var(--accent); }
.footer .logo { font-size: 20px; }

/* ------------------------------------------------------------
   Product page
   ------------------------------------------------------------ */
.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 30px;
  align-items: start;
  padding: 28px 0 80px;
}
.product-visual {
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  display: grid;
  gap: 14px;
  justify-items: center;
  position: sticky;
  top: 84px;
}
.product-visual .segmented { max-width: 300px; }
.product-info h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
}
.product-info .tagline {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 6px;
}
.product-info .price-line { font-size: 26px; font-weight: 800; margin: 16px 0 4px; }
.product-info .price-line small { font-size: 14px; font-weight: 500; color: var(--muted); }
.product-info .lede { color: var(--muted); margin: 12px 0 20px; }
.feature-list { list-style: none; display: grid; gap: 9px; margin-bottom: 22px; }
.feature-list li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; }
.feature-list li::before {
  content: "✓";
  color: var(--good);
  font-weight: 800;
  flex: none;
}
.colorway-row { margin-bottom: 22px; }
.colorway-row .label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.colorways { display: flex; gap: 12px; flex-wrap: wrap; }
.colorway {
  display: inline-flex;
  gap: 4px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, transform 0.15s;
}
.colorway:hover { border-color: var(--accent); transform: translateY(-2px); }
.colorway i { width: 26px; height: 26px; border-radius: 8px; border: 1px solid rgba(0,0,0,0.08); }
.product-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.size-chart { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.size-chart summary { cursor: pointer; padding: 15px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.size-chart summary::-webkit-details-marker { display: none; }
.size-chart summary::after { content: "+"; color: var(--accent); font-weight: 800; }
.size-chart[open] summary::after { content: "–"; }
.size-chart table { width: 100%; border-collapse: collapse; font-size: 14px; }
.size-chart th, .size-chart td { text-align: left; padding: 9px 18px; border-top: 1px solid var(--line); }
.size-chart th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.size-chart tr:nth-child(even) td { background: var(--card-2); }

/* ------------------------------------------------------------
   Builder
   ------------------------------------------------------------ */
.builder-wrap { padding: 36px 0 80px; }
.builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 560px;
  gap: 26px;
  align-items: start;
}
.builder-page-head { text-align: center; padding: 34px 0 22px; }
.builder-page-head .section-sub { max-width: 640px; margin: 10px auto 0; }
.seo-content p {
  color: var(--muted);
  max-width: 800px;
  margin: 14px auto 0;
  font-size: 15.5px;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}
.builder-form { display: grid; gap: 18px; }
.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.panel-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
}

.style-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.style-option {
  background: var(--card-2);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 14px 10px 12px;
  text-align: center;
  transition: border-color 0.15s, transform 0.15s;
}
.style-option:hover { transform: translateY(-2px); }
.style-option.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.style-option .thumb { display: flex; justify-content: center; }
.style-option h4 { font-family: var(--font-display); font-size: 17px; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 8px; }
.style-option .from { font-size: 12px; color: var(--muted); }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 99px;
  padding: 7px 13px 7px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s;
}
.swatch:hover { border-color: var(--accent); }
.swatch .dots { display: flex; }
.swatch .dots i { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,0.12); margin-left: -5px; }
.swatch .dots i:first-child { margin-left: 0; }
.color-row { display: flex; gap: 16px; flex-wrap: wrap; }
.color-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.color-field input[type="color"] {
  width: 84px; height: 46px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--card);
  padding: 4px;
  cursor: pointer;
}

.field-row { display: flex; gap: 16px; flex-wrap: wrap; }
.field { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input,
.field select {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--text);
  padding: 12px 14px;
  font-size: 17px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.15s;
}
.field select { cursor: pointer; }
.field select option { text-transform: none; letter-spacing: normal; font-weight: 500; }
.field input:focus,
.field select:focus { border-color: var(--accent); }
.hint { font-size: 12px; color: var(--muted); }
.note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
}

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  background: var(--card);
  border: 1px solid var(--line-2);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 15px;
  font-weight: 700;
  font-size: 14px;
  transition: border-color 0.15s, background 0.15s;
}
.chip small { display: block; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.chip:hover { border-color: var(--accent); }
.chip.active { border-color: var(--accent); background: var(--accent-soft); }
.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.qty-row > label { font-size: 13px; font-weight: 600; color: var(--muted); }
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  overflow: hidden;
  background: var(--card);
}
.stepper button {
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
}
.stepper button:hover { background: var(--accent-soft); color: var(--accent); }
.stepper span { min-width: 46px; text-align: center; font-weight: 700; font-size: 16px; }
.stepper-sm button { width: 28px; height: 28px; font-size: 15px; }
.stepper-sm span { min-width: 30px; font-size: 13px; }

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 0;
  font-size: 15px;
  color: var(--muted);
}
.price-row strong { color: var(--text); font-size: 17px; }
.price-row.total {
  border-top: 1px dashed var(--line-2);
  margin-top: 8px;
  padding-top: 14px;
  font-size: 17px;
  color: var(--text);
  font-weight: 700;
}
.price-row.total strong { font-family: var(--font-display); font-size: 30px; color: var(--accent); }
.price-actions { display: grid; gap: 10px; margin-top: 16px; }
.secure-note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.discount-badge {
  display: inline-block;
  background: var(--good-soft);
  color: var(--good);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  margin-left: 8px;
}

.preview-panel {
  position: sticky;
  top: 84px;
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  display: grid;
  gap: 14px;
  justify-items: center;
}
.segmented {
  display: flex;
  width: 100%;
  background: var(--card-2);
  border: 1px solid var(--line-2);
  border-radius: 11px;
  padding: 4px;
  gap: 4px;
}
.segmented button {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 8px;
  padding: 8px 0;
  transition: background 0.15s, color 0.15s;
}
.segmented button.active { background: var(--accent); color: #fff; }
.preview-stage {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(340px 230px at 50% 38%, rgba(242, 100, 25, 0.07), transparent 75%);
  border-radius: 12px;
  padding: 22px 0 30px;
  position: relative;
}
.preview-stage::after {
  content: "";
  position: absolute;
  bottom: 14px;
  left: 50%;
  width: 58%;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(18, 26, 40, 0.16), transparent);
  pointer-events: none;
}
.preview-caption { font-size: 12.5px; color: var(--muted); }

/* ------------------------------------------------------------
   Cart drawer
   ------------------------------------------------------------ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 30, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 90;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 94vw);
  background: var(--card);
  border-left: 1px solid var(--line);
  z-index: 100;
  transform: translateX(105%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
}
body.cart-open .drawer-overlay { opacity: 1; pointer-events: auto; }
body.cart-open .drawer { transform: translateX(0); }
body.cart-open { overflow: hidden; }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font-family: var(--font-display); font-size: 23px; text-transform: uppercase; letter-spacing: 0.06em; }
.drawer-close { background: none; border: none; color: var(--muted); font-size: 26px; line-height: 1; }
.drawer-close:hover { color: var(--err); }
.drawer-items { flex: 1; overflow-y: auto; padding: 14px 18px; display: grid; gap: 12px; align-content: start; }
.cart-empty { color: var(--muted); text-align: center; padding: 48px 12px; font-size: 15px; line-height: 1.8; }
.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.cart-thumb {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cart-item-title { font-weight: 700; font-size: 14.5px; }
.cart-item-desc { color: var(--muted); font-size: 12.5px; }
.cart-item-price { color: var(--accent); font-weight: 700; font-size: 13px; margin-top: 3px; }
.cart-item-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.cart-item-actions .stepper { background: var(--card); }
.link-btn { background: none; border: none; color: var(--muted); font-size: 12.5px; text-decoration: underline; }
.link-btn:hover { color: var(--err); }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 20px 20px; display: grid; gap: 10px; }
.drawer-subtotal { display: flex; justify-content: space-between; font-size: 15px; }
.drawer-subtotal strong { font-family: var(--font-display); font-size: 22px; }
.drawer-note { font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------
   Forms (contact)
   ------------------------------------------------------------ */
.form-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  display: grid;
  gap: 16px;
}
.form-card textarea {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--text);
  padding: 12px 14px;
  font-size: 15px;
  min-height: 140px;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}
.form-card textarea:focus { border-color: var(--accent); }
.form-status { font-size: 14px; text-align: center; min-height: 20px; }
.form-status.ok { color: var(--good); }
.form-status.err { color: var(--err); }

/* ------------------------------------------------------------
   Status pages (success / cancel / 404)
   ------------------------------------------------------------ */
.page-narrow { display: flex; justify-content: center; padding: 72px 0 90px; }
.status-card {
  width: min(600px, 92vw);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 40px 36px;
  text-align: center;
}
.check-circle {
  width: 74px; height: 74px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--good-soft);
  color: var(--good);
  font-size: 36px;
}
.check-circle.warn { background: var(--err-soft); color: var(--err); }
.status-card h1 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.status-card .sub { color: var(--muted); margin: 10px 0 24px; }
.order-summary {
  text-align: left;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}
.order-summary .row { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; }
.order-summary .row .desc { color: var(--muted); }
.order-summary .row.total { border-top: 1px dashed var(--line-2); padding-top: 10px; font-weight: 700; font-size: 16px; }
.status-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.skeleton { height: 16px; border-radius: 6px; background: linear-gradient(90deg, var(--card-2), #e8ecf2, var(--card-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ------------------------------------------------------------
   Admin
   ------------------------------------------------------------ */
.admin-wrap { max-width: 1000px; margin: 0 auto; padding: 40px 0 80px; }
.admin-tabs { display: flex; gap: 10px; margin: 22px 0; }
.admin-tabs button {
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--muted);
  border-radius: 99px;
  padding: 9px 20px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.admin-tabs button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.admin-table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th {
  text-align: left;
  padding: 13px 16px;
  color: var(--muted);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 1px solid var(--line);
  background: var(--card-2);
  white-space: nowrap;
}
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .empty-row { text-align: center; color: var(--muted); padding: 34px; }
.status-pill {
  display: inline-block;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  background: var(--card-2);
  border: 1px solid var(--line-2);
  color: var(--muted);
  white-space: nowrap;
}
.status-pill.paid, .status-pill.fulfilled, .status-pill.shipped { background: var(--good-soft); color: var(--good); border-color: transparent; }
.mark-btn {
  border: 1px solid var(--line-2);
  background: var(--card);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}
.mark-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ------------------------------------------------------------
   Trust strip + reviews
   ------------------------------------------------------------ */
.trust-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}
.trust-strip strong { color: var(--text); font-size: 17px; }
.trust-strip svg { display: inline-block; }
.trust-sep { color: var(--line-2); }

.rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.rating-summary .avg { font-family: var(--font-display); font-size: 36px; font-weight: 800; line-height: 1; }
.rating-summary .count { color: var(--muted); font-size: 14px; }

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.review-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.review-card .rc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.review-card .rc-name { font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.review-card .rc-date { color: var(--muted); font-size: 12px; }
.review-card .rc-title { font-weight: 700; font-size: 15px; }
.review-card .rc-body { color: var(--muted); font-size: 14px; }
.verified-pill {
  display: inline-flex;
  align-items: center;
  background: var(--good-soft);
  color: var(--good);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
}
.form-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.rating-input { display: flex; gap: 4px; padding: 8px 0; }
.rating-input button { background: none; border: none; padding: 2px; line-height: 0; cursor: pointer; }
.rating-input button svg { width: 26px; height: 26px; }
.rating-input button .st { fill: var(--line-2); transition: fill 0.12s; }
.rating-input button.on .st { fill: #f5a623; }
.rating-input button:hover .st { fill: #f5a623; }

/* ------------------------------------------------------------
   Membership gate + logo upload + account
   ------------------------------------------------------------ */
.lock-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--accent-soft);
  border: 1.5px dashed rgba(242, 100, 25, 0.45);
  border-radius: 12px;
  padding: 18px;
}
.lock-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 4px; }
.lock-panel p { color: var(--muted); font-size: 14px; max-width: 42ch; }
.lock-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.field-label-sm { font-size: 13px; font-weight: 600; color: var(--muted); margin: 16px 0 8px; }
.logo-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.logo-btn { padding: 9px 16px; font-size: 14px; }
#accountLink.authed { border-color: var(--good); color: var(--good); }

/* ------------------------------------------------------------
   Toast
   ------------------------------------------------------------ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  background: var(--text);
  border: 1px solid var(--text);
  color: #fff;
  border-radius: 12px;
  padding: 13px 22px;
  font-weight: 600;
  font-size: 14.5px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.toast-error { background: var(--err); border-color: var(--err); }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 980px) {
  .builder-grid, .product-grid { display: flex; flex-direction: column; }
  .preview-panel, .product-visual {
    position: sticky;
    top: 68px;
    z-index: 30;
    order: -1;
    padding: 14px;
    box-shadow: var(--shadow);
  }
  .preview-stage svg, .product-visual svg { max-height: 42vh; }
  .hero-grid { grid-template-columns: 1fr; padding: 52px 0 48px; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .field-row { flex-direction: column; }
  .color-row { gap: 10px; }
  .price-actions, .product-ctas { grid-template-columns: 1fr; }
  .cta-banner { padding: 34px 24px; }
}
