/* Uncle Sam webshop
   Kleuren uit het café: biljartlaken, bruin hout, neonrood. */
:root {
  --felt: #14533b;
  --felt-deep: #0d3a29;
  --wood: #3a2419;
  --wood-light: #5a3a28;
  --neon: #d62839;
  --neon-dark: #b11d2d;
  --brass: #8a5a12;
  --paper: #ffffff;
  --surface: #f2f5f1;
  --line: #d6ddd6;
  --ink: #1d1b19;
  --muted: #5b625d;
  --ok: #1d6b46;
  --display: "Alfa Slab One", "Rockwell", "Roboto Slab", Georgia, serif;
  --body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 6px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: var(--felt); text-underline-offset: 3px; }
a:hover { color: var(--neon-dark); }
:focus-visible { outline: 3px solid var(--neon); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding-top: 40px; padding-bottom: 48px; }
.section-title { margin-bottom: 20px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { background: var(--wood); color: #fff; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; color: #fff; text-decoration: none; }
.brand img { height: 56px; width: auto; }
.brand-text { font-family: var(--display); font-size: 1.6rem; }
.cart-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font-weight: 600;
  padding: 8px 12px; border: 2px solid rgba(255,255,255,.35); border-radius: 999px;
}
.cart-link:hover { color: #fff; border-color: #fff; }
.cart-count {
  min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px;
  background: var(--neon); color: #fff; font-size: .9rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.cart-count.is-empty { background: rgba(255,255,255,.2); }

.cat-nav { background: var(--wood-light); }
.cat-nav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cat-nav .wrap::-webkit-scrollbar { display: none; }
.cat-nav a {
  flex: none; color: #f3e9e1; text-decoration: none; font-weight: 600;
  padding: 12px 14px; border-bottom: 3px solid transparent;
}
.cat-nav a:hover { color: #fff; }
.cat-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--neon); }

/* ---------- Meldingen ---------- */
.notice { margin: 20px 0 0; padding: 12px 16px; border-radius: var(--radius); border-left: 5px solid var(--ok); background: #e7f2ec; }
.notice-error { border-left-color: var(--neon); background: #fbe9eb; }
.notice-closed { border-left-color: var(--brass); background: #f8f0e2; font-weight: 600; }

/* ---------- Hero: het biljartlaken met neon ---------- */
.hero {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(ellipse at 80% 120%, rgba(0,0,0,.35), transparent 55%),
    var(--felt);
  color: #fff;
  border-bottom: 10px solid var(--wood);
}
.hero-grid { display: grid; gap: 28px; padding-top: 44px; padding-bottom: 48px; align-items: center; }
.hero h1 {
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  color: #fff;
  text-shadow:
    0 0 2px #fff,
    0 0 10px rgba(214, 40, 57, .9),
    0 0 26px rgba(214, 40, 57, .65),
    0 0 48px rgba(214, 40, 57, .4);
  max-width: 14ch;
}
.hero p { font-size: 1.2rem; max-width: 46ch; color: #e6efe9; margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 4px solid var(--wood); }
@media (min-width: 820px) {
  .hero.has-image .hero-grid { grid-template-columns: 1.1fr 1fr; }
}

/* ---------- Categorieën ---------- */
.cat-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
.cat-tile {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  border-radius: var(--radius); overflow: hidden; background: var(--felt-deep);
}
.cat-photo { display: block; aspect-ratio: 16 / 10; background: var(--surface); }
.cat-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.cat-tile:hover .cat-photo img { transform: scale(1.03); }
.cat-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; color: #fff; }
.cat-name { font-family: var(--display); font-size: 1.5rem; line-height: 1.15; }
.cat-intro { color: #d5e3da; }
.cat-count { color: #a9c5b4; font-size: .95rem; }
.cat-tile:hover { color: var(--ink); }
.cat-tile:hover .cat-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.photo-empty {
  display: flex; width: 100%; height: 100%; min-height: 100%;
  align-items: center; justify-content: center;
  font-family: var(--display); font-size: 3rem; color: #b9c7bd;
  background: var(--surface);
}

/* ---------- Zo werkt het ---------- */
.how { display: grid; gap: 24px; }
@media (min-width: 820px) { .how { grid-template-columns: 1.4fr 1fr; align-items: start; } .how .section-title { grid-column: 1 / -1; margin-bottom: 0; } }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; min-height: 40px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--neon); color: #fff;
  font-family: var(--display); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.slots-box { background: var(--surface); border-radius: var(--radius); padding: 18px 20px; }
.slots-box ul { margin: 0; padding-left: 1.1em; }
.slots-box li + li { margin-top: 4px; }

/* ---------- Producten ---------- */
.page-head { margin-bottom: 24px; max-width: 60ch; }
.page-head p { color: var(--muted); font-size: 1.1rem; }
.product-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 820px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
.product-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.product-photo { display: block; aspect-ratio: 1 / 1; background: var(--surface); }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 12px 14px 14px; }
.product-name { font-family: var(--body); font-weight: 700; font-size: 1.05rem; line-height: 1.3; margin: 0 0 2px; }
.product-name a { color: var(--ink); text-decoration: none; }
.product-name a:hover { text-decoration: underline; }
.product-unit { color: var(--muted); font-size: .95rem; margin: 0; }
.price { font-weight: 700; color: var(--brass); font-size: 1.15rem; margin: 6px 0 0; }
.price-large { font-size: 1.6rem; margin: 8px 0 4px; }
.stock { font-size: .9rem; font-weight: 600; color: var(--neon-dark); margin: 2px 0 0; }
.quick-add { margin-top: auto; padding-top: 12px; }
.is-sold-out .product-photo img { filter: grayscale(1) opacity(.6); }

.crumb { margin-bottom: 18px; }
.product-detail { display: grid; gap: 28px; }
@media (min-width: 820px) { .product-detail { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.gallery-main { aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumb { flex: none; width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; cursor: pointer; background: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--neon); }
.add-form { margin: 18px 0 10px; }
.add-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.qty-row { display: flex; gap: 10px; }
.qty-row input { width: 90px; }
.description { margin-top: 22px; max-width: 60ch; }
.allergens { margin-top: 14px; padding: 10px 14px; background: var(--surface); border-radius: var(--radius); font-size: .97rem; }

/* ---------- Knoppen en velden ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 22px;
  font: 700 1.05rem var(--body); color: #fff; text-decoration: none;
  background: var(--neon); border: 2px solid var(--neon); border-radius: var(--radius); cursor: pointer;
}
.btn:hover { background: var(--neon-dark); border-color: var(--neon-dark); color: #fff; }
.btn-small { min-height: 42px; padding: 8px 14px; font-size: .97rem; width: 100%; }
.btn-ghost { background: transparent; color: var(--felt); border-color: var(--felt); }
.btn-ghost:hover { background: var(--felt); border-color: var(--felt); color: #fff; }
.btn-wide { width: 100%; margin-top: 18px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .92rem; }
.link-btn:hover { color: var(--neon-dark); }

input[type=text], input:not([type]), input[type=email], input[type=tel], input[type=number], input[type=password], textarea, select {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; color: var(--ink); background: #fff;
  border: 2px solid var(--line); border-radius: var(--radius);
}
input:focus, textarea:focus, select:focus { border-color: var(--felt); outline: none; box-shadow: 0 0 0 3px rgba(20, 83, 59, .2); }
[aria-invalid="true"] { border-color: var(--neon) !important; }

/* ---------- Winkelmand ---------- */
.cart-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-line {
  display: grid; gap: 4px 14px; align-items: center;
  grid-template-columns: 64px 1fr auto;
  grid-template-areas: "thumb info info" "thumb qty sub" ". remove remove";
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cart-thumb { grid-area: thumb; width: 64px; height: 64px; border-radius: 4px; overflow: hidden; background: var(--surface); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .photo-empty { font-size: 1.5rem; }
.cart-info { grid-area: info; display: flex; flex-direction: column; }
.cart-name { font-weight: 700; color: var(--ink); text-decoration: none; }
.cart-qty { grid-area: qty; }
.cart-qty input { width: 84px; min-height: 42px; }
.cart-sub { grid-area: sub; font-weight: 700; text-align: right; }
.cart-line .link-btn { grid-area: remove; justify-self: start; }
@media (min-width: 640px) {
  .cart-line { grid-template-columns: 72px 1fr 96px 100px auto; grid-template-areas: "thumb info qty sub remove"; }
  .cart-thumb { width: 72px; height: 72px; }
}
.cart-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0; }
.cart-total { margin: 0; font-size: 1.2rem; }
.cart-total strong { font-size: 1.5rem; margin-left: 8px; }
.cart-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.cart-actions .btn { flex: 1 1 200px; }
.empty { font-size: 1.1rem; }

/* ---------- Afrekenen ---------- */
.checkout-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .checkout-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } .summary { position: sticky; top: 20px; } }
fieldset { border: 0; padding: 0; margin: 0 0 24px; }
legend { font-family: var(--display); font-size: 1.3rem; margin-bottom: 10px; padding: 0; }
.checkout-form label { display: block; font-weight: 600; margin: 14px 0 6px; }
.field-error { color: var(--neon-dark); font-weight: 600; font-size: .95rem; margin: 6px 0 0; }
.slot-options { display: grid; gap: 8px; }
.checkout-form .slot-option {
  display: flex; align-items: center; gap: 12px; margin: 0;
  padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; font-weight: 500;
}
.slot-option:has(input:checked) { border-color: var(--felt); background: #eaf2ed; }
.slot-option input, .check input { width: 22px; height: 22px; accent-color: var(--felt); flex: none; }
.checkout-form .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; margin-top: 20px; }
.pay-box { margin-top: 22px; padding: 16px 18px; border-left: 5px solid var(--felt); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.pay-box h2 { font-size: 1.15rem; margin-bottom: 6px; }
.pay-box p { margin: 0; }
.hp { position: absolute; left: -9999px; }

.summary { background: var(--surface); border-radius: var(--radius); padding: 20px; }
.summary h2 { font-size: 1.25rem; }
.summary ul { list-style: none; margin: 0 0 12px; padding: 0; }
.summary li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.summary-total { display: flex; justify-content: space-between; font-size: 1.2rem; }

.thanks .lead { font-size: 1.2rem; }
.thanks .summary { margin: 24px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--wood); color: #eadfd6; padding: 36px 0 20px; margin-top: 40px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-name { font-family: var(--display); font-size: 1.3rem; color: #fff; margin-bottom: 6px; }
.footer-grid p { margin: 0 0 6px; }
.footer-small { margin-top: 18px; font-size: .9rem; color: #bda999; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
