:root {
  --paper: #f1e9d3;
  --card: #fffdf6;
  --card-soft: #fbf5e6;
  --ink: #14202b;
  --blue: #1763bf;
  --blue-dark: #1257a8;
  --coral: #f4596b;
  --coral-dark: #f23d52;
  --yellow: #f5c531;
  --green: #1f8a7a;
  --label: #8a4a2c;
  --body: #3b3326;
  --muted: #7a6a4e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  font-family: 'Hanken Grotesk', sans-serif;
  color: var(--ink);
}

::placeholder { color: #b6a07f; opacity: 1; }

h1, h2, h3 { font-family: 'Bricolage Grotesque', sans-serif; }

a { color: var(--blue); font-weight: 700; text-decoration: none; }

.page { min-height: 100vh; background: var(--paper); padding: 28px 16px 80px; }
.shell { max-width: 780px; margin: 0 auto; }

/* ---------- HERO ---------- */
.hero { text-align: center; margin-bottom: 34px; }
.hero-frame {
  display: inline-block;
  border: 4px solid var(--ink);
  border-radius: 8px;
  box-shadow: 9px 9px 0 var(--coral);
  background: #faf4e4;
  padding: 10px;
  transform: rotate(-1deg);
}
.hero-frame img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 3px;
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(34px, 8vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 30px 0 0;
}
.hero h1 span { color: var(--blue); }
.hero p {
  max-width: 560px;
  margin: 20px auto 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  text-wrap: pretty;
}

/* ---------- CARD ---------- */
.card {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 6px 6px 0 var(--ink);
  margin-bottom: 24px;
}
.card-head { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.card-head--tight { margin-bottom: 6px; }
.card-head h2 { font-weight: 800; font-size: 23px; margin: 0; }
.step {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 3px solid var(--ink); border-radius: 50%;
  background: var(--yellow);
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 17px;
  flex: 0 0 auto;
}
.card-sub { margin: 0 0 22px 45px; font-size: 14px; color: var(--muted); }

/* ---------- INPUTS ---------- */
label {
  display: block; font-weight: 700; font-size: 12px;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--label); margin-bottom: 7px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

input, textarea {
  width: 100%;
  padding: 13px 15px;
  font: 500 16px/1.2 'Hanken Grotesk', sans-serif;
  color: var(--ink);
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  outline: none;
}
textarea { line-height: 1.4; resize: vertical; }
input:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 99, 191, 0.18);
}
#ship-address-wrap { margin-top: 16px; }

