@font-face {
  font-family: 'Trash Hand';
  src: url('fonts/trash-hand.ttf') format('truetype');
  font-display: swap;
}
:root {
  --teal: #5ce1e6;
  --yellow: #fad432;
  --red: #ee2a2d;
  --red-dark: #b81f22;
  --dark-teal: #25867c;
  --ink: #040606;
  --gray: #646665;
  --navy: #1a2540;
  --navy-deep: #111a30;
  --cream: #fbe9c8;
  --paper: #fffaf0;
  --head: 'Trash Hand', 'Permanent Marker', cursive;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Lato', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--dark-teal); }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.05; letter-spacing: .01em; margin: 0; }

.preview-ribbon {
  background: var(--yellow); color: var(--ink); text-align: center;
  font-weight: 900; font-size: .85rem; padding: 6px 12px; border-bottom: 2px solid var(--ink);
}

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: var(--navy); border-bottom: 3px solid var(--ink);
}
.brand img { height: 40px; width: auto; }
.bag-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink); padding: 6px 14px; cursor: pointer;
  font-family: var(--head); font-size: 1.05rem;
}
.bag-btn b {
  background: var(--red); color: #fff; border-radius: 999px; min-width: 22px; height: 22px;
  display: inline-grid; place-items: center; font-family: 'Lato', sans-serif; font-size: .8rem;
}
.bag-btn.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.12); } }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 999px; font-weight: 900; font-size: 1.05rem;
  text-decoration: none; cursor: pointer; border: none; text-align: center; font-family: 'Lato', sans-serif;
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 0 var(--red-dark); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--red-dark); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--red-dark); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-secondary { background: transparent; color: var(--ink); border: 3px solid var(--ink); }
.wide { width: 100%; }

