/* Angry Corpses merch store — self-contained, matched to the live site's tokens.
   Only depends on the site's stable same-origin asset paths (/fonts, /design-assets),
   never on the generated site's hashed CSS bundle. */

@font-face { font-family: "Road Rage"; src: url("/fonts/road-rage.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Underdog"; src: url("/fonts/underdog.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "New Rocker"; src: url("/fonts/new-rocker.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --ink: #0b0b0a;
  --cream: #e8e1d0;
  --muted: #7a756b;
  --crimson: #c8102e;
  --crimson-dark: #a20d25;
  --line: rgba(232, 225, 208, 0.18);
  --panel: #131210;
  --display: "Road Rage", Impact, sans-serif;
  --label: "New Rocker", serif;
  --body: "Underdog", Barlow, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 40px; }
.wordmark img { height: 40px; width: auto; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; width: 34px; height: 34px; padding: 6px; background: none; border: 0; cursor: pointer; }
.menu-toggle i { display: block; height: 2px; background: var(--cream); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { font-family: var(--label); font-size: 13px; letter-spacing: 2.34px; text-transform: uppercase; text-decoration: none; color: var(--cream); padding-bottom: 3px; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--crimson); }
.site-nav a[aria-current="page"] { color: var(--crimson); border-bottom-color: var(--crimson); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--label); font-size: 12px; font-weight: 700; letter-spacing: 1.92px; text-transform: uppercase; color: #fff; background: var(--crimson); border: 1px solid transparent; border-radius: 0; padding: 12px 20px; cursor: pointer; text-decoration: none; transition: background .15s ease; }
.button:hover:not(:disabled) { background: var(--crimson-dark); }
.button:disabled { opacity: .5; cursor: not-allowed; }
.button.ghost { background: transparent; color: var(--cream); border-color: var(--line); }
.button.ghost:hover:not(:disabled) { border-color: var(--cream); background: transparent; }

/* Layout */
.page { max-width: 1200px; margin: 0 auto; padding: 0 40px 80px; }
.store-hero { text-align: center; padding: 56px 0 12px; }
.kicker { font-family: var(--label); font-size: 13px; letter-spacing: 4px; text-transform: uppercase; color: var(--crimson); margin: 0 0 10px; }
.store-hero h1 { font-family: var(--display); font-size: clamp(56px, 12vw, 132px); line-height: .9; letter-spacing: 2px; text-transform: uppercase; margin: 0; }
.store-hero p { max-width: 560px; margin: 14px auto 0; color: var(--muted); }

.store-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; margin-top: 40px; }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.product-card { border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; }
.product-media { aspect-ratio: 1 / 1; background: #e9e6df; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-title { font-family: var(--display); font-size: 26px; line-height: 1; letter-spacing: 1px; text-transform: uppercase; margin: 0; }
.product-desc { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }
.product-price { font-family: var(--label); font-size: 20px; letter-spacing: 1px; }
.product-controls { margin-top: auto; display: grid; gap: 10px; }
.field-label { font-family: var(--label); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 5px; }
select, input { width: 100%; background: var(--ink); color: var(--cream); border: 1px solid var(--line); border-radius: 0; padding: 10px; font-family: var(--body); font-size: 15px; }
select:focus, input:focus { outline: none; border-color: var(--crimson); }
.qty-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }

.draft-flag { align-self: flex-start; font-family: var(--label); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: #ffb4a6; background: #2a1714; border: 1px solid #713a32; padding: 4px 8px; }

/* Cart */
.cart { border: 1px solid var(--line); background: var(--panel); position: sticky; top: 88px; }
.cart h2 { font-family: var(--display); font-size: 28px; letter-spacing: 1px; text-transform: uppercase; margin: 0; padding: 20px 20px 0; }
.cart-items { list-style: none; margin: 0; padding: 16px 20px; display: grid; gap: 14px; }
.cart-empty { padding: 8px 20px 20px; color: var(--muted); font-size: 15px; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; padding-bottom: 0; }
.cart-item .ci-title { font-family: var(--label); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.cart-item .ci-variant { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.cart-item .ci-remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; padding: 0; text-align: left; }
.cart-item .ci-remove:hover { color: var(--crimson); }
.cart-summary { padding: 0 20px 20px; display: grid; gap: 8px; }
.cart-row { display: flex; justify-content: space-between; font-size: 15px; }
.cart-row.total { font-family: var(--label); font-size: 18px; letter-spacing: 1px; padding-top: 10px; border-top: 1px solid var(--line); }
.cart .button { width: 100%; margin-top: 6px; }

/* Status / feedback */
.notice { border: 1px solid var(--line); background: var(--panel); padding: 16px 18px; margin: 24px 0; }
.notice[data-tone="success"] { border-color: #27533d; background: #0f2018; color: #a8dfbf; }
.notice[data-tone="error"] { border-color: #713a32; background: #1c110f; color: #ffb4a6; }
.notice[data-tone="info"] { color: var(--muted); }
.notice strong { font-family: var(--label); letter-spacing: 1px; text-transform: uppercase; display: block; margin-bottom: 4px; }

.state { text-align: center; padding: 60px 20px; color: var(--muted); }
.state .coming { font-family: var(--display); font-size: clamp(40px, 8vw, 84px); text-transform: uppercase; color: var(--cream); letter-spacing: 2px; }

.preview-banner { text-align: center; font-family: var(--label); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink); background: var(--crimson); padding: 7px; }

/* Checkout overlay */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.72); display: none; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; z-index: 100; }
.overlay.open { display: flex; }
.checkout-panel { width: 100%; max-width: 560px; background: var(--ink); border: 1px solid var(--line); }
.checkout-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.checkout-head h2 { font-family: var(--display); font-size: 30px; letter-spacing: 1px; text-transform: uppercase; margin: 0; }
.checkout-close { background: none; border: 0; color: var(--muted); font-size: 24px; cursor: pointer; line-height: 1; }
.checkout-body { padding: 22px 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.checkout-summary { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.checkout-actions { margin-top: 18px; display: grid; gap: 10px; }
.hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* Footer */
.site-footer { background: var(--ink); border-top: 4px solid var(--crimson); padding: 32px 0; margin-top: 60px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin: 0 40px; }
.footer-logo img { height: 40px; width: auto; }
.footer-nav, .footer-social { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a, .footer-social a { font-family: var(--label); font-size: 12px; letter-spacing: 1.92px; text-transform: uppercase; text-decoration: none; color: var(--cream); }
.footer-nav a:hover, .footer-social a:hover { color: var(--crimson); }
.footer-credit { font-family: var(--label); font-size: 12px; color: var(--muted); margin: 0 0 0 auto; }

@media (max-width: 900px) {
  .store-layout { grid-template-columns: 1fr; }
  .cart { position: static; }
}
@media (max-width: 760px) {
  .header-inner, .page { padding-left: 20px; padding-right: 20px; }
  .footer-inner { margin: 0 20px; }
  .menu-toggle { display: flex; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--ink); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; }
  .footer-credit { margin: 8px 0 0; }
  .form-grid { grid-template-columns: 1fr; }
}
