/* The shop - same look as the main site: near-black ground with the orange dot
   grid, Anton for display, Barlow for everything else, heavy black rules, hard
   offset shadows, one orange. Values are taken from index.html. */
@import url('../assets/fonts/fonts.css');

:root {
  --ink: #101010;
  --ink-2: #1c1a17;
  --paper: #fafafa;
  --page: #f3f1ec;
  --text: #17140f;
  --orange: #f25c19;
  --orange-hi: #ff7b3d;
  --muted: #5f594f;
  --muted-2: #8a8378;
  --dim: rgba(250, 250, 250, 0.75);
  --display: 'Anton', 'Impact', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 16px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.dots { background-image: radial-gradient(rgba(242, 92, 25, 0.14) 1.5px, transparent 1.5px); background-size: 22px 22px; }

/* ---- banners ------------------------------------------------------------ */
.bar-note { background: repeating-linear-gradient(-45deg, var(--orange), var(--orange) 14px, #f46b2e 14px, #f46b2e 28px);
  color: var(--ink); font-weight: 800; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  text-align: center; padding: 8px 16px; }
.bar-note.dark { background: var(--ink-2); color: var(--paper); border-bottom: 2px solid var(--orange); }
.bar-note a { color: inherit; }

/* ---- nav (mirrors the site's top bar) ------------------------------------- */
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(8px, 1.6vw, 24px);
  padding: 8px clamp(16px, 3vw, 56px); background-color: var(--ink); font-size: clamp(11px, 1.3vw, 13px); position: relative; z-index: 2; }
.nav .logo { margin-right: auto; display: block; }
.nav .logo img { height: clamp(52px, 7vw, 104px); width: auto; max-width: min(34vw, 380px); object-fit: contain; }
.nav a.link { text-decoration: none; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper); }
.nav a.link:hover, .nav a.link.on { color: var(--orange); }
.nav .cta { text-decoration: none; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink);
  background: var(--orange); padding: 12px 18px; border-radius: 4px; white-space: nowrap; }
.nav .cta:hover { background: var(--orange-hi); }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; background: none; border: 2px solid rgba(250, 250, 250, 0.4);
  color: var(--paper); border-radius: 4px; padding: 9px 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: inherit; }
.cart-btn:hover { border-color: var(--orange); color: var(--orange); }
.cart-btn .count { background: var(--orange); color: var(--ink); min-width: 22px; height: 22px; display: inline-grid; place-items: center;
  border-radius: 3px; font-size: 12px; padding: 0 5px; transform: skew(-8deg); }
.cart-btn .count.zero { background: rgba(250, 250, 250, 0.18); color: var(--paper); }

/* ---- page header band ------------------------------------------------------ */
.band { background-color: var(--ink); color: var(--paper); padding: clamp(28px, 4.5vw, 60px) clamp(20px, 4vw, 56px) clamp(32px, 5vw, 64px); }
.band .in { max-width: 1240px; margin: 0 auto; }
.eyebrow { display: inline-block; background: var(--orange); color: var(--ink); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  font-size: 12px; padding: 6px 12px; transform: skew(-8deg); margin: 0 0 18px; }
.band h1 { font-family: var(--display); font-weight: 400; font-size: clamp(48px, 7vw, 96px); line-height: 0.95; text-transform: uppercase; margin: 0 0 14px; letter-spacing: 0.01em; }
.band h1 span { color: var(--orange); }
.band p.lead { font-size: 18px; line-height: 1.55; max-width: 52ch; color: rgba(250, 250, 250, 0.82); margin: 0; }

.main { padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 56px) clamp(56px, 8vw, 96px); }
.main > .in { max-width: 1240px; margin: 0 auto; }

/* ---- buttons --------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; border: none; text-decoration: none;
  font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 14px; color: var(--ink); background: var(--orange);
  padding: 16px 28px; border-radius: 4px; box-shadow: 5px 5px 0 var(--ink); transition: transform 0.08s, box-shadow 0.08s; }
.btn:hover { background: var(--orange-hi); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn[disabled] { background: #d9d4cb; color: var(--muted); box-shadow: none; cursor: not-allowed; transform: none; }
.btn.block { width: 100%; }
.btn.ghost { background: none; border: 2px solid var(--ink); box-shadow: none; padding: 12px 20px; }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.textbtn { background: none; border: none; padding: 0; cursor: pointer; font-weight: 800; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.textbtn:hover { color: var(--orange); }

/* ---- cards ----------------------------------------------------------------- */
.card { background: #fff; border: 3px solid var(--ink); border-radius: 8px; box-shadow: 8px 8px 0 var(--ink); padding: clamp(18px, 3vw, 28px); }
.card h2 { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); text-transform: uppercase; margin: 0 0 14px; line-height: 1; }
.label { display: block; font-weight: 800; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); margin: 0 0 8px; }

