/* ============================================================
   CYBER Distribution UK — black on caution yellow
   ============================================================ */

:root {
  --caution:    #ffd400;
  --caution-dk: #c9a600;
  --ink:        #0b0b0e;
  --panel:      #0e0e12;
  --paper:      #f2f0e6;
  --dim:        rgba(11,11,14,.68);   /* muted text on yellow */
  --grey:       #9a9aa4;              /* muted text on black */
  --line:       rgba(11,11,14,.25);
  --red:        #e5273a;
  --stripe: repeating-linear-gradient(
      -45deg,
      var(--caution) 0 22px,
      var(--ink) 22px 44px);
  --font-display: "Saira Stencil One", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--caution);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -10%, #ffe14d 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 90% 100%, #e6bf00 0%, transparent 70%);
}

::selection { background: var(--ink); color: var(--caution); }

/* faint print-texture scanlines */
.scanlines {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: repeating-linear-gradient(
    0deg, transparent 0 3px, rgba(0,0,0,.05) 3px 4px);
}

/* hazard tape edge strips */
.tape-edge {
  height: 14px;
  background: var(--stripe);
  border-bottom: 3px solid var(--ink);
}

/* ============ HEADER ============ */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--caution);
  border-bottom: 3px solid var(--ink);
}
.head-inner {
  max-width: 1100px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: flex; align-items: baseline; gap: 14px;
  text-decoration: none; color: var(--ink);
}
.brand-mark { display: block; width: 148px; height: auto; }
.brand-sub {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 11px; letter-spacing: 5px; color: var(--ink);
}
.basket-btn {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-weight: 700; font-size: 14px;
  letter-spacing: 2px;
  background: var(--ink); color: var(--caution);
  border: 2px solid var(--ink);
  padding: 8px 14px; cursor: pointer;
  box-shadow: 4px 4px 0 var(--caution-dk);
  transition: transform .12s ease, box-shadow .12s ease;
}
.basket-btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--caution-dk); }
.basket-btn:active { transform: translate(2px,2px); box-shadow: 0 0 0 var(--caution-dk); }
.basket-count {
  background: var(--caution); color: var(--ink);
  min-width: 22px; height: 22px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.basket-count.bump { animation: bump .3s ease; }
@keyframes bump { 40% { transform: scale(1.45); } }

/* ============ HERO ============ */
.hero {
  position: relative;
  max-width: 1100px; margin: 0 auto;
  padding: 80px 20px 160px;
}
.hero-kicker {
  color: var(--ink); font-weight: 700; font-size: 14px; letter-spacing: 1px;
  margin-bottom: 22px;
  animation: rise .6s ease both;
}
.cursor { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-wordmark {
  display: block;
  width: min(660px, 92%); height: auto;
  filter: drop-shadow(10px 10px 0 var(--caution-dk));
  animation: rise .6s .1s ease both;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 13vw, 170px);
  line-height: .9; letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 8px;
}
.hero-title .line-2 {
  display: block;
  -webkit-text-stroke: 3px var(--ink);
  color: transparent;
  animation: rise .6s .22s ease both;
}
.hero-title .dot { color: var(--red); -webkit-text-stroke: 0; }
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
.hero-copy {
  max-width: 520px; margin: 26px 0 34px; color: var(--dim);
  animation: rise .6s .34s ease both;
}
.cta {
  display: inline-block;
  font-weight: 700; font-size: 15px; letter-spacing: 3px;
  color: var(--caution); background: var(--ink);
  text-decoration: none;
  padding: 14px 26px;
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--caution-dk);
  transition: transform .12s ease, box-shadow .12s ease;
  animation: rise .6s .46s ease both;
}
.cta:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--caution-dk); }

