/* =========================================================
   rent-a-lego — custom design system
   Built on top of Bootstrap 5 utilities/grid, heavily themed.
   ========================================================= */

:root {
  /* Neutral base */
  --neutral-0: #ffffff;
  --neutral-50: #faf8f3;
  --neutral-100: #f3efe4;
  --neutral-200: #e7e1d2;
  --neutral-300: #d6cdb7;
  --neutral-600: #6b6558;
  --neutral-700: #4a463c;
  --neutral-800: #2c2a24;
  --neutral-900: #1c1b17;

  /* LEGO-adjacent brand accents, curated & muted */
  --brick-red: #d0271d;
  --brick-red-dark: #a11d15;
  --brick-yellow: #ffc72c;
  --brick-yellow-dark: #d9a300;
  --brick-blue: #0a5ea8;
  --brick-blue-dark: #094c88;
  --brick-green: #2f8f4e;
  --brick-green-dark: #226b3a;
  --brick-purple: #6a3f9c;
  --brick-orange: #e07a1f;

  /* Sky blue — the original site's signature header/section colour */
  --sky-blue: #c8e2fd;
  --sky-blue-soft: #e6f2fe;
  --sky-blue-dark: #9ec9f0;

  /* Roles */
  --color-bg: var(--neutral-50);
  --color-surface: var(--neutral-0);
  --color-text: var(--neutral-800);
  --color-text-soft: var(--neutral-600);
  --color-primary: var(--brick-red);
  --color-primary-dark: var(--brick-red-dark);
  --color-accent: var(--brick-yellow);
  --color-accent-dark: var(--brick-yellow-dark);
  --color-info: var(--brick-blue);
  --color-success: var(--brick-green);

  --font-display: "Baloo 2", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 6px rgba(28, 27, 23, 0.08);
  --shadow-md: 0 10px 28px rgba(28, 27, 23, 0.12);
  --shadow-lg: 0 22px 48px rgba(28, 27, 23, 0.16);

  --stud-size: 26px;
}

/* =========================================================
   Base
   ========================================================= */
html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; overflow-x: clip; } /* clip, unlike hidden, keeps the sticky nav working */

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  width: 100%;
  min-height: 100vh;
}
/* Keeps the footer at the bottom of the window on short pages (404, empty cart) */
.site-footer { position: sticky; top: 100vh; }

h1, h2, h3, h4, h5, h6, .display-font {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--neutral-900);
  letter-spacing: 0.2px;
}

a { color: var(--brick-blue); text-decoration: none; }
a:hover { color: var(--brick-blue-dark); }

.text-primary-brick { color: var(--color-primary) !important; }
.text-accent-brick { color: var(--brick-yellow-dark) !important; }
.text-soft { color: var(--color-text-soft); }
.bg-surface { background: var(--color-surface); }
.bg-neutral-100 { background: var(--neutral-100); }
.bg-sky { background: var(--sky-blue-soft); }
.section { padding: 4.5rem 0; }
.section-sm { padding: 2.75rem 0; }

@media (max-width: 767.98px) {
  .section { padding: 3rem 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brick-red);
  background: rgba(208, 39, 29, 0.08);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brick-yellow); display: inline-block; }

/* =========================================================
   Brick / stud decorative motifs
   ========================================================= */

/* A row of studs, used on card headers & as section dividers */
.stud-row {
  height: 14px;
  width: 100%;
  background-image: radial-gradient(circle at 10px 7px, rgba(0, 0, 0, 0.16) 5px, transparent 5.5px);
  background-size: 26px 14px;
  background-repeat: repeat-x;
  background-position: center top;
  opacity: 0.9;
}
.stud-row.on-light {
  background-image: radial-gradient(circle at 10px 7px, rgba(255, 255, 255, 0.55) 5px, transparent 5.5px);
}

/* Subtle stud/dot grid texture background, used on hero + section breaks.
   Dots fade out at two opposite corners via a layered ::after, with a soft
   diagonal wash underneath via ::before, instead of a flat tiled pattern. */
.brick-texture {
  position: relative;
  isolation: isolate;
  background-color: var(--neutral-100);
}
.brick-texture::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(160deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
}
.brick-texture::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    radial-gradient(circle at 100% 0%, var(--neutral-100) 0%, transparent 42%),
    radial-gradient(circle at 0% 100%, var(--neutral-100) 0%, transparent 42%),
    radial-gradient(circle at 14px 14px, rgba(28, 27, 23, 0.07) 3.5px, transparent 4px);
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: auto, auto, 28px 28px;
}

.brick-texture.dark { background-color: var(--neutral-900); }
.brick-texture.dark::before { background: var(--neutral-900); }
.brick-texture.dark::after {
  background-image:
    radial-gradient(circle at 100% 0%, var(--neutral-900) 0%, transparent 42%),
    radial-gradient(circle at 0% 100%, var(--neutral-900) 0%, transparent 42%),
    radial-gradient(circle at 14px 14px, rgba(255, 255, 255, 0.08) 3.5px, transparent 4px);
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: auto, auto, 28px 28px;
}

.brick-texture.on-red { background-color: var(--brick-red); }
.brick-texture.on-red::before {
  background: linear-gradient(160deg, var(--brick-red) 0%, var(--brick-red-dark) 100%);
}
.brick-texture.on-red::after {
  background-image:
    radial-gradient(circle at 100% 0%, var(--brick-red) 0%, transparent 42%),
    radial-gradient(circle at 0% 100%, var(--brick-red) 0%, transparent 42%),
    radial-gradient(circle at 14px 14px, rgba(255, 255, 255, 0.14) 3.5px, transparent 4px);
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: auto, auto, 28px 28px;
}

.brick-texture.on-sky { background-color: var(--sky-blue); }
.brick-texture.on-sky::before {
  background: linear-gradient(160deg, var(--sky-blue-soft) 0%, var(--sky-blue) 100%);
}
.brick-texture.on-sky::after {
  background-image:
    radial-gradient(circle at 100% 0%, var(--sky-blue) 0%, transparent 42%),
    radial-gradient(circle at 0% 100%, var(--sky-blue) 0%, transparent 42%),
    radial-gradient(circle at 14px 14px, rgba(9, 76, 136, 0.12) 3.5px, transparent 4px);
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: auto, auto, 28px 28px;
}

.brick-texture.on-blue { background-color: var(--brick-blue); }
.brick-texture.on-blue::before {
  background: linear-gradient(160deg, var(--brick-blue) 0%, var(--brick-blue-dark) 100%);
}
.brick-texture.on-blue::after {
  background-image:
    radial-gradient(circle at 100% 0%, var(--brick-blue) 0%, transparent 42%),
    radial-gradient(circle at 0% 100%, var(--brick-blue) 0%, transparent 42%),
    radial-gradient(circle at 14px 14px, rgba(255, 255, 255, 0.14) 3.5px, transparent 4px);
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: auto, auto, 28px 28px;
}

/* Little inline "brick" glyph used decoratively (e.g. next to eyebrow labels) */
.brick-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 2px;
}

/* Hero build (shown while there are no new sets): isometric bricks that drop in one by one and click into
   place; the red top brick keeps getting placed again. The SVG itself is in index.html (#heroBricks). */
.hero-build {
  display: block;
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
  overflow: visible;
}
.hero-build .hb-shadow { fill: rgba(20, 16, 10, 0.3); }
.hero-build .hb-label {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.02em;
  fill: #fff;
  fill-opacity: 0.92;
  text-anchor: middle;
  dominant-baseline: central;
}
.hero-build .hb {
  animation: hb-drop 0.6s cubic-bezier(0.3, 1.45, 0.55, 1) calc(0.25s + var(--i) * 0.2s) both;
}
.hero-build .hb-top {
  animation:
    hb-drop 0.6s cubic-bezier(0.3, 1.45, 0.55, 1) calc(0.25s + var(--i) * 0.2s) both,
    hb-place 4.5s ease-in-out 3.5s infinite;
}
@keyframes hb-drop {
  0%   { transform: translateY(-70px); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
/* Lift, hover a moment, then press down with a little squash: the "klik". */
@keyframes hb-place {
  0%, 55%, 100% { transform: translateY(0); }
  68%  { transform: translateY(-34px); }
  80%  { transform: translateY(-34px); }
  90%  { transform: translateY(2px); }
  95%  { transform: translateY(-1px); }
}
.hero-build:hover .hb-top { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .hero-build .hb, .hero-build .hb-top { animation: none; }
}

/* Small scenes in the same style (404, empty cart): the bricks drop in, one brick keeps floating, waiting
   for its spot, while its shadow below grows and shrinks with it. */
.brick-scene { display: block; width: 100%; max-width: 260px; margin: 0 auto 1.25rem; overflow: visible; }
.brick-scene .hb-shadow { fill: rgba(20, 16, 10, 0.22); }
.brick-scene .bs-slot { fill: rgba(255, 255, 255, 0.35); stroke: rgba(20, 16, 10, 0.45); stroke-width: 1.5; stroke-dasharray: 5 4; }
.brick-scene .bs-shadow {
  fill: rgba(20, 16, 10, 0.3); transform-box: fill-box; transform-origin: center;
  animation: bs-shadow 2.6s ease-in-out 1.2s infinite;
}
.brick-scene .hb { animation: hb-drop 0.6s cubic-bezier(0.3, 1.45, 0.55, 1) calc(0.2s + var(--i) * 0.18s) both; }
.brick-scene .bs-float {
  animation:
    hb-drop 0.6s cubic-bezier(0.3, 1.45, 0.55, 1) calc(0.2s + var(--i) * 0.18s) both,
    bs-float 2.6s ease-in-out 1.2s infinite;
}
@keyframes bs-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes bs-shadow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.82); opacity: 0.6; }
}
@media (prefers-reduced-motion: reduce) {
  .brick-scene .hb, .brick-scene .bs-float, .brick-scene .bs-shadow { animation: none; }
}

/* =========================================================
   Buttons — tactile "brick press" feel
   ========================================================= */
.btn-brick {
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.6rem;
  color: #fff;
  background: var(--color-primary);
  box-shadow: 0 4px 0 var(--color-primary-dark), 0 8px 16px rgba(208, 39, 29, 0.25);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.btn-brick:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 0 var(--color-primary-dark), 0 12px 22px rgba(208, 39, 29, 0.3); }
.btn-brick:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--color-primary-dark), 0 3px 8px rgba(208, 39, 29, 0.25); }
.btn-brick:focus-visible { outline: 3px solid var(--brick-yellow); outline-offset: 2px; }

.btn-brick-yellow { background: var(--brick-yellow); color: var(--neutral-900); box-shadow: 0 4px 0 var(--brick-yellow-dark), 0 8px 16px rgba(217, 163, 0, 0.25); }
.btn-brick-yellow:hover { color: var(--neutral-900); box-shadow: 0 6px 0 var(--brick-yellow-dark), 0 12px 22px rgba(217, 163, 0, 0.3); }
.btn-brick-yellow:active { box-shadow: 0 1px 0 var(--brick-yellow-dark); }

.btn-brick-blue { background: var(--brick-blue); box-shadow: 0 4px 0 var(--brick-blue-dark), 0 8px 16px rgba(10, 94, 168, 0.25); }
.btn-brick-blue:hover { color: #fff; box-shadow: 0 6px 0 var(--brick-blue-dark), 0 12px 22px rgba(10, 94, 168, 0.3); }
.btn-brick-blue:active { box-shadow: 0 1px 0 var(--brick-blue-dark); }

.btn-brick-green { background: var(--brick-green); box-shadow: 0 4px 0 var(--brick-green-dark), 0 8px 16px rgba(47, 143, 78, 0.25); }
.btn-brick-green:hover { color: #fff; box-shadow: 0 6px 0 var(--brick-green-dark), 0 12px 22px rgba(47, 143, 78, 0.3); }
.btn-brick-green:active { box-shadow: 0 1px 0 var(--brick-green-dark); }

.btn-brick-sky { background: var(--sky-blue); color: var(--neutral-900); box-shadow: 0 4px 0 var(--sky-blue-dark), 0 8px 16px rgba(158, 201, 240, 0.4); }
.btn-brick-sky:hover { color: var(--neutral-900); box-shadow: 0 6px 0 var(--sky-blue-dark), 0 12px 22px rgba(158, 201, 240, 0.45); }
.btn-brick-sky:active { box-shadow: 0 1px 0 var(--sky-blue-dark); }

.btn-brick-outline {
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.5rem;
  color: var(--neutral-900);
  background: #fff;
  border: 2px solid var(--neutral-900);
  box-shadow: 0 4px 0 var(--neutral-900);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-brick-outline:hover { color: var(--neutral-900); transform: translateY(-2px); box-shadow: 0 6px 0 var(--neutral-900); }
.btn-brick-outline:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--neutral-900); }

.btn-brick-sm { padding: 0.4rem 1rem; font-size: 0.9rem; box-shadow: 0 3px 0 var(--color-primary-dark); }
.btn-brick-sm.btn-brick-sky { box-shadow: 0 3px 0 var(--sky-blue-dark); }
.btn-icon-circle {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--neutral-100); color: var(--neutral-900); border: none;
  transition: background 0.15s ease, transform 0.12s ease;
}
.btn-icon-circle:hover { background: var(--neutral-200); transform: translateY(-1px); }

