@import url("https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Karla:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;600;700&family=Rye&family=Racing+Sans+One&display=swap");

/* ============ Reset ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--shell-bg);
  color: var(--shell-cream);
  font-family: "Karla", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: "Alfa Slab One", serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.08;
}

p {
  margin: 0;
}

/* ============ Base shell tokens ============ */
:root {
  --shell-bg: #1b1815;
  --shell-bg-2: #241f1a;
  --shell-bg-3: #2c2620;
  --shell-forest: #2c3a2c;
  --shell-forest-dark: #1b271c;
  --shell-walnut: #59371f;
  --shell-cream: #f1e6cd;
  --shell-cream-dim: #ddcda3;
  --shell-brass: #c1903f;
  --shell-brass-light: #e0b466;
  --shell-rust: #a8481f;
  --ink: #120f0c;
  --line: rgba(241, 230, 205, 0.16);

  --container: 1220px;
  --radius-sm: 3px;
  --shadow-stamp: 5px 5px 0 var(--ink);
  --shadow-stamp-lg: 8px 8px 0 var(--ink);

  /* Neutral fallback theme vars so shared components work
     even when no data-theme wrapper is present (shop/cart/etc). */
  --bg: var(--shell-bg);
  --surface: var(--shell-bg-2);
  --accent: var(--shell-brass-light);
  --accent-2: var(--shell-rust);
  --text: var(--shell-cream);
  --font-display: "Alfa Slab One", serif;
  --border: var(--line);
}

/* ============ Texture (grain) ============ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at top, rgba(255, 255, 255, 0.05), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(0, 0, 0, 0.35), transparent 65%);
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 56px 0;
}

@media (min-width: 800px) {
  section {
    padding: 88px 0;
  }
}

/* ============ Type helpers ============ */
.eyebrow {
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--accent);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text);
  margin-bottom: 14px;
}

.section-lede {
  max-width: 640px;
  color: var(--shell-cream-dim);
  font-size: 1.05rem;
}

[data-theme] .section-lede {
  color: var(--text);
  opacity: 0.82;
}

.text-center {
  text-align: center;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1rem;
  padding: 14px 28px;
  border: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--accent-2, var(--shell-rust));
  color: var(--shell-cream);
  cursor: pointer;
  box-shadow: var(--shadow-stamp);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn--outline {
  background: transparent;
  color: var(--text, var(--shell-cream));
  border-color: var(--shell-cream-dim);
  box-shadow: var(--shadow-stamp);
}

[data-theme] .btn--outline {
  border-color: var(--border);
}

.btn--accent {
  background: var(--accent);
  color: var(--ink);
}

.btn--block {
  width: 100%;
}

.btn--sm {
  padding: 9px 18px;
  font-size: 0.85rem;
  box-shadow: 4px 4px 0 var(--ink);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--shadow-stamp);
}

.link-underline {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--shell-brass-light);
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--shell-bg-2);
  border-bottom: 3px solid var(--ink);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--shell-brass);
  background: var(--shell-cream);
  flex-shrink: 0;
}

.brand-word {
  font-family: "Alfa Slab One", serif;
  letter-spacing: 0.01em;
  line-height: 1.05;
  font-size: 0.98rem;
  color: var(--shell-cream);
}

.brand-word span {
  display: block;
  font-size: 0.6rem;
  font-family: "Karla", sans-serif;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--shell-brass-light);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: "Karla", sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.88rem;
}

.nav-links > a,
.nav-item > button {
  position: relative;
  padding: 4px 2px;
  color: var(--shell-cream-dim);
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-links > a:hover,
.nav-links > a.is-active,
.nav-item > button:hover {
  color: var(--shell-brass-light);
}

.nav-links > a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--shell-brass);
}

.nav-item {
  position: relative;
}

.nav-item > button svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  transition: transform 0.15s ease;
}

.nav-item:hover > button svg,
.nav-item.is-open > button svg {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--shell-bg-2);
  border: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-stamp);
  padding: 10px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 60;
}

.nav-item:hover .nav-dropdown,
.nav-item.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--shell-cream);
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 600;
}

.nav-dropdown a:hover {
  background: var(--shell-bg-3);
}

.nav-dropdown .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  flex-shrink: 0;
}

