/* ============================================================
   BurgMedia: shop.css
   Opmaak van de shoppagina's (site/shop/) en van de stukken die
   Laravel daarin invult:
     .bm-prijs     prijs incl. btw            (BM:PRIJS)
     .bm-koop      koopknop of "niet beschikbaar" (BM:KOOPKNOP)
     .bm-lijst     wachtlijstformulier, bevestiging en fouten (BM:WACHTLIJST)
     .bm-product   productkaart op het overzicht (BM:PRODUCTEN, BM:UITGELICHT)
     .bm-badge     badges op de kaart (soort, uitgelicht, Web Store...)
     .shop-filter  filterknoppen boven het raster op /shop (shop-filter.js)
   Laadt na main.css en gebruikt de tokens daaruit.
   ============================================================ */

/* ---------- Koopblok in de hero ---------- */
.shop-koopblok {
  margin-top: 34px;
  max-width: 660px;
}
.shop-koopblok__rij {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
}
.shop-koopblok__noot {
  margin-top: 16px;
  max-width: 58ch;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted-dark);
}

/* Wachtlijstpagina: het formulier staat in een eigen vlak */
.shop-koopblok--lijst {
  padding: 26px 26px 24px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: var(--ink-2);
}
.shop-koopblok__kop {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--page-tint, var(--accent));
}
.shop-koopblok__tekst {
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
}

/* ---------- Prijs (BM:PRIJS) ---------- */
.bm-prijs {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.bm-prijs__bedrag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}
.bm-prijs__btw {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.on-cream .bm-prijs__bedrag { color: var(--ink); }
.on-cream .bm-prijs__btw { color: var(--muted-cream); }

/* ---------- Koopknop (BM:KOOPKNOP) ---------- */
.bm-koop,
.bm-lijst__knop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 15px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
a.bm-koop::after {
  content: '→';
  display: inline-block;
  transition: transform 0.35s var(--ease);
}
a.bm-koop:hover,
.bm-lijst__knop:hover { background: var(--accent-hover); }
a.bm-koop:hover::after { transform: translateX(5px); }
a.bm-koop:active,
.bm-lijst__knop:active { background: var(--accent-active); }

/* Niet te koop: zelfde vorm, maar duidelijk geen knop */
.bm-koop--uit {
  background: transparent;
  border: 1px dashed var(--line-dark);
  color: var(--muted-dark);
  cursor: not-allowed;
}
.on-cream .bm-koop--uit { border-color: var(--line-cream); color: var(--muted-cream); }

/* ---------- Wachtlijst (BM:WACHTLIJST) ---------- */
.bm-lijst {
  position: relative;
  margin-top: 20px;
}
.bm-lijst__label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.bm-lijst__rij {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bm-lijst__invoer {
  flex: 1 1 240px;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--ink);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 14px 22px;
  transition: border-color 0.3s var(--ease);
}
.bm-lijst__invoer::placeholder { color: #6F6F78; }
.bm-lijst__invoer:hover { border-color: #3A3A42; }
.bm-lijst__invoer:focus { border-color: var(--accent); outline: none; }
.bm-lijst__invoer:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bm-lijst__knop { flex: 0 0 auto; }

/* Honeypot: voor mensen onzichtbaar, voor bots een gewoon veld */
.bm-lijst__hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.bm-lijst__noot {
  margin-top: 12px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted-dark);
}

.bm-lijst__ok,
.bm-lijst__fout {
  margin-top: 20px;
  padding: 15px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dark);
}
.bm-lijst__ok {
  border: 1px solid color-mix(in srgb, var(--tint-teal) 60%, transparent);
  background: color-mix(in srgb, var(--tint-teal) 14%, transparent);
}
.bm-lijst__fout {
  border: 1px solid color-mix(in srgb, var(--tint-rose) 65%, transparent);
  background: color-mix(in srgb, var(--tint-rose) 13%, transparent);
}
/* Fout staat boven het formulier: dan hoeft het formulier zelf minder ruimte */
.bm-lijst__fout + .bm-lijst { margin-top: 14px; }

.on-cream .bm-lijst__label,
.on-cream .bm-lijst__noot { color: var(--muted-cream); }
.on-cream .bm-lijst__invoer { background: var(--paper); color: var(--ink); border-color: var(--line-cream); }
.on-cream .bm-lijst__ok,
.on-cream .bm-lijst__fout { color: var(--ink); }

@media (max-width: 520px) {
  .bm-lijst__knop { flex: 1 1 100%; }
}

/* ---------- Productkaarten (BM:PRODUCTEN) ---------- */
.bm-producten {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 18px;
}
.bm-product {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 250px;
  padding: 28px 26px 24px;
  border: 1px solid var(--line-cream);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.bm-product:hover {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line-cream));
  transform: translateY(-3px);
}
.bm-product__cat {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-active);
}
.bm-product__naam {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.bm-product:hover .bm-product__naam { color: var(--accent-active); }
.bm-product__kort {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted-cream);
}
.bm-product__prijs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-cream);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.bm-product__prijs::after {
  content: '→';
  color: var(--accent);
  transition: transform 0.35s var(--ease);
}
.bm-product:hover .bm-product__prijs::after { transform: translateX(5px); }

