/* Copyright (c) 2026 Qaintai (KvK 42020679)
   Ongeautoriseerd gebruik, kopieren of distribueren is verboden.
   Unauthorized use, copying or distribution is prohibited.
   Unautorisierte Nutzung, Kopierung oder Verbreitung ist untersagt.
   Alle rechten voorbehouden. | All rights reserved. | Alle Rechte vorbehalten.
   versie 2 · 2026-10-05

   wshop.css - een stijl voor elke shop. De kleuren zijn variabelen die de
   shop met shop.json overschrijft. */

:root {
  --primary: #2563eb;
  --primaryhover: #1d4ed8;
  --success: #16a34a;
  --background: #ffffff;
  --panel: #f6f7f9;
  --border: #e3e6eb;
  --text: #15181e;
  --muted: #6b7280;
  --fout: #b42318;
  --rond: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--primary); }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
h1 { font-size: 1.6rem; margin: 0 0 0.75rem; line-height: 1.25; }
h2 { margin: 0; }

.verborgen { display: none !important; }
.klein { font-size: 0.85rem; color: var(--muted); }

/* ---------- kop en voet ---------- */

.kop {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 16px;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.sitelink {
  flex: none;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}
.sitelink:hover { color: var(--text); }

.shopnaam {
  flex: 1;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.wagenknop {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.wagenknop:hover { background: var(--primaryhover); }

.teller {
  min-width: 1.5rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  text-align: center;
  font-size: 0.85rem;
}
.teller.aan { background: #fff; color: var(--primary); }

.inhoud {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 16px 2.5rem;
}
.inhoud.smal { max-width: 720px; }

.voet {
  padding: 1rem 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.melding { margin: 0.75rem 0; color: var(--muted); }
.melding.fout { color: var(--fout); font-weight: 600; }

.terug { display: inline-block; margin-bottom: 1rem; text-decoration: none; }

/* ---------- knoppen ---------- */

.knop, .hoofdknop {
  display: inline-block;
  border: 0;
  border-radius: var(--rond);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}
.knop { padding: 0.45rem 0.8rem; font-size: 0.9rem; }
.hoofdknop { padding: 0.8rem 1.4rem; margin-top: 1rem; }
.knop:hover:not(:disabled), .hoofdknop:hover:not(:disabled) { background: var(--primaryhover); }
.knop.gelukt { background: var(--success); }
.knop.licht { background: var(--panel); color: var(--text); border: 1px solid var(--border); }

.label {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
}

.prijs { font-weight: 700; font-variant-numeric: tabular-nums; }
.prijs.groot { font-size: 1.6rem; margin-top: 0.75rem; }

.geenfoto {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  color: var(--muted);
  font-size: 2.5rem;
  font-weight: 700;
}

/* ---------- filter ---------- */

.filterbalk { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.25rem; }
.filterbalk select {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--rond);
  background: var(--background);
  color: var(--text);
  font: inherit;
}

.raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.kaart {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--rond);
  overflow: hidden;
  background: var(--background);
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}
.kaart:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); transform: translateY(-2px); }

.kaartfoto { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--panel); }

.kaartinfo { display: flex; flex-direction: column; gap: 0.4rem; padding: 0.9rem; flex: 1; }
.kaartinfo .knop { margin-top: auto; }
.kaartnaam { font-size: 1rem; font-weight: 600; line-height: 1.3; }

/* ---------- shelf en carousel ---------- */

.plankbuiten { position: relative; display: flex; align-items: center; gap: 0.5rem; }

.plank {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 0.25rem 1rem;
  flex: 1;
}
.plank > * { scroll-snap-align: start; }

.plankknop {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--background);
  color: var(--text);
  font-size: 1.1rem;
}
.plankknop:hover { background: var(--panel); }

.carrousel { flex: 1; min-width: 0; }