.cart-link {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-link svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.cart-badge {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 50%;
  background: var(--shell-rust);
  color: var(--shell-cream);
  font-family: "Karla", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
}

.cart-badge.is-visible {
  display: inline-flex;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--shell-cream);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--shell-bg-2);
    border-bottom: 3px solid var(--ink);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-links.is-open {
    max-height: 640px;
    overflow-y: auto;
  }

  .nav-links > a,
  .nav-item {
    width: 100%;
    border-top: 1px solid var(--line);
  }

  .nav-links > a {
    padding: 16px 20px;
  }

  .nav-links > a.is-active::after {
    display: none;
  }

  .nav-item > button {
    width: 100%;
    padding: 16px 20px;
    justify-content: space-between;
  }

  .nav-dropdown {
    position: static;
    left: auto;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--shell-bg);
    display: none;
    min-width: 0;
    width: auto;
    padding: 0 10px 10px;
  }

  .nav-item.is-open .nav-dropdown {
    display: block;
    transform: none !important;
  }

  .nav-links .cart-link {
    padding: 16px 20px;
  }
}

/* ============ Footer ============ */
.site-footer {
  margin-top: auto;
  background: var(--ink);
  border-top: 3px solid var(--shell-brass);
  padding: 52px 0 28px;
}

.footer-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-brand img {
  width: 54px;
  border-radius: 50%;
  border: 2px solid var(--shell-brass);
  background: var(--shell-cream);
}

.footer-brand p {
  color: var(--shell-cream-dim);
  font-size: 0.92rem;
  margin-top: 8px;
  max-width: 32ch;
}

.footer-col h4 {
  font-size: 1.05rem;
  color: var(--shell-brass-light);
  margin-bottom: 14px;
  font-family: "Alfa Slab One", serif;
}

.footer-col li {
  margin-bottom: 9px;
  color: var(--shell-cream-dim);
  font-size: 0.92rem;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  color: var(--shell-cream-dim);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
}

/* ============ Badge icon ============ */
.badge-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.35), 4px 4px 0 var(--ink);
  flex-shrink: 0;
}

.badge-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
}

/* ============ Hero ============ */
.hero {
  padding: 60px 0 56px;
  background: linear-gradient(180deg, var(--shell-bg-3), var(--shell-bg));
  border-bottom: 3px solid var(--ink);
}

.hero .container {
  display: grid;
  gap: 36px;
  align-items: center;
}

@media (min-width: 940px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-photo-frame {
  border: 4px solid var(--shell-brass);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-stamp-lg);
  overflow: hidden;
  position: relative;
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo-caption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(18, 15, 12, 0.72);
  border: 1px solid var(--shell-brass);
  color: var(--shell-cream-dim);
  font-family: "Alfa Slab One", serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  color: var(--shell-cream);
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--shell-brass-light);
}

.hero-tagline {
  margin-top: 16px;
  font-size: 1.1rem;
  color: var(--shell-cream-dim);
  max-width: 46ch;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-trust {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
}

@media (min-width: 620px) {
  .hero-trust {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--shell-cream-dim);
  font-weight: 700;
}

.hero-trust-item svg {
  width: 22px;
  height: 22px;
  stroke: var(--shell-brass-light);
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}

/* ============ Story ============ */
.story {
  background: var(--shell-forest-dark);
  border-bottom: 3px solid var(--ink);
}

.story-grid {
  display: grid;
  gap: 34px;
}

@media (min-width: 860px) {
  .story-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

.story-copy p {
  color: var(--shell-cream-dim);
  margin-bottom: 16px;
}

.story-copy p:first-of-type::first-letter {
  font-family: "Alfa Slab One", serif;
  font-size: 3rem;
  float: left;
  line-height: 0.8;
  padding: 6px 8px 0 0;
  color: var(--shell-brass-light);
}

.story-card {
  background: var(--shell-bg-2);
  border: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 26px;
  box-shadow: var(--shadow-stamp);
}

.story-card h3 {
  color: var(--shell-brass-light);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

/* ============ Scent-line teaser grid (home + shop) ============ */
.teaser-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.line-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .line-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .line-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.line-card {
  --line-accent: var(--shell-brass-light);
  background: var(--shell-bg-2);
  border: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-stamp);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.line-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--ink);
}

.line-card-top {
  height: 6px;
  background: var(--line-accent);
}

.line-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.line-card .badge-icon {
  width: 56px;
  height: 56px;
  border-color: var(--line-accent);
  background: var(--shell-bg-3);
}

.line-card .badge-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--line-accent);
}

.line-card h3 {
  font-size: 1.35rem;
  color: var(--shell-cream);
}

.line-card .guy-tag {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--line-accent);
  font-weight: 700;
}

.line-card .tagline {
  color: var(--shell-cream-dim);
  font-size: 0.92rem;
  font-style: italic;
}

.line-card .notes-preview {
  font-size: 0.78rem;
  color: var(--shell-cream-dim);
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  margin-top: auto;
}