/* Kaarten op een donkere achtergrond (voor als ze ooit elders staan) */
.on-dark .bm-product { background: var(--ink-2); border-color: var(--line-dark); color: var(--text-dark); }
.on-dark .bm-product__naam,
.on-dark .bm-product__prijs { color: var(--text-dark); }
.on-dark .bm-product__kort { color: var(--muted-dark); }
.on-dark .bm-product__prijs { border-top-color: var(--line-dark); }
.on-dark .bm-product__cat { color: var(--accent); }

/* ---------- Productpagina: details ---------- */
/* Lichte extensiekleuren (salie, amber) zijn op papier te zwak voor
   kleine cijfers: daar mengen we ze met inkt. */
.on-cream .card .n { color: color-mix(in srgb, var(--page-tint, var(--accent)) 62%, var(--ink)); }

.shop-noot {
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
  max-width: 72ch;
  padding-left: 16px;
  border-left: 2px solid var(--page-tint, var(--accent));
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted-cream);
}
.shop-noot--dark { color: var(--muted-dark); }
.shop-noot a { text-decoration: underline; text-underline-offset: 3px; }
.on-cream .shop-noot a { color: var(--ink); }
.shop-noot--dark a { color: var(--text-dark); }

/* ---------- Slotblok: terug naar de shop + aanvraag ---------- */
.shop-slot { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.shop-slot__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px 48px;
}
.shop-slot__title {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  color: var(--ink);
}
.shop-slot__tekst {
  margin-top: 12px;
  max-width: 58ch;
  line-height: 1.65;
  color: var(--muted-cream);
}
.shop-slot__tekst a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.shop-slot__tekst a:hover { color: var(--accent-active); }
.shop-slot__acties {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.shop-terug {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.shop-terug .arr { display: inline-block; transition: transform 0.35s var(--ease); }
.shop-terug:hover { color: var(--accent-active); }
.shop-terug:hover .arr { transform: translateX(-4px); }

/* ============================================================
   Productbeelden (BM:ICOON, BM:GALERIJ, icoon op BM:PRODUCTEN)
   ============================================================ */

/* ---------- Producttegel in de hero ---------- */
.shop-hero .container { position: relative; }
.bm-hero-icoon {
  position: absolute;
  right: calc(var(--gutter) + 12px);
  top: 64px;
  width: clamp(200px, 22vw, 300px);
  aspect-ratio: 1;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: rotate(3deg);
}
.bm-hero-icoon__img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1080px) {
  .bm-hero-icoon {
    position: static;
    width: 112px;
    border-radius: 22px;
    margin: 26px 0 -6px;
    transform: none;
  }
}

/* ---------- Galerij ---------- */
.bm-galerij-sectie { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.bm-galerij { display: grid; gap: 14px; }
.bm-galerij__podium {
  display: block;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: color-mix(in srgb, var(--page-tint, var(--accent)) 14%, var(--ink));
  aspect-ratio: 16 / 10;
  cursor: zoom-in;
}
.bm-galerij__groot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.25s var(--ease);
}
.bm-galerij__podium.is-wissel .bm-galerij__groot { opacity: 0; }
.bm-galerij__duimen {
  list-style: none;
  margin: 0;
  padding: 2px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.bm-galerij__duim {
  display: block;
  width: 132px;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  opacity: 0.55;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: opacity 0.25s var(--ease), outline-color 0.25s var(--ease);
  background: var(--ink-2, #17171B);
}
.bm-galerij__duim:hover, .bm-galerij__duim[aria-current="true"] { opacity: 1; }
.bm-galerij__duim[aria-current="true"] { outline-color: var(--page-tint, var(--accent)); }
.bm-galerij__duim:focus-visible { opacity: 1; outline-color: var(--accent); }
.bm-galerij__duim-img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .bm-galerij__duim { width: 96px; } }

/* ---------- Lightbox ---------- */
.bm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 56px 16px;
  background: rgba(14, 14, 16, 0.94);
  border: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
}
.bm-lightbox::backdrop { background: rgba(14, 14, 16, 0.94); }
.bm-lightbox__img { max-width: min(1600px, 100%); max-height: calc(100vh - 112px); object-fit: contain; border-radius: 10px; }
.bm-lightbox__knop {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #F4F3F0;
  font: 500 1.2rem/1 var(--font-body);
  cursor: pointer;
}
.bm-lightbox__knop:hover, .bm-lightbox__knop:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--ink); outline: none; }
.bm-lightbox__sluit { top: 14px; right: 14px; }
.bm-lightbox__vorige { left: 14px; top: 50%; transform: translateY(-50%); }
.bm-lightbox__volgende { right: 14px; top: 50%; transform: translateY(-50%); }
.bm-lightbox__teller { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.1em; color: rgba(244, 243, 240, 0.6); }