/* Hero */
.hero {
  background: radial-gradient(ellipse at 50% 0%, #2b3a63 0%, var(--navy) 55%, var(--navy-deep) 100%);
  color: #fff; text-align: center; padding: 0 0 36px; overflow: hidden;
}
.hero-art { width: 100%; height: auto; max-width: 1100px; margin: 0 auto; aspect-ratio: 3 / 1; object-fit: cover; }
@media (max-width: 600px) { .hero-art { aspect-ratio: 2 / 1; } }
.hero-copy { padding: 18px 16px 0; max-width: 640px; margin: 0 auto; }
.kicker { margin: 0 0 4px; color: var(--teal); font-family: var(--head); font-size: 1.15rem; letter-spacing: .05em; }
.hero h1 { font-size: clamp(2.8rem, 11vw, 4.6rem); text-shadow: 3px 3px 0 var(--ink); }
.hero h1 span, h2 span { color: var(--yellow); }
.hero-sub { font-size: 1.1rem; margin: 10px auto 22px; max-width: 30em; color: #e7ecf7; }

.perks {
  list-style: none; margin: 0; padding: 12px 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
  background: var(--teal); border-block: 3px solid var(--ink); font-size: .95rem;
}
.perks b { font-weight: 900; }

/* Shop */
.shop, .faq { max-width: 1100px; margin: 0 auto; padding: 40px 16px 8px; }
.shop h2, .faq h2 { font-size: clamp(2.2rem, 8vw, 3.2rem); text-align: center; margin-bottom: 22px; text-shadow: 2px 2px 0 var(--teal); }
.shop h2 span, .faq h2 span { color: var(--red); text-shadow: 2px 2px 0 var(--ink); }
.grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink);
  overflow: hidden; display: flex; flex-direction: column;
}
.media { position: relative; background: #ebe6dc; }
.media img.main { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.badge {
  position: absolute; top: 12px; left: 12px; background: var(--yellow); border: 2px solid var(--ink);
  border-radius: 999px; padding: 3px 12px; font-family: var(--head); font-size: .95rem;
}
.thumbs { display: flex; gap: 8px; padding: 10px 12px 0; }
.thumbs button {
  width: 58px; height: 58px; padding: 0; border: 2px solid #d6d0c4; border-radius: 10px; overflow: hidden;
  background: #ebe6dc; cursor: pointer;
}
.thumbs button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card h3 { font-size: 1.7rem; }
.price { font-family: 'Lato', sans-serif; font-weight: 900; font-size: 1.45rem; color: var(--red); white-space: nowrap; }
.tagline { margin: -6px 0 0; font-weight: 900; color: var(--dark-teal); }
.blurb { margin: 0; color: var(--gray); font-size: .95rem; }
.size-row { display: flex; justify-content: space-between; align-items: center; }
.size-row span { font-weight: 900; font-size: .9rem; }
.link-btn { background: none; border: none; color: var(--dark-teal); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; padding: 4px; }
.sizes-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes-pick button {
  min-width: 52px; height: 44px; padding: 0 10px; border: 2px solid var(--ink); border-radius: 10px; background: #fff;
  font-weight: 900; font-size: .95rem; cursor: pointer; font-family: 'Lato', sans-serif;
}
.sizes-pick button small { display: block; font-size: .65rem; font-weight: 700; color: var(--gray); margin-top: -2px; }
.sizes-pick button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.sizes-pick button[aria-pressed="true"] small { color: #ccc; }
.add { margin-top: auto; }
.hint { min-height: 1.2em; margin: 0; color: var(--red); font-weight: 700; font-size: .85rem; }
.soon { text-align: center; color: var(--gray); margin-top: 26px; }

/* FAQ */
.faq { padding-bottom: 40px; max-width: 720px; }
details { border: 3px solid var(--ink); border-radius: 14px; background: #fff; margin-bottom: 12px; box-shadow: 3px 3px 0 var(--ink); }
summary { cursor: pointer; padding: 14px 16px; font-weight: 900; font-size: 1.05rem; list-style: none; }
summary::after { content: '+'; float: right; font-family: var(--head); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: '-'; }
details p { margin: 0; padding: 0 16px 14px; }

/* Footer */
.foot { background: var(--navy); color: #dfe5f2; text-align: center; padding: 30px 16px 40px; border-top: 3px solid var(--ink); }
.foot img { height: 44px; width: auto; margin: 0 auto 10px; }
.foot a { color: var(--teal); }
.foot-links { font-weight: 700; }
.tiny { font-size: .8rem; color: var(--gray); }
.foot .tiny { color: #9aa6c2; }

/* Bag drawer */
.scrim { position: fixed; inset: 0; background: rgba(4, 6, 6, .55); z-index: 40; }
.bag {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(420px, 100%);
  background: var(--paper); border-left: 3px solid var(--ink); display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .25s ease;
}
.bag.open { transform: none; }
.bag-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--navy); color: #fff; }
.bag-head h2 { font-size: 2rem; }
.x { background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; padding: 0 6px; }
.bag-items { flex: 1; overflow-y: auto; padding: 12px 16px; }
.empty { text-align: center; color: var(--gray); margin-top: 40px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed #cfc7b6; }
.line img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 2px solid var(--ink); }
.line h4 { margin: 0; font-size: 1rem; }
.line p { margin: 0; color: var(--gray); font-size: .85rem; }
.qty { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.qty button { width: 30px; height: 30px; border-radius: 8px; border: 2px solid var(--ink); background: #fff; font-weight: 900; cursor: pointer; }
.line .amt { font-weight: 900; }
.bag-foot { padding: 14px 16px 18px; border-top: 3px solid var(--ink); background: #fff; }
.method { border: none; padding: 0; margin: 0 0 10px; }
.method legend { font-weight: 900; margin-bottom: 6px; }
.method label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 2px solid #d6d0c4; border-radius: 10px; margin-bottom: 6px; cursor: pointer; }
.method label:has(input:checked) { border-color: var(--ink); background: #f0fdfd; }
.method input { margin-top: 4px; accent-color: var(--red); }
.method em { font-style: normal; color: var(--gray); font-size: .9rem; }
.totals div { display: flex; justify-content: space-between; padding: 2px 0; }
.totals .muted { color: var(--gray); font-size: .9rem; }
.nudge { margin: 6px 0 10px; font-size: .9rem; font-weight: 700; color: var(--dark-teal); min-height: 1.2em; }
.err { color: var(--red); font-weight: 700; margin: 8px 0 0; min-height: 0; }
.err:empty { display: none; }

/* Size chart dialog */
.sizes { border: 3px solid var(--ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--ink); padding: 20px; max-width: 360px; width: calc(100% - 32px); }
.sizes::backdrop { background: rgba(4, 6, 6, .55); }
.sizes h2 { font-size: 2rem; }
.sizes table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; }
.sizes th, .sizes td { border-bottom: 1px solid #ddd; padding: 8px; text-align: center; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%); z-index: 60;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700;
  transition: transform .25s ease; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); }

/* Simple pages (policies, success, fulfill) */
.page { max-width: 760px; margin: 0 auto; padding: 32px 16px 60px; }
.page h1 { font-size: clamp(2.4rem, 9vw, 3.4rem); margin-bottom: 8px; }
.page h2 { font-size: 2rem; margin: 30px 0 8px; color: var(--navy); }
.page .back { display: inline-block; margin-bottom: 18px; font-weight: 700; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
