:root {
  --navy: #173b85; --navy-d: #0e2558; --cream: #f4efe2; --paper: #fbf8f1; --ink: #14213d;
  --muted: #55607a; --line: #e2dccd; --red: #c0392b; --red-d: #962d22; --green: #2e7d4f;
  --r: 18px; --shadow: 0 6px 24px rgba(14, 37, 88, .10);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.55 "Jost", system-ui, sans-serif; color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.marker { font-family: "Permanent Marker", "Jost", cursive; font-weight: 400; color: var(--navy); font-size: clamp(28px, 4.4vw, 42px); line-height: 1.1; margin: 0 0 8px; }
.section-lead { color: var(--muted); margin: 0 0 24px; max-width: 640px; }
.small { font-size: 14px; color: var(--muted); }
section { padding: 56px 0 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 999px; padding: 12px 22px; font: 600 16px "Jost", sans-serif; cursor: pointer; text-decoration: none; transition: transform .15s, background .15s; }
.btn:active { transform: scale(.97); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--cream); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-d); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-d); }
.btn-wide { width: 100%; padding: 15px; font-size: 18px; }
.btn:disabled { opacity: .6; cursor: wait; }
.badge { display: inline-block; margin: 0 0 14px; padding: 5px 14px; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.badge-red { background: var(--red); }

/* hero */
.hero { position: relative; background: var(--navy); color: #fff; padding: 48px 0 70px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; }
.hero h1 { font-family: "Permanent Marker", cursive; font-weight: 400; font-size: clamp(38px, 6.4vw, 70px); line-height: 1; margin: 0 0 16px; }
.hero h1 span { display: block; font-size: .48em; margin-top: 10px; color: var(--cream); }
.lead { font-size: clamp(18px, 2.2vw, 21px); max-width: 520px; margin: 0 0 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.goal { margin-top: 26px; max-width: 480px; }
.goal-txt { margin: 0 0 8px; font-size: 16px; }
.goal-bar { height: 14px; background: rgba(255,255,255,.18); border-radius: 999px; overflow: hidden; }
.goal-bar span { display: block; height: 100%; width: 3%; background: linear-gradient(90deg, #2e9e5b 0 33%, #fff 33% 66%, #d94436 66%); border-radius: 999px; transition: width 1s ease; }
.counter { margin: 20px 0 0; padding: 10px 16px; background: rgba(255,255,255,.12); border-radius: 12px; display: inline-block; }
.hero-img img { border-radius: var(--r); box-shadow: 0 18px 50px rgba(0,0,0,.35); background: var(--cream); }
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 48px; fill: var(--paper); }

/* cause */
.cause-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 16px; }
.cause-card { background: #fff; border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); border-top: 5px solid var(--navy); }
.cause-card:nth-child(2) { border-top-color: var(--green); }
.cause-card:nth-child(3) { border-top-color: var(--red); }
.cause-card h3 { margin: 6px 0 4px; font-size: 20px; }
.cause-card p { margin: 0; color: var(--muted); }
.big { font-size: 34px; }

/* christmas */
.xmas { margin-top: 48px; padding: 52px 0; background:
  radial-gradient(circle at 8% 20%, rgba(255,255,255,.7) 0 2px, transparent 3px) 0 0/46px 46px,
  linear-gradient(#fdf3ee, #f8e7df); }
.xmas .marker { color: var(--red-d); }
.bundle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.bundle { background: #fff; border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; border: 2px solid transparent; }
.bundle:hover { border-color: #f0c9bd; }
.bundle-top { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
.bundle-emoji { font-size: 34px; line-height: 1; }
.bundle h3 { margin: 0; font-size: 21px; }
.bundle .desc { margin: 2px 0 0; }
.bundle-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.bundle-price s { color: var(--muted); font-size: 15px; }
.bundle-price strong { font-size: 28px; color: var(--red-d); line-height: 1.1; }
.save { background: var(--green); color: #fff; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 9px; margin-top: 4px; white-space: nowrap; }
.thumbs { display: flex; gap: 8px; overflow: hidden; }
.thumbs img { height: 74px; width: auto; flex: 0 1 auto; min-width: 0; object-fit: cover; border-radius: 10px; background: var(--cream); }
.bundle-pick summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 6px 0; }
.bundle-pick .picker { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 8px; }

/* products */
.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card:nth-child(n+3) { }
.card-img { background: var(--cream); aspect-ratio: 16/8; display: flex; align-items: center; justify-content: center; }
.card-img img { max-height: 100%; width: auto; object-fit: contain; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card h3 { margin: 0; font-size: 22px; }
.price { font-family: "Jost", system-ui, sans-serif; font-weight: 700; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em; font-size: 28px; color: var(--navy); white-space: nowrap; }
.bundle-price strong, .cart-price, .cart-total strong { font-family: "Jost", system-ui, sans-serif; font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
.desc { margin: 0; color: var(--muted); }
.picker { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.picker-label { width: 100%; margin: 0; font-weight: 600; font-size: 15px; }
select, input, textarea { font: inherit; color: inherit; }
select { padding: 9px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; min-width: 150px; }
.swatches { display: flex; gap: 8px; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 8px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 500; }
.swatch span::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.sw-crema span::before { background: var(--cream); }
.sw-blu span::before { background: var(--navy); }
.swatch input:checked + span { border-color: var(--navy); background: #eaf0fb; box-shadow: 0 0 0 1px var(--navy); }
.swatch input:focus-visible + span { outline: 3px solid #9bb6ea; }
.add-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: auto; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.stepper button { width: 38px; height: 38px; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--navy); }
.stepper button:hover { background: var(--cream); }
.stepper output { min-width: 26px; text-align: center; font-weight: 600; }
.add-note { margin: 0; font-size: 14px; font-weight: 500; min-height: 1em; }
.add-note.ok { color: var(--green); }
.add-note.ko { color: var(--red); }

/* order */
.order-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: start; }
.cart-box, .form-box { background: #fff; border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.cart-box { position: sticky; top: 16px; }
.cart-box h3, .form-box h3 { margin: 0 0 12px; font-size: 21px; }
.cart { list-style: none; margin: 0; padding: 0; }
.cart li { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-main { display: flex; flex-direction: column; min-width: 0; }
.cart-side { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cart-side .stepper button { width: 30px; height: 30px; font-size: 17px; }
.cart-price { min-width: 44px; text-align: right; font-weight: 600; }
.remove { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; padding: 4px; }
.remove:hover { color: var(--red); }
.cart-empty { color: var(--muted); }
.cart-total { display: flex; justify-content: space-between; font-size: 20px; margin: 14px 0 6px; }
.form-box label { display: block; font-weight: 500; margin-bottom: 14px; }
.form-box input:not([type=checkbox]):not([type=radio]), .form-box textarea { display: block; width: 100%; margin-top: 5px; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); }
.form-box input:focus, .form-box textarea:focus, select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px #d5e0f5; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; }
legend { font-weight: 500; margin-bottom: 6px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.form-box .check { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; margin-bottom: 10px; }
.checks .check { margin: 0; }
.check input { width: 19px; height: 19px; margin-top: 3px; accent-color: var(--navy); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; }
.error { color: var(--red); font-weight: 500; min-height: 1em; }

.thanks { text-align: center; max-width: 680px; padding-bottom: 40px; }
.lead-dark { font-size: 21px; }

/* sticky bar */
.bar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 16px; background: var(--navy-d); color: #fff; padding: 9px 9px 9px 22px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.3); width: max-content; max-width: calc(100% - 24px); }
.bar .btn { padding: 10px 18px; }

footer { margin-top: 64px; background: var(--navy-d); color: #dfe6f5; padding: 28px 0 90px; font-size: 15px; }
footer a { color: #fff; }
.foot p { margin: 4px 0; }

@media (max-width: 860px) {
  .hero-grid, .order-grid { grid-template-columns: 1fr; }
  .cause-grid { grid-template-columns: 1fr; }
  .bundle-grid, .prod-grid { grid-template-columns: 1fr; }
  .cart-box { position: static; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .bundle-top { grid-template-columns: auto 1fr; }
  .bundle-price { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 10px; }
  .cart li { flex-direction: column; }
  .bar { gap: 10px; padding-left: 16px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* QR code poster */
.badge-navy { background: var(--navy); }
.btn-light-b { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.qr-section { padding-top: 56px; }
.qr-sheet { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; background: #fff; border-radius: 24px; padding: 36px; box-shadow: var(--shadow); border: 3px solid var(--navy); }
.qr-lead { font-size: 22px; font-weight: 600; line-height: 1.3; margin: 6px 0 8px; color: var(--navy); }
.qr-sub { color: var(--muted); margin: 0 0 12px; }
.qr-url { font-weight: 600; word-break: break-all; margin: 0 0 16px; color: var(--navy); }
.qr-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.qr-box { background: #fff; border: 6px solid var(--navy); border-radius: 20px; padding: 14px; max-width: 360px; width: 100%; justify-self: center; }
.qr-box svg { display: block; width: 100%; height: auto; }
@media (max-width: 860px) { .qr-sheet { grid-template-columns: 1fr; padding: 22px; } }
@media print {
  body.print-qr > *:not(#qr) { display: none !important; }
  body.print-qr { background: #fff; }
  body.print-qr #qr { padding: 0; max-width: none; }
  body.print-qr .qr-sheet { box-shadow: none; grid-template-columns: 1fr; text-align: center; border-width: 6px; min-height: 96vh; align-content: center; }
  body.print-qr .qr-actions, body.print-qr .qr-text .small { display: none; }
  body.print-qr .qr-box { max-width: 70vw; }
  body.print-qr .qr-lead { font-size: 34px; }
  body.print-qr .marker { font-size: 56px; }
  body.print-qr .qr-url { font-size: 22px; }
}