.line-card .notes-preview b {
  color: var(--shell-cream);
}

.line-card-foot {
  padding: 0 22px 22px;
}

.line-accent--cyberpunk { --line-accent: #29f6c7; }
.line-accent--country { --line-accent: #d97a4a; }
.line-accent--racing { --line-accent: #e0271b; }
.line-accent--howl { --line-accent: #d4a656; }

/* ============ Guy bio cards (About) ============ */
.guy-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .guy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.guy-card {
  background: var(--shell-bg-2);
  border: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 28px;
  box-shadow: var(--shadow-stamp);
}

.guy-card-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.guy-avatar {
  --line-accent: var(--shell-brass-light);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, var(--shell-bg-3), var(--shell-bg));
  border: 3px solid var(--line-accent);
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.4), 4px 4px 0 var(--ink);
  font-family: "Alfa Slab One", serif;
  font-size: 2rem;
  color: var(--line-accent);
  position: relative;
}

.guy-avatar svg {
  width: 40px;
  height: 40px;
  stroke: var(--line-accent);
  fill: none;
  stroke-width: 1.8;
}

.guy-name {
  font-size: 1.4rem;
  color: var(--shell-cream);
}

.guy-nickname {
  margin-top: 4px;
  display: inline-block;
  font-family: "Karla", sans-serif;
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--shell-brass-light);
  padding: 3px 9px;
  border-radius: 2px;
}

.guy-card p.bio {
  color: var(--shell-cream-dim);
  font-size: 0.96rem;
}

.guy-card .guy-line-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--shell-brass-light);
}

/* ============ Page header ============ */
.page-header {
  padding: 46px 0 28px;
  border-bottom: 3px solid var(--ink);
  background: var(--shell-bg-3);
}

.breadcrumb {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--shell-cream-dim);
  margin-bottom: 10px;
}

.breadcrumb a:hover {
  color: var(--shell-brass-light);
}

/* ============ Scent-line page (themed) ============ */
main[data-theme] {
  animation: themeFadeIn 0.45s ease both;
}

@keyframes themeFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.line-hero {
  position: relative;
  padding: 64px 0 54px;
  background: var(--bg);
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
}

.line-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--theme-texture, none);
  opacity: var(--theme-texture-opacity, 0);
  pointer-events: none;
}

.line-hero .container {
  position: relative;
  z-index: 1;
}

.line-hero-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.line-hero .badge-icon {
  width: 60px;
  height: 60px;
}

.line-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  color: var(--text);
  text-transform: uppercase;
}

[data-theme="racing"] .line-hero-title {
  font-style: italic;
}

.line-hero-tagline {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
  opacity: 0.85;
  max-width: 60ch;
}

.line-hero-story {
  margin-top: 22px;
  max-width: 68ch;
  color: var(--text);
  opacity: 0.82;
}

.line-notes-row {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.note-chip {
  border: 2px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.78rem;
  color: var(--text);
}

.note-chip b {
  color: var(--accent);
  margin-right: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
}

.persona-card {
  margin-top: 34px;
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  max-width: 620px;
}

.persona-card .guy-avatar {
  width: 64px;
  height: 64px;
  font-size: 1.5rem;
}

.persona-card .guy-avatar svg {
  width: 30px;
  height: 30px;
}

.persona-card p {
  font-size: 0.88rem;
  color: var(--text);
  opacity: 0.85;
}

.persona-card a {
  color: var(--accent);
  font-weight: 700;
}

/* Format cards */
.formats-section {
  background: var(--bg);
  position: relative;
}

.formats-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--theme-texture, none);
  opacity: calc(var(--theme-texture-opacity, 0) * 0.6);
  pointer-events: none;
}

.formats-section .container {
  position: relative;
}

.format-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .format-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.format-grid--single {
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 700px) {
  .format-grid--single {
    grid-template-columns: 1fr;
  }
}

.format-card {
  background: var(--surface);
  border: 3px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
}

.format-visual {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  aspect-ratio: 1 / 1;
}

.format-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.format-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
  text-transform: uppercase;
}

[data-theme="racing"] .format-card h3 {
  font-style: italic;
}

.format-card .format-size {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.format-card .format-copy {
  color: var(--text);
  opacity: 0.85;
  font-size: 0.9rem;
  flex: 1;
}

.format-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.format-card .price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent);
}

[data-theme] .btn {
  background: var(--accent-2);
  border-color: var(--ink);
  color: var(--bg);
}

[data-theme] .btn--sm {
  font-family: var(--font-display);
}