/* ---------- Icoon op de productkaart ---------- */
.bm-product__icoon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  margin-bottom: 6px;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s var(--ease);
}
.bm-product:hover .bm-product__icoon { transform: rotate(-4deg) scale(1.04); }

/* ============================================================
   Chrome-extensies (type extensie, archief /shop/chrome-extensies)
   ============================================================ */

/* Link naar het archief onder het raster op /shop/ */
.shop-alle { margin-top: clamp(1.6rem, 3vw, 2.2rem); }
.shop-alle__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 500;
  color: var(--text-dark);
  border-bottom: 1px solid var(--page-tint, var(--accent));
  padding-bottom: 2px;
}
.shop-alle__link .arr { display: inline-block; color: var(--page-tint, var(--accent)); transition: transform 0.35s var(--ease); }
.shop-alle__link:hover .arr { transform: translateX(5px); }
.on-cream .shop-alle__link { color: var(--ink); }

/* Koopblok van een extensie: privacylink naast de noot */
.shop-koopblok__links { margin-top: 10px; font-size: 0.9rem; }
.shop-koopblok__links a { color: var(--text-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.shop-koopblok__links a:hover { color: var(--page-tint, var(--accent)); }

/* Rechten in gewone taal */
.shop-rechten { margin-top: clamp(1.6rem, 3vw, 2.2rem); display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.shop-recht {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 8px 40px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-dark);
}
.shop-recht h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.3; color: var(--text-dark); }
.shop-recht p { font-size: 0.95rem; line-height: 1.65; color: var(--muted-dark); }
.shop-recht code { font-family: var(--font-mono); font-size: 0.78em; color: var(--muted-dark); }
@media (max-width: 720px) { .shop-recht { grid-template-columns: 1fr; } }

/* Andere extensies (.related uit main.css) met icoon */
.related .name .ext-naam { display: inline-flex; align-items: center; gap: 12px; }
.related .name img { width: 32px; height: 32px; border-radius: 8px; flex: none; }

/* Sneltoetsen in tekst */
.shop-ext kbd {
  font-family: var(--font-mono); font-size: 0.82em; white-space: nowrap;
  padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-dark);
}
.shop-ext .on-cream kbd { border-color: var(--line-cream); background: var(--paper); }

