:root {
  --ink: #0a0c05;
  --panel: #12150a;
  --photo: #050604;
  --panel-raised: #1a1e0f;
  --line: rgba(207, 232, 42, 0.24);
  --line-strong: rgba(207, 232, 42, 0.6);
  --volt: #cfe82a;
  --volt-hot: #f0f88a;
  --amber: #f4a61d;
  --text: #f0f2df;
  --muted: #aeb394;
  --danger: #ff8a70;
  --heading: 'Saira Condensed', 'Arial Narrow', Impact, sans-serif;
  --body: 'Barlow', 'Segoe UI', Arial, sans-serif;
  --notch: 18px;
  --glow: 0 0 10px rgba(207, 232, 42, 0.75), 0 0 34px rgba(207, 232, 42, 0.35);
}

* { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.55 var(--body);
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('/images/lightning.webp') center / 1400px;
  opacity: 0.2;
}
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--volt-hot); outline-offset: 3px; }

/* ---------- Header and footer ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px clamp(16px, 4vw, 48px);
  background: rgba(10, 12, 5, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 900 26px/1 var(--heading);
  letter-spacing: 0.03em;
  color: var(--volt);
}
.brand img { width: 46px; height: auto; }
.site-header nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 32px); }
.site-header nav a {
  padding: 6px 0;
  text-decoration: none;
  text-transform: uppercase;
  font: 700 19px/1 var(--heading);
  letter-spacing: 0.05em;
  border-bottom: 2px solid transparent;
}
.site-header nav a:hover, .site-header nav a[aria-current='page'] { color: var(--volt); border-color: var(--volt); }
.basket-link { display: inline-flex; align-items: center; gap: 7px; }
.basket-count {
  min-width: 22px;
  padding: 3px 5px;
  background: var(--volt);
  color: var(--ink);
  border-radius: 2px;
  font-size: 15px;
  text-align: center;
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding: 28px clamp(16px, 4vw, 48px);
  background: var(--ink);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer p { margin: 0 0 0 auto; }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--volt); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 26px;
  border: 2px solid var(--volt);
  background: transparent;
  color: var(--volt);
  font: 800 21px/1 var(--heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background-color 0.15s, color 0.15s, filter 0.15s;
}
.btn-volt { background: var(--volt); color: var(--ink); }
.btn-volt:hover { background: var(--volt-hot); border-color: var(--volt-hot); }
.btn-outline:hover { background: var(--volt); color: var(--ink); }
.btn-wide { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn-small { min-height: 36px; padding: 6px 12px; font-size: 16px; }
.btn-danger { border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: var(--ink); }
.text-button, .text-link {
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--volt);
  font: 600 16px/1.4 var(--body);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.text-button:hover, .text-link:hover { color: var(--volt-hot); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 70px);
  padding: 28px 16px 44px;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}
.bolts { position: absolute; inset: 0; background: url('/images/lightning.webp') center / 1000px; }
.bolts-base { opacity: 0.6; }
.bolts-charge {
  filter: brightness(1.9) saturate(1.25);
  mask-image: radial-gradient(circle 38vmax at var(--mx, 50%) var(--my, 40%), #000 0%, rgba(0, 0, 0, 0.75) 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle 38vmax at var(--mx, 50%) var(--my, 40%), #000 0%, rgba(0, 0, 0, 0.75) 35%, transparent 100%);
  animation: flicker 7s linear infinite;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 46% 44% at 50% 38%, rgba(10, 12, 5, 0.72), transparent 100%),
    linear-gradient(transparent 70%, var(--ink));
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
}
.hero-logo {
  width: min(46vh, 74vw);
  max-width: 520px;
  height: auto;
  filter: drop-shadow(0 0 26px rgba(207, 232, 42, 0.42));
  animation: logo-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.wordmark {
  position: relative;
  margin-top: -0.2em;
  font-size: clamp(66px, min(17vw, 21vh), 230px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0.015em;
  color: transparent;
  background: linear-gradient(180deg, var(--volt-hot) 8%, var(--volt) 48%, #8ba713 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 2px var(--volt-hot)) drop-shadow(0 0 22px rgba(207, 232, 42, 0.7));
  animation: wordmark-charge 7s linear infinite;
}
.hero-line { max-width: 40ch; margin: 10px 0 22px; font-size: clamp(18px, 2.2vw, 22px); font-weight: 500; text-shadow: 0 1px 10px #000; }

@keyframes flicker {
  0%, 17%, 21%, 24%, 58%, 62%, 100% { opacity: 0.55; }
  18%, 23% { opacity: 1; }
  19.5% { opacity: 0.3; }
  60% { opacity: 0.95; }
}
@keyframes wordmark-charge {
  0%, 17%, 24%, 58%, 62%, 100% { filter: drop-shadow(0 0 2px var(--volt-hot)) drop-shadow(0 0 20px rgba(207, 232, 42, 0.55)); }
  18%, 23%, 60% { filter: drop-shadow(0 0 5px var(--volt-hot)) drop-shadow(0 0 44px rgba(207, 232, 42, 0.95)); }
}
@keyframes logo-in {
  from { transform: scale(0.94); }
  to { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bolts-charge, .wordmark, .hero-logo { animation: none; }
  * { transition: none !important; }
}

/* ---------- Sections and product grid ---------- */