/* ============ THEME BLOCKS ============ */
/* Cyberpunk — Ctrl+Alt+Defeat / Zane */
[data-theme="cyberpunk"] {
  --bg: #0a0e13;
  --surface: #10171d;
  --accent: #2af6c7;
  --accent-2: #ff2e8a;
  --text: #d9fbf3;
  --border: rgba(42, 246, 199, 0.35);
  --font-display: "JetBrains Mono", monospace;
  --theme-texture: repeating-linear-gradient(0deg, rgba(42,246,199,0.06) 0px, rgba(42,246,199,0.06) 1px, transparent 1px, transparent 26px),
    repeating-linear-gradient(90deg, rgba(42,246,199,0.06) 0px, rgba(42,246,199,0.06) 1px, transparent 1px, transparent 26px);
  --theme-texture-opacity: 1;
}

[data-theme="cyberpunk"] .line-hero-title,
[data-theme="cyberpunk"] .eyebrow {
  text-shadow: 0 0 14px rgba(42, 246, 199, 0.45);
}

[data-theme="cyberpunk"] .btn {
  position: relative;
  overflow: hidden;
}

[data-theme="cyberpunk"] .btn:hover {
  box-shadow: 7px 7px 0 var(--ink), 0 0 18px rgba(255, 46, 138, 0.55);
}

/* Country — Diesel & Dust / Sam */
[data-theme="country"] {
  --bg: #2a1c11;
  --surface: #3a2818;
  --accent: #e2b26a;
  --accent-2: #b5482a;
  --text: #f4e7cf;
  --border: rgba(226, 178, 106, 0.35);
  --font-display: "Rye", serif;
  --theme-texture: repeating-linear-gradient(180deg, rgba(0,0,0,0.12) 0px, rgba(0,0,0,0.12) 2px, transparent 2px, transparent 7px);
  --theme-texture-opacity: 1;
}

[data-theme="country"] .divider-rope {
  height: 14px;
  background-image: radial-gradient(circle, rgba(226,178,106,0.55) 2.5px, transparent 2.6px);
  background-size: 14px 14px;
  background-position: center;
  opacity: 0.7;
  margin: 8px 0;
}

/* Racing — Burnt Rubber & Bad Decisions / Nolan */
[data-theme="racing"] {
  --bg: #130404;
  --surface: #1d0808;
  --accent: #f5c518;
  --accent-2: #e0271b;
  --text: #f7e9e2;
  --border: rgba(245, 197, 24, 0.3);
  --font-display: "Racing Sans One", sans-serif;
  --theme-texture: repeating-linear-gradient(45deg, rgba(245,197,24,0.05) 0 10px, rgba(224,39,27,0.05) 10px 20px);
  --theme-texture-opacity: 1;
}

[data-theme="racing"] .divider-stripes {
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 16px, var(--accent-2) 16px 32px);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  margin: 10px 0;
}

/* Howl & Fetch — lighter warm shell variant / Blue */
[data-theme="howl"] {
  --bg: #332c22;
  --surface: #3f3728;
  --accent: #dcae63;
  --accent-2: #7f9a6e;
  --text: #f6ecd9;
  --border: rgba(220, 174, 99, 0.35);
  --font-display: "Alfa Slab One", serif;
  --theme-texture: radial-gradient(circle at 20% 30%, rgba(220,174,99,0.08) 3px, transparent 3.2px),
    radial-gradient(circle at 60% 70%, rgba(220,174,99,0.08) 3px, transparent 3.2px),
    radial-gradient(circle at 85% 20%, rgba(220,174,99,0.08) 3px, transparent 3.2px);
  --theme-texture-opacity: 1;
}

/* ============ Cart page ============ */
.cart-layout {
  display: grid;
  gap: 34px;
}

@media (min-width: 900px) {
  .cart-layout {
    grid-template-columns: 1.6fr 1fr;
    align-items: start;
  }
}

.cart-lines {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--shell-bg-2);
  border: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: 4px 4px 0 var(--ink);
}

.cart-line .badge-icon {
  width: 58px;
  height: 58px;
}

.cart-line .badge-icon svg {
  width: 28px;
  height: 28px;
}

.cart-line-name {
  font-family: "Alfa Slab One", serif;
  font-size: 1.1rem;
  color: var(--shell-cream);
}

.cart-line-format {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--shell-brass-light);
  font-weight: 700;
}

.cart-line-unit {
  font-size: 0.82rem;
  color: var(--shell-cream-dim);
}

.cart-line-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.cart-line-remove {
  background: none;
  border: none;
  color: var(--shell-rust);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.85rem;
}

