/*
 * dropioo-components.css — Brand-componenten verplaatst uit inline <style>-blokken
 * (Batch 3 M6). Deze CSS is non-critical: laad na critical-inline + tokens +
 * tailwind + system. Inhoud uit:
 *   - templates/_base.html (button/chip/pill/input/toggle/icon-card/etc.)
 *   - templates/_base.html (cookie banner desktop pos)
 *   - templates/homepage.html (showcase-card drops-stage)
 *   - templates/product.html (alert-modal row)
 */

/* ── Tailwind utility-alikes ── */
/* .text-brand wordt nu mapped op brand-deep (#C24500) zodat oranje tekst op
   witte achtergrond WCAG AA 4.5:1 haalt. De felle #FF6A00 blijft beschikbaar
   voor icoon-strokes, achtergronden en accenten. */
.text-brand { color: var(--dropioo-orange-deep, #C24500); }
.bg-brand { background: var(--brand); }
.bg-brand-soft { background: var(--brand-soft); }
.border-brand { border-color: var(--brand); }
.bg-cream { background: var(--cream); }
.bg-warm { background: var(--warm); }

/* Helper voor situaties waar je expliciet de levendige flame-orange wil
   (bv decoratieve SVG-stroke, icoon binnen knop-kop op witte BG). */
.text-flame { color: var(--brand, #FF6A00); }

/* A11y-override: Tailwind tokens fail AA op witte/warm-sand achtergrond.
   text-muted-2 was #6B7280 (4.22 op #f4efe7) — bump naar #5E6772 (4.85).
   text-gray-400 (oklch ~70%) en text-gray-500 (oklch ~55%) idem.
   Components.css laadt na Tailwind, dus cascade-volgorde wint. */
.text-muted-2 { color: #5E6772; }
.text-gray-400, .text-gray-500 { color: #5E6772; }
.text-muted   { color: #4B5563; }

/* Success-green WCAG AA fix: text-green-600 = #16A34A (3.29 op #fff, faalt).
   #0E7A3D = 4.65 op wit, slaagt AA. text-ok is project-token voor success. */
.text-green-600, .text-green-700, .text-ok { color: #0E7A3D; }

/* Inline override voor t-overline "Live" en soortgelijke labels die met
   inline style="color: var(--dropioo-orange)" stonden. We mappen die naar
   brand-deep zodat 4.5:1 wordt gehaald. (Inline style heeft hogere
   specificiteit dus daar moet de template zelf brand-deep gebruiken.) */
.t-overline { color: var(--brand-deep, #B83F00); }

/* ── Buttons ──
   Canonical base voor .btn én .ds-btn (Batch 4-3 unification). De class-namen
   blijven naast elkaar bestaan (geen template-migratie) maar de CSS-regels
   zijn identiek zodat homepage (.btn) en dashboard (.ds-btn) visueel matchen.
   Spec: height 44, padding 0 18px, radius 14, weight 600, Poppins display,
   letter-spacing -0.005em, transition 150ms ease.
*/
.btn,
.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  letter-spacing: -0.005em;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 0;
  background: transparent;
  color: var(--ink);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease,
              color 150ms ease,
              border-color 150ms ease,
              box-shadow 150ms ease,
              transform 100ms ease;
}
.btn:active,
.ds-btn:active { transform: translateY(1px); }

.btn-primary,
.ds-btn-primary {
  /* WCAG AA: wit op #FF6A00 = 2.87:1 (faalt). Wit op #C24500 = 5.04:1 (slaagt).
     We accepteren een iets diepere oranje zodat de primary CTA AA haalt. */
  background: var(--dropioo-orange-deep, #C24500);
  color: #fff;
  box-shadow: var(--shadow-orange, 0 8px 24px rgba(255,106,0,0.28));
}
.btn-primary:hover,
.ds-btn-primary:hover { background: #A83C00; }

.btn-secondary,
.ds-btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-secondary:hover,
.ds-btn-secondary:hover { background: var(--cream); }

.btn-ghost,
.ds-btn-ghost {
  background: transparent;
  /* brand-deep i.p.v. felle brand zodat tekst op witte/warme BG AA haalt. */
  color: var(--brand-deep, #B83F00);
  border: 0;
}
.btn-ghost:hover,
.ds-btn-ghost:hover { background: var(--brand-soft); }

.btn-link { background: transparent; color: var(--ink); padding: 0 4px; min-height: 44px; }
.btn-link:hover { color: var(--brand); background: transparent; }

.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; border-radius: 16px; }

/* Small variant gebruikt door dashboard topbar acties.
   Spec: height 36, padding 0 12px, font-size 14px. */
.ds-btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }

/* Icon-only variant overrides — width/height/padding/radius worden in
   dropioo-system.css gezet; deze regel zorgt dat de unified .ds-btn-base
   die properties niet alsnog overschrijft (components.css laadt later).
   .ds-btn-icon krijgt zo de juiste 44×44 square shape. */
.ds-btn.ds-btn-icon {
  width: 44px;
  min-height: 44px;
  height: 44px;
  padding: 0;
  border-radius: 10px;
  font-size: 14px;
}
@media (min-width: 769px) {
  .ds-btn.ds-btn-icon { width: 36px; height: 36px; min-height: 36px; border-radius: 8px; }
}

/* ── Chips ── */
/* Chips — brand foreground op brand-soft achtergrond. brand-deep haalt
   AA 4.5:1 op #FFE7D0 (4.79). Felle --brand (#FF6A00) faalde (2.4). */
.chip { display: inline-flex; align-items: center; gap: .35rem; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 9999px; background: var(--brand-soft); color: var(--brand-deep, #B83F00); white-space: nowrap; }
.chip--neutral { background: var(--warm); color: var(--muted); }
.chip--ok { background: #D1FAE5; color: #047857; }
.chip--bad { background: #FEE2E2; color: #B91C1C; }
/* chip--accent: was #B8500B (4.19 op #FFE7D0). #9A4504 = 6.12, slaagt AA ruim. */
.chip--accent { background: #FFE7D0; color: #9A4504; }

/* ── Pills (range/period switcher) ── */
.pill { display: inline-flex; align-items: center; gap: .35rem; font-size: 13px; font-weight: 500; padding: 6px 14px; border-radius: 9999px; background: transparent; color: var(--muted); transition: background .15s, color .15s; cursor: pointer; border: none; }
.pill:hover { background: var(--warm); }
.pill--active { background: var(--ink); color: #fff; }
.pill--active:hover { background: var(--ink); color: #fff; }

/* ── Inputs ── */
.input { width: 100%; border: 1px solid var(--border); background: #fff; border-radius: 12px; padding: 12px 16px; color: var(--ink); font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,106,0,.15); }
.input.pl-7  { padding-left: 1.75rem; }
.input.pl-8  { padding-left: 2rem; }
.input.pl-10 { padding-left: 2.5rem; }
.input.pl-12 { padding-left: 3rem; }

/* iOS Safari zoomt automatisch in op input < 16px. Bump font-size op mobile
   zodat we die zoom voorkomen (betere UX dan user-scalable=no). */
@media (max-width: 640px) {
  input.input,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="number"],
  input[type="tel"],
  input[type="url"],
  textarea,
  select {
    font-size: 16px !important;
  }

  /* Mobile heading-scale: kleinere h1/h2 voor betere readability op iPhone.
     Tailwind text-3xl/4xl/5xl + hardcoded text-[40px] worden hier overruled —
     desktop-md+ blijft via Tailwind responsive werken. */
  .heading-display { font-size: 28px !important; line-height: 1.15 !important; }
  h1.heading-display { font-size: 28px !important; }
  h1[class*="text-[40px]"], h1[class*="text-3xl"] { font-size: 28px !important; }
  h2[class*="text-3xl"], h2[class*="text-4xl"] { font-size: 22px !important; line-height: 1.25 !important; }
  h2.font-display.font-bold { font-size: 22px !important; line-height: 1.25 !important; }
  h3[class*="text-xl"], h3.font-display { font-size: 17px !important; }
}

/* ── Card, price-tabular ── */
.card-hover:hover { box-shadow: 0 8px 24px rgba(13,20,33,.06); transform: translateY(-2px); }
.price { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ── Headings hierarchy ── */
h2.font-display { font-weight: 700; letter-spacing: -.018em; }
h3.font-display { font-weight: 600; letter-spacing: -.01em; }

/* ── Nav-links ── */
/* Top-nav links — min-height 44 voor Apple HIG tap-target (was 32-38). */
.nav-link { color: var(--ink); font-size: 15px; padding: 12px 14px; border-radius: 8px; font-weight: 500; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.nav-link:hover { color: var(--dropioo-orange-deep, #C24500); }
.nav-link.is-active { color: var(--dropioo-orange-deep, #C24500); }

/* ── Flash messages ── */
.flash { display: flex; align-items: center; gap: .5rem; background: var(--brand-soft); color: #7C2D12; padding: 12px 16px; border-radius: 12px; font-size: 14px; }

/* ── Details summary ── */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }

.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Toggle switch ──
   Canonical 44×24 oranje-on-state met 20×20 knob (2px inset).
   Visueel gedeeld met .dash-toggle-slider (dropioo-system.css) en .ds-switch
   zodat een toggle op /account, /dashboard of in een product-sidebar
   identiek oogt. Class-namen blijven naast elkaar bestaan (geen template-
   migratie); de CSS-regels zijn de bron-van-waarheid. */
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle input { display: none; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--border);
  border-radius: 9999px;
  transition: background 200ms ease;
  cursor: pointer;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 200ms ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle input:checked + .toggle-slider { background: var(--brand); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

.icon-card { width: 48px; height: 48px; background: #fff; border: 1px solid var(--border); border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); box-shadow: 0 2px 6px rgba(13,20,33,.04); }

/* ── A11y focus-visible ── */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible,
.ds-btn:focus-visible,
button.btn:focus-visible,
.pill:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.card:has(a:focus-visible),
.card:has(button:focus-visible) {
  box-shadow: 0 0 0 2px var(--brand);
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff;
  padding: 8px 16px; border-radius: 0 0 8px 0;
  z-index: 1000; font-weight: 600;
}
.skip-link:focus { left: 0; }

.text-body-strong { color: var(--ink-2, #1F2937); }
.text-body { color: var(--muted); }

/* A11y: footer links — geef ze 44px tap-target zonder layout te breken.
   `inline-block` + py-2 mock heeft Tailwind voor links die binnen lijsten in
   het footer-grid staan. Voorkomt 13-17px hoge clickables. */
footer ul a,
footer .footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
}

/* A11y: cookie-banner "Meer" link en disclaimer links krijgen ook tap-padding. */
#dropioo-cookie-banner a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 4px;
}

/* A11y: password-eye toggle — pw-toggle moet ook 44x44 zijn. De inline-class
   `p-1` (4px padding) maakt 'm ~24x24. We bumpen via een specifieke rule. */
button.pw-toggle {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* A11y: alle iconen-only knoppen krijgen min-44 als niet expliciet anders. */
button[aria-label]:not(.btn):not(.ds-btn):not(.search-pill__btn):not(.dropioo-bnav-item):not(.section-row):not(.premium-strip__cta):where(:not([class*="min-h-"])) {
  min-height: 44px;
}

/* "Installeer als app" knoppen alleen relevant op mobile */
@media (min-width: 768px) {
  [data-pwa-install] { display: none !important; }
}

.logo-lockup { height: 36px; width: auto; }
.logo-lockup--lg { height: 44px; }
.logo-flame { height: 28px; width: auto; }

.accent-gradient { background: linear-gradient(135deg, #FF6A00 0%, #FFA633 100%); }
.glow-accent { box-shadow: 0 0 0 4px rgba(255,166,51,.18); }

section.border-t.border-border,
section.border-y.border-border { border-color: #E0DACE; }
footer { border-top-color: rgba(255,255,255,.08); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0;
           margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
           white-space: nowrap; border: 0; }

/* ── Cookie banner desktop position (uit _base.html inline <style>) ── */
@media (min-width: 768px) {
  #dropioo-cookie-banner { bottom: 1.5rem !important; }
}
body.has-cookie-banner main {
  padding-bottom: 0;
}
@media (max-width: 767px) {
  body.has-cookie-banner main {
    /* bottom-nav (60px) + cookie-banner (70px) + safe-area — geen overlap */
    padding-bottom: calc(70px + 60px + env(safe-area-inset-bottom, 0px));
  }
  body:not(.has-cookie-banner) main {
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  }
}

/* ── Timeline (ds-timeline voor Recente activiteit dashboard) ── */
.ds-timeline { position: relative; padding-left: 20px; }
.ds-timeline::before {
  content: ""; position: absolute;
  left: 11px; top: 8px; bottom: 8px;
  border-left: 1px dashed var(--dropioo-line, #ECECEC);
}
.ds-timeline-item { position: relative; padding-bottom: 12px; }
.ds-timeline-item:last-child { padding-bottom: 0; }
.ds-timeline-day {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-weight: 600; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-3);
  margin: 12px 0 8px;
}
.ds-timeline-day:first-child { margin-top: 0; }

/* ── Drops stage (homepage.html showcase) ── */
/* Stage = animatie-podium. overflow:hidden is KRITIEK — zo kunnen
   absoluut-gepositioneerde lanen niet ontsnappen naar boven. */
.drops-stage {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  height: 360px;
  background: linear-gradient(180deg, #FFF7EE 0%, #FBF9F7 100%);
  border: 1px solid var(--border, #E5E7EB);
  isolation: isolate;
}
@media (min-width: 640px) { .drops-stage { height: 420px; } }
@media (min-width: 768px) { .drops-stage { height: 520px; } }
@media (min-width: 1024px) { .drops-stage { height: 600px; } }

.drops-lane {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  will-change: transform;
}

.drops-lane--a {
  left: 16px;
  right: 16px;
  animation: dropsFallDown 36s linear infinite;
}
.drops-lane--b { display: none; }

@media (min-width: 640px) {
  .drops-lane--a {
    left: 14px;
    right: auto;
    width: calc(50% - 21px);
  }
  .drops-lane--b {
    display: flex;
    right: 14px;
    width: calc(50% - 21px);
    animation: dropsFallDown 44s linear infinite;
    animation-delay: -18s;
  }
}

@keyframes dropsFallDown {
  from { transform: translateY(-50%); }
  to   { transform: translateY(0); }
}

.drops-stage:hover .drops-lane,
.drops-stage:focus-within .drops-lane {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .drops-lane { animation: none !important; transform: translateY(-25%); }
}

.drops-stage::before,
.drops-stage::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 72px;
  pointer-events: none;
  z-index: 5;
}
.drops-stage::before {
  top: 0;
  background: linear-gradient(180deg, #FFF7EE 0%, rgba(255,247,238,0) 100%);
}
.drops-stage::after {
  bottom: 0;
  background: linear-gradient(0deg, #FBF9F7 0%, rgba(251,249,247,0) 100%);
}

.drop-card {
  background: #fff;
  border: 1px solid var(--border, #E5E7EB);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px -4px rgba(13, 27, 42, 0.10);
  position: relative;
  min-height: 64px;
}
.drop-card__media {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: #F4F1EC;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drop-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  display: block;
}
.drop-card__icon {
  color: var(--brand, #FF6A00);
  font-size: 18px;
}
.drop-card__body { min-width: 0; flex: 1; }
.drop-card__name {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink, #0D1B2A);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
}
.drop-card__prices {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 3px;
}
.drop-card__was {
  font-size: 11px;
  color: var(--muted-2, #9CA3AF);
  text-decoration: line-through;
}
.drop-card__now {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink, #0D1B2A);
}
.drop-card__badge {
  flex-shrink: 0;
  background: var(--brand, #FF6A00);
  color: #fff;
  font-family: var(--font-display, inherit);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.01em;
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 6px -2px rgba(255, 106, 0, 0.45);
}
@media (min-width: 768px) {
  .drop-card { padding: 12px 14px; gap: 12px; border-radius: 16px; min-height: 72px; }
  .drop-card__media { width: 52px; height: 52px; border-radius: 12px; }
  .drop-card__icon { font-size: 22px; }
  .drop-card__name { font-size: 13.5px; }
  .drop-card__now { font-size: 15px; }
  .drop-card__badge { font-size: 12px; padding: 4px 10px; }
}

/* ── Drop-card tilt (speelse kanteling) ──────────────────────────
   Elke kaart krijgt een rotatie volgens een herhalend 6-patroon.
   De lane bevat 12 cards (set 2× gerenderd voor naadloze loop)
   dus 6n herhaalt precies twee keer. translateY-animatie van
   .drops-lane en rotate van .drop-card werken onafhankelijk —
   geen transform-conflict. Lane B krijgt gespiegelde hoeken
   zodat de twee kolommen niet identiek aanvoelen. */
.drop-card {
  --tilt: 0deg;
  transform: rotate(var(--tilt));
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.drops-lane--a .drop-card:nth-child(6n+1) { --tilt: -2.6deg; }
.drops-lane--a .drop-card:nth-child(6n+2) { --tilt:  1.8deg; }
.drops-lane--a .drop-card:nth-child(6n+3) { --tilt: -1.2deg; }
.drops-lane--a .drop-card:nth-child(6n+4) { --tilt:  2.4deg; }
.drops-lane--a .drop-card:nth-child(6n+5) { --tilt: -2.0deg; }
.drops-lane--a .drop-card:nth-child(6n)   { --tilt:  1.4deg; }

.drops-lane--b .drop-card:nth-child(6n+1) { --tilt:  2.2deg; }
.drops-lane--b .drop-card:nth-child(6n+2) { --tilt: -1.6deg; }
.drops-lane--b .drop-card:nth-child(6n+3) { --tilt:  2.8deg; }
.drops-lane--b .drop-card:nth-child(6n+4) { --tilt: -2.4deg; }
.drops-lane--b .drop-card:nth-child(6n+5) { --tilt:  1.5deg; }
.drops-lane--b .drop-card:nth-child(6n)   { --tilt: -1.9deg; }

.drop-card:hover,
.drop-card:focus-within {
  transform: rotate(0deg) scale(1.04);
  box-shadow: 0 8px 24px -6px rgba(13, 27, 42, 0.18);
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .drop-card { transition: none; }
}

/* ── Toast notificatie ── */
.dropioo-toast {
  position: fixed;
  bottom: 88px; /* boven de mobile tabbar */
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
  background: #0D1B2A;
  color: #fff;
  font-family: var(--font-body, Inter, sans-serif);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(13,27,42,.22);
  pointer-events: none;
}
.dropioo-toast--success { background: #0D1B2A; }
.dropioo-toast--error   { background: #B91C1C; }
.dropioo-toast--show    { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 768px) {
  .dropioo-toast { bottom: 32px; }
}

/* ── Alert modal row (product.html inline <style>) ── */
.alert-modal__row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin: 12px 0;
  background: var(--warm); border-radius: 10px;
  cursor: pointer; user-select: none;
  font-size: 14px;
}
.alert-modal__row input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--brand);
}

/* Mobile homepage hero: keep the floating price card in the document flow so
   it can overlap the product image without covering the headline below. */
@media (max-width: 767px) {
  .hero-media {
    border-radius: 24px;
  }

  .hero-price-card {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 10;
    width: min(252px, calc(100% - 32px)) !important;
    max-width: calc(100% - 32px) !important;
    margin: -32px 16px 0;
    padding: 14px;
  }
}

@media (max-width: 420px) {
  .hero-price-card {
    width: min(236px, calc(100% - 28px)) !important;
    margin-left: 14px;
    margin-top: -28px;
  }
}

/* Search suggestion chips should wrap on phones instead of disappearing
   beyond the right edge of the tracker card. */
.quick-terms {
  min-width: 0;
}
.quick-terms button {
  max-width: 100%;
}
@media (max-width: 480px) {
  .quick-terms {
    gap: 6px;
  }
  .quick-terms button {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12.5px;
  }
}

/* Product grid — mobile: horizontale scroll met kleine kaarten.
   Desktop (md+): normaal grid.
   CRITICAL: dropioo-components.css laadt synchroon, Tailwind async —
   deze regels gelden ook vóór Tailwind beschikbaar is. */

/* ── Mobile: horizontal scroll ── */
.product-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  gap: 10px !important;
  padding-bottom: 12px !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.product-grid::-webkit-scrollbar { display: none; }

/* Elke card: vaste breedte zodat ze smal naast elkaar passen */
.product-grid > * {
  flex: 0 0 148px !important;
  width: 148px !important;
  min-width: 0 !important;
  scroll-snap-align: start;
}

/* Kleinere kaart-stijl op mobile */
.product-grid .product-card {
  border-radius: 16px;
  padding: 9px;
}
.product-grid .product-card__media {
  border-radius: 12px;
  margin-bottom: 8px;
}
.product-grid .product-card .chip {
  font-size: 10px;
  padding: 2px 6px;
  max-width: calc(100% - 8px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-grid .product-card__title {
  font-size: 12.5px !important;
  line-height: 1.3 !important;
  margin-bottom: 5px !important;
}
.product-grid .product-card .price {
  font-size: 15px !important;
}

/* ── Desktop (md+): terug naar grid ── */
@media (min-width: 768px) {
  .product-grid {
    display: grid !important;
    flex-wrap: unset !important;
    overflow-x: visible !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    scroll-snap-type: none;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
  }
  .product-grid > * {
    flex: unset !important;
    width: auto !important;
    scroll-snap-align: unset;
  }
  .product-grid .product-card {
    border-radius: 20px;
    padding: 16px;
  }
  .product-grid .product-card__media {
    border-radius: 16px;
    margin-bottom: 12px;
  }
  .product-grid .product-card .chip {
    font-size: unset;
    padding: unset;
    max-width: unset;
  }
  .product-grid .product-card__title {
    font-size: 14px !important;
    margin-bottom: 8px !important;
  }
  .product-grid .product-card .price {
    font-size: 18px !important;
  }
}
@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
  }
}

/* ── Categorieën horizontale scroll (mobile) / grid (md+) ── */
.cat-scroll {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 8px;
  margin-left: -16px;
  margin-right: -16px;
  padding-left: 16px;
  padding-right: 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cat-scroll::-webkit-scrollbar { display: none; }

.cat-scroll .cat-item {
  flex-shrink: 0;
  width: 120px;
}

@media (min-width: 768px) {
  .cat-scroll {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    overflow: visible;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
  }
  .cat-scroll .cat-item { width: auto; }
}

@media (min-width: 1024px) {
  .cat-scroll { grid-template-columns: repeat(6, 1fr); }
}

/* ── iOS-style search pill (new design system) ── */
.search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--dropioo-line, #ECECEC);
  border-radius: 999px;
  padding: 5px 5px 5px 18px;
  box-shadow: 0 1px 2px rgba(13,27,42,0.04);
  transition: box-shadow 200ms cubic-bezier(0.22,0.61,0.36,1),
              border-color 120ms cubic-bezier(0.22,0.61,0.36,1);
}
.search-pill:focus-within {
  border-color: var(--brand, #FF6A00);
  box-shadow: 0 0 0 3px rgba(255,106,0,0.12);
}
.search-pill input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  color: var(--ink, #0D1B2A);
}
.search-pill input::placeholder { color: #8A92A0; }
.search-pill__btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--brand, #FF6A00);
  border: 0;
  padding: 0;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,106,0,0.25);
  transition: background 120ms cubic-bezier(0.22,0.61,0.36,1),
              box-shadow 120ms cubic-bezier(0.22,0.61,0.36,1);
}
.search-pill__btn:hover { background: #E55A00; }
.search-pill__btn:active { transform: scale(0.95); }

/* ── Quick chip (search term pill) ── */
.quick-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ECECEC;
  border-radius: 999px;
  background: #fff;
  padding: 6px 14px;
  font-size: 13px;
  color: #4A5563;
  cursor: pointer;
  transition: border-color 120ms cubic-bezier(0.22,0.61,0.36,1),
              color 120ms cubic-bezier(0.22,0.61,0.36,1);
  white-space: nowrap;
  font-family: inherit;
}
.quick-chip:hover {
  border-color: var(--brand, #FF6A00);
  color: var(--brand, #FF6A00);
}

/* ── Feature row icon box ── */
.feature-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--cream, #F4EFE7);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--brand, #FF6A00);
}

/* ── Orange CTA card (alert-invite) ── */
.alert-invite-card {
  background: #FFF8F1;
  border: 1px solid #FFE7D6;
  border-radius: 18px;
  padding: 18px 18px 16px;
}
.alert-invite-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #FFE7D6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

/* ── Stat mini card (tracker 2x2 grid) ── */
.stat-card {
  background: #fff;
  border: 1px solid #ECECEC;
  border-radius: 14px;
  padding: 12px 14px;
}
.stat-card__label { font-size: 11px; color: #8A92A0; margin-bottom: 4px; }
.stat-card__value {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink, #0D1B2A);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* ── Alert row (tracker) ── */
.alert-row {
  background: #fff;
  border: 1px solid #ECECEC;
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 44px 1fr auto auto;
  gap: 12px;
  align-items: center;
}

/* ── Price stat row (PDP: gem / laagste / hoogste) ── */
.price-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.price-stat-cell {
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}
.price-stat-cell__label {
  font-size: 9.5px;
  font-weight: 700;
  color: #8A92A0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.price-stat-cell__value {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ── iOS toggle (on/off switch) ── */
.ios-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
  flex-shrink: 0;
}
.ios-toggle input { display: none; }
.ios-toggle__track {
  position: absolute;
  inset: 0;
  background: var(--border, #E5E7EB);
  border-radius: 999px;
  transition: background 120ms cubic-bezier(0.22,0.61,0.36,1);
}
.ios-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(13,27,42,0.18);
  transition: left 120ms cubic-bezier(0.22,0.61,0.36,1);
}
.ios-toggle input:checked ~ .ios-toggle__track { background: var(--brand, #FF6A00); }
.ios-toggle input:checked ~ .ios-toggle__thumb { left: 18px; }

/* ── Sand price card (PDP) ── */
.price-card {
  background: #F7F4EF;
  border-radius: 16px;
  padding: 16px 18px;
}
.price-card__main {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.price-card__current {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: var(--ink, #0D1B2A);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}
.price-card__was {
  font-size: 14px;
  color: #8A92A0;
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}
.price-card__delta {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #18A957;
  font-variant-numeric: tabular-nums;
}
.price-card__badge {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E6F6EC;
  color: #0E7A3D;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}

/* ── Social proof strip ── */
.social-proof {
  background: #F7F4EF;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Premium upsell strip (account screen, dark variant) ── */
/* Donker navy paneel met flame-icoon, korte tagline en pill-CTA. Volgt
   het pattern uit Dropioo Design.html (Account screen) — gebruikt om
   nieuwe features (extra webshops) te promoten zonder afleidend te zijn. */
.premium-strip {
  background: var(--dropioo-navy, #0D1B2A);
  border-radius: 14px;
  padding: 12px 14px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}
.premium-strip__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand, #FF6A00);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: #fff;
}
.premium-strip__body { flex: 1; min-width: 0; }
.premium-strip__title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
}
.premium-strip__sub {
  font-size: 10.5px;
  opacity: 0.7;
  margin-top: 1px;
  line-height: 1.3;
}
.premium-strip__cta {
  background: var(--brand, #FF6A00);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: background 120ms cubic-bezier(0.22,0.61,0.36,1);
}
.premium-strip__cta:hover { background: #E55A00; }

/* ── Stats hero card (dashboard Tracker screen) ──
   Warm-orange surface met label + groot bedrag + sparkline. Visueel
   gelijk aan de "Totaal bespaard"-tegel uit Dropioo Design.html. */
.stats-hero-card {
  background: linear-gradient(135deg, #FFF8F1 0%, #FFFDF8 100%);
  border: 1px solid #FFE7D6;
  border-radius: 20px;
  padding: 18px 20px 16px;
  color: var(--ink, #0D1B2A);
  position: relative;
  overflow: hidden;
}
.stats-hero-card__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted, #4A5563);
}
.stats-hero-card__value {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--brand, #FF6A00);
  margin-top: 6px;
  line-height: 1.05;
}
.stats-hero-card__sub {
  font-size: 11.5px;
  color: var(--fg-3, #8A92A0);
  margin-top: 2px;
}
.stats-hero-card__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 1px solid #FFD9B8;
  border-radius: 999px;
  padding: 4px 9px 4px 11px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink, #0D1B2A);
}

/* ── Sectioned list row (account screen pattern) ──
   Kleine icoon-tegel + label + waarde + chevron, gestapeld in een card
   met overflow-hidden zodat divider-lijnen netjes aansluiten. */
.section-list {
  background: #fff;
  border: 1px solid var(--border, #E5E7EB);
  border-radius: 16px;
  overflow: hidden;
}
.section-row {
  display: flex;
  align-items: center;
  padding: 14px;
  gap: 12px;
  border-bottom: 1px solid #F0F0F0;
  text-decoration: none;
  color: var(--ink, #0D1B2A);
  font-family: inherit;
  background: transparent;
  border-left: 0; border-right: 0; border-top: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  min-height: 56px;
}
.section-row:last-child { border-bottom: 0; }
.section-row:hover { background: #FAFAFA; }
.section-row__icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--cream, #F4EFE7);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--ink, #0D1B2A);
}
.section-row__label {
  flex: 1;
  font-size: 14px;
  color: var(--ink, #0D1B2A);
  font-weight: 500;
  min-width: 0;
}
.section-row__value {
  font-size: 12.5px;
  color: var(--fg-3, #8A92A0);
}
.section-row__chev {
  color: #B8BDC6;
  flex: none;
}
.section-overline {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--fg-3, #8A92A0);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 20px 4px 8px;
}

/* ── Period tabs (chart) ── */
.period-tabs {
  display: inline-flex;
  gap: 2px;
  background: #F0F0F0;
  border-radius: 999px;
  padding: 3px;
}
.period-tab {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #4A5563;
  border-radius: 999px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 120ms cubic-bezier(0.22,0.61,0.36,1),
              color 120ms cubic-bezier(0.22,0.61,0.36,1);
}
.period-tab.active,
.period-tab[aria-selected="true"],
.period-tab.pill--active {
  background: var(--brand, #FF6A00);
  color: #fff;
  font-weight: 600;
}