.section, .page {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) clamp(16px, 4vw, 48px);
}
.page.narrow { width: min(100%, 720px); }
.legal h2 { margin: 34px 0 10px; font-size: 32px; color: var(--volt); }
.legal h3 { margin: 22px 0 6px; font-size: 24px; font-weight: 700; }
.legal p, .legal ul { margin: 0 0 12px; }
.legal li { margin-bottom: 7px; }
.legal a { color: var(--volt); }
.legal a:hover { color: var(--volt-hot); }
.legal .fine-print { margin-bottom: 18px; }
.business-details { margin: 0 0 12px; font-style: normal; overflow-wrap: anywhere; }
.todo { padding: 0 4px; background: var(--amber); color: var(--ink); font-weight: 600; }
.cancel-form { margin-top: 12px; }
.cancel-form .fine-print { margin-bottom: 0; }
.fine-print a { color: var(--volt); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 26px;
}
.section-head h2 { font-size: clamp(36px, 5vw, 60px); color: var(--volt); text-shadow: var(--glow); }
.page-title { margin-bottom: 26px; font-size: clamp(44px, 7vw, 76px); font-weight: 900; color: var(--volt); text-shadow: var(--glow); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 22px; }
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%);
  transition: transform 0.18s, background-color 0.18s;
}
.product-card:hover { transform: translateY(-4px); background: var(--panel-raised); }
.product-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: var(--photo); }
.product-card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 20px; border-top: 2px solid var(--volt); }
.product-card h3 { font-size: 26px; font-weight: 700; }
.product-card .price { font: 800 24px/1.1 var(--heading); color: var(--volt); }
.product-card .sizes { font-size: 15px; color: var(--muted); }
.empty { color: var(--muted); font-size: 19px; }