/* ---------- MERCH ---------- */
.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.shirt {
  position: relative;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: var(--card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.shirt-img {
  position: relative;
  height: 178px;
  background: #efe9d8;
  cursor: zoom-in;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 3px solid var(--ink);
}
.shirt-img svg { filter: drop-shadow(2px 3px 0 rgba(20, 32, 43, 0.18)); }
.enlarge {
  position: absolute; bottom: 9px; right: 10px;
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; color: var(--muted);
  background: rgba(255, 253, 246, 0.9);
  border: 1.5px solid var(--ink); border-radius: 20px;
  padding: 3px 9px;
}
.shirt-body { padding: 15px 16px 17px; display: flex; flex-direction: column; flex: 1 1 auto; }
.shirt-body h3 { font-weight: 700; font-size: 17px; line-height: 1.15; margin: 0 0 2px; }
.shirt-color { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.shirt-price { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 18px; color: var(--blue); margin-bottom: 14px; }

.shirt-controls { display: flex; gap: 10px; margin-bottom: 14px; }
.shirt-controls > div:first-child { flex: 0 0 auto; }
.shirt-controls > div:last-child { flex: 1 1 auto; }
.shirt-controls label { font-size: 11px; letter-spacing: 0.04em; margin-bottom: 5px; }

select {
  appearance: none; -webkit-appearance: none;
  padding: 9px 28px 9px 12px;
  font: 700 15px/1 'Hanken Grotesk', sans-serif;
  color: var(--ink);
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2314202b' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  outline: none; cursor: pointer;
}
select.qty { width: 64px; padding-right: 26px; }
select.size { width: 100%; }
select option { color: var(--ink); }

.add-cart {
  margin-top: auto; width: 100%; padding: 12px;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 15px;
  color: var(--card);
  background: var(--blue);
  border: 2.5px solid var(--ink); border-radius: 12px;
  cursor: pointer; box-shadow: 3px 3px 0 var(--ink);
}
.add-cart:hover { background: var(--blue-dark); }
.add-cart:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

/* ---------- DELIVERY ---------- */
.ship-toggle {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  padding: 15px 16px;
  border: 2.5px solid var(--ink); border-radius: 14px;
  background: var(--card-soft);
  text-transform: none; font-weight: 400; letter-spacing: 0; color: var(--ink);
  margin-bottom: 0;
}
.ship-toggle input { width: 24px; height: 24px; accent-color: var(--coral); flex: 0 0 auto; cursor: pointer; }
.ship-copy { flex: 1 1 auto; }
.ship-title { display: block; font-weight: 700; font-size: 16px; }
.ship-note { display: block; font-size: 13px; color: var(--muted); }
.ship-price { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 18px; color: var(--blue); flex: 0 0 auto; }

/* ---------- ORDER SUMMARY ---------- */
.summary {
  background: var(--ink);
  box-shadow: 6px 6px 0 var(--coral);
  color: var(--paper);
  padding: 24px 26px;
}
.summary h2 { font-weight: 800; font-size: 23px; margin: 0 0 14px; }
.cart-empty { text-align: center; padding: 20px 0 8px; color: #c2c9d1; font-size: 15px; }

.cart-line {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1.5px dashed rgba(241, 233, 211, 0.28);
}
.cart-swatch { flex: 0 0 auto; width: 42px; height: 42px; border: 2.5px solid var(--paper); border-radius: 10px; }
.cart-info { flex: 1 1 auto; min-width: 0; }
.cart-name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-meta { font-size: 13px; color: #aab2bb; }
.stepper { flex: 0 0 auto; display: flex; align-items: center; border: 2px solid var(--paper); border-radius: 9px; overflow: hidden; }
.stepper button {
  width: 30px; height: 30px; border: none;
  background: var(--paper); color: var(--ink);
  font-size: 19px; font-weight: 800; cursor: pointer; line-height: 1;
}
.stepper .qty-val {
  min-width: 26px; text-align: center; font-weight: 800; font-size: 15px;
  color: var(--ink); background: var(--paper);
  align-self: stretch; display: flex; align-items: center; justify-content: center;
}
.cart-remove {
  flex: 0 0 auto; width: 30px; height: 30px;
  border: 2px solid rgba(241, 233, 211, 0.5); border-radius: 8px;
  background: transparent; color: var(--paper);
  font-size: 16px; font-weight: 800; cursor: pointer; line-height: 1;
}

.sum-row { display: flex; justify-content: space-between; align-items: center; font-size: 15px; padding: 16px 0 10px; }
.sum-row--rule { padding: 0 0 14px; border-bottom: 1.5px dashed rgba(241, 233, 211, 0.35); }
.muted { opacity: 0.85; }
.bold { font-weight: 700; }
.nowrap { white-space: nowrap; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; }
.sum-total-label { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 22px; }
.sum-total-value { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 34px; color: var(--yellow); }

/* ---------- PAYMENT ---------- */
.pay {
  background: var(--card-soft);
  border: 3px dashed var(--ink);
  box-shadow: none;
}
.pay h2 { font-weight: 800; font-size: 20px; margin: 0 0 6px; }
.pay p { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: var(--body); }
.pay p:last-child { margin-bottom: 0; }
.pay p.bold { font-weight: 700; }

/* ---------- SUBMIT ---------- */
.error {
  background: #fde3e6; border: 2.5px solid var(--coral); border-radius: 14px;
  padding: 14px 18px; margin-bottom: 16px;
  color: #b32338; font-weight: 700; font-size: 15px; text-align: center;
}
.cf-turnstile { display: flex; justify-content: center; margin-bottom: 16px; }
.place-order {
  width: 100%; padding: 20px;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: 0.01em;
  color: var(--card);
  background: var(--coral);
  border: 3px solid var(--ink); border-radius: 18px;
  box-shadow: 6px 6px 0 var(--ink); cursor: pointer;
}
.place-order:hover { background: var(--coral-dark); }
.place-order:active { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--ink); }
.place-order:disabled { opacity: 0.55; cursor: not-allowed; }
.footnote { text-align: center; margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- MODAL ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(20, 32, 43, 0.62);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-card {
  position: relative; width: 100%; max-width: 420px;
  background: var(--card);
  border: 3px solid var(--ink); border-radius: 22px;
  box-shadow: 9px 9px 0 var(--coral); overflow: hidden;
}
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 38px; height: 38px;
  border: 2.5px solid var(--ink); border-radius: 50%;
  background: var(--card); font-size: 20px; font-weight: 800; cursor: pointer; line-height: 1;
}
.modal-img {
  height: 300px; background: #efe9d8;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 3px solid var(--ink);
}
.modal-img svg { filter: drop-shadow(3px 5px 0 rgba(20, 32, 43, 0.18)); }
.modal-body { padding: 22px 24px 26px; }
.modal-body h3 { font-weight: 800; font-size: 24px; margin: 0 0 4px; }
.modal-price { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 20px; color: var(--blue); margin-bottom: 16px; }
.modal-body p { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: var(--body); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px; font-weight: 700; color: var(--body);
  background: var(--card-soft); border: 2px solid var(--ink); border-radius: 20px; padding: 5px 13px;
}

/* ---------- SUCCESS ---------- */
.success {
  position: fixed; inset: 0; z-index: 60;
  background: var(--paper); overflow-y: auto;
  padding: 44px 16px 64px;
  font-family: 'Hanken Grotesk', sans-serif; color: var(--ink);
}
.success-inner { max-width: 540px; margin: 0 auto; }
.success-head { text-align: center; margin-bottom: 30px; }
.success-check {
  width: 74px; height: 74px; margin: 0 auto 16px;
  border: 3px solid var(--ink); border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; color: var(--card); box-shadow: 5px 5px 0 var(--ink);
}
.success-head h1 { font-weight: 800; font-size: clamp(32px, 7vw, 46px); line-height: 0.98; margin: 0; }
.success-head p { max-width: 420px; margin: 14px auto 0; font-size: 16px; line-height: 1.55; color: var(--body); }

.success-order { box-shadow: 6px 6px 0 var(--ink); padding: 24px 26px; }
.success-order h2 { font-weight: 800; font-size: 20px; margin: 0 0 12px; }
.success-line {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid #e7dcc1; font-size: 15px;
}
.success-line .lbl { color: var(--body); }
.success-line .qty { color: var(--muted); }
.success-line .amt { font-weight: 700; white-space: nowrap; }
.success-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; }
.success-total-label { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 20px; }
.success-total-value { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 30px; color: var(--blue); white-space: nowrap; }

.pay-details {
  background: var(--ink); border: 3px solid var(--ink); border-radius: 22px;
  padding: 24px 26px; box-shadow: 6px 6px 0 var(--yellow);
  margin-bottom: 22px; color: var(--paper);
}
.pay-details h2 { font-weight: 800; font-size: 20px; margin: 0 0 6px; color: var(--yellow); }
.pay-details > p { margin: 0 0 16px; font-size: 15px; line-height: 1.55; opacity: 0.9; }
.hl { color: var(--yellow); }
.hl-light { color: var(--card); }
.pay-box { background: var(--card); border: 2.5px solid var(--ink); border-radius: 14px; padding: 6px 18px; color: var(--ink); }
.pay-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #e7dcc1; }
.pay-row--last { border-bottom: none; }
.pay-key { color: var(--label); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.pay-val { font-weight: 700; font-size: 16px; white-space: nowrap; }
.pay-val.nums { font-variant-numeric: tabular-nums; }
.pay-ref { color: var(--coral); }
.pay-fine { margin: 16px 0 0; font-size: 14px; line-height: 1.55; opacity: 0.82; }

.success-thanks { margin: 0 0 10px; font-size: 16px; line-height: 1.6; color: var(--body); font-weight: 700; text-align: center; }
.success-insta { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body); text-align: center; }

[hidden] { display: none !important; }