/* ---- product grid ---------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(20px, 3vw, 36px); }
.tile { display: block; text-decoration: none; background: #fff; border: 3px solid var(--ink); border-radius: 8px; overflow: hidden;
  box-shadow: 8px 8px 0 var(--ink); transition: box-shadow 0.12s, transform 0.12s; }
.tile:hover { box-shadow: 8px 8px 0 var(--orange); transform: translate(-2px, -2px); }
.tile .ph { border-bottom: 3px solid var(--ink); background: var(--page); }
.tile .ph img { object-fit: contain; }   /* any shape, shown whole */
.tile .body { padding: 16px 18px 18px; }
.tile h3 { font-family: var(--display); font-weight: 400; font-size: 26px; text-transform: uppercase; margin: 0 0 4px; line-height: 1.05; }
.tile .price { font-family: var(--display); font-size: 22px; color: var(--orange); }
.tile .sizes { font-size: 13px; font-weight: 600; color: var(--muted-2); margin: 6px 0 0; }

/* photo frame: the 4:5 crop the admin produces */
.ph { position: relative; aspect-ratio: 4 / 5; background: #e9e5dd; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph .none { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px;
  font-weight: 800; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2);
  background-image: radial-gradient(rgba(16, 16, 16, 0.12) 1.5px, transparent 1.5px); background-size: 18px 18px; }
.ph .ribbon { position: absolute; top: 16px; left: -36px; transform: rotate(-35deg); background: var(--ink); color: var(--paper);
  font-weight: 800; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 44px; }

/* ---- product page ---------------------------------------------------------- */
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
/* the big photo: framed at the main photo's own shape; others fit inside whole */
.stage { position: relative; margin: 0; max-height: 80vh; width: 100%; background: var(--page);
  border: 3px solid var(--ink); border-radius: 8px; box-shadow: 8px 8px 0 var(--ink); overflow: hidden; touch-action: pan-y; }
.stage img { width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.stage .none { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted-2); background-image: radial-gradient(rgba(16, 16, 16, 0.12) 1.5px, transparent 1.5px); background-size: 18px 18px; }
.stage .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; padding: 0 0 3px; border-radius: 50%;
  display: grid; place-items: center; border: 2px solid var(--ink); background: rgba(255, 255, 255, 0.92);
  font-size: 26px; line-height: 1; font-weight: 800; cursor: pointer; }
.stage .nav:hover { background: var(--orange); }
.stage .prev { left: 12px; }
.stage .next { right: 12px; }
.stage .ribbon { position: absolute; top: 16px; left: -36px; transform: rotate(-35deg); background: var(--ink); color: var(--paper);
  font-weight: 800; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 44px; }