.dia {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--rond);
  cursor: pointer;
}
.diafoto { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--panel); border-radius: var(--rond); }
.diainfo { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.dianr { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.1em; }
.dianaam { font-size: 1.5rem; }

.stippen { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.stip { width: 0.7rem; height: 0.7rem; padding: 0; border: 0; border-radius: 50%; background: var(--border); }
.stip.aan { background: var(--primary); }

/* ---------- flip ---------- */

.flip { perspective: 1000px; aspect-ratio: 3 / 4; cursor: pointer; }
.flipbinnen {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.5s;
  transform-style: preserve-3d;
}
.flip.om .flipbinnen { transform: rotateY(180deg); }
.flipvoor, .flipachter {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border: 1px solid var(--border);
  border-radius: var(--rond);
  overflow: hidden;
}
.flipvoor .kaartfoto { height: 100%; aspect-ratio: auto; }
.flipachter {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  text-align: center;
  background: var(--panel);
}

/* ---------- masonry ---------- */

.muur { columns: 3 240px; column-gap: 1.25rem; }
.steen {
  position: relative;
  break-inside: avoid;
  margin-bottom: 1.25rem;
  border-radius: var(--rond);
  overflow: hidden;
  cursor: pointer;
  background: var(--panel);
}
.steenfoto { width: 100%; }
.steen .geenfoto { aspect-ratio: 1; }
.steenover {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.8rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
}
.steennaam { font-weight: 600; }

/* ---------- gallery ---------- */

.galerij { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; }
.duim {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: var(--rond);
  overflow: hidden;
  background: var(--panel);
  text-align: left;
}
.duimfoto { width: 100%; aspect-ratio: 1; object-fit: cover; }
.duimnaam {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.4rem 0.6rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.85rem;
}

.lichtbak {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 16px;
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
}
.lichtmidden { display: flex; align-items: center; gap: 1rem; max-width: 100%; }
.lichtbeeld { max-width: min(80vw, 640px); }
.lichtfoto { max-height: 65vh; object-fit: contain; background: #fff; border-radius: var(--rond); }
.lichtinfo { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem; }
.lichtinfo .klein { color: #ccc; }
.lichtdicht {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ---------- productpagina ---------- */

.productblok { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.productfoto { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--panel); border-radius: var(--rond); }
.productinfo { display: flex; flex-direction: column; align-items: flex-start; }
.labels { margin-bottom: 0.25rem; }
.omschrijving { margin: 1rem 0 0; }
.voorraad { margin-top: 0.75rem; font-weight: 600; }
.voorraad.ja { color: var(--success); }
.voorraad.nee { color: var(--fout); }

.aantalrij { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1rem; }
.aantalknop {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--border);
  border-radius: var(--rond);
  background: var(--background);
  color: var(--text);
}
.aantal { min-width: 2rem; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- winkelwagen en bestellen ---------- */

.wagenrij {
  display: grid;
  grid-template-columns: 64px 1fr auto auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.wagenfoto { width: 64px; height: 64px; object-fit: contain; background: var(--panel); border-radius: 8px; font-size: 1.4rem; }
.wagennaam { color: var(--text); text-decoration: none; font-weight: 600; }
.wagenrij .aantalrij { margin-top: 0; }
.wagenbedrag { font-weight: 700; font-variant-numeric: tabular-nums; }
.wegknop { border: 0; background: none; color: var(--muted); font-size: 1rem; }
.wegknop:hover { color: var(--fout); }

.totaal { margin-top: 1rem; padding: 1rem; background: var(--panel); border-radius: var(--rond); }
.totaalrij { display: flex; justify-content: space-between; gap: 1rem; padding: 0.2rem 0; font-variant-numeric: tabular-nums; }
.totaalrij.sterk { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--border); margin-top: 0.4rem; padding-top: 0.6rem; }
#samenvatting { margin-bottom: 1.5rem; }

.formulier { display: flex; flex-direction: column; gap: 0.9rem; }
.formulier label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 600; font-size: 0.9rem; }
.formulier input {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--rond);
  background: var(--background);
  color: var(--text);
  font: inherit;
  font-weight: 400;
}
.formulier input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.tweeluik { display: grid; grid-template-columns: 1fr 2fr; gap: 0.9rem; }
.formulier fieldset { border: 1px solid var(--border); border-radius: var(--rond); padding: 0.75rem 1rem; }
.formulier legend { font-weight: 600; font-size: 0.9rem; }
.formulier label.keuze { flex-direction: row; align-items: center; font-weight: 400; }
.uitleg { margin: 0; font-size: 0.9rem; color: var(--muted); }
.honing { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- smal scherm ---------- */

@media (max-width: 700px) {
  .productblok, .dia { grid-template-columns: 1fr; gap: 1.25rem; }
  .raster { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; }
  .plankknop { display: none; }
  .wagenrij { grid-template-columns: 56px 1fr auto; gap: 0.5rem 0.75rem; }
  .wagenfoto { width: 56px; height: 56px; }
  .wagenrij .aantalrij { grid-column: 2; }
  .wagenrij .wagenbedrag { grid-column: 3; grid-row: 1; }
  .wegknop { grid-column: 3; grid-row: 2; justify-self: end; }
  .tweeluik { grid-template-columns: 1fr; }
  .lichtmidden .plankknop { display: none; }
}
