/* PACT Shop — basisstijl (zelfde huisstijl als outdoorpact.nl: donker, schuine vormen, Jost) */
/* Lettertype Jost (SIL Open Font License, assets/fonts/OFL.txt), zelf gehost. */
@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("/assets/fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("/assets/fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #1f1f1f; --vlak: #2b2b2b; --vlak-2: #353535; --lijn: #444;
  --tekst: #ffffff; --stil: #a3a3a3;
  --rood: #f44337; --blauw: #55aff6; --groen: #8bc34a; --oranje: #fa6b20;
  --foto: #ffffff;
  --font: "Jost", "Futura", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--tekst); font-family: var(--font); font-size: 16px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blauw); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* kop */
header.kop { position: sticky; top: 0; z-index: 20; background: rgba(31,31,31,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--lijn); }
header.kop .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { height: 34px; width: auto; display: block; }
.logo span { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; color: var(--stil); border-left: 1px solid var(--lijn); padding-left: 12px; }
.wagen-knop { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--vlak); border: 0; padding: 8px 16px; font-weight: 600; clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%); }
.wagen-knop b { background: var(--rood); min-width: 22px; height: 22px; border-radius: 11px; display: inline-grid; place-items: center; font-size: 12px; padding: 0 6px; }

/* knoppen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; padding: 12px 28px; background: var(--rood); color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%); }
.btn:hover { filter: brightness(1.1); }
.btn[disabled] { background: var(--vlak-2); color: var(--stil); cursor: not-allowed; filter: none; }
.btn.stil { background: var(--vlak-2); color: var(--tekst); }
.btn.klein { padding: 8px 18px; font-size: 14px; }
.link { background: none; border: 0; padding: 0; color: var(--stil); text-decoration: underline; }
/* Een schuine vorm (clip-path) knipt ook de focusrand weg; bij focus met het toetsenbord even recht. */
:is(.btn, .chip, .wagen-knop):focus-visible { clip-path: none; outline: 2px solid #fff; outline-offset: 3px; }

/* winkel */
.hero { padding-block: 40px 24px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1; margin: 0; text-transform: uppercase; font-weight: 800; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--rood); }
.hero p { color: var(--stil); max-width: 60ch; margin: 12px 0 0; font-size: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 8px 24px; }
.chip { border: 0; background: var(--vlak); padding: 6px 16px; font-weight: 500; clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); }
.chip[aria-pressed="true"] { background: var(--tekst); color: #111; }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; padding-bottom: 64px; }
.kaart { position: relative; display: flex; flex-direction: column; background: var(--vlak); }
.kaart > a { display: flex; flex-direction: column; flex: 1; text-decoration: none; }
.kaart .foto { aspect-ratio: 1; background: var(--foto); display: grid; place-items: center; overflow: hidden; max-width: 100%; }
.kaart .foto img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.kaart:hover .foto img { transform: scale(1.04); }
.kaart .tekst { padding: 16px; display: grid; gap: 4px; }
.kaart h3 { margin: 0; font-size: 18px; line-height: 1.25; font-weight: 600; }
.kaart .sub { color: var(--stil); font-size: 14px; }
.prijs { font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.prijs s { color: var(--stil); font-weight: 400; margin-right: 6px; font-size: .85em; }
.actie-label { position: absolute; top: 12px; left: 12px; background: var(--rood); color: #fff; font-weight: 700; font-size: 13px; padding: 2px 12px; text-transform: uppercase; clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); }
.leeg { color: var(--stil); text-align: center; padding: 48px 0; }
.laden { color: var(--stil); padding-block: 64px; text-align: center; }

/* productpagina */
.terug { padding-block: 24px 8px; }
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; padding-bottom: 64px; }
.galerij .groot { background: var(--foto); aspect-ratio: 1; display: grid; place-items: center; max-width: 100%; }
.galerij .groot img { width: 100%; height: 100%; object-fit: contain; }
.duimen { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.duimen button { width: 72px; height: 72px; padding: 0; border: 2px solid transparent; background: var(--foto); }
.duimen button[aria-pressed="true"] { border-color: var(--rood); }
.duimen img { width: 100%; height: 100%; object-fit: contain; }
.info .eyebrow { color: var(--rood); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: 13px; }
.info h1 { margin: 4px 0 8px; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; text-transform: uppercase; font-weight: 800; text-wrap: balance; }
.info .prijs { font-size: 26px; }
.info .oms { color: var(--stil); max-width: 52ch; }
.info .oms p { margin: 0 0 8px; }
.keuze { margin-top: 20px; }
.keuze h4 { margin: 0 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--stil); font-weight: 600; }
.keuze h4 b { color: var(--tekst); text-transform: none; letter-spacing: 0; font-weight: 600; margin-left: 6px; }
.opties { display: flex; flex-wrap: wrap; gap: 8px; }
.optie { border: 1px solid var(--lijn); background: none; padding: 8px 14px; min-width: 52px; font-weight: 500; }
.optie:hover { border-color: var(--tekst); }
.optie[aria-pressed="true"] { background: var(--tekst); color: #111; border-color: var(--tekst); }
.optie[disabled] { opacity: .3; text-decoration: line-through; cursor: not-allowed; }
.bestel { display: flex; gap: 12px; align-items: center; margin-top: 28px; flex-wrap: wrap; }
.aantal { display: inline-flex; align-items: center; border: 1px solid var(--lijn); }
.aantal button { background: none; border: 0; width: 40px; height: 44px; font-size: 18px; }
.aantal span { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.voorraad { margin: 12px 0 0; font-size: 14px; color: var(--groen); }
.voorraad.op { color: var(--oranje); }
.voorraad.weg { color: var(--rood); }

/* winkelwagen (la = uitschuiflade) */
.scherm { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 40; }
.la { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--vlak); z-index: 41; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px); box-shadow: -8px 0 32px rgba(0,0,0,.5); }
.la-kop { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--lijn); }
.la-kop h2 { margin: 0; font-size: 20px; text-transform: uppercase; }
.sluit { background: none; border: 0; font-size: 28px; line-height: 1; color: var(--stil); width: 40px; height: 40px; }
.la-inhoud { flex: 1; overflow-y: auto; padding: 16px 20px; }
.la-voet { border-top: 1px solid var(--lijn); padding: 16px 20px; display: grid; gap: 12px; }
.regel { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--lijn); align-items: start; }
.regel img { width: 64px; height: 64px; object-fit: contain; background: var(--foto); }
.regel h4 { margin: 0; font-size: 15px; font-weight: 600; }
.regel .var { color: var(--stil); font-size: 13px; }
.regel .aantal { margin-top: 6px; }
.regel .aantal button { width: 30px; height: 30px; font-size: 15px; }
.regel .rechts { text-align: right; display: grid; gap: 4px; justify-items: end; }
.regel .prijs { font-size: 15px; }
.totaal { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 12px 0 0; }