.gallery .cap { min-height: 18px; margin: 14px 0 0; font-weight: 800; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.thumbs button { width: 76px; padding: 0; border: none; background: none; cursor: pointer; text-align: center; opacity: 0.65; }
.thumbs button.on { opacity: 1; }
.thumbs .t { display: block; width: 76px; height: 76px; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; background: var(--page); }
.thumbs button.on .t { border-color: var(--orange); box-shadow: 3px 3px 0 var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .c { display: block; margin-top: 5px; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5vw, 68px); text-transform: uppercase; line-height: 0.95; margin: 0 0 10px; }
.info .price { font-family: var(--display); font-size: clamp(28px, 3vw, 38px); color: var(--orange); margin: 0 0 16px; }
.info .desc { font-size: 17px; line-height: 1.6; color: #3d3830; margin: 0 0 26px; max-width: 52ch; white-space: pre-line; }
.picker { margin: 0 0 18px; }
.picker .group { margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-width: 58px; padding: 11px 14px; border: 2px solid var(--ink); border-radius: 4px; background: #fff; cursor: pointer;
  font-weight: 800; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; position: relative; }
.chip:hover { border-color: var(--orange); }
.chip.on { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--orange); }
.chip:disabled { cursor: not-allowed; color: #b4ada2; border-color: #d4cec4; background: #f3f1ec;
  background-image: linear-gradient(to top right, transparent calc(50% - 1px), #c9c2b6 calc(50% - 1px), #c9c2b6 calc(50% + 1px), transparent calc(50% + 1px)); }
.stock-note { min-height: 22px; font-size: 14px; font-weight: 800; color: var(--orange); margin: 0 0 14px; }
.buyrow { display: flex; gap: 14px; flex-wrap: wrap; align-items: stretch; margin: 0 0 28px; }
.buyrow .btn { flex: 1 1 220px; }
.qty { display: inline-flex; align-items: stretch; border: 2px solid var(--ink); border-radius: 4px; background: #fff; }
.qty button { width: 40px; border: none; background: none; cursor: pointer; font-size: 20px; font-weight: 800; }
.qty button:hover:not(:disabled) { color: var(--orange); }
.qty button:disabled { color: #c9c2b6; cursor: not-allowed; }
.qty span { min-width: 32px; display: grid; place-items: center; font-weight: 800; }
.qty.small button { width: 32px; font-size: 16px; }
.perks { display: grid; gap: 12px; border-top: 3px solid var(--ink); padding-top: 20px; }
.perk { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: baseline; }
.perk b { font-weight: 800; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--ink); color: var(--paper);
  padding: 4px 9px; transform: skew(-8deg); white-space: nowrap; }
.perk span { font-size: 15px; color: #3d3830; }

/* ---- cart drawer ----------------------------------------------------------- */
.scrim { position: fixed; inset: 0; background: rgba(16, 16, 16, 0.72); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); z-index: 41;
  border-left: 3px solid var(--ink); display: flex; flex-direction: column; box-shadow: -10px 0 0 var(--orange);
  transform: translateX(110%); transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1); }
.drawer.open { transform: none; }
.drawer header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: var(--ink); color: var(--paper); }
.drawer header h2 { font-family: var(--display); font-weight: 400; font-size: 30px; text-transform: uppercase; margin: 0; }
.close { font-weight: 800; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; background: none; border: 2px solid currentColor;
  border-radius: 4px; padding: 8px 12px; cursor: pointer; }
.close:hover { color: var(--orange); }
.drawer .lines { flex: 1; overflow: auto; padding: 8px 20px; }
.drawer .empty { padding: 40px 0; text-align: center; color: var(--muted); }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 2px solid rgba(16, 16, 16, 0.1); align-items: start; }
.line .ph { width: 64px; border: 2px solid var(--ink); border-radius: 4px; }
.line .ph .none { font-size: 0; }
.line .name { font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; font-size: 15px; margin: 0; }
.line .meta { font-size: 13px; color: var(--muted-2); font-weight: 600; margin: 2px 0 10px; }
.line .amt { font-weight: 800; white-space: nowrap; }
.line .warn { color: #b3261e; font-size: 13px; font-weight: 800; margin: 0 0 8px; }
.line .controls { display: flex; gap: 14px; align-items: center; }
.drawer footer { padding: 18px 20px 22px; border-top: 3px solid var(--ink); background: #fff; }
.total-row { display: flex; justify-content: space-between; font-weight: 800; font-size: 18px; margin: 0 0 4px; }
.fine { font-size: 13px; color: var(--muted); margin: 0 0 16px; }

/* ---- checkout -------------------------------------------------------------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.stack { display: grid; gap: clamp(22px, 3vw, 32px); }
.summary { position: sticky; top: 20px; }
.choices { display: grid; gap: 14px; }
.choice { display: block; border: 3px solid var(--ink); border-radius: 8px; padding: 16px 18px; background: #fff; position: relative; }
.choice > label { display: block; cursor: pointer; }
.choice:hover { border-color: var(--orange); }
.choice.on { border-color: var(--orange); box-shadow: 5px 5px 0 var(--ink); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.choice .title { font-family: var(--display); font-size: 24px; text-transform: uppercase; line-height: 1.05; }
.choice .cost { font-weight: 800; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--ink); color: var(--paper);
  padding: 4px 10px; transform: skew(-8deg); white-space: nowrap; }
.choice.on .cost { background: var(--orange); color: var(--ink); }
.choice p { margin: 6px 0 0; font-size: 15px; color: #3d3830; }
.places { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; margin: 14px 0 0; }
.place { cursor: pointer; border: 2px solid rgba(16, 16, 16, 0.25); border-radius: 6px; padding: 10px 12px; font-size: 14px; background: var(--paper); position: relative; }
.place input { position: absolute; opacity: 0; pointer-events: none; }
.place b { display: block; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: 14px; }
.place span { color: var(--muted); font-size: 13px; }
.place.on { border-color: var(--ink); background: #fff; box-shadow: 3px 3px 0 var(--orange); }
.fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.field { grid-column: span 6; }
.field.half { grid-column: span 3; }
.field.third { grid-column: span 2; }
.field label { display: block; font-weight: 800; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 5px; }
.field label i { font-style: normal; font-weight: 600; letter-spacing: 0.02em; text-transform: none; color: var(--muted-2); }
.field input, .field select { width: 100%; font: inherit; font-size: 16px; padding: 12px 13px; border: 2px solid var(--ink); border-radius: 4px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus { outline: none; border-color: var(--orange); box-shadow: 3px 3px 0 var(--ink); }
.field.bad input, .field.bad select { border-color: #b3261e; }
.field .err { color: #b3261e; font-size: 13px; font-weight: 800; margin: 5px 0 0; }
.alert { border: 3px solid #b3261e; color: #b3261e; background: #fff; border-radius: 8px; padding: 14px 16px; font-weight: 800; font-size: 15px; box-shadow: 5px 5px 0 #b3261e; }
.alert ul { margin: 8px 0 0; padding-left: 20px; font-weight: 600; }
.recap { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.recap p { margin: 0; font-size: 15px; }
.recap .who { font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
#payment { min-height: 360px; }
.hold-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.sum-lines { margin: 0 0 14px; }
.sum-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 2px solid rgba(16, 16, 16, 0.08); }
.sum-line .ph { width: 52px; border: 2px solid var(--ink); border-radius: 4px; }
.sum-line .ph .none { font-size: 0; }
.sum-line b { display: block; font-size: 14px; text-transform: uppercase; letter-spacing: 0.02em; }
.sum-line small { color: var(--muted-2); font-weight: 600; font-size: 13px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 4px 0; }
.sum-row.muted { color: var(--muted-2); font-size: 13px; }
.sum-row.total { border-top: 3px solid var(--ink); margin-top: 8px; padding-top: 12px; font-weight: 800; font-size: 20px; }

/* ---- thank you ------------------------------------------------------------- */
.thanks { max-width: 760px; margin: 0 auto; display: grid; gap: 28px; }
.next { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.next .num { font-family: var(--display); font-size: 44px; line-height: 0.9; color: var(--orange); }
.next p { margin: 0; font-size: 17px; line-height: 1.55; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.spinner { padding: 60px 0; text-align: center; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---- footer (mirrors the site's) ------------------------------------------ */
.foot { background: var(--ink); color: var(--paper); padding: clamp(48px, 6vw, 80px) clamp(20px, 4vw, 56px); }
.foot .in { max-width: 1240px; margin: 0 auto; }
.foot img { height: 44px; width: auto; margin-bottom: 32px; }
.foot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(24px, 4vw, 56px); font-size: 14px; line-height: 1.6; }
.foot h4 { margin: 0 0 6px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; color: var(--orange); }
.foot p { margin: 0; color: rgba(250, 250, 250, 0.7); }
.foot a { color: rgba(250, 250, 250, 0.85); text-decoration: none; }
.foot a:hover { color: var(--orange); }
.foot .copy { margin: 40px 0 0; font-size: 12px; letter-spacing: 0.06em; color: rgba(250, 250, 250, 0.4); }

@media (max-width: 860px) {
  .product, .checkout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; order: -1; }
}
@media (max-width: 560px) {
  .nav .cta { display: none; }
  .field.half, .field.third { grid-column: span 6; }
  .field.third.zip, .field.third.st { grid-column: span 3; }
  .card { box-shadow: 5px 5px 0 var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  .drawer, .tile, .btn { transition: none; }
}
