:root{
  --red:#a7192b;--red-dark:#8a1322;--red-tint:#fdeef0;
  --ink:#1f2a33;--ink-soft:#5b6670;--line:#e3e7ea;--line-soft:#eef1f3;
  --surface:#ffffff;--surface-alt:#f6f7f9;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Arial,sans-serif;
  color:var(--ink);background:var(--surface);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;overflow-x:hidden}
a{color:inherit}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.5}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--red);outline-offset:2px;border-radius:2px}
[hidden]{display:none!important}
h1,h2,h3,p{margin-top:0}
img{max-width:100%}

/* Header */
.site-header{background:var(--surface);border-bottom:1px solid var(--line);padding:16px 5% 0}
.header-top{display:flex;align-items:center;gap:18px;max-width:1180px;margin:0 auto}
.header-top img{width:180px;height:auto;display:block;flex:none}
.header-titles{display:flex;flex-direction:column;line-height:1.25}
.header-titles strong{font-size:19px;font-weight:800;letter-spacing:-.01em;color:var(--ink)}
.header-titles span{font-size:13px;color:var(--ink-soft);font-weight:600}
.header-subtitle{max-width:1180px;margin:8px auto 0;font-size:13px;color:var(--red);font-weight:650;font-style:italic}
nav{max-width:1180px;margin:14px auto 0;display:flex;align-items:center;gap:22px;font-size:14px;font-weight:650;padding-bottom:14px;overflow-x:auto}
nav a{text-decoration:none;white-space:nowrap;color:var(--ink-soft)}
nav a:hover{color:var(--red)}
.cart-link{border:1px solid var(--line);border-radius:30px;padding:9px 16px;color:var(--ink)!important;display:inline-flex;align-items:center;gap:8px}
.cart-link span{background:var(--red);color:#fff;border-radius:50%;min-width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;font-size:11px;padding:0 2px}

/* Hero */
.hero{padding:48px 6% 44px;text-align:center;background:var(--surface-alt);border-bottom:1px solid var(--line)}
.eyebrow{display:inline-block;font-size:11px;font-weight:800;letter-spacing:.14em;color:var(--red);text-transform:uppercase}
.hero h1{font-size:clamp(26px,4.4vw,42px);font-weight:800;letter-spacing:-.02em;line-height:1.18;margin:14px auto 16px;max-width:760px}
.hero p{max-width:620px;margin:0 auto 26px;font-size:15px;line-height:1.7;color:var(--ink-soft)}
.button{background:var(--red);color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:8px;padding:14px 26px;text-decoration:none;font-weight:700;font-size:14px;transition:background .15s}
.button:hover{background:var(--red-dark)}
.full{width:100%}

.section-heading{max-width:1180px;margin:0 auto 30px;display:flex;align-items:end;justify-content:space-between;gap:30px}
.section-heading.center{text-align:center;display:block}
.section-heading h2{font-size:clamp(24px,3vw,32px);font-weight:800;letter-spacing:-.02em;margin:10px 0 10px}
.section-heading p{color:var(--ink-soft);font-size:14px;line-height:1.6;max-width:620px}
.section-heading.center p{margin:0 auto}

/* Catalog */
.catalog{padding:52px 6%}
.catalog .section-heading{align-items:end}
.location-label{max-width:300px;font-size:12px;font-weight:650;color:var(--ink-soft)}
label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:650;color:var(--ink)}
select,input,textarea{border:1px solid var(--line);background:var(--surface);border-radius:7px;padding:11px 12px;width:100%;color:var(--ink)}
.products{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.product{background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .15s,transform .15s}
.product:hover{box-shadow:0 8px 24px rgba(31,42,51,.08);transform:translateY(-2px)}
.product-photo{position:relative;height:200px;background:var(--surface-alt);display:grid;place-items:center;overflow:hidden}
.product-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:14px}
.product-placeholder{font-weight:800;font-size:16px;line-height:1.35;text-align:center;color:var(--red);letter-spacing:.02em}
.product-body{padding:18px 18px 20px;display:flex;flex-direction:column;flex:1}
.availability{font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:#3a7a4e;font-weight:750;min-height:14px}
.product-body h3{font-size:17px;font-weight:800;margin:8px 0 6px}
.product-body p{font-size:13px;line-height:1.6;color:var(--ink-soft);flex:1;white-space:pre-line}
.product-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px}
.product-bottom strong{font-size:18px;font-weight:800}
.product-bottom small{display:block;font-size:10px;font-weight:650;color:var(--ink-soft);text-transform:uppercase}
.add{padding:11px 16px;color:#fff;border:0;background:var(--red);border-radius:7px;font-size:13px;font-weight:700}
.add:hover{background:var(--red-dark)}
.empty{padding:40px;background:var(--surface-alt);border-radius:10px;grid-column:1/-1;text-align:center;color:var(--ink-soft)}

/* Companies */
.companies{max-width:1180px;margin:16px auto 52px;background:var(--surface-alt);padding:36px 6%;display:grid;grid-template-columns:1.3fr 1fr;gap:36px;border-radius:12px;align-items:center}
.companies h2{font-size:22px;font-weight:800;margin:10px 0 10px}
.companies p{font-size:13.5px;line-height:1.7;color:var(--ink-soft);max-width:460px}
.companies>div:last-child{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.text-button{display:block;background:none;border:0;padding:14px 0 4px;color:var(--red);font-weight:700;font-size:13px}
.small{font-size:12px!important;line-height:1.6;color:var(--ink-soft)}

/* Checkout / cart */
.checkout{padding:16px 6% 70px;max-width:1180px;margin:0 auto;display:grid;grid-template-columns:.85fr 1.15fr;gap:36px}
.basket{align-self:start;position:sticky;top:16px;border:1px solid var(--line);border-radius:10px;padding:24px;background:var(--surface)}
.basket h2{font-size:22px;font-weight:800}
#cart-items{min-height:20px}
.cart-line{border-bottom:1px solid var(--line-soft);padding:14px 0;display:grid;gap:8px}
.cart-line>div{display:flex;gap:10px;align-items:center;justify-content:space-between}
.cart-line input{width:70px;padding:7px}
.cart-line small{color:var(--red);font-weight:650}
.remove{border:0;background:transparent;color:var(--red);font-size:12px;font-weight:650;text-decoration:underline;padding:0}
.summary-row{display:flex;justify-content:space-between;gap:16px;padding:10px 0;font-size:13.5px;border-top:1px solid var(--line-soft)}
.summary-row.total{border-top:2px solid var(--line);margin-top:4px;padding-top:14px}
.summary-row.total strong{font-size:20px;font-weight:800;color:var(--red)}
#donation-extra{padding:14px 0;border-top:1px solid var(--line-soft)}
#donation-extra label{margin-bottom:8px}

form#checkout-form{border:1px solid var(--line);border-radius:10px;padding:28px;background:var(--surface)}
form#checkout-form h2{font-size:22px;font-weight:800}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0 0 16px}
fieldset{border:0;padding:0;margin:0 0 28px}
fieldset.checkout-step{padding-top:22px;border-top:1px solid var(--line-soft)}
fieldset.checkout-step:first-of-type{padding-top:0;border-top:0}
legend{font-weight:800;font-size:15px;margin-bottom:14px;display:flex;align-items:center;gap:10px;padding:0;color:var(--ink)}
.step-number{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--red);color:#fff;font-size:12px;font-weight:800;flex:none}
.pickup-summary{font-size:13.5px;color:var(--ink-soft);background:var(--surface-alt);border-radius:7px;padding:12px 14px;margin:0}
.payment{display:flex;flex-direction:row;align-items:center;border:1px solid var(--line);padding:13px 14px;margin-bottom:8px;border-radius:8px;background:var(--surface);gap:12px;cursor:pointer}
.payment:has(input:checked){border-color:var(--red);background:var(--red-tint)}
.payment input,.check input{width:18px;height:18px;flex:none;accent-color:var(--red)}
.payment span{font-size:14px;font-weight:650}
.payment small{display:block;color:var(--ink-soft);font-weight:500;margin-top:3px;font-size:11.5px}
.check{flex-direction:row;align-items:start;font-size:12.5px;font-weight:500;line-height:1.6;color:var(--ink-soft)}
.trap{position:absolute;left:-10000px}
#form-message{color:var(--red);font-size:13.5px;line-height:1.6;font-weight:650;min-height:0}

/* Footer */
footer{background:var(--surface-alt);border-top:1px solid var(--line);padding:30px 6%;display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:13px;flex-wrap:wrap}
footer img{width:170px;height:auto}
footer p{margin:0;font-weight:650;color:var(--ink)}
footer a{color:var(--red);text-decoration:none;font-weight:650}
footer a:hover{text-decoration:underline}

/* Toast */
#toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);padding:12px 20px;border-radius:8px;background:var(--ink);color:#fff;font-size:13px;font-weight:650;display:none;z-index:30;max-width:90vw}

/* Receipt */
.receipt{max-width:680px;margin:48px auto;padding:32px 6%}
.receipt-card{border:1px solid var(--line);border-radius:12px;padding:30px;background:var(--surface)}
.receipt-card h1{font-size:24px;font-weight:800;margin:0 0 10px}
.receipt-card p{line-height:1.7;color:var(--ink-soft)}
.receipt-status{display:inline-flex;align-items:center;gap:8px;font-weight:800;font-size:13px;padding:8px 14px;border-radius:30px;margin-bottom:16px}
.receipt-status.paid{background:#e9f7ef;color:#207b46}
.receipt-status.pending{background:#fff3dc;color:#9b6515}
.receipt-status.dot{width:9px;height:9px;border-radius:50%;background:currentColor;flex:none;display:inline-block}
.receipt-rows{margin-top:18px;border-top:1px solid var(--line-soft)}
.receipt-rows .summary-row{font-size:14px}
.receipt code{overflow-wrap:anywhere;background:var(--surface-alt);padding:2px 6px;border-radius:4px;font-size:12.5px}

/* Closed shop page */
.closed-main{min-height:60vh;display:grid;place-items:center;padding:60px 6%}
.closed-card{max-width:460px;text-align:center;border:1px solid var(--line);border-radius:14px;padding:44px 32px;background:var(--surface-alt)}
.closed-dot{display:inline-block;width:12px;height:12px;border-radius:50%;background:var(--red);margin-bottom:18px}
.closed-card h1{font-size:24px;font-weight:800;margin:0 0 14px;letter-spacing:-.01em}
.closed-card p{font-size:14.5px;line-height:1.7;color:var(--ink-soft);margin:0 0 26px}
.site-header .header-text{display:flex;flex-direction:column;line-height:1.25}
.site-header .header-text strong{font-size:18px;font-weight:800}
.site-header .header-text span{font-size:13px;color:var(--ink-soft);font-weight:600}
header.site-header[class]{display:flex;align-items:center;gap:16px;padding:20px 5%}
header.site-header img{width:170px;height:auto}

/* ===== Responsive ===== */
@media(min-width:375px){.hero{padding:44px 6% 40px}}
@media(min-width:430px){.products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){
  .site-header{padding:14px 5% 0}
  .header-top img{width:140px}
  .header-titles strong{font-size:16px}
  .header-titles span{font-size:12px}
  nav{gap:14px;font-size:13px;margin-top:10px}
  .hero{padding:36px 5% 32px}
  .hero h1{font-size:clamp(22px,6vw,30px)}
  .section-heading{display:block}
  .section-heading.center{text-align:left}
  .location-label{max-width:100%;margin-top:16px}
  .products{grid-template-columns:1fr;gap:16px}
  .companies{grid-template-columns:1fr;gap:18px;padding:26px 6%;text-align:left}
  .companies>div:last-child{align-items:stretch}
  .checkout{grid-template-columns:1fr;gap:22px;padding:12px 5% 50px}
  .basket{position:static}
  form#checkout-form{padding:20px}
  .form-grid{grid-template-columns:1fr;gap:12px}
  footer{flex-direction:column;text-align:center;justify-content:center}
  .receipt{padding:24px 5%;margin:28px auto}
  .receipt-card{padding:22px}
}
@media(min-width:768px) and (max-width:1023px){
  .products{grid-template-columns:repeat(2,minmax(0,1fr))}
  .checkout{grid-template-columns:1fr;max-width:680px}
  .basket{position:static}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.product{transition:none}}