/* =========================================================
   Navigation
   ========================================================= */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 4px solid var(--brick-red);
  box-shadow: 0 3px 0 var(--brick-red-dark);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: visible;
}
.site-nav.is-scrolled { box-shadow: 0 3px 0 var(--brick-red-dark), var(--shadow-md); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 0; gap: 1rem; }

.brand-mark { display: inline-flex; align-items: center; }
.brand-logo { height: 60px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 0.35rem; }
.nav-links .nav-link {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--neutral-800);
  padding: 0.5rem 0.9rem;
  border-radius: 6px 6px 3px 3px;
  position: relative;
  overflow: visible;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links .nav-link::before {
  content: "";
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%) scale(0);
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--brick-red);
  box-shadow: 0 1px 0 rgba(0,0,0,.2);
  transition: transform 0.15s cubic-bezier(.34,1.56,.64,1);
}
.nav-links .nav-link:hover {
  color: var(--neutral-900);
  background: var(--neutral-100);
}
.nav-links .nav-link:hover::before { transform: translateX(-50%) scale(1); }
.nav-links .nav-link.active::before { display: none; }

.nav-links .nav-link.active {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 26%, rgba(0, 0, 0, 0.14) 100%),
    var(--brick-red);
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.3),
    inset -2px 0 3px rgba(0, 0, 0, 0.15),
    inset 0 -3px 0 var(--brick-red-dark),
    0 3px 8px rgba(208, 39, 29, 0.3);
}
.nav-links .nav-link.active::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 10px;
  right: 10px;
  height: 10px;
  background-image:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.85) 0 1px, transparent 2px),
    radial-gradient(circle at 66% 68%, rgba(0, 0, 0, 0.28) 0 1.5px, transparent 3px),
    radial-gradient(circle at 50% 46%, var(--brick-red) 4.5px, var(--brick-red-dark) 5.5px, transparent 6px);
  background-size: 16px 10px;
  background-repeat: round no-repeat;
  background-position: left top;
}

/* 3D bricks drawn by RentaLegoBrick (script.js); the flat look above stays as the no-JS fallback */
.has-brick { isolation: isolate; }
.brick-3d { position: absolute; left: 0; top: 0; z-index: -1; overflow: visible; pointer-events: none; }
.brick-3d .bk-front { fill: var(--bk-front); }
.brick-3d .bk-top { fill: var(--bk-top); }
.brick-3d .bk-side { fill: var(--bk-side); }

.nav-links .nav-link.has-brick,
.nav-links .nav-link.has-brick:hover { background: none; box-shadow: none; padding-right: calc(0.9rem + 8px); }
.nav-links .nav-link.has-brick::before,
.nav-links .nav-link.has-brick::after { display: none; }
.nav-links .nav-link .brick-3d {
  --bk-front: var(--neutral-200); --bk-top: #f6f4ef; --bk-side: var(--neutral-300);
  opacity: 0; transform: translateY(-10px) scale(0.92); transform-origin: 50% 100%;
  transition: opacity 0.15s ease, transform 0.3s cubic-bezier(0.3, 1.6, 0.55, 1);
}
.nav-links .nav-link:hover .brick-3d,
.nav-links .nav-link:focus-visible .brick-3d { opacity: 1; transform: none; }
.nav-links .nav-link.active .brick-3d {
  --bk-front: var(--brick-red); --bk-top: #e8372c; --bk-side: var(--brick-red-dark);
  opacity: 1; transform: none; filter: drop-shadow(0 3px 4px rgba(208, 39, 29, 0.3));
}

.nav-dropdown { position: relative; }
.nav-dropdown::after {
  content: "";
  position: absolute; top: 100%; left: 0; right: 0; height: 0.9rem;
}
.nav-dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: -1rem; margin-top: 0.9rem;
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 0.85rem 0.6rem 0.6rem; min-width: 220px; z-index: 20;
  grid-template-columns: 1fr 1fr; gap: 0.15rem;
  border-top: 4px solid var(--brick-blue);
  overflow: hidden;
}
.nav-dropdown-menu::before {
  content: "";
  position: absolute; top: 4px; left: 0; right: 0; height: 10px;
  background-image: radial-gradient(circle at 11px 5px, rgba(10,94,168,0.18) 3.5px, transparent 3.8px);
  background-size: 22px 10px;
  background-repeat: repeat-x;
}
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { display: grid; }
.nav-dropdown-menu a {
  display: block; padding: 0.45rem 0.7rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600; color: var(--neutral-800); white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--neutral-100); color: var(--brick-red); }

.cart-link {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: var(--radius-sm);
  background: var(--neutral-900); color: #fff;
  box-shadow: 0 4px 0 rgba(0,0,0,.4);
  transition: transform .12s ease, box-shadow .12s ease;
  overflow: visible;
}
.cart-link::before {
  content: "";
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--neutral-900);
}
.cart-link:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0,0,0,.4); }
.cart-link:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.4); }
.cart-link.is-bump { animation: cartLinkBump .35s ease; }
@keyframes cartLinkBump {
  0% { transform: scale(1); }
  35% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.cart-fly-icon {
  position: fixed;
  z-index: 2000;
  pointer-events: none;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  will-change: transform, opacity;
}
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--brick-yellow); color: var(--neutral-900);
  font-family: var(--font-display); font-weight: 800; font-size: 0.72rem;
  min-width: 21px; height: 21px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--color-bg);
  padding: 0 3px;
}
.cart-badge.is-empty { opacity: 0.55; }

.cart-hover-wrap { position: relative; }
.cart-hover-wrap::after { content: ""; position: absolute; top: 100%; right: 0; left: 0; height: 0.9rem; }
.cart-preview {
  display: none;
  position: absolute; top: 100%; right: -0.5rem; margin-top: 0.9rem;
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 0.9rem; width: 320px; max-width: calc(100vw - 2rem);
  z-index: 30; border-top: 4px solid var(--brick-blue);
  color: var(--neutral-800); text-align: left;
}
.cart-hover-wrap:hover .cart-preview, .cart-hover-wrap:focus-within .cart-preview { display: block; }
.cart-preview-empty { font-size: 0.85rem; color: var(--color-text-soft); text-align: center; padding: 0.5rem 0; }
.cart-preview-lines { display: flex; flex-direction: column; gap: 0.7rem; max-height: 320px; overflow-y: auto; }
.cart-preview-line { display: flex; align-items: center; gap: 0.6rem; }
.cart-preview-media { width: 48px; height: 48px; flex-shrink: 0; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--neutral-100); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cart-preview-media img { width: 100%; height: 100%; object-fit: contain; }
.cart-preview-info { flex: 1; min-width: 0; }
.cart-preview-title { font-size: 0.82rem; font-weight: 700; color: var(--neutral-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-preview-meta { font-size: 0.72rem; color: var(--color-text-soft); }
.cart-preview-price { font-size: 0.82rem; font-weight: 700; color: var(--brick-red); white-space: nowrap; }
.cart-preview-footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; margin: 0.75rem 0 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--neutral-100); }
.cart-preview-btn { display: block; text-align: center; }

.nav-toggle-btn {
  position: relative; overflow: visible;
  border: none; background: var(--neutral-900); color: #fff;
  border-radius: var(--radius-sm); width: 46px; height: 42px;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 3px 0 rgba(0,0,0,.4);
  transition: transform .12s ease, box-shadow .12s ease;
}
.nav-toggle-btn::before, .nav-toggle-btn::after {
  content: "";
  position: absolute; top: -6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--neutral-900);
}
.nav-toggle-btn::before { left: 9px; }
.nav-toggle-btn::after { right: 9px; }
.nav-toggle-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.4); }

@media (min-width: 992px) {
  .nav-collapse.collapse:not(.show) { display: flex !important; }
}

@media (max-width: 991.98px) {
  /* Logo left; cart and menu button grouped on the right as two matching bricks, menu outermost */
  .nav-inner { gap: 0.8rem; padding-inline: 18px; }
  .brand-mark { margin-right: auto; }
  .brand-logo { height: 50px; }
  .cart-hover-wrap { order: 2; }
  .nav-toggle-btn { display: flex; order: 3; width: 46px; height: 46px; box-shadow: 0 4px 0 rgba(0,0,0,.4); }
  .nav-toggle-btn::before { left: 50%; transform: translateX(-50%); width: 11px; height: 11px; }
  .nav-toggle-btn::after { display: none; }
  .nav-links { display: none; }
  .nav-collapse { position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: var(--shadow-md); border-radius: 0 0 var(--radius-md) var(--radius-md); padding: 1rem 1.25rem 1.5rem; }
  .nav-collapse.show { display: block; }
  .nav-collapse .nav-links { display: flex; flex-direction: column; gap: 0.9rem; align-items: flex-start; width: 100%; }
  /* relative, not static: keeps the stud row (::before) on the menu instead of over "Sets" */
  .nav-dropdown-menu { position: relative; top: auto; left: auto; box-shadow: none; margin-top: 0.4rem; padding-left: 0; grid-template-columns: 1fr 1fr; background: var(--neutral-50); }
  /* Collapsed until "Sets" is tapped (toggled in script.js) — no hover/focus opening on touch */
  .nav-dropdown .nav-dropdown-menu, .nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: grid; }
  .nav-dropdown > .nav-link .bi-chevron-down { display: inline-block; transition: transform .2s ease; }
  .nav-dropdown.open > .nav-link .bi-chevron-down { transform: rotate(180deg); }
  .nav-dropdown { width: 100%; }
  /* Link (and its active brick) only as wide as the word, like the other menu items */
  .nav-dropdown > .nav-link { display: inline-block; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 5rem 0 6rem;
}
.hero.brick-texture { background-color: var(--neutral-50); background-image: none; }
/* The hero is a baseplate: a light plate (::before, with a soft yellow and blue glow) full of raised studs
   (::after). Each stud is a flat round top with a lighter rim top-left, a darker rim bottom-right and a soft
   shadow on the plate; the plate's edge shows along the bottom. */
.hero,
.baseplate {
  --plate: #ebe5d7;
  --plate-edge: #d6ccb6;
  border-bottom: 7px solid var(--plate-edge);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.6);
}
.hero::before,
.baseplate::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 55% 50% at 8% -5%, rgba(255, 199, 44, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 55% at 100% 105%, rgba(10, 94, 168, 0.12), transparent 60%),
    linear-gradient(160deg, #f1ece1 0%, var(--plate) 100%);
}
.hero::after,
.baseplate::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    /* shine on the top of the stud */
    radial-gradient(circle at 13px 12px, rgba(255, 255, 255, 0.9) 0 1.5px, rgba(255, 255, 255, 0) 4px),
    /* top of the stud, lighter towards the top-left */
    radial-gradient(circle at 15px 15px, #fbf8f2 0 4px, #f1ebdf 7px, rgba(241, 235, 223, 0) 7.5px),
    /* side of the stud: light rim top-left, darker rim bottom-right */
    radial-gradient(circle at 16px 16px, #f6f2e9 0 7px, #cfc5ae 9px, rgba(207, 197, 174, 0) 9.6px),
    /* shadow the stud casts on the plate */
    radial-gradient(circle at 18px 19px, rgba(90, 72, 40, 0.2) 0 8px, rgba(90, 72, 40, 0) 12px);
  background-size: 32px 32px;
  background-repeat: repeat;
  background-position: center top;
  /* Studs a little softer behind the text on the left, so it stays easy to read. */
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.55) 40%, #000 75%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.55) 40%, #000 75%);
}
.hero .hero-copy { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05; }
.hero .lead { font-size: 1.2rem; color: var(--color-text-soft); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 2.5rem; }
.hero-badges .item { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.92rem; color: var(--neutral-700); }
.hero-badges .item .dot { width: 8px; height: 8px; border-radius: 50%; }