/* ============================================================
   Badges, filter en uitgelichte kaarten (/shop/)
   ============================================================ */
.bm-product__badges { display: flex; flex-wrap: wrap; row-gap: 4px; }
.bm-badge + .bm-badge::before { content: '\00B7'; margin: 0 0.75em; opacity: 0.6; }
.bm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
/* Het Chrome-logo, in CSS: drie kleurvlakken, witte ring, blauwe kern */
.bm-badge__chrome {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #4285F4 0 32%, #fff 33% 46%, transparent 47%),
    conic-gradient(from -60deg, #EA4335 0 120deg, #FBBC04 0 240deg, #34A853 0);
}

.bm-badge--uitgelicht { color: var(--accent); font-weight: 600; }
.bm-badge--webstore { color: #1E6B34; }
.bm-badge--binnenkort { color: var(--muted-cream); }
.bm-badge--direct { color: var(--ink); font-weight: 600; }
.bm-badge--gratis { color: #17705E; }

.on-dark .bm-badge { color: var(--text-dark); }
.on-dark .bm-badge--uitgelicht { color: var(--accent); font-weight: 600; }
.on-dark .bm-badge--direct { color: var(--text-dark); font-weight: 600; }
.on-dark .bm-badge--webstore { color: #7BD88F; }
.on-dark .bm-badge--gratis { color: var(--tint-teal); }
.on-dark .bm-badge--binnenkort { color: var(--muted-dark); }

/* Filterknoppen */
.shop-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(1.4rem, 3vw, 2rem);
}
.shop-filter[hidden] { display: none; }
.shop-filter__knop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--line-cream);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 500 0.92rem/1 var(--font-body);
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.shop-filter__knop:hover { border-color: var(--ink); }
.shop-filter__knop:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shop-filter__knop[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.shop-filter__knop[hidden] { display: none; }
.shop-filter__aantal { font: 500 0.72rem/1 var(--font-mono); opacity: 0.6; }
.shop-filter__knop .bm-badge__chrome { width: 14px; height: 14px; }

.shop-raster .bm-product[hidden] { display: none; }
.shop-raster .bm-product.is-in { animation: bm-kaart-in 0.45s var(--ease) both; }
@keyframes bm-kaart-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .shop-raster .bm-product.is-in { animation: none; } }

/* Uitgelicht: donker met de badge; de grote kaart ook twee kolommen breed en een groter icoon */
.bm-product--uitgelicht {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--text-dark);
}
.bm-product--uitgelicht:hover { border-color: var(--accent); }
.bm-product--uitgelicht .bm-product__naam { color: var(--text-dark); }
.bm-product--uitgelicht:hover .bm-product__naam { color: var(--accent); }
.bm-product--uitgelicht .bm-product__kort { color: var(--muted-dark); }
.bm-product--uitgelicht .bm-product__prijs { color: var(--text-dark); border-top-color: var(--line-dark); }
.bm-product--uitgelicht .bm-badge { color: var(--text-dark); }
.bm-product--uitgelicht .bm-badge--uitgelicht { color: var(--accent); font-weight: 600; }
.bm-product--uitgelicht .bm-badge--webstore { color: #7BD88F; }
.bm-product--uitgelicht .bm-badge--binnenkort { color: var(--muted-dark); }
.bm-product--groot { padding: 32px 30px 26px; }
.bm-product--groot .bm-product__naam { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.bm-product--groot .bm-product__kort { max-width: 48ch; font-size: 1rem; }
.bm-product--groot .bm-product__icoon { width: 88px; height: 88px; border-radius: 22px; }
@media (min-width: 700px) {
  .bm-product--groot { grid-column: span 2; }
  /* Gat naast een brede kaart opvullen met de volgende smalle */
  .shop-raster { grid-auto-flow: row dense; }
}

/* Kaart van de website scan: icoon zonder plaatje */
.bm-product__icoon--scan {
  display: grid;
  place-items: center;
  background: var(--tint-teal);
  color: var(--ink);
}
