/* The customer-facing mailer webpage. Same palette/fonts as the printed
   catalog (public/app.js's mailerPrintStyles) so it reads as the same
   brand, but its own layout — a scrolling storefront, not a page-by-page
   replica of the print piece. */
:root {
  --navy: #17395e;
  --navy-dark: #0f2841;
  --red: #c0392b;
  --gold: #d9a418;
  --cream: #fbf6ea;
  --vault-bg: #1a1a1a;
  --vault-border: #c8c8c8;
  --ink: #1a1712;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;
  line-height: 1.45;
}
h1, h2, h3 { font-family: 'Arial Black', Arial, Helvetica, sans-serif; margin: 0; line-height: 1.15; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: var(--navy); }

.shop-loading, .shop-error {
  min-height: 60vh; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px; padding: 24px; text-align: center; color: var(--navy);
}
.shop-error h2 { font-size: 20px; }
.shop-error p { max-width: 320px; color: #55524a; }

/* ---------- code-entry landing ---------- */
.code-gate {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: var(--navy-dark);
  background-image: radial-gradient(circle at 20% 20%, rgba(217,164,24,.12), transparent 45%),
                     radial-gradient(circle at 80% 75%, rgba(192,57,43,.14), transparent 45%);
}
.code-gate-card {
  width: 100%; max-width: 380px; background: var(--cream); border-radius: 14px;
  padding: 32px 28px; text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.code-gate-card img { height: 48px; margin: 0 auto 14px; object-fit: contain; }
.code-gate-card h1 { font-size: 22px; color: var(--navy); }
.code-gate-card p { color: #55524a; font-size: 14px; margin: 8px 0 20px; }
.code-gate-form { display: flex; flex-direction: column; gap: 10px; }
.code-gate-form input {
  font-size: 18px; letter-spacing: 2px; text-align: center; text-transform: uppercase;
  padding: 12px; border-radius: 8px; border: 2px solid #ddd6c4; font-family: 'Arial Black', Arial, sans-serif;
}
.code-gate-form input:focus { outline: none; border-color: var(--gold); }
.code-gate-form button {
  background: var(--red); color: #fff; border: none; border-radius: 999px; padding: 13px;
  font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .5px;
}
.code-gate-form button:active { transform: scale(.98); }
.code-gate-error { color: var(--red); font-size: 13px; font-weight: 700; min-height: 18px; }
.code-gate-hint { margin-top: 18px; font-size: 12px; color: #9a9686; }

/* ---------- page chrome ---------- */
.shop-hero {
  position: relative; overflow: hidden; background: var(--navy);
  color: #fff; padding: 28px 20px 34px; text-align: center;
}
.shop-hero-burst { position: absolute; pointer-events: none; opacity: .16; z-index: 0; }
.shop-hero-burst.a { width: 62vw; max-width: 480px; left: -12%; top: -18%; }
.shop-hero-burst.b { width: 55vw; max-width: 420px; right: -14%; bottom: -22%; }
.shop-hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.shop-hero img.logo { height: 56px; margin: 0 auto 14px; background: #fff; padding: 8px 14px; border-radius: 10px; object-fit: contain; }
.shop-hero h1 { font-size: clamp(24px, 5vw, 34px); text-wrap: balance; }
.shop-hero .dates {
  display: inline-block; margin-top: 12px; background: var(--gold); color: var(--navy-dark);
  font-weight: 800; font-size: 12px; letter-spacing: .4px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px;
}
.shop-hero .gate-code {
  margin-top: 14px; font-size: 12px; color: #cfd9e6; letter-spacing: .3px;
}

.shop-nav {
  position: sticky; top: 0; z-index: 20; background: var(--cream);
  border-bottom: 2px solid var(--gold); display: flex; gap: 6px; overflow-x: auto;
  padding: 10px 14px; -webkit-overflow-scrolling: touch;
}
.shop-nav a {
  flex: none; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: .3px; padding: 7px 13px; border-radius: 999px; background: #fff;
  border: 1px solid #e6dfcf; white-space: nowrap;
}
.shop-nav a.vault-link { color: var(--gold); background: var(--vault-bg); border-color: var(--vault-bg); }

.shop-section { padding: 30px 16px; max-width: 1080px; margin: 0 auto; }
.shop-section-head { text-align: center; margin-bottom: 20px; }
.shop-section-head h2 {
  display: inline-block; background: var(--navy); color: #fff; font-size: 16px;
  text-transform: uppercase; letter-spacing: .6px; padding: 8px 22px; border-radius: 999px;
}

/* ---------- product grid ---------- */
.shop-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.shop-card {
  background: #fff; border: 1px solid #e9e2cf; border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
}
.shop-card.size-featured, .shop-card.size-large { grid-column: span 2; }
@media (max-width: 520px) { .shop-card.size-featured, .shop-card.size-large { grid-column: span 1; } }
.shop-card-photo {
  position: relative; aspect-ratio: 1 / 1; background: #f4f1e6; display: flex; align-items: center; justify-content: center;
  flex: none;
}
.shop-card.size-featured .shop-card-photo, .shop-card.size-large .shop-card-photo { aspect-ratio: 16 / 10; }
.shop-card-photo img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 10px; }
.shop-card-noPhoto { font-size: 34px; color: #ccc; }
.shop-card-play {
  position: absolute; right: 8px; bottom: 8px; background: rgba(23,57,94,.92); color: #fff;
  border: none; border-radius: 999px; width: 40px; height: 40px; display: flex; align-items: center;
  justify-content: center; font-size: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.shop-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.shop-card-name { font-family: 'Arial Black', Arial, Helvetica, sans-serif; font-size: 14.5px; line-height: 1.25; }
.shop-card-price { font-family: 'Arial Black', Arial, Helvetica, sans-serif; color: var(--red); font-size: 16px; }
.shop-card-price.ask { color: #8a8676; font-size: 12.5px; font-family: inherit; font-weight: 700; text-transform: uppercase; }
.shop-card-meta { display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 0; }
.shop-pill {
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px;
  padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.shop-pill.brand { background: #dbe8ff; color: #1d4ed8; }
.shop-pill.case { background: #1f2937; color: #fff; }
.shop-stat { font-size: 11px; font-weight: 800; color: var(--navy); }
.shop-stat .unit { font-weight: 700; color: #6f8299; margin-left: 2px; }
.shop-card-blurb { font-size: 12.5px; color: #55524a; margin-top: 2px; }

/* ---------- the Vault ---------- */
.shop-vault { background: var(--vault-bg); }
.shop-vault .shop-section-head h2 {
  background: transparent; color: var(--gold); font-size: 22px; padding: 0; letter-spacing: 1px;
}
.shop-vault-sub { color: #cfc9bf; font-size: 13px; margin-top: 6px; max-width: 480px; margin-left: auto; margin-right: auto; }
.shop-vault .shop-card { background: transparent; border-color: rgba(217,164,24,.35); }
.shop-vault .shop-card-photo { background: #fdf8ec; border: 1.5px solid var(--gold); border-radius: 8px; margin: 10px 10px 0; aspect-ratio: 1/1; }
.shop-vault .shop-card-name, .shop-vault .shop-stat { color: #fff; }
.shop-vault .shop-card-price { color: var(--gold); }
.shop-vault .shop-card-blurb { color: #cfc9bf; }
.shop-vault .shop-pill.brand { background: #2a4a6e; color: #cfe0ff; }
.shop-vault .shop-pill.case { background: var(--gold); color: #2a1f00; }
.shop-vault-tagline { text-align: center; color: var(--gold); font-style: italic; font-size: 13px; margin-top: 24px; }

/* ---------- offers ---------- */
.shop-offers-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.shop-offer {
  border: 2px dashed var(--red); border-radius: 10px; padding: 16px; text-align: center; background: #fffaf0;
}
.shop-offer-headline { font-family: 'Arial Black', Arial, Helvetica, sans-serif; color: var(--red); font-size: 18px; }
.shop-offer-desc { font-size: 13px; margin-top: 4px; color: #333; }
.shop-offers-note { text-align: center; font-size: 12px; color: #8a8676; margin-top: 16px; }

/* ---------- location ---------- */
.shop-location {
  background: #fff; border: 2px solid var(--navy); border-radius: 12px; padding: 20px;
  max-width: 460px; margin: 0 auto; text-align: center;
}
.shop-location h3 { color: var(--navy); font-size: 17px; text-transform: uppercase; letter-spacing: .3px; }
.shop-location .addr { font-size: 14px; margin-top: 6px; }
.shop-location .phone { font-size: 14px; margin-top: 4px; }
.shop-location .hours { margin-top: 10px; font-size: 12.5px; color: #55524a; }
.shop-location .hours div { display: flex; justify-content: space-between; max-width: 220px; margin: 0 auto; }
.shop-location img.map { margin-top: 14px; border-radius: 8px; border: 1px solid #e6dfcf; }
.shop-location .directions {
  display: inline-block; margin-top: 14px; background: var(--red); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; padding: 10px 22px; border-radius: 999px;
}

.shop-footer { text-align: center; padding: 26px 16px 40px; color: #8a8676; font-size: 12px; }

/* ---------- embedded video, never a new tab ---------- */
.video-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.video-modal[hidden] { display: none; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(10,10,10,.85); }
.video-modal-box { position: relative; z-index: 1; width: 100%; max-width: 780px; }
.video-modal-frame { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 6px; overflow: hidden; }
.video-modal-frame iframe, .video-modal-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal-close {
  position: absolute; top: -40px; right: 0; background: transparent; border: none; color: #fff;
  font-size: 22px; padding: 6px 10px;
}

@media (min-width: 720px) {
  .shop-hero { padding: 44px 24px 52px; }
  .shop-section { padding: 46px 24px; }
}