.strike {
  position: relative;
  display: grid;
  min-height: 360px;
  place-items: center;
  overflow: hidden;
  padding: 56px 16px;
  text-align: center;
  clip-path: polygon(0 0, 100% 34px, 100% 100%, 0 calc(100% - 34px));
}
.bolts-strip { filter: brightness(1.45); background-size: 760px; background-position: 30% 60%; }
.strike::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 52% 62% at 50% 50%, rgba(10, 12, 5, 0.88) 30%, transparent 100%);
}
.strike-copy { position: relative; z-index: 1; max-width: 660px; }
.strike h2 { font-size: clamp(44px, 8vw, 96px); font-weight: 900; text-shadow: 0 2px 22px #000, var(--glow); }
.strike p { margin: 12px 0 22px; font-size: 19px; font-weight: 500; text-shadow: 0 1px 8px #000, 0 0 3px #000; }
.strike .btn-outline { background: rgba(10, 12, 5, 0.85); }
.strike .btn-outline:hover { background: var(--volt); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button {
  min-height: 38px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--text);
  font: 700 18px/1 var(--heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.filters button:hover { border-color: var(--volt); color: var(--volt); }
.filters button[aria-pressed='true'] { background: var(--volt); border-color: var(--volt); color: var(--ink); }

/* ---------- Product page ---------- */

.product-detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 60px); align-items: start; }
.product-detail > img { width: 100%; height: auto; max-height: 82vh; aspect-ratio: 1; object-fit: contain; background: var(--photo); border-bottom: 3px solid var(--volt); }
.product-detail h1 { font-size: clamp(40px, 5.5vw, 66px); font-weight: 900; }
.back-link { display: inline-block; margin-bottom: 18px; }
.category { margin: 0 0 6px; color: var(--amber); font: 700 19px/1 var(--heading); letter-spacing: 0.1em; text-transform: uppercase; }
.product-price { margin: 10px 0 14px; font: 800 38px/1 var(--heading); color: var(--volt); text-shadow: 0 0 18px rgba(207, 232, 42, 0.4); }
.product-description { margin: 0 0 22px; }
.product-form { display: grid; gap: 20px; }
.size-picker, .size-editor { margin: 0; padding: 0; border: 0; }
.size-picker legend, .size-editor legend, .qty-label { margin-bottom: 8px; padding: 0; font-weight: 600; }
.size-picker .choices { display: flex; flex-wrap: wrap; gap: 8px; }
.size-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.size-choice span {
  display: grid;
  place-items: center;
  min-width: 54px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  font: 700 20px/1 var(--heading);
  cursor: pointer;
}
.size-choice span:hover { border-color: var(--volt); color: var(--volt); }
.size-choice input:checked + span { background: var(--volt); border-color: var(--volt); color: var(--ink); }
.size-choice input:focus-visible + span { outline: 2px solid var(--volt-hot); outline-offset: 3px; }
.qty {
  display: inline-grid;
  grid-template-columns: 44px 48px 44px;
  align-items: stretch;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
}
.qty button { border: 0; background: none; color: var(--volt); font-size: 22px; font-weight: 600; cursor: pointer; }
.qty button:hover:not(:disabled) { background: var(--panel-raised); }
.qty button:disabled { color: var(--muted); opacity: 0.5; cursor: default; }
.qty output { display: grid; place-items: center; font-weight: 600; }

/* ---------- Panels, forms, basket, checkout ---------- */

.panel { padding: clamp(18px, 3vw, 28px); background: var(--panel); border: 1px solid var(--line); }
.panel h2 { margin-bottom: 16px; font-size: 32px; }
.form { display: grid; gap: 14px; align-content: start; }
.form label { display: grid; gap: 5px; font-weight: 600; }
.optional { color: var(--muted); font-weight: 400; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input, textarea, select {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: #090b05;
  color: var(--text);
  font: 400 17px/1.4 var(--body);
}
input:focus, textarea:focus, select:focus { border-color: var(--volt); outline: 1px solid var(--volt); }
input[type='checkbox'] { width: 20px; min-height: 20px; height: 20px; accent-color: var(--volt); }
.check { display: flex !important; align-items: center; gap: 10px; }
.form-error { margin: 0; color: var(--danger); font-weight: 600; }
.fine-print { margin: 0; color: var(--muted); font-size: 15px; }

.basket-layout .totals { padding-top: 0; border-top: 0; }
.basket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.basket-lines { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.basket-line {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.basket-line img { width: 110px; height: 110px; object-fit: contain; background: var(--photo); }
.basket-line h2 { font-size: 26px; font-weight: 700; }
.basket-line h2 a { text-decoration: none; }
.basket-line h2 a:hover { color: var(--volt); }
.basket-line .meta { margin: 2px 0 10px; color: var(--muted); }
.basket-line .line-total { align-self: start; font: 800 24px/1.1 var(--heading); color: var(--volt); }
.line-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 28px; align-items: start; }
.summary { position: sticky; top: 90px; }
.summary-lines { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.summary-lines li { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.summary-lines img { width: 54px; height: 54px; object-fit: contain; background: var(--photo); }
.summary-lines small { display: block; color: var(--muted); font-size: 14px; }
.coupon-form { display: grid; gap: 6px; padding: 14px 0; border-top: 1px solid var(--line); }
.coupon-form label { font-weight: 600; }
.coupon-row { display: flex; gap: 8px; align-items: stretch; }
.coupon-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.coupon-row .btn { flex: none; min-height: 44px; padding: 6px 16px; font-size: 18px; }
.size-editor .coupon-row input { text-transform: none; }
.coupon-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  padding: 10px 12px;
  border: 1px dashed var(--volt);
  color: var(--volt);
  font-weight: 600;
}
.totals { display: grid; grid-template-columns: 1fr auto; gap: 7px 16px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.totals dt, .totals dd { margin: 0; }
.totals dd { text-align: right; font-weight: 600; }
.totals .discount { color: var(--volt); }
.totals .grand { margin-top: 6px; font: 800 30px/1.1 var(--heading); }
.totals dd.grand { color: var(--volt); }
.summary > .btn { margin-top: 16px; }
.notice { margin: 0 0 18px; padding: 10px 12px; border-left: 3px solid var(--amber); background: rgba(244, 166, 29, 0.1); }

.thanks-number { margin: 0 0 12px; font: 800 30px/1.1 var(--heading); color: var(--amber); }

.toast {
  position: fixed;
  z-index: 20;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  background: var(--volt);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.6), var(--glow);
}
.toast a { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* ---------- Admin ---------- */

.login { width: min(100%, 440px); margin: 0 auto; }
.login .page-title { font-size: 46px; margin-bottom: 4px; }
.admin-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 24px; border-bottom: 2px solid var(--volt); }
.tabs button {
  min-height: 44px;
  padding: 8px 18px;
  border: 0;
  background: var(--panel);
  color: var(--text);
  font: 700 20px/1 var(--heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.tabs button:hover { color: var(--volt); }
.tabs button[aria-selected='true'] { background: var(--volt); color: var(--ink); }
.admin-split { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); gap: 26px; align-items: start; }
.admin-list { display: grid; gap: 10px; min-width: 0; }
.admin-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.admin-row.no-image { grid-template-columns: minmax(0, 1fr) auto; }
.admin-row img { width: 72px; height: 72px; object-fit: contain; background: var(--photo); }
.admin-row h3 { font-size: 23px; font-weight: 700; overflow-wrap: anywhere; }
.admin-row p { margin: 2px 0 0; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.admin-row .actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.badge { display: inline-block; margin-left: 6px; padding: 1px 6px; background: var(--amber); color: var(--ink); font: 700 14px/1.3 var(--body); vertical-align: middle; text-transform: none; }
.badge.off { background: #555a44; color: var(--text); }
.size-options { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.size-toggle { display: inline-flex !important; grid: none; align-items: center; gap: 6px; padding: 5px 10px; background: var(--panel-raised); border: 1px solid var(--line); font-weight: 500 !important; cursor: pointer; }
.size-toggle input { width: 18px; min-height: 18px; height: 18px; }
.image-preview { width: 140px; height: 140px; object-fit: contain; background: var(--photo); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.order-card { display: grid; gap: 10px; padding: 16px; background: var(--panel); border: 1px solid var(--line); }
.order-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.order-head h3 { font-size: 26px; color: var(--volt); }
.order-head select { width: auto; }
.order-card ul { margin: 0; padding-left: 18px; }
.order-card p { margin: 0; overflow-wrap: anywhere; }
.order-card .muted { color: var(--muted); font-size: 15px; }

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
  .product-detail, .basket-layout, .checkout-layout, .admin-split { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .checkout-layout .summary { order: -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand { font-size: 21px; gap: 6px; }
  .brand img { width: 36px; }
  .site-header nav a { font-size: 17px; }
  .site-header nav a[href='/'] { display: none; }
  .hero { min-height: auto; padding-top: 24px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .basket-line { grid-template-columns: 76px minmax(0, 1fr); }
  .basket-line img { width: 76px; height: 76px; }
  .basket-line .line-total { grid-column: 2; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card h3 { font-size: 21px; }
  .product-card-body { padding: 10px 10px 18px; }
  .admin-row { grid-template-columns: 56px minmax(0, 1fr); }
  .admin-row.no-image { grid-template-columns: minmax(0, 1fr); }
  .admin-row img { width: 56px; height: 56px; }
  .admin-row .actions { grid-column: 1 / -1; justify-content: flex-start; }
  .site-footer p { margin-left: 0; }
}