/* afrekenen */
.afrekenen { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; padding-block: 24px 64px; }
.afrekenen h1 { text-transform: uppercase; font-size: 32px; margin: 0 0 16px; }
.veld { display: grid; gap: 4px; margin-bottom: 14px; }
.veld label, .veld .lbl { font-size: 14px; color: var(--stil); }
.veld input, .veld select, .veld textarea { background: var(--bg); border: 1px solid var(--lijn); padding: 10px 12px; width: 100%; min-width: 0; }
.veld input:focus, .veld textarea:focus, .veld select:focus { border-color: var(--blauw); outline: none; }
.twee { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--lijn); margin-bottom: 8px; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--tekst); }
.samenvatting { background: var(--vlak); padding: 20px; align-self: start; }
.samenvatting h2 { margin: 0 0 8px; font-size: 18px; text-transform: uppercase; }
.melding { background: rgba(85,175,246,.1); border-left: 3px solid var(--blauw); padding: 10px 14px; font-size: 14px; color: #cfe6fb; margin-block: 12px; }
.klaar { padding-block: 64px; text-align: center; max-width: 560px; margin: 0 auto; }
.klaar h1 { font-size: 44px; text-transform: uppercase; margin: 0 0 8px; }
.klaar .nr { font-size: 14px; color: var(--stil); letter-spacing: .1em; text-transform: uppercase; }

/* voet */
footer.voet { border-top: 1px solid var(--lijn); color: var(--stil); font-size: 14px; }
footer.voet .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-block: 24px; }
footer.voet a { color: var(--stil); }

/* melding onderin */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); background: #f5f5f5; color: #111; padding: 12px 16px; z-index: 60; display: flex; gap: 16px; align-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.5); max-width: calc(100% - 32px); font-size: 15px; }
.toast button { background: none; border: 0; color: #0b5fa5; font-weight: 700; text-decoration: underline; white-space: nowrap; }

@media (max-width: 760px) {
  .product, .afrekenen { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .twee { grid-template-columns: 1fr; }
  .logo span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.actie-label.uitverkocht { left: auto; right: 12px; background: #111; color: var(--stil); }

/* demo-balk (site.json "demo": true) */
.demo { margin: 0; padding: 8px 16px; text-align: center; font-size: 14px; background: var(--oranje); color: #fff; }
.demo b { text-transform: uppercase; letter-spacing: .08em; margin-right: 8px; }