.cart-line-total {
  font-family: "Alfa Slab One", serif;
  font-size: 1.15rem;
  color: var(--shell-brass-light);
  text-align: right;
  white-space: nowrap;
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--shell-bg-2);
  box-shadow: 4px 4px 0 var(--ink);
}

.qty-stepper button {
  width: 40px;
  height: 42px;
  background: none;
  border: none;
  color: var(--shell-cream);
  font-size: 1.2rem;
  cursor: pointer;
}

.qty-stepper button:hover {
  color: var(--shell-brass-light);
}

.qty-stepper input {
  width: 40px;
  text-align: center;
  border: none;
  border-left: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  height: 42px;
  background: var(--shell-bg-2);
  color: var(--shell-cream);
  font-family: "Alfa Slab One", serif;
  font-size: 1rem;
}

.summary-card {
  background: var(--shell-bg-2);
  border: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 26px;
  box-shadow: var(--shadow-stamp);
  position: sticky;
  top: 100px;
}

.summary-card h3 {
  font-size: 1.2rem;
  color: var(--shell-cream);
  margin-bottom: 18px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  color: var(--shell-cream-dim);
  font-size: 0.94rem;
}

.summary-row:first-of-type {
  border-top: none;
}

.summary-row.total {
  color: var(--shell-cream);
  font-family: "Alfa Slab One", serif;
  font-size: 1.25rem;
  border-top: 2px solid var(--line);
  margin-top: 4px;
  padding-top: 16px;
}

.empty-state {
  text-align: center;
  padding: 70px 20px;
  background: var(--shell-bg-2);
  border: 3px dashed var(--line);
  border-radius: var(--radius-sm);
}

.empty-state h2 {
  font-size: 1.9rem;
  color: var(--shell-cream);
  margin-bottom: 12px;
}

.empty-state p {
  color: var(--shell-cream-dim);
  max-width: 46ch;
  margin: 0 auto 26px;
}

/* ============ Forms ============ */
.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .form-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid.cols-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-family: "Alfa Slab One", serif;
  font-size: 0.78rem;
  color: var(--shell-brass-light);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.field input,
.field select {
  background: var(--shell-bg);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--shell-cream);
  font-family: "Karla", sans-serif;
  font-size: 0.98rem;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--shell-brass);
}

.field small {
  color: var(--shell-cream-dim);
  font-size: 0.76rem;
}

.field.has-error input {
  border-color: var(--shell-rust);
}

.field-error {
  color: #e8a988;
  font-size: 0.76rem;
  display: none;
}

.field.has-error .field-error {
  display: block;
}

fieldset {
  border: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin: 0 0 28px;
  background: var(--shell-bg-2);
  box-shadow: var(--shadow-stamp);
}

legend {
  font-family: "Alfa Slab One", serif;
  padding: 0 10px;
  font-size: 1.1rem;
  color: var(--shell-brass-light);
}

/* ============ Confirmation ============ */
.confirm-card {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  background: var(--shell-bg-2);
  border: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 48px 30px;
  box-shadow: var(--shadow-stamp-lg);
}

.confirm-card .badge-icon {
  margin: 0 auto 22px;
  width: 96px;
  height: 96px;
}

.order-number {
  margin-top: 18px;
  display: inline-block;
  font-family: "Alfa Slab One", serif;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  background: var(--shell-forest-dark);
  border: 2px dashed var(--shell-brass);
  padding: 10px 18px;
  color: var(--shell-brass-light);
}

.confirm-summary {
  margin-top: 30px;
  text-align: left;
  border-top: 1px dashed var(--line);
  padding-top: 20px;
}

/* ============ 404 ============ */
.error-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}

.error-page .eyebrow {
  display: block;
  margin-bottom: 10px;
}

.error-page h1 {
  font-size: clamp(2.6rem, 10vw, 5rem);
  color: var(--shell-cream);
}

.error-page p {
  margin-top: 16px;
  color: var(--shell-cream-dim);
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}

.error-actions {
  margin-top: 30px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ Toast ============ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  background: var(--shell-forest-dark);
  border: 3px solid var(--shell-brass);
  border-radius: var(--radius-sm);
  color: var(--shell-cream);
  padding: 14px 22px;
  font-family: "Alfa Slab One", serif;
  font-size: 0.95rem;
  box-shadow: var(--shadow-stamp);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: calc(100vw - 40px);
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============ Misc ============ */
.divider-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 44px 0;
  color: var(--shell-cream-dim);
}

.divider-badge::before,
.divider-badge::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.quote-line {
  text-align: center;
  font-style: italic;
  color: var(--shell-cream-dim);
  font-size: 0.95rem;
  padding: 30px 20px 0;
}