/* marquee tape strips crossing the hero */
.hero-tape {
  position: absolute; left: -6%; right: -6%; bottom: 26px;
  pointer-events: none;
}
.tape-strip {
  display: flex; white-space: nowrap; overflow: hidden;
  font-family: var(--font-display); font-size: 20px; letter-spacing: 3px;
  padding: 8px 0;
  border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
}
.tape-strip span { animation: marquee 40s linear infinite; }
.strip-a {
  background: var(--ink); color: var(--caution);
  transform: rotate(-2.5deg);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.strip-b {
  background: var(--caution); color: var(--ink);
  transform: rotate(1.6deg) translateY(-6px);
}
.strip-b span { animation-direction: reverse; animation-duration: 55s; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ============ DIVIDERS / SECTIONS ============ */
.hazard-divider {
  height: 26px; background: var(--stripe);
  border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
}

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  margin-bottom: 34px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: 3px; color: var(--ink);
}
.section-note { color: var(--dim); font-size: 13px; }
.soon-inline {
  background: var(--red); color: var(--paper);
  font-weight: 700; font-size: 11px; padding: 2px 7px; letter-spacing: 2px;
}

/* ============ PRODUCT GRID ============ */
.shop { max-width: 1100px; margin: 0 auto; padding: 70px 20px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.card {
  background: var(--panel);
  border: 3px solid var(--ink);
  box-shadow: 7px 7px 0 var(--caution-dk);
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translate(-3px,-3px); box-shadow: 10px 10px 0 var(--caution-dk); }
.card-img {
  aspect-ratio: 4 / 3; width: 100%; object-fit: cover;
  background: var(--caution); border-bottom: 3px solid var(--ink);
  display: block;
}
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-name {
  font-family: var(--font-display); font-size: 19px; letter-spacing: 1px;
  color: var(--caution); line-height: 1.15;
}
.card-blurb { font-size: 12.5px; color: var(--grey); flex: 1; }
.card-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.card-price { font-weight: 700; font-size: 18px; color: var(--paper); }
.add-btn {
  font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: 1px;
  background: var(--caution); color: var(--ink);
  border: 2px solid var(--caution);
  padding: 7px 14px; cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.add-btn:hover { background: transparent; color: var(--caution); }
.card.soon .card-img { filter: grayscale(1) brightness(.85); }
.soon-tag {
  position: absolute; top: 12px; left: -8px;
  background: var(--red); color: var(--paper);
  font-weight: 700; font-size: 11px; letter-spacing: 2px;
  padding: 4px 10px;
  box-shadow: 3px 3px 0 var(--ink);
}
.card.soon .add-btn {
  background: transparent; border-color: #3a3a44; color: var(--grey); cursor: not-allowed;
}
.card.soon .add-btn:hover { background: transparent; color: var(--grey); }

/* ============ INFO ============ */
.info { max-width: 1100px; margin: 0 auto; padding: 60px 20px; }
.info-cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.info-box {
  border: 2px dashed var(--ink); padding: 22px;
  background: rgba(11,11,14,.04);
}
.info-box h3 {
  font-family: var(--font-display); letter-spacing: 2px;
  color: var(--ink); margin-bottom: 10px; font-size: 18px;
}
.info-box p { font-size: 13.5px; color: var(--dim); }

/* ============ FOOTER ============ */
.site-foot { background: var(--ink); }
.site-foot .tape-edge { border-bottom-color: var(--caution); }
.site-foot p {
  text-align: center; padding: 26px 20px; font-size: 12px; color: var(--caution);
  letter-spacing: 1px;
}

/* ============ BASKET DRAWER ============ */
.drawer-veil {
  position: fixed; inset: 0; z-index: 98;
  background: rgba(11,11,14,.55); backdrop-filter: blur(2px);
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 99;
  width: min(420px, 100vw);
  background: var(--panel); color: var(--paper);
  border-left: 4px solid var(--ink);
  outline: 3px solid var(--caution);
  display: flex; flex-direction: column;
  animation: slide-in .22s ease both;
}
@keyframes slide-in { from { transform: translateX(100%); } }
.drawer[hidden], .drawer-veil[hidden] { display: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  background: var(--stripe);
}
.drawer-head h2 {
  font-family: var(--font-display); font-size: 26px; letter-spacing: 3px;
  color: var(--ink);
  background: var(--caution); padding: 2px 10px;
}
.drawer-close {
  background: var(--ink); color: var(--caution);
  border: 2px solid var(--caution); width: 38px; height: 38px;
  font-size: 16px; cursor: pointer;
}
.drawer-items { flex: 1; overflow-y: auto; padding: 18px 20px; }
.drawer-empty { color: var(--grey); font-size: 14px; padding: 30px 0; text-align: center; }
.b-item {
  display: grid; grid-template-columns: 56px 1fr auto;
  gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid #2a2a33;
}
.b-item img { width: 56px; height: 42px; object-fit: cover; border: 1px solid var(--caution); }
.b-name { font-size: 13px; font-weight: 700; line-height: 1.3; }
.b-price { font-size: 12px; color: var(--grey); }
.b-controls { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 26px; height: 26px; cursor: pointer;
  background: transparent; color: var(--caution);
  border: 1px solid var(--caution); font-family: var(--font-mono);
}
.qty-btn:hover { background: var(--caution); color: var(--ink); }
.b-qty { min-width: 20px; text-align: center; font-weight: 700; }
.drawer-foot { padding: 18px 20px 22px; border-top: 3px solid var(--caution); }
.drawer-total {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14px; letter-spacing: 2px;
}
.drawer-total strong { font-size: 24px; color: var(--caution); }
.drawer-note { font-size: 11.5px; color: var(--grey); margin: 6px 0 14px; }
.checkout-btn {
  width: 100%; padding: 15px;
  font-family: var(--font-mono); font-weight: 700; font-size: 15px; letter-spacing: 2px;
  background: var(--caution); color: var(--ink);
  border: 2px solid var(--caution); cursor: pointer;
  box-shadow: 5px 5px 0 var(--red);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.checkout-btn:hover:not(:disabled) { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--red); }
.checkout-btn:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
.drawer-err { margin-top: 10px; color: var(--red); font-size: 12.5px; }
.err { color: var(--red); }

/* ============ SUCCESS PAGE ============ */
.success-wrap {
  min-height: 70vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 60px 20px;
}
.success-wordmark {
  width: min(420px, 80%); height: auto; margin-bottom: 10px;
  filter: drop-shadow(8px 8px 0 var(--caution-dk));
}
.success-wrap h1 {
  font-family: var(--font-display); font-size: clamp(44px, 9vw, 90px);
  color: var(--ink); letter-spacing: 3px;
  text-shadow: 6px 6px 0 var(--caution-dk);
}
.success-wrap p { color: var(--dim); margin: 18px auto 30px; max-width: 460px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 560px) {
  .hero { padding: 50px 20px 140px; }
  .brand-mark { width: 110px; }
  .brand-sub { display: none; }
  .basket-btn { font-size: 12px; padding: 7px 10px; }
}