/* On the baseplate the small texts get their own light "tile", so the studs do not run through them.
   .baseplate: the header of the other pages, on the same plate as the homepage hero. */
.hero .eyebrow,
.baseplate .eyebrow {
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  color: var(--brick-red-dark);
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  box-shadow: 0 2px 0 rgba(161, 29, 21, 0.18), 0 4px 12px rgba(28, 27, 23, 0.1);
}
.hero .lead,
.baseplate .container > p {
  color: var(--neutral-700);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  max-width: 48ch;
  box-shadow: 0 4px 14px rgba(28, 27, 23, 0.08);
}
/* Page headers: the same baseplate as the homepage, but light blue (the colour these headers always had). */
.baseplate { --plate: #c8e2fd; --plate-edge: #a9cdf3; }
.baseplate::before {
  background:
    radial-gradient(ellipse 55% 50% at 8% -5%, rgba(255, 255, 255, 0.35), transparent 60%),
    linear-gradient(160deg, #dcecfe 0%, var(--plate) 100%);
}
.baseplate::after {
  background-image:
    radial-gradient(circle at 13px 12px, rgba(255, 255, 255, 0.9) 0 1.5px, rgba(255, 255, 255, 0) 4px),
    radial-gradient(circle at 15px 15px, #eef6ff 0 4px, #d6e9fd 7px, rgba(214, 233, 253, 0) 7.5px),
    radial-gradient(circle at 16px 16px, #e3f0fe 0 7px, #9fc4ea 9px, rgba(159, 196, 234, 0) 9.6px),
    radial-gradient(circle at 18px 19px, rgba(9, 60, 120, 0.2) 0 8px, rgba(9, 60, 120, 0) 12px);
}
.baseplate .eyebrow { box-shadow: 0 2px 0 rgba(9, 76, 136, 0.18), 0 4px 12px rgba(9, 60, 120, 0.12); }
.baseplate .container > p { background: rgba(255, 255, 255, 0.72); box-shadow: 0 4px 14px rgba(9, 60, 120, 0.1); }
/* Page headers: the label starts as far below the menu as on the homepage, and every page header is equally
   high (the highest one, Sale, sets the height), so switching pages does not make the content jump. */
.baseplate.section-sm { padding: 5rem 0 3.5rem; }
@media (min-width: 992px) { .baseplate.section-sm { min-height: var(--page-hero-height, 26rem); } }
/* Page headers: the intro panel only as wide as its text needs. */
.baseplate .container > p { width: fit-content; max-width: min(60ch, 100%) !important; }
.baseplate.text-center .container > p, .baseplate .text-center > p { margin-inline: auto; }
.hero-badges { gap: 0.6rem; }
.hero-badges .item {
  background: #fff;
  color: var(--neutral-800, #2b2822);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  box-shadow: 0 2px 0 rgba(28, 27, 23, 0.1), 0 3px 10px rgba(28, 27, 23, 0.08);
}
.hero-badges .item .dot { width: 9px; height: 9px; }

/* =========================================================
   Steps (how it works)
   ========================================================= */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 767.98px) { .steps-row { grid-template-columns: 1fr; } }
.step-card { background: #fff; border-radius: var(--radius-lg); padding: 2rem 1.75rem; box-shadow: var(--shadow-sm); position: relative; }
.step-num {
  width: 44px; height: 44px; border-radius: 12px; background: var(--neutral-900); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem;
}
.step-card:nth-child(1) .step-num { background: var(--brick-red); }
.step-card:nth-child(2) .step-num { background: var(--brick-blue); }
.step-card:nth-child(3) .step-num { background: var(--brick-green); }

/* Number badges as 3D 2x2 bricks (drawn by RentaLegoBrick); they hop up a little when the card is hovered */
.step-num.has-brick, .guideline-num.has-brick {
  --bk-front: var(--brick-red); --bk-top: #e8372c; --bk-side: var(--brick-red-dark);
  position: relative; width: 62px; height: 40px; padding-right: 20px; margin-top: 16px; background: none;
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.55, 1);
}
/* :nth-child(n) only raises specificity above the coloured flat-badge rules, so their background goes too */
.step-card:nth-child(n) .step-num.has-brick,
.guideline-item:nth-child(n) .guideline-num.has-brick { background: none; }
.guideline-num.has-brick::before { display: none; }
.step-num.has-brick .brick-3d, .guideline-num.has-brick .brick-3d { filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.15)); }
.step-card:nth-child(2) .step-num.has-brick,
.guideline-item:nth-child(4n+2) .guideline-num.has-brick { --bk-front: var(--brick-blue); --bk-top: #2a7bc4; --bk-side: var(--brick-blue-dark); }
.step-card:nth-child(3) .step-num.has-brick,
.guideline-item:nth-child(4n+3) .guideline-num.has-brick { --bk-front: var(--brick-green); --bk-top: #45a865; --bk-side: var(--brick-green-dark); }
.guideline-item:nth-child(4n+4) .guideline-num.has-brick { --bk-front: var(--brick-orange); --bk-top: #f2933a; --bk-side: #b55f12; }
.step-card:hover .step-num.has-brick, .guideline-item:hover .guideline-num.has-brick { transform: translateY(-5px); }

/* =========================================================
   Section heading helper
   ========================================================= */
.section-heading { max-width: 640px; }
.section-heading.mx-auto { text-align: center; }

/* =========================================================
   Product cards
   ========================================================= */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 1199.98px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767.98px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (max-width: 480px) { .product-grid { grid-template-columns: 1fr 1fr; } }

.product-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  height: 100%;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.product-card .card-stud-strip { background: var(--sky-blue); }
.product-card .card-media {
  position: relative;
  height: 240px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 0.75rem;
}
@media (max-width: 767.98px) { .product-card .card-media { height: 180px; } }
.product-card .card-media img { width: 100%; height: 100%; object-fit: contain; }
.img-fallback-icon {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; color: var(--neutral-300); font-size: 2.4rem;
}
.line-media .img-fallback-icon { font-size: 1.6rem; }
.card-badge {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase;
  padding: 0.3rem 0.6rem; border-radius: 999px; color: #fff; background: var(--neutral-900);
}
.product-card .card-badge {
  position: absolute; top: 0.6rem; left: 0.6rem;
}
.product-card .card-body-custom { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; gap: 0.4rem; }
.product-card .card-set-number { font-size: 0.76rem; font-weight: 700; color: var(--color-text-soft); letter-spacing: 0.4px; text-transform: uppercase; }
.product-card .card-title { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; margin: 0; line-height: 1.25; min-height: 2.5em; }
.product-card .card-price { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; padding-top: 0.5rem; }
.product-card .price-value { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--brick-red); }
.product-card .price-unit { font-size: 0.72rem; color: var(--color-text-soft); }

/* Category badge colors are now set inline per-item from the admin-managed
   category color (see api/sets.php `categoryColor`). Sale stays fixed since
   it's a `type`, not a manageable category. */
.cat-sale { background: var(--brick-green-dark); }

/* =========================================================
   Set detail page
   ========================================================= */
.detail-gallery {
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  height: clamp(240px, 32vw, 340px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
  overflow: hidden;
}
.detail-gallery img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; }
.detail-gallery-zoom {
  position: absolute; right: 0.75rem; bottom: 0.75rem;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  display: grid; place-items: center; font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.9); color: var(--neutral-900);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
.detail-gallery-zoom:hover { background: #fff; color: var(--brick-red); }

/* Photo enlarged in a modal */
.photo-modal .modal-content {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: 2.5rem 3.5rem; border: none; border-radius: var(--radius-md); background: #fff;
}
.photo-modal img { max-width: 100%; max-height: calc(100vh - 8rem); object-fit: contain; }
.photo-modal-close { position: absolute; top: 0.9rem; right: 0.9rem; z-index: 2; }
.photo-modal .detail-gallery-nav-prev { left: 0.6rem; }
.photo-modal .detail-gallery-nav-next { right: 0.6rem; }
.photo-modal-count { position: absolute; bottom: 0.8rem; left: 50%; transform: translateX(-50%); font-size: 0.85rem; color: var(--neutral-600); }
@media (max-width: 575.98px) {
  .photo-modal .modal-content { padding: 2.5rem 0.75rem; }
}
.detail-gallery-badge { position: absolute; top: 1rem; left: 1rem; color: #fff; }
.detail-title-category-icon {
  height: 36px; width: auto; object-fit: contain;
}
.detail-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--neutral-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.detail-gallery-nav:hover { background: #fff; }
.detail-gallery-nav-prev { left: 1rem; }
.detail-gallery-nav-next { right: 1rem; }
.detail-thumbs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.9rem; }
.detail-thumb {
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0.2rem;
  width: 68px; height: 68px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.detail-thumb img { width: 100%; height: 100%; object-fit: contain; }
.detail-thumb.active, .detail-thumb:hover { border-color: var(--brick-red); }
.detail-price .price-value { font-family: var(--font-display); font-weight: 800; color: var(--brick-red); }
.detail-price .price-unit { font-size: 0.85rem; color: var(--color-text-soft); margin-left: 0.4rem; }

/* "Wanneer wil je huren?": start date + weeks filter above the catalog */
.rental-planner {
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--brick-blue); padding: 1.1rem 1.25rem;
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 1.5rem;
}
.rental-planner.is-active { box-shadow: 0 0 0 2px var(--sky-blue-dark), var(--shadow-sm); }
.rental-planner-title { display: flex; gap: 0.75rem; align-items: center; flex: 1 1 260px; }
.rental-planner-title > i {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--sky-blue-soft); color: var(--brick-blue); font-size: 1.25rem;
}
.rental-planner-title strong { display: block; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.2; }
.rental-planner-title span { display: block; color: var(--color-text-soft); font-size: 0.85rem; }
.rental-planner-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem; }
.rental-planner-field { display: flex; flex-direction: column; gap: 0.3rem; margin: 0; }
.rental-planner-field > span { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-text-soft); }
.rental-planner-field input[type="date"], .rental-planner-field input.dp-input { min-width: 190px; border: 2px solid var(--neutral-200); border-radius: var(--radius-sm); font-weight: 600; padding: 0.4rem 0.7rem; }
.rental-planner-field input[type="date"]:focus, .rental-planner-field input.dp-input:focus { border-color: var(--brick-blue); box-shadow: none; }
.rental-planner-field select { min-width: 140px; border: 2px solid var(--neutral-200); border-radius: var(--radius-sm); font-weight: 600; padding: 0.4rem 2.2rem 0.4rem 0.7rem; }
.rental-planner-field select:focus { border-color: var(--brick-blue); box-shadow: none; }
/* Period buttons (Cart.weekButtons, up to 5 periods): a compact segmented row in the planner. */
.rental-planner-field .week-buttons { display: flex; border: 2px solid var(--neutral-200); border-radius: var(--radius-sm); overflow: hidden; }
.rental-planner-field .week-buttons button {
  flex: 1; border: 0; background: #fff; padding: 0.4rem 0.65rem; font-weight: 700; font-size: 0.85rem; color: var(--neutral-800); white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.rental-planner-field .week-buttons button + button { border-left: 2px solid var(--neutral-200); }
.rental-planner-field .week-buttons button:hover { background: var(--neutral-100); }
.rental-planner-field .week-buttons button.active { background: var(--brick-blue); color: #fff; }
.planner-clear {
  border: 0; background: none; color: var(--color-text-soft); font-weight: 700; font-size: 0.9rem; padding: 0.5rem 0.25rem;
}
.planner-clear:hover { color: var(--brick-red); }
.rental-planner-result { flex-basis: 100%; margin: 0; padding-top: 0.85rem; border-top: 1px dashed var(--neutral-200); font-size: 0.92rem; }
.rental-planner-result > i { color: var(--brick-green); }
@media (max-width: 575.98px) {
  .rental-planner-fields, .rental-planner-field { width: 100%; }
  .rental-planner-field input[type="date"], .rental-planner-field input.dp-input, .rental-planner-field select { width: 100%; }
  .rental-planner-field .week-buttons button { padding: 0.4rem 0.3rem; font-size: 0.8rem; }
}

/* =========================================================
   Filter pills (catalog)
   ========================================================= */
.filter-pills { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.filter-pill {
  border: 2px solid var(--neutral-200);
  background: #fff;
  color: var(--neutral-800);
  border-radius: 999px;
  padding: 0.45rem 1.05rem;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.15s ease;
}
.filter-pill:hover { border-color: var(--brick-red); color: var(--brick-red); }
.filter-pill.active { background: var(--neutral-900); border-color: var(--neutral-900); color: #fff; }

.search-box { position: relative; }
.search-box-lg { max-width: 380px; }
.search-box input {
  border-radius: 999px; border: 2px solid var(--neutral-200); padding: 0.6rem 1.1rem 0.6rem 2.6rem;
  font-weight: 500;
}
.search-box input:focus { border-color: var(--brick-blue); box-shadow: 0 0 0 3px rgba(10,94,168,.12); }
.search-box .search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--color-text-soft); }

.results-empty { text-align: center; padding: 3.5rem 1rem; color: var(--color-text-soft); }

/* =========================================================
   Sale page qty stepper
   ========================================================= */
/* flex: none — with overflow:hidden a flex item may otherwise shrink below its content and clip the "+" */
.qty-stepper { display: inline-flex; flex: none; align-items: center; border: 2px solid var(--neutral-200); border-radius: 999px; overflow: hidden; background: #fff; }
.qty-stepper button { flex: none; border: none; background: #fff; width: 30px; height: 30px; padding: 0; font-weight: 800; font-size: 0.95rem; line-height: 1; color: var(--neutral-800); }
.qty-stepper button:hover { background: var(--neutral-100); }
.qty-stepper button:disabled { color: var(--neutral-200); background: #fff; }
.qty-stepper input { flex: none; width: 34px; min-width: 0; padding: 0; border: none; background: transparent; text-align: center; font-weight: 700; font-size: 0.9rem; -moz-appearance: textfield; }

/* Sale card: stepper + "Toevoegen" side by side; stacked full width when the card is narrow */
.product-card .card-body-custom { container-type: inline-size; }
.sale-actions { display: flex; align-items: center; gap: 0.5rem; }
.sale-actions .js-add-sale { flex: 1 1 auto; white-space: nowrap; }
@container (max-width: 215px) {
  .sale-actions { flex-direction: column; align-items: stretch; }
  .sale-actions .qty-stepper { align-self: center; }
}
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* =========================================================
   Modal (add to cart)
   ========================================================= */
.modal-content { border-radius: var(--radius-lg); border: none; overflow: hidden; }
.modal-header { border-bottom: 1px solid var(--neutral-100); }
.modal-header .modal-title { font-family: var(--font-display); }
.week-select { border: 2px solid var(--neutral-200); border-radius: var(--radius-sm); font-weight: 700; padding: 0.6rem 2.4rem 0.6rem 0.85rem; cursor: pointer; }
.week-select:focus { border-color: var(--brick-red); box-shadow: 0 0 0 0.2rem rgba(208,39,29,0.12); }
.week-select option:disabled { color: var(--color-text-soft); }
/* Set page: small tiles, the price under the period. */
.week-select + .week-buttons { display: flex; gap: 0.4rem; margin-bottom: 1rem; }
.week-select + .week-buttons button {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 0.05rem;
  border: 2px solid var(--neutral-200); border-radius: var(--radius-sm); background: #fff; padding: 0.4rem 0.25rem;
  font-weight: 700; font-size: 0.85rem; line-height: 1.2; color: var(--neutral-800); white-space: nowrap; transition: all 0.15s ease;
}
.week-select + .week-buttons button small { font-weight: 500; font-size: 0.7rem; color: var(--color-text-soft); }
.week-select + .week-buttons button:hover:not(:disabled):not(.active) { border-color: var(--neutral-800); }
.week-select + .week-buttons button.active { border-color: var(--brick-red); background: rgba(208,39,29,0.06); color: var(--brick-red); }
.week-select + .week-buttons button.active small { color: var(--brick-red); }
.week-select + .week-buttons button:disabled { opacity: 0.4; cursor: not-allowed; }
@media (max-width: 400px) { .week-select + .week-buttons button { font-size: 0.78rem; } .week-select + .week-buttons button small { font-size: 0.65rem; } }
.modal-price-total { background: var(--neutral-100); border-radius: var(--radius-md); padding: 1rem 1.2rem; display: flex; align-items: center; justify-content: space-between; }
.modal-price-total .value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--brick-red); }

/* =========================================================
   Cart page
   ========================================================= */
.cart-line {
  display: flex; gap: 1rem; background: #fff; border-radius: var(--radius-md);
  padding: 1rem; box-shadow: var(--shadow-sm); align-items: flex-start; flex-wrap: wrap;
}
.cart-line + .cart-line { margin-top: 1rem; }
.cart-line .line-media { width: 92px; height: 92px; flex-shrink: 0; border-radius: var(--radius-sm); background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cart-line .line-media img { width: 100%; height: 100%; object-fit: contain; }
.cart-line .line-info { flex: 1; min-width: 220px; }
.cart-line .line-title { font-family: var(--font-display); font-weight: 700; margin-bottom: 0.2rem; }
.cart-line .line-controls { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.6rem; align-items: center; }
.cart-line .line-controls select, .cart-line .line-controls input[type="date"] {
  border: 2px solid var(--neutral-200); border-radius: var(--radius-sm); padding: 0.35rem 0.6rem; font-weight: 600; font-size: 0.88rem;
}
.cart-line .line-controls select { min-width: 7.5rem; }
.cart-line .line-controls.is-rent { display: grid; grid-template-columns: 15.5rem auto; column-gap: 1.25rem; row-gap: 0.5rem; }
.cart-line .line-instructions { display: flex; align-items: center; gap: 0.55rem; padding-left: 0; min-height: 0; }
.cart-line .line-instructions .form-check-input { float: none; margin: 0; width: 2.4em; height: 1.3em; cursor: pointer; border-color: var(--neutral-200); box-shadow: none; }
.cart-line .line-instructions .form-check-input:checked { background-color: var(--brick-green); border-color: var(--brick-green); }
.cart-line .line-instructions .form-check-input:focus { box-shadow: 0 0 0 0.2rem rgba(47, 143, 78, 0.25); }
.cart-line .line-instructions .form-check-label { cursor: pointer; }
@media (max-width: 575.98px) { .cart-line .line-controls.is-rent { grid-template-columns: 1fr; } }
.cart-line .line-price { font-family: var(--font-display); font-weight: 800; color: var(--brick-red); font-size: 1.1rem; white-space: nowrap; }
.cart-line .line-remove { border: none; background: var(--neutral-100); color: var(--neutral-700); width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; }
.cart-line .line-remove:hover { background: var(--brick-red); color: #fff; }

.cart-summary { background: #fff; border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-md); position: sticky; top: 100px; }
.cart-summary .grand-total { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; padding-top: 0.75rem; border-top: 2px dashed var(--neutral-200); margin-top: 0.75rem; }

.empty-state { text-align: center; padding: 5rem 1rem; }

/* =========================================================
   Checkout wizard (bestellen.html)
   ========================================================= */
/* Steps as LEGO bricks, same look as the active menu item; colour shows the state */
.checkout-steps { display: flex; gap: 0.6rem; margin: 0 0 2rem; padding: 9px 0 0; list-style: none; }
.checkout-step {
  --brick-c: var(--neutral-200); --brick-d: var(--neutral-300); --brick-glow: rgba(0, 0, 0, 0.08);
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 1.15rem 1rem 0.85rem; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--color-text-soft); border-radius: 6px 6px 4px 4px; position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 26%, rgba(0, 0, 0, 0.14) 100%),
    var(--brick-c);
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.3),
    inset -2px 0 3px rgba(0, 0, 0, 0.15),
    inset 0 -4px 0 var(--brick-d),
    0 3px 8px var(--brick-glow);
  transition: color 0.2s ease;
}
.checkout-step::after {
  content: ""; position: absolute; top: -8px; left: 12px; right: 12px; height: 16px;
  background-image:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.85) 0 1.5px, transparent 3px),
    radial-gradient(circle at 64% 66%, rgba(0, 0, 0, 0.25) 0 2px, transparent 4px),
    radial-gradient(circle at 50% 46%, var(--brick-c) 7px, var(--brick-d) 8.5px, transparent 9px);
  background-size: 28px 16px; background-repeat: round no-repeat; background-position: left top;
}
.checkout-step.is-done { --brick-c: #9fd0ae; --brick-d: #6fae83; --brick-glow: rgba(47, 143, 78, 0.15); color: var(--brick-green-dark); }
.checkout-step.is-active { --brick-c: var(--brick-green); --brick-d: var(--brick-green-dark); --brick-glow: rgba(47, 143, 78, 0.3); color: #fff; }

/* 3D version: a step still to come floats and waits, the current one clicks into place, done ones stay put */
.checkout-steps:has(.has-brick) { padding-top: 44px; gap: 1rem; }
.checkout-step.has-brick {
  --bk-front: var(--neutral-200); --bk-top: #f6f4ef; --bk-side: var(--neutral-300);
  background: none; box-shadow: none; padding-right: calc(1rem + 33px);
  opacity: 0.7; animation: bk-wait 2.6s ease-in-out infinite;
}
.checkout-step.has-brick::after { display: none; }
.checkout-step.has-brick .brick-3d { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.12)); }
.checkout-step.has-brick.is-done {
  --bk-front: #9fd0ae; --bk-top: #b9dfc4; --bk-side: #6fae83;
  opacity: 1; animation: none;
}
.checkout-step.has-brick.is-active {
  --bk-front: var(--brick-green); --bk-top: #45a865; --bk-side: var(--brick-green-dark);
  opacity: 1; animation: bk-click 0.7s cubic-bezier(0.3, 1.2, 0.55, 1) both;
}
.checkout-step.has-brick.is-active .brick-3d { filter: drop-shadow(0 4px 6px rgba(47, 143, 78, 0.35)); }
@keyframes bk-wait {
  0%, 100% { transform: translateY(-12px); }
  50% { transform: translateY(-18px); }
}
@keyframes bk-click {
  0% { transform: translateY(-18px); }
  55% { transform: translateY(2px) scaleY(0.97); }
  75% { transform: translateY(-2px); }
  100% { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .checkout-step.has-brick, .checkout-step.has-brick.is-active { animation: none; }
  .nav-links .nav-link .brick-3d { transition: none; }
}

.checkout-panel { background: #fff; border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.checkout-recap dt { font-weight: 700; color: var(--neutral-900); margin-top: 0.6rem; }
.checkout-recap dd { color: var(--color-text-soft); margin-bottom: 0; }
.pickup-info { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.pickup-info li { display: flex; gap: 0.75rem; align-items: center; background: var(--neutral-50); border: 1px solid var(--neutral-100); border-radius: var(--radius-md); padding: 0.7rem 0.9rem; }
.pickup-info li > i {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.05rem;
}
.pickup-info li.is-blue > i { background: var(--brick-blue); }
.pickup-info li.is-green > i { background: var(--brick-green); }
.pickup-info li.is-orange > i { background: var(--brick-orange); }
.pickup-info li.is-yellow > i { background: var(--brick-yellow); color: var(--neutral-900); }
.pickup-info strong { display: block; line-height: 1.25; }
.pickup-info span { display: block; font-size: 0.88rem; color: var(--color-text-soft); }
.pickup-info .pickup-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.3rem; }
.pickup-info .pickup-chip { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.8rem; font-weight: 600; color: var(--neutral-900); background: #fff; border: 1px solid var(--neutral-200); border-radius: 999px; padding: 0.1rem 0.6rem; }
.pickup-info .pickup-note { margin-top: 0.4rem; font-size: 0.8rem; line-height: 1.4; }
.checkout-review-line { display: flex; gap: 0.9rem; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--neutral-100); }
.checkout-review-line .line-media { width: 56px; height: 56px; flex-shrink: 0; border-radius: var(--radius-sm); background: var(--neutral-100); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.checkout-review-line .line-media img { width: 100%; height: 100%; object-fit: contain; }
.checkout-review-line .line-info { flex: 1; min-width: 0; }
.checkout-review-line .line-title { font-weight: 700; }
.checkout-confirmation { text-align: center; padding: 3rem 1rem; }
.checkout-confirmation .icon { font-size: 3.2rem; color: var(--brick-green); }

/* =========================================================
   Availability calendar (set-detail.html)
   ========================================================= */
.availability-calendar { background: #fff; border-radius: var(--radius-lg); padding: 1rem 1.2rem 1.2rem; box-shadow: var(--shadow-sm); margin-top: 1.5rem; max-width: 340px; }
.availability-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.availability-header .btn-icon-circle { width: 30px; height: 30px; font-size: 0.8rem; }
.availability-month-label { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.availability-today-btn { display: block; margin: 0 auto 0.7rem; font-size: 0.72rem; padding: 0.15rem 0.7rem; border-radius: 999px; }
.availability-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.availability-grid .dow { font-size: 0.65rem; font-weight: 700; color: var(--color-text-soft); text-transform: uppercase; padding-bottom: 0.25rem; }
.availability-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 7px; font-size: 0.78rem; font-weight: 600; color: var(--neutral-800);
}
.availability-day.is-empty { visibility: hidden; }
.availability-day.is-past { color: var(--neutral-300); }
.availability-day.is-reserved { background: rgba(208, 39, 29, 0.14); color: var(--brick-red); }
.availability-day.is-closed { background: rgba(106, 63, 156, 0.14); color: #6a3f9c; }
.availability-day.is-cart-hold { background: rgba(217, 119, 6, 0.18); color: #b45309; }
.availability-day.is-no-start { color: var(--neutral-300); background: repeating-linear-gradient(135deg, transparent 0 5px, var(--neutral-100) 5px 7px); }
.availability-day.is-today { box-shadow: inset 0 0 0 2px var(--brick-blue); }
.availability-day.is-selectable { cursor: pointer; }
.availability-day.is-selectable:hover { background: rgba(10, 94, 168, 0.24); }
.availability-day.is-in-range:not(.is-reserved):not(.is-cart-hold):not(.is-selected):not(.is-end) { background: rgba(10, 94, 168, 0.22); color: var(--brick-blue); }
.availability-day.is-end:not(.is-reserved):not(.is-cart-hold) { box-shadow: inset 0 0 0 2px var(--brick-blue); background: rgba(10, 94, 168, 0.22); color: var(--brick-blue); font-weight: 800; }
.availability-day.is-selected { box-shadow: inset 0 0 0 2px var(--brick-blue); background: var(--brick-blue); color: #fff; }
.availability-selected-label { margin-top: 0.6rem; font-size: 0.8rem; font-weight: 600; color: var(--brick-blue); line-height: 1.5; }
.availability-legend { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 0.6rem; font-size: 0.72rem; color: var(--color-text-soft); }
.availability-legend .swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 0.3rem; vertical-align: -1px; }
.availability-legend .swatch.free { background: var(--neutral-100); border: 1px solid var(--neutral-200); }
.availability-legend .swatch.reserved { background: rgba(208, 39, 29, 0.14); }
.availability-legend .swatch.closed { background: rgba(106, 63, 156, 0.18); }
.availability-legend .swatch.cart-hold { background: rgba(217, 119, 6, 0.18); }
.availability-legend .swatch.no-start { background: repeating-linear-gradient(135deg, #fff 0 2px, var(--neutral-200) 2px 4px); border: 1px solid var(--neutral-200); }

/* =========================================================
   Richtlijnen page
   ========================================================= */
.guideline-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 991.98px) { .guideline-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .guideline-grid { grid-template-columns: 1fr; } }

.guideline-item {
  display: flex; flex-direction: column; gap: 0.9rem;
  background: #fff; border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--brick-red);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}
.guideline-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.guideline-item:nth-child(4n+2) { border-top-color: var(--brick-blue); }
.guideline-item:nth-child(4n+3) { border-top-color: var(--brick-green); }
.guideline-item:nth-child(4n+4) { border-top-color: var(--brick-orange); }
.guideline-num {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; background: var(--brick-red); color: #fff;
  font-family: var(--font-display); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
  position: relative;
}
.guideline-num::before {
  content: "";
  position: absolute; top: -5px; left: 50%; transform: translateX(-50%);
  width: 9px; height: 9px; border-radius: 50%; background: inherit; filter: brightness(1.3);
}
.guideline-item:nth-child(4n+2) .guideline-num { background: var(--brick-blue); }
.guideline-item:nth-child(4n+3) .guideline-num { background: var(--brick-green); }
.guideline-item:nth-child(4n+4) .guideline-num { background: var(--brick-orange); }
.guideline-body h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.guideline-body p { margin-bottom: 0; color: var(--color-text-soft); }
.guideline-body mark.hl {
  background: linear-gradient(transparent 55%, rgba(255, 199, 44, 0.55) 55%);
  color: var(--neutral-800); font-weight: 600; padding: 0 0.1em;
}

.key-facts {
  background: #fff8e1; border: 2px solid var(--brick-yellow); border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem; box-shadow: var(--shadow-sm);
}
.key-facts-title { font-size: 1.25rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.key-facts-title i { color: var(--brick-yellow-dark); }
.key-facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 991.98px) { .key-facts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .key-facts-grid { grid-template-columns: 1fr; } }
.key-fact { display: flex; gap: 0.75rem; align-items: flex-start; background: #fff; border-radius: var(--radius-md); padding: 0.9rem 1rem; }
.key-fact > i {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--brick-red); color: #fff; font-size: 1.15rem;
}
.key-fact:nth-child(2) > i { background: var(--brick-blue); }
.key-fact:nth-child(3) > i { background: var(--brick-green); }
.key-fact:nth-child(4) > i { background: var(--brick-orange); }
.key-fact strong { display: block; font-family: var(--font-display); font-size: 1.02rem; line-height: 1.25; }
.key-fact strong + span { display: block; font-size: 0.88rem; color: var(--color-text-soft); margin-top: 0.15rem; }

/* =========================================================
   Contact page
   ========================================================= */
.contact-card { background: #fff; border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); height: 100%; }
.contact-info-row { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 1.1rem; }
.contact-info-row .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--neutral-100); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: none; width: 100%; min-height: 320px; }
/* Google Maps only loads once its cookies were accepted in the cookie popup, see script.js. */
.map-consent {
  min-height: 320px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); background: var(--neutral-100);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; padding: 1.5rem; text-align: center;
}
.map-consent > i { font-size: 2.25rem; color: var(--brick-red); }
.map-consent p { margin: 0; max-width: 46ch; font-size: 0.88rem; color: var(--color-text-soft); }
.form-legal { font-size: 0.82rem; color: var(--color-text-soft); margin: 0.75rem 0 0; }

/* =========================================================
   Privacy, cookies, algemene voorwaarden
   ========================================================= */
.legal-doc { max-width: 78ch; }
.legal-doc h2 { font-size: 1.35rem; margin: 2.25rem 0 0.75rem; }
.legal-doc h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }
.legal-doc ul, .legal-doc ol { padding-left: 1.25rem; }
.legal-doc li { margin-bottom: 0.4rem; }
.legal-doc code { color: var(--neutral-800); background: var(--neutral-100); padding: 0.1em 0.35em; border-radius: 4px; }
.legal-updated { font-size: 0.85rem; color: var(--color-text-soft); }
.legal-table-wrap { overflow-x: auto; margin-bottom: 1rem; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.legal-table th, .legal-table td { padding: 0.65rem 0.85rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--neutral-200); }
.legal-table th { background: var(--neutral-100); font-weight: 700; }
.legal-table tr:last-child td { border-bottom: none; }
.legal-form { margin-top: 3rem; background: #fff; border: 2px dashed var(--neutral-300); border-radius: var(--radius-lg); padding: 1.5rem 1.75rem; }
.legal-form h2 { margin-top: 0; }
.legal-form-lines { list-style: none; padding-left: 0; }
.form-control, .form-select { border-radius: var(--radius-sm); border: 2px solid var(--neutral-200); padding: 0.65rem 0.9rem; }
.form-control:focus, .form-select:focus { border-color: var(--brick-blue); box-shadow: 0 0 0 3px rgba(10,94,168,.12); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--neutral-900); color: var(--neutral-200); padding: 3.5rem 0 1.75rem; }
.site-footer h5 { color: #fff; font-family: var(--font-display); margin-bottom: 1rem; }
.site-footer a { color: var(--neutral-200); }
.site-footer a:hover { color: var(--brick-yellow); }
.site-footer .footer-brand { display: flex; align-items: center; margin-bottom: 0.9rem; }
.footer-logo { height: 100px; width: auto; display: block; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2.5rem; padding-top: 1.5rem; font-size: 0.82rem; color: var(--neutral-300); }
.site-footer .footer-bottom > span:first-child { flex-shrink: 0; margin-right: 1.5rem; }
.site-footer .footer-legal { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin-top: 0.35rem; }
.site-footer .footer-credit { display: block; margin-top: 0.2rem; font-size: 0.72rem; opacity: 0.75; }
.site-footer .footer-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.site-footer .footer-credit a:hover { color: #fff; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: inline-flex; align-items: center; justify-content: center; margin-right: 0.5rem; }
.footer-social a:hover { background: var(--brick-red); color: #fff; }

/* =========================================================
   Toast
   ========================================================= */
.toast-brick { border-radius: var(--radius-md); border: none; box-shadow: var(--shadow-lg); }

/* Utility */
.rounded-brick { border-radius: var(--radius-md) !important; }

/* =========================================================
   "Laatste kans": sets leaving the collection soon
   ========================================================= */
.product-card .last-chance-badge {
  left: auto; right: 0.6rem;
  background: var(--brick-orange);
  display: inline-flex; align-items: center; gap: 0.3rem;
  box-shadow: 0 2px 6px rgba(224, 122, 31, 0.35);
}
/* Sale items: "Laatste stuk" when only one is left in stock; chosen options in the cart */
.product-card .last-piece-badge {
  left: auto; right: 0.6rem;
  background: var(--brick-red, #d01012);
  display: inline-flex; align-items: center; gap: 0.3rem;
  box-shadow: 0 2px 6px rgba(208, 16, 18, 0.35);
}
.last-piece-note { font-weight: 700; color: var(--brick-red, #d01012); margin-bottom: 0.75rem; }
.line-options { font-size: 0.85rem; font-weight: 600; color: var(--neutral-800); }
.product-card.is-last-chance { box-shadow: 0 0 0 2px var(--brick-orange), var(--shadow-sm); }
.product-card.is-last-chance:hover { box-shadow: 0 0 0 2px var(--brick-orange), var(--shadow-md); }
.last-chance-note { font-size: 0.78rem; font-weight: 700; color: var(--brick-orange); }
.filter-pill.filter-pill-last-chance:not(.active) { border-color: var(--brick-orange); color: var(--brick-orange); }
.filter-pill.filter-pill-last-chance.active { background: var(--brick-orange); border-color: var(--brick-orange); color: #fff; }
.last-chance-section { background: #fdf1e4; }
.last-chance-banner {
  display: flex; gap: 0.75rem; align-items: flex-start;
  background: #fdf1e4; border: 2px solid var(--brick-orange); border-radius: var(--radius-md);
  padding: 0.85rem 1rem; margin-bottom: 1.25rem; color: var(--neutral-800);
}
.last-chance-banner > i { font-size: 1.4rem; color: var(--brick-orange); line-height: 1.2; }
.last-chance-banner strong { display: block; font-family: var(--font-display); color: var(--brick-orange); }
.last-chance-banner span { font-size: 0.92rem; }
.availability-day.is-after-last { opacity: 0.35; }
#d_confirmAddToCart:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

/* =========================================================
   "Nieuw": sets added to the collection in the last 6 weken
   ========================================================= */
.product-card .new-badge {
  left: auto; right: 0.6rem;
  background: var(--brick-green);
  display: inline-flex; align-items: center; gap: 0.3rem;
  box-shadow: 0 2px 6px rgba(47, 143, 78, 0.35);
}
.product-card.is-new { box-shadow: 0 0 0 2px var(--brick-green), var(--shadow-sm); }
.product-card.is-new:hover { box-shadow: 0 0 0 2px var(--brick-green), var(--shadow-md); }
.filter-pill.filter-pill-new:not(.active) { border-color: var(--brick-green); color: var(--brick-green-dark); }
.filter-pill.filter-pill-new.active { background: var(--brick-green); border-color: var(--brick-green); color: #fff; }
.new-sets-section { background: #e8f5ec; }
.new-set-banner {
  display: flex; gap: 0.75rem; align-items: flex-start;
  background: #e8f5ec; border: 2px solid var(--brick-green); border-radius: var(--radius-md);
  padding: 0.85rem 1rem; margin-bottom: 1.25rem; color: var(--neutral-800);
}
.new-set-banner > i { font-size: 1.4rem; color: var(--brick-green); line-height: 1.2; }
.new-set-banner strong { display: block; font-family: var(--font-display); color: var(--brick-green-dark); }
.new-set-banner span { font-size: 0.92rem; }
/* On the set page both notes sit under the photos. */
.detail-gallery-note { margin: 1.25rem 0 0; }

/* =========================================================
   Homepage showcase: one section, tabs Uitgelicht / Nieuw / Laatste kans
   ========================================================= */
.showcase-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1.25rem 2rem; margin-bottom: 2rem;
}
.showcase-tabs {
  display: inline-flex; gap: 0.25rem; padding: 0.3rem;
  background: #fff; border: 1px solid var(--neutral-200); border-radius: 999px;
  box-shadow: var(--shadow-sm); max-width: 100%; overflow-x: auto;
}
.showcase-tab {
  display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap;
  border: 0; background: transparent; border-radius: 999px;
  padding: 0.55rem 1.1rem; font-weight: 700; font-size: 0.92rem; color: var(--neutral-900);
  transition: background-color .2s ease, color .2s ease;
}
.showcase-tab i { font-size: 0.95rem; color: var(--brick-yellow-dark); }
.showcase-tab:hover { background: var(--neutral-100); }
.showcase-tab.is-active { background: var(--neutral-900); color: #fff; }
.showcase-tab.tab-new i { color: var(--brick-green); }
.showcase-tab.tab-last-chance i { color: var(--brick-orange); }
.showcase-tab.is-active i { color: inherit; }
.showcase-tab.tab-new.is-active { background: var(--brick-green); }
.showcase-tab.tab-last-chance.is-active { background: var(--brick-orange); }
.showcase-count {
  min-width: 1.4rem; padding: 0.05rem 0.4rem; border-radius: 999px; text-align: center;
  font-size: 0.72rem; font-weight: 800; background: var(--neutral-100); color: var(--neutral-900);
}
.showcase-tab.is-active .showcase-count { background: rgba(255, 255, 255, 0.25); color: #fff; }
.showcase-grid.is-switching { animation: showcaseIn .35s ease both; }
@keyframes showcaseIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .showcase-grid.is-switching { animation: none; } }
@media (max-width: 575.98px) {
  .showcase-tabs { width: 100%; }
  .showcase-tab { flex: 1 1 auto; justify-content: center; gap: 0.3rem; padding: 0.5rem 0.55rem; font-size: 0.82rem; }
  .showcase-tab i { font-size: 0.85rem; }
  .showcase-count { display: none; }
}

/* =========================================================
   Hero "Nieuw binnen" spotlight (replaces the bricks while there are new sets)
   ========================================================= */
.hero-spotlight { max-width: 380px; margin-inline: auto; }
.spotlight-card {
  position: relative; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(-1.5deg);
  border-top: 6px solid var(--brick-green);
}
.spotlight-card.is-switching .spotlight-media img,
.spotlight-card.is-switching .spotlight-body { animation: spotlightIn .45s ease both; }
@keyframes spotlightIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .spotlight-card.is-switching .spotlight-media img,
  .spotlight-card.is-switching .spotlight-body { animation: none; }
}
.spotlight-ribbon {
  position: absolute; top: 1rem; left: 1rem; z-index: 1;
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--brick-green); color: #fff; border-radius: 999px;
  padding: 0.35rem 0.8rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(47, 143, 78, 0.35);
}
.spotlight-media {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3; padding: 2.6rem 1.5rem 0.75rem;
  background: radial-gradient(circle at 50% 60%, #eef8f1 0%, #fff 70%);
}
.spotlight-media img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .35s ease; }
.spotlight-media:hover img { transform: scale(1.04); }
.spotlight-body { padding: 0.4rem 1.4rem 1.4rem; }
.spotlight-meta { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.35rem; }
.spotlight-cat {
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase;
  padding: 0.25rem 0.55rem; border-radius: 999px; color: #fff; background: var(--neutral-900);
}
.spotlight-number { font-size: 0.78rem; font-weight: 700; color: var(--color-text-soft); }
.spotlight-title { font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; line-height: 1.15; margin: 0 0 0.9rem; }
.spotlight-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.spotlight-price span { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--brick-red); }
.spotlight-price small { font-size: 0.75rem; color: var(--color-text-soft); }
.spotlight-btn { background: var(--brick-green); }
/* Arrows and dots sit on the image inside the card; only shown with more than one new set. */
.spotlight-stage { position: relative; }
.spotlight-arrow, .spotlight-dots { display: none; }
.has-nav .spotlight-arrow, .has-nav .spotlight-dots { display: flex; }
.spotlight-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--neutral-200);
  background: rgba(255, 255, 255, 0.92); align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); color: var(--neutral-900);
  opacity: 0.85; transition: opacity .2s ease, background-color .2s ease;
}
.spotlight-arrow.is-prev { left: 0.6rem; }
.spotlight-arrow.is-next { right: 0.6rem; }
.spotlight-card:hover .spotlight-arrow, .spotlight-arrow:focus-visible { opacity: 1; }
.spotlight-arrow:hover { background: #fff; }
.spotlight-dots {
  position: absolute; left: 50%; bottom: 0.2rem; transform: translateX(-50%); z-index: 2; gap: 0.4rem;
}
.spotlight-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
  background: var(--neutral-200); transition: width .2s ease, background-color .2s ease;
}
.spotlight-dots button.is-active { width: 22px; background: var(--brick-green); }

/* ---------- Poll (home) ---------- */
.poll-card {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem;
  background: #fff; border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm);
  border-top: 6px solid var(--brick-yellow);
}
@media (max-width: 767.98px) { .poll-card { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.5rem; } }
.poll-options { display: flex; flex-direction: column; gap: 0.6rem; }
.poll-option {
  display: flex; align-items: center; gap: 0.75rem; margin: 0; cursor: pointer;
  padding: 0.75rem 1rem; border: 2px solid var(--neutral-200); border-radius: var(--radius-md);
  font-weight: 600; transition: border-color .15s, background-color .15s;
}
.poll-option:hover { border-color: var(--sky-blue-dark); }
.poll-option:has(input:checked) { border-color: var(--brick-blue); background: var(--sky-blue-soft); }
.poll-option .form-check-input { margin: 0; flex: none; width: 1.2em; height: 1.2em; }
.poll-option .form-check-input:checked { background-color: var(--brick-blue); border-color: var(--brick-blue); }
.poll-option-other .form-control { flex: 1; min-width: 0; font-weight: 400; }
.poll-thanks {
  display: flex; gap: 1rem; align-items: center; height: 100%;
  padding: 1.25rem; border-radius: var(--radius-md); background: #e8f5ec;
}
.poll-thanks > i { font-size: 2rem; color: var(--brick-green); }
.poll-option-img {
  flex: none; width: 76px; height: 60px; border-radius: var(--radius-sm); background: #fff;
  display: flex; align-items: center; justify-content: center; color: var(--neutral-300); font-size: 1.5rem;
}
.poll-option-img img { width: 100%; height: 100%; object-fit: contain; }
.poll-options.has-images .poll-option { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.poll-options.has-images .poll-option-other { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.poll-thanks { align-items: flex-start; }
.poll-my-vote:empty { display: none; }
.poll-my-vote { margin-top: 0.85rem; display: grid; gap: 0.5rem; }
.poll-my-vote-k { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brick-green); }
.poll-my-vote-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.4rem 0.75rem 0.4rem 0.4rem; border-radius: var(--radius-sm); background: #fff; font-weight: 600; }
.poll-my-vote-item .poll-option-img { width: 56px; height: 44px; background: var(--neutral-50, #f6f7f9); }
@media (max-width: 575.98px) { .poll-option-img { width: 60px; height: 48px; } }

/* ---- Cadeaubon personalisation (set-detail, cart) ---- */
.gift-amounts, .gift-reasons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.gift-chip {
  min-width: 4.5rem;
  padding: 0.45rem 0.9rem;
  border: 2px solid var(--neutral-200);
  border-radius: 0.6rem;
  background: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--neutral-800);
  box-shadow: 0 3px 0 var(--neutral-200);
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}
.gift-chip:hover { transform: translateY(-1px); }
.gift-chip.is-active {
  background: var(--brick-yellow);
  border-color: var(--brick-yellow-dark);
  box-shadow: 0 3px 0 var(--brick-yellow-dark);
}
.gift-reason {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--sky-blue-dark);
  border-radius: 999px;
  background: var(--sky-blue-soft);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brick-blue-dark);
}
.gift-reason:hover, .gift-reason.is-active { background: var(--brick-blue); border-color: var(--brick-blue); color: #fff; }
.line-gift { font-size: 0.85rem; color: var(--neutral-700); margin: 0.15rem 0 0.35rem; }
.line-gift i { color: var(--brick-red); }

/* ---- Product cards: theme badge top left, status icons (Populair, Laatste kans, Nieuw) top right ---- */
.product-card .card-badges {
  position: absolute; top: 0.6rem; left: 0.6rem; right: 0.6rem; z-index: 1;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 0.4rem;
  pointer-events: none;
}
.product-card .card-badges .card-badge { position: static; }
.product-card .card-status-icons { display: flex; gap: 0.3rem; margin-left: auto; }
.product-card .card-status-icon {
  width: 2rem; height: 2rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.95rem; border: 2px solid #fff;
  pointer-events: auto; cursor: help;
}
.product-card .card-status-icon.is-popular { background: var(--brick-red); box-shadow: 0 2px 6px rgba(208, 39, 29, 0.4); }
.product-card .card-status-icon.is-last-chance { background: var(--brick-orange); box-shadow: 0 2px 6px rgba(224, 122, 31, 0.4); }
.product-card .card-status-icon.is-new { background: var(--brick-green); box-shadow: 0 2px 6px rgba(47, 143, 78, 0.4); }
.filter-pill.filter-pill-popular:not(.active) { border-color: var(--brick-red); color: var(--brick-red); }
.filter-pill.filter-pill-popular.active { background: var(--brick-red); border-color: var(--brick-red); color: #fff; }
.filter-pills-break { flex-basis: 100%; height: 0; }

/* ---- Sets page: sets grouped per theme, each under the theme logo ---- */
.theme-group + .theme-group { margin-top: 3rem; }
.theme-group-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.theme-group-title { margin: 0; font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; line-height: 1; color: var(--neutral-900); flex-shrink: 0; }
.theme-group-logo { display: block; height: 48px; width: auto; max-width: 220px; object-fit: contain; object-position: left center; }
.theme-group-line { flex: 1; height: 3px; border-radius: 3px; background: var(--theme-color); opacity: 0.85; }
.theme-group-count {
  flex-shrink: 0; font-size: 0.8rem; font-weight: 700; color: #fff;
  background: var(--theme-color); padding: 0.3rem 0.75rem; border-radius: 999px;
}
@media (max-width: 575.98px) {
  .theme-group + .theme-group { margin-top: 2.25rem; }
  .theme-group-logo { height: 36px; max-width: 160px; }
  .theme-group-title { font-size: 1.35rem; }
}
/* Set page: the period chosen on the sets page doesn't fit this set */
.availability-note { margin: 0 0 0.75rem; padding: 0.6rem 0.8rem; border-radius: var(--radius-sm); background: #fff4e0; color: #7a4a0c; font-size: 0.85rem; font-weight: 600; }
.availability-note i { color: var(--brick-orange); margin-right: 0.25rem; }
.availability-note.is-closed { background: #f1ebf8; color: #4b2a73; }
.availability-note.is-closed i { color: #6a3f9c; }

/* =========================================================
   Catalog: filters in a sidebar left of the sets
   (on smaller screens they stay as pills above the sets)
   ========================================================= */
.catalog-sidebar { margin-bottom: 1.5rem; display: flex; flex-direction: column-reverse; gap: 1rem; }
.catalog-sidebar .search-box { max-width: 380px; }
.catalog-sidebar .filter-pill i { margin-right: 0.15rem; }
.catalog-sidebar > .catalog-sidebar-label { display: none; }
.pill-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--theme-color); margin-right: 0.45rem; vertical-align: -0.02em; }
.filter-pill-theme.active .pill-dot { background: #fff; }
.filter-pills-break.catalog-sidebar-label { overflow: hidden; font-size: 0; }

@media (min-width: 992px) {
  .catalog-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2rem; align-items: start; }
  .catalog-sidebar {
    /* Sticky without a scroll box of its own: script.js lowers --sidebar-top when it is taller than the window */
    position: sticky; top: var(--sidebar-top, 100px);
    flex-direction: column; gap: 0.35rem; margin: 0; padding: 1rem;
    background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  }
  .catalog-sidebar .search-box { max-width: none; margin-bottom: 0.4rem; }
  .catalog-sidebar .search-box input { padding: 0.5rem 0.7rem 0.5rem 2.4rem; font-size: 0.9rem; }
  .catalog-sidebar .search-box .search-icon { left: 0.9rem; }
  .catalog-sidebar-label,
  .catalog-sidebar > .catalog-sidebar-label {
    display: block; margin: 0.6rem 0 0.15rem 0.75rem;
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-soft);
  }
  .filter-pills-break.catalog-sidebar-label { flex-basis: auto; height: auto; overflow: visible; margin-top: 1rem; font-size: 0.72rem; }
  .catalog-sidebar .filter-pills { flex-direction: column; flex-wrap: nowrap; gap: 0.15rem; }
  .catalog-sidebar .filter-pill {
    display: block; width: 100%; text-align: left;
    border-radius: 12px; padding: 0.5rem 0.75rem; font-size: 0.9rem;
  }
  .catalog-sidebar .filter-pill:not(.active) { border-color: transparent; }
  .catalog-sidebar .filter-pill:not(.active):hover { background: var(--neutral-100); }
  .catalog-sidebar .filter-pill-theme.active { background: var(--theme-color); border-color: var(--theme-color); }
  .catalog-main .product-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
@media (min-width: 1400px) {
  .catalog-main .product-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Set detail: "Bouwinstructies erbij huren" as a switch (same look as in the winkelwagen) */
.instructions-switch { display: flex; align-items: center; gap: 0.65rem; padding-left: 0; }
.instructions-switch .form-check-input { float: none; margin: 0; width: 2.6em; height: 1.4em; cursor: pointer; border-color: var(--neutral-200); box-shadow: none; flex-shrink: 0; }
.instructions-switch .form-check-input:checked { background-color: var(--brick-green); border-color: var(--brick-green); }
.instructions-switch .form-check-input:focus { box-shadow: 0 0 0 0.2rem rgba(47, 143, 78, 0.25); }
.instructions-switch .form-check-label { cursor: pointer; font-weight: 600; }

/* Set detail: digital instructions included, the paper booklet optional (or not available) */
.instructions-box {
  display: grid; gap: 0.6rem; padding: 0.85rem 1rem;
  background: #fff; border: 1px solid var(--neutral-200); border-radius: var(--radius-md);
}
.instructions-digital { display: flex; align-items: center; gap: 0.55rem; color: var(--brick-green-dark); }
.instructions-digital .bi { font-size: 1.15rem; }
.instructions-none { display: flex; gap: 0.5rem; font-size: 0.9rem; color: var(--neutral-600); }

/* Set detail: specs as small tiles, each with a coloured stud-like icon */
.set-specs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin: 1.25rem 0;
}
.set-spec {
  display: flex; align-items: center; gap: 0.6rem; margin: 0; padding: 0.6rem 0.7rem;
  background: #fff; border: 1px solid var(--neutral-200); border-radius: var(--radius-md);
}
.set-spec .bi {
  flex: none; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  color: #fff; font-size: 1rem; background: var(--spec-color, var(--brick-red));
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}
.set-spec dt { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--neutral-600); line-height: 1.1; }
.set-spec dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.set-extra-info { margin: 0 0 1.5rem; padding-left: 0.9rem; border-left: 4px solid var(--brick-yellow); }
.set-extra-info p { margin-bottom: 0.5rem; }
.set-extra-info p:last-child { margin-bottom: 0; }

/* ---- Vakantie notice on the home page (home.js, api/holidays.php) ---- */
.holiday-notice { background: #f1ebf8; border-bottom: 2px solid #6a3f9c; color: #3b2160; }
.holiday-notice .container { display: flex; align-items: center; gap: 0.75rem; padding-top: 0.85rem; padding-bottom: 0.85rem; font-size: 0.95rem; }
.holiday-notice .bi { flex: none; font-size: 1.5rem; color: #d9a300; }
.holiday-notice strong { font-family: var(--font-display); color: #6a3f9c; }

/* ---------- Nieuwsbrief (home, contact, checkout) ---------- */
.newsletter-card {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 2rem; align-items: center;
  background: #fff; border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm);
  border-top: 6px solid var(--brick-green);
}
@media (max-width: 767.98px) { .newsletter-card { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.5rem; } }
.newsletter-intro { display: flex; gap: 1rem; align-items: flex-start; }
.newsletter-icon {
  flex: none; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: var(--radius-md);
  background: #e8f5ec; color: var(--brick-green); font-size: 1.6rem;
}
.newsletter-inline-icon { color: var(--brick-green); }
.newsletter-fields { display: flex; gap: 0.6rem; }
.newsletter-fields .form-control { flex: 1; min-width: 0; }
.newsletter-fields .btn-brick { flex: none; padding-left: 1.2rem; padding-right: 1.2rem; }
@media (max-width: 420px) { .newsletter-fields { flex-direction: column; } }
.newsletter-msg { margin: 0.5rem 0 0; font-size: 0.88rem; color: var(--brick-red); }
.newsletter-privacy { margin: 0.5rem 0 0; font-size: 0.8rem; color: var(--color-text-soft); }
.newsletter-done {
  display: flex; gap: 0.9rem; align-items: center;
  padding: 1rem 1.1rem; border-radius: var(--radius-md); background: #e8f5ec;
}
.newsletter-done > i { font-size: 1.8rem; color: var(--brick-green); }
.newsletter-done strong, .newsletter-done span { display: block; }
.newsletter-done span { font-size: 0.9rem; color: var(--color-text-soft); overflow-wrap: anywhere; }
.newsletter-done.d-none { display: none; }

/* Checkout: the opt-in under the Gegevens recap, or a confirmation when the address is already subscribed. */
.newsletter-opt {
  display: flex; gap: 0.75rem; align-items: flex-start; margin-top: 1rem; cursor: pointer;
  padding: 0.8rem 1rem; border: 2px solid var(--neutral-200); border-radius: var(--radius-md);
  transition: border-color .15s, background-color .15s;
}
.newsletter-opt:hover { border-color: var(--sky-blue-dark); }
.newsletter-opt:has(input:checked) { border-color: var(--brick-green); background: #e8f5ec; }
.newsletter-opt .form-check-input { margin: 0.15rem 0 0; flex: none; width: 1.2em; height: 1.2em; }
.newsletter-opt .form-check-input:checked { background-color: var(--brick-green); border-color: var(--brick-green); }
.newsletter-opt strong, .newsletter-opt span span { display: block; }
.newsletter-opt span span { font-size: 0.85rem; color: var(--color-text-soft); overflow-wrap: anywhere; }
.newsletter-opt.is-active { cursor: default; border-color: transparent; background: #e8f5ec; align-items: center; }
.newsletter-opt.is-active > i { font-size: 1.5rem; color: var(--brick-green); }
.newsletter-opt.d-none { display: none; }

/* Checkout: actiecode field and the discount line above the total */
.action-code-form { display: flex; gap: 0.5rem; max-width: 26rem; }
.action-code-form .form-control { text-transform: uppercase; letter-spacing: 0.04em; }
.action-code-form .form-control::placeholder { text-transform: none; letter-spacing: normal; }
.action-code-form .btn-brick { flex: none; padding: 0.45rem 1rem; box-shadow: 0 3px 0 var(--neutral-900); }
.action-code-error { margin-top: 0.4rem; font-size: 0.875rem; color: var(--brick-red-dark); }
.action-code-applied { display: inline-flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; padding: 0.45rem 0.8rem; border-radius: var(--radius-sm); background: #e8f5ec; color: var(--brick-green-dark); font-size: 0.9rem; }
.action-code-applied .bi { margin-right: 0.15rem; }
.action-code-remove { border: 0; background: none; padding: 0; font-size: 0.85rem; color: var(--neutral-700); text-decoration: underline; }
.action-code-remove:hover { color: var(--brick-red); }
.order-discount { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.75rem; font-weight: 600; color: var(--brick-green-dark); }
@media (max-width: 420px) { .action-code-form { flex-direction: column; } }
/* Set detail, compact: price and period on one row, calendar with the order panel beside it */
.detail-buy-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem 1.5rem; margin-bottom: 1.25rem; }
.detail-buy-head .detail-price { flex: none; padding-bottom: 0.35rem; }
.detail-period { flex: 1 1 320px; min-width: 0; }
.detail-period .week-select + .week-buttons { margin-bottom: 0; }
.rent-layout { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 1rem; align-items: start; }
.rent-layout .availability-calendar { margin-top: 0; max-width: none; }
.rent-side { display: grid; gap: 0.75rem; }
.rent-side .instructions-switch { align-items: flex-start; }
.rent-side .instructions-switch .form-check-label { font-size: 0.95rem; line-height: 1.3; }
@media (max-width: 575.98px) { .rent-layout { grid-template-columns: 1fr; } }
.instructions-box .instructions-digital { font-size: 0.85rem; gap: 0.45rem; }
.instructions-box .instructions-digital .bi { font-size: 1rem; }
.instructions-digital a, .instructions-none a, .line-instructions a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Richtlijnen: how to get the digital building instructions (PDF or the LEGO Builder app) */
/* The same baseplate as the page headers (studs fading out from the top-right), but green. */
.instructions-guide {
  position: relative; isolation: isolate; overflow: hidden; scroll-margin-top: 90px;
  --plate: #bfe3c9; --plate-edge: #9fd0ad;
  background-color: var(--plate); border-bottom: 7px solid var(--plate-edge); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-sm);
}
.instructions-guide::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 55% 75% at 0% 0%, rgba(255, 255, 255, 0.7), transparent 65%),
    radial-gradient(ellipse 40% 60% at 80% 0%, rgba(255, 255, 255, 0.45), transparent 70%),
    radial-gradient(ellipse 60% 80% at 100% 100%, rgba(34, 107, 58, 0.28), transparent 65%),
    linear-gradient(165deg, #e3f4e8 0%, var(--plate) 100%);
}
.instructions-guide::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    radial-gradient(circle at 13px 12px, rgba(255, 255, 255, 0.9) 0 1.5px, rgba(255, 255, 255, 0) 4px),
    radial-gradient(circle at 15px 15px, #eef9f1 0 4px, #d3ecdb 7px, rgba(211, 236, 219, 0) 7.5px),
    radial-gradient(circle at 16px 16px, #e2f4e7 0 7px, #94c9a3 9px, rgba(148, 201, 163, 0) 9.6px),
    radial-gradient(circle at 18px 19px, rgba(20, 80, 40, 0.2) 0 8px, rgba(20, 80, 40, 0) 12px);
  background-size: 32px 32px; background-repeat: repeat; background-position: center top;
  -webkit-mask-image:
    radial-gradient(130% 150% at 100% 0%, #000 20%, rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(180deg, #000 45%, rgba(0, 0, 0, 0.2) 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(130% 150% at 100% 0%, #000 20%, rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(180deg, #000 45%, rgba(0, 0, 0, 0.2) 100%);
  mask-composite: intersect;
}
/* On the plate the texts get a light tile, as in the page headers. */
.instructions-guide .eyebrow {
  background: rgba(255, 255, 255, 0.8); color: var(--brick-red-dark);
  box-shadow: 0 2px 0 rgba(34, 107, 58, 0.18), 0 4px 12px rgba(20, 80, 40, 0.12);
}
.instructions-guide .ig-lead {
  color: var(--neutral-700); font-weight: 500; width: fit-content;
  background: rgba(255, 255, 255, 0.72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  border-radius: 14px; padding: 0.85rem 1.1rem; box-shadow: 0 4px 14px rgba(20, 80, 40, 0.1);
}
.ig-head { display: flex; gap: 1.1rem; align-items: flex-start; margin-bottom: 1.5rem; position: relative; }
.ig-badge {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: 16px; background: var(--brick-green); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.9rem;
  box-shadow: 0 4px 0 var(--brick-green-dark);
}
.ig-title { font-size: 1.6rem; margin: 0.5rem 0 0.4rem; }
.ig-lead { color: var(--color-text-soft); margin: 0; max-width: 70ch; }
.ig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; position: relative; }
@media (max-width: 767.98px) {
  .instructions-guide { padding: 1.25rem; }
  .ig-grid { grid-template-columns: 1fr; }
  .ig-badge { width: 48px; height: 48px; font-size: 1.4rem; border-radius: 12px; }
  .ig-title { font-size: 1.35rem; }
}
.ig-card {
  display: flex; flex-direction: column; gap: 1rem;
  background: #fff; border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: 0 4px 16px rgba(20, 80, 40, 0.12);
  border-top: 4px solid var(--brick-green);
}
.ig-card-app { border-top-color: var(--brick-blue); }
.ig-card-head { display: flex; gap: 0.85rem; align-items: center; }
.ig-card-head h3 { font-size: 1.15rem; margin: 0; }
.ig-card-head div > span { display: block; color: var(--color-text-soft); font-size: 0.9rem; }
.ig-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; background: rgba(47, 143, 78, 0.12); color: var(--brick-green-dark);
}
.ig-card-app .ig-icon { background: rgba(10, 94, 168, 0.12); color: var(--brick-blue); }
.ig-steps { list-style: none; counter-reset: ig; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.ig-steps li { counter-increment: ig; display: flex; gap: 0.7rem; align-items: flex-start; color: var(--color-text-soft); }
.ig-steps li::before {
  content: counter(ig); flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; background: var(--brick-green); color: #fff;
  font-family: var(--font-display); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.ig-steps strong, .ig-features strong { color: var(--neutral-800); }
.ig-lookup { background: var(--neutral-50); border-radius: var(--radius-md); padding: 0.85rem 1rem; }
.ig-lookup-row { display: flex; gap: 0.5rem; }
.ig-lookup-row .form-control { min-width: 0; }
.ig-lookup-row .btn-brick { padding: 0.5rem 1.1rem; }
.ig-main-btn { margin-top: auto; width: 100%; white-space: normal; text-align: center; padding: 0.85rem 1.2rem; font-size: 1.05rem; }
.ig-features { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; color: var(--color-text-soft); }
.ig-features li { display: flex; gap: 0.6rem; align-items: flex-start; }
.ig-features .bi { color: var(--brick-blue); font-size: 1.1rem; line-height: 1.4; }
.ig-stores { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 380px) { .ig-stores { grid-template-columns: 1fr; } }
.store-btn {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.6rem 1rem; border-radius: 12px;
  background: #111317; color: #fff; text-decoration: none; transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 4px 0 #000;
}
.store-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 0 #000, 0 10px 18px rgba(0, 0, 0, 0.2); }
.store-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #000; }
.store-btn:focus-visible { outline: 3px solid var(--brick-yellow); outline-offset: 2px; }
.store-btn .bi { font-size: 1.7rem; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.store-btn small { font-family: var(--font-body, inherit); font-weight: 400; font-size: 0.7rem; opacity: 0.85; }
.ig-tip {
  display: flex; gap: 0.6rem; align-items: flex-start; margin: 1.25rem 0 0; position: relative;
  background: #fff8e1; border: 1px solid var(--brick-yellow); border-radius: var(--radius-md); padding: 0.75rem 1rem; color: var(--neutral-800);
}
.ig-tip .bi { color: var(--brick-yellow-dark); font-size: 1.15rem; }

/* Homepage "cadeaubon" section: the same light-blue baseplate as the page headers, with its texts on
   the same light panels. */
.home-gift-section .lead {
  width: fit-content; max-width: min(48ch, 100%);
  color: var(--neutral-700); font-weight: 500;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  border-radius: 14px; padding: 0.85rem 1.1rem;
  box-shadow: 0 4px 14px rgba(9, 60, 120, 0.1);
}
@media (max-width: 991.98px) { .home-gift-section .lead { margin-inline: auto; } }
.home-gift-section .home-gift-more {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  border-radius: 999px; padding: 0.4rem 0.9rem;
  box-shadow: 0 2px 8px rgba(9, 60, 120, 0.08);
}

/* =========================================================
   Hero mood: more colour on the plate, and studs that fade out
   ========================================================= */
/* The badges on the homepage hero: light panels like the label and the intro text. */
.hero-badges .item {
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* The plate: several soft glows instead of one flat colour. Homepage: warm sunlight top-left, a light
   spot top-right, sky blue bottom-right and a touch of brick red at the bottom. */
.hero::before {
  background:
    radial-gradient(ellipse 55% 65% at 0% 0%, rgba(255, 199, 44, 0.4), transparent 65%),
    radial-gradient(ellipse 45% 55% at 85% 0%, rgba(255, 255, 255, 0.7), transparent 70%),
    radial-gradient(ellipse 60% 70% at 100% 100%, rgba(10, 94, 168, 0.24), transparent 65%),
    radial-gradient(ellipse 45% 50% at 35% 115%, rgba(208, 39, 29, 0.1), transparent 70%),
    linear-gradient(165deg, #f5f0e6 0%, var(--plate) 100%);
}
/* Page headers and the cadeaubon section on the homepage: light blue, brighter top-left and top-right, deeper blue bottom-right. */
.baseplate::before {
  background:
    radial-gradient(ellipse 55% 75% at 0% 0%, rgba(255, 255, 255, 0.7), transparent 65%),
    radial-gradient(ellipse 40% 60% at 80% 0%, rgba(255, 255, 255, 0.45), transparent 70%),
    radial-gradient(ellipse 60% 80% at 100% 100%, rgba(10, 94, 168, 0.28), transparent 65%),
    linear-gradient(165deg, #e4f0fe 0%, var(--plate) 100%);
}
/* The studs: clearest in the top-right corner, fading out towards the text on the left and towards the
   bottom, so the plate eases into the page. */
.hero::after,
.baseplate::after {
  -webkit-mask-image:
    radial-gradient(130% 150% at 100% 0%, #000 20%, rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(180deg, #000 45%, rgba(0, 0, 0, 0.2) 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(130% 150% at 100% 0%, #000 20%, rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(180deg, #000 45%, rgba(0, 0, 0, 0.2) 100%);
  mask-composite: intersect;
}

/* ---------- In de kijker (news from the beheer, home) ---------- */
.news-list { display: flex; flex-direction: column; gap: 1.5rem; }
.news-feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch;
  background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  border-top: 6px solid var(--brick-red);
}
.news-feature.is-flipped { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border-top-color: var(--brick-blue); }
.news-feature.is-flipped .news-media { order: 2; }
.news-media {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 320px; padding: 1.75rem 1.5rem 1.5rem; background: linear-gradient(160deg, #fff 40%, var(--sky-blue-soft));
}
/* The set photos have a white background: show them on a white tile so the white reads as intended,
   with the gradient around it. The tile hugs the photo (no stretching, so no white letterbox bands). */
.news-media img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: 300px; object-fit: contain;
  box-sizing: border-box; padding: 1rem; background: #fff; border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(20, 50, 90, 0.12), 0 1px 3px rgba(20, 50, 90, 0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.news-feature:hover .news-media img { box-shadow: 0 10px 28px rgba(20, 50, 90, 0.16), 0 2px 4px rgba(20, 50, 90, 0.08); }
.news-feature:hover .news-media img { transform: scale(1.03); }
.news-media .card-badges { position: absolute; top: 1rem; left: 1rem; display: flex; gap: 0.4rem; align-items: center; z-index: 1; }
.news-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; padding: 2.25rem 2.5rem; }
.news-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.15; margin: 0; }
.news-text { color: var(--color-text-soft); font-size: 1.02rem; }
.news-text p { margin: 0 0 0.7rem; }
.news-text p:last-child { margin-bottom: 0; }
.news-product {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 1rem;
  padding: 0.7rem 1rem; border-radius: var(--radius-md); background: var(--sky-blue-soft); width: 100%;
}
.news-product-name { font-family: var(--font-display); font-weight: 700; flex: 1 1 auto; }
.news-product .card-set-number { font-size: 0.8rem; font-weight: 700; color: var(--color-text-soft); letter-spacing: 0.4px; }
.news-price { display: inline-flex; align-items: baseline; gap: 0.4rem; white-space: nowrap; }
.news-price .price-value { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--brick-red); }
.news-price .price-unit { font-size: 0.78rem; color: var(--color-text-soft); }
.news-btn { margin-top: 0.25rem; }
@media (max-width: 767.98px) {
  .news-feature, .news-feature.is-flipped { grid-template-columns: 1fr; }
  .news-feature.is-flipped .news-media { order: 0; }
  .news-media { min-height: 0; height: 240px; }
  .news-media img { max-height: 100%; padding: 0.75rem; }
  .news-copy { padding: 1.5rem; }
}

/* Sale page: the filters in the same sidebar as the sets page, in several groups */
.sale-sidebar { flex-direction: column; gap: 0.6rem; }
.sale-sidebar > .catalog-sidebar-label {
  display: block; margin: 0.4rem 0 0; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-soft);
}
.sale-sidebar .filter-pill { white-space: nowrap; }
.filter-pill .pill-count { font-weight: 600; opacity: 0.6; }
.sale-sort { max-width: 380px; border-radius: 12px; border: 2px solid var(--neutral-200); font-weight: 600; font-size: 0.9rem; }
.sale-sort:focus { border-color: var(--brick-blue); box-shadow: 0 0 0 3px rgba(10,94,168,.12); }
.sale-reset {
  align-self: flex-start; border: 0; background: none; padding: 0.25rem 0; font-weight: 700; font-size: 0.85rem; color: var(--brick-red);
}
.sale-reset:hover { text-decoration: underline; }
@media (min-width: 992px) {
  .sale-sidebar { gap: 0.35rem; }
  .sale-sidebar > .catalog-sidebar-label { margin: 0.6rem 0 0.15rem 0.75rem; }
  .sale-sort { max-width: none; }
  .sale-reset { margin: 0.5rem 0 0 0.75rem; }
}
.filter-pill:disabled, .filter-pill:disabled:hover {
  opacity: 0.4; cursor: not-allowed; background: #fff; border-color: var(--neutral-200); color: var(--neutral-800);
}
@media (min-width: 992px) { .catalog-sidebar .filter-pill:disabled { border-color: transparent; background: none; } }

/* =========================================================
   Cookie popup (script.js)
   ========================================================= */
.cookie-popup {
  position: fixed; left: 16px; bottom: 16px; z-index: 1080; width: min(420px, calc(100vw - 32px));
  background: #fff; border-radius: var(--radius-lg); box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25); padding: 1.25rem 1.35rem;
  border-top: 6px solid var(--brick-yellow); animation: cookie-in 0.25s ease-out;
}
.cookie-popup-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 1.05rem; }
.cookie-popup-head i { font-size: 1.35rem; color: var(--brick-red); }
.cookie-popup p { font-size: 0.9rem; color: var(--color-text-soft); margin: 0 0 1rem; }
.cookie-popup-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cookie-popup { animation: none; } }

/* ---------- Welkom op de nieuwe website: sticker in the home hero (until 15/01/2027) ---------- */
.welcome-sticker {
  display: flex; align-items: center; gap: 0.85rem; width: fit-content; max-width: 100%;
  margin-bottom: 1.5rem; padding: 0.75rem 1.4rem 0.75rem 0.8rem;
  color: var(--neutral-900); text-decoration: none; background: var(--brick-yellow);
  border: 2px solid var(--neutral-900); border-radius: 18px;
  box-shadow: 0 5px 0 var(--neutral-900), 0 12px 24px rgba(168, 126, 0, 0.3);
  transform: rotate(-1.5deg);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: welcome-pop 0.55s cubic-bezier(.3, 1.6, .5, 1) 0.3s both;
}
.welcome-sticker:hover, .welcome-sticker:focus-visible {
  color: var(--neutral-900); transform: rotate(-1.5deg) translateY(-2px);
  box-shadow: 0 7px 0 var(--neutral-900), 0 14px 28px rgba(168, 126, 0, 0.35);
}
.welcome-sticker.d-none { display: none; }
.welcome-icon {
  flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px;
  background: var(--brick-red); color: #fff; font-size: 1.35rem; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.2);
}
.welcome-sticker strong { display: block; font-family: var(--font-display); font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.15; }
.welcome-sticker small { display: block; margin-top: 0.15rem; font-size: 0.92rem; font-weight: 600; color: var(--neutral-800); }
.welcome-sticker small .bi { transition: transform 0.15s ease; display: inline-block; }
.welcome-sticker:hover small .bi { transform: translateX(3px); }
@keyframes welcome-pop { from { opacity: 0; transform: rotate(-1.5deg) scale(0.6); } to { opacity: 1; transform: rotate(-1.5deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .welcome-sticker { animation: none; transition: none; } }
