/* ============================================
   Cafetaria Deest - Design System
   Kleuren matching met het pand:
   Antraciet/donkergrijs + Rood accenten
   Font: Inter Variable (één file, alle gewichten, optical sizing)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400..900&display=swap');

:root {
    --red: #DC2626;
    --red-dark: #B91C1C;
    --red-light: #FEE2E2;
    --red-glow: rgba(220, 38, 38, 0.15);

    --charcoal: #2D2D2D;
    --charcoal-dark: #1A1A1A;
    --charcoal-light: #3D3D3D;

    --green: #16A34A;
    --green-light: #DCFCE7;

    --bg: #FFFFFF;
    --bg-gray: #F5F5F4;
    --bg-warm: #FAFAF9;
    --text: #1C1917;
    --text-secondary: #57534E;   /* WCAG AA: 6.4:1 op wit */
    --text-muted: #6F6862;        /* WCAG AA: 4.7:1 op wit */
    --border: #E7E5E4;
    --border-light: #F5F5F4;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --transition: 200ms ease;

    /* Fluid modular type-scale (1.25 ratio) — clamp(min, preferred, max)
       Vloeiend tussen mobile (375px) en desktop (1280px) zonder breakpoints. */
    --text-xs:  clamp(0.72rem, 0.69rem + 0.13vw, 0.78rem);
    --text-sm:  clamp(0.82rem, 0.78rem + 0.18vw, 0.92rem);
    --text-base: clamp(0.94rem, 0.90rem + 0.22vw, 1.06rem);
    --text-md:  clamp(1.05rem, 0.99rem + 0.30vw, 1.20rem);
    --text-lg:  clamp(1.20rem, 1.10rem + 0.45vw, 1.45rem);
    --text-xl:  clamp(1.45rem, 1.30rem + 0.68vw, 1.80rem);
    --text-2xl: clamp(1.75rem, 1.55rem + 0.95vw, 2.25rem);
    --text-3xl: clamp(2.15rem, 1.85rem + 1.40vw, 2.90rem);
    --text-4xl: clamp(2.65rem, 2.20rem + 2.00vw, 3.75rem);
    --text-5xl: clamp(3.25rem, 2.60rem + 2.80vw, 4.75rem);

    /* Premium easing-curves */
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-back-out: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-spring: cubic-bezier(0.34, 1.65, 0.55, 1);

    /* Safe-area insets (iOS notch, home-indicator) */
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Voorkomt body-horizontal-scrollbar bij subtle layout-shifts (reveal anim,
       carousels). 'clip' is moderner dan 'hidden' en breekt position:sticky niet. */
    overflow-x: clip;
}

/* Tabular numerals op alles wat prijs- of telstaat is — cijfers lijnen perfect uit */
.price, .product-price, .drink-card-price, .popular-card-price,
.cart-bar-price, .cart-bar-item-price, .cart-bar-item-qty,
.cart-summary-line-value, .cart-summary-total-value, .cart-item-line-total,
.cart-item-unit-price, .pd-price, .qa-size-price, .qa-chip-price,
.qa-footer-total-price, .qa-qty-value,
[data-tabular-nums] {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

[x-cloak] { display: none !important; }

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

/* Screen-reader-only utility — onzichtbaar visueel, wel beschikbaar voor AT */
.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;
}

/* ---- Sticky Cart Bar ---- */
.cart-bar-wrap {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    padding: 0 16px 16px;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

/* Als de winkelwagen-balk zichtbaar is: extra ruimte onder de footer zodat de
   copyright + voorwaarden/privacy-links niet achter de fixed balk verdwijnen. */
body.has-cart-bar footer {
    padding-bottom: 58px;
}
@media (max-width: 640px) {
    body.has-cart-bar footer {
        padding-bottom: 63px;
    }
}

/* Stage = ankerpunt voor frietje (matcht cart-bar breedte) */
.cart-bar-stage {
    position: relative;
    width: 100%;
    max-width: 480px;
    pointer-events: none;
}

.cart-bar-stage .cart-bar {
    position: relative;
    z-index: 2;  /* boven het frietje */
    pointer-events: auto;
}

/* Frietje + milkshake glippen achter de bar omhoog op hover OF wanneer hij uitklapt.
   bottom: 100% + margin-bottom: -X → image is geanker aan bar's TOP, dus rijst mee
   omhoog als de bar groter wordt bij cartOpen. */
.cart-bar-frietje {
    position: absolute;
    bottom: 100%;
    margin-bottom: -30px;   /* deel zit achter bar-top, deel piept eroverheen */
    width: 88px;
    height: auto;
    pointer-events: none;
    transform-origin: bottom center;
    opacity: 0;
    z-index: 1;             /* onder de bar (die heeft z-index 2) */
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
    transition:
        transform 480ms cubic-bezier(0.34, 1.65, 0.55, 1),
        opacity 220ms ease-out,
        bottom 220ms ease;
    will-change: transform, opacity;
}

.cart-bar-frietje--left {
    left: 10px;
    transform: translateY(40px) scale(0.7) rotate(-10deg);
}
.cart-bar-frietje--center {
    left: 50%;
    margin-left: -44px;     /* helft van de width (88) zodat-ie centreert */
    transform: translateY(40px) scale(0.7) rotate(0deg);
    z-index: 1;
}
.cart-bar-frietje--right {
    left: 48px;       /* overlapt deels met frietje voor duo-effect */
    right: auto;
    z-index: 2;       /* milkshake voor het frietje */
    transform: translateY(40px) scale(0.7) rotate(25deg);
}

/* Show-state geldt ALTIJD wanneer cart uitgeklapt is, en alleen op hover-capable
   devices (desktop) ook wanneer de gebruiker eroverheen zweeft. */
.cart-bar-frietje--center.is-cart-open {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 1;
}
.cart-bar-frietje--left.is-cart-open {
    transform: translateY(0) scale(1) rotate(-8deg);
    opacity: 1;
}
.cart-bar-frietje--right.is-cart-open {
    transform: translateY(0) scale(1) rotate(8deg);
    opacity: 1;
}

@media (hover: hover) {
    .cart-bar-frietje--center.is-hovered {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 1;
    }
    .cart-bar-frietje--left.is-hovered {
        transform: translateY(0) scale(1) rotate(-8deg);
        opacity: 1;
    }
    .cart-bar-frietje--right.is-hovered {
        transform: translateY(0) scale(1) rotate(8deg);
        opacity: 1;
    }
}

/* Gestaffeld effect: midden + 60ms, rechts + 120ms */
.cart-bar-frietje--center { transition-delay: 60ms; }
.cart-bar-frietje--right { transition-delay: 120ms; }

@media (max-width: 480px) {
    .cart-bar-frietje { width: 72px; margin-bottom: -26px; }
    .cart-bar-frietje--left { left: 6px; }
    .cart-bar-frietje--right { left: 38px; right: auto; }
    .cart-bar-frietje--center { margin-left: -36px; }
}

@media (prefers-reduced-motion: reduce) {
    .cart-bar-frietje {
        transition: opacity 150ms ease;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

.cart-bar {
    width: 100%;
    max-width: 480px;
    background: var(--charcoal-dark);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    pointer-events: auto;
    overflow: hidden;
    transition: border-radius 200ms ease, box-shadow 250ms ease;
}

.cart-bar.cart-bar-expanded {
    border-radius: 20px;
}

/* Bottom row - always visible */
.cart-bar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px 10px 20px;
    cursor: pointer;
}

.cart-bar-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.cart-bar-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}

.cart-bar-label {
    color: rgba(255,255,255,0.7);
}

.cart-bar-chevron {
    width: 16px;
    height: 16px;
    color: rgba(255,255,255,0.4);
    transition: transform 200ms ease;
    margin-left: 2px;
}

.cart-bar-chevron.flipped {
    transform: rotate(180deg);
}

.cart-bar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--red);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.cart-bar-btn:hover {
    background: var(--red-dark);
}

.cart-bar-price {
    font-weight: 800;
}

/* Expanded items list - animated via max-height */
.cart-bar-items {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 300ms ease, padding 300ms ease;
}

.cart-bar-expanded .cart-bar-items {
    max-height: 260px;
    overflow-y: auto;
    padding: 12px 20px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.cart-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
}

.cart-bar-item + .cart-bar-item {
    border-top: 1px solid rgba(255,255,255,0.06);
}

.cart-bar-item-qty {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    height: 1.6rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: #ffffff;
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 1px 3px rgba(0,0,0,0.28), inset 0 -1px 0 rgba(0,0,0,0.06);
}

.cart-bar-item-name {
    flex: 1;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-bar-item-options {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    font-weight: 400;
    margin-left: 4px;
}

.cart-bar-item-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .cart-bar-wrap {
        padding: 0 16px 12px;
    }

    .cart-bar {
        max-width: 100%;
        border-radius: 16px;
    }

    .cart-bar.cart-bar-expanded {
        border-radius: 16px;
    }

    .cart-bar-row {
        padding: 8px 8px 8px 14px;
    }

    .cart-bar-info {
        font-size: 0.82rem;
        gap: 6px;
    }

    .cart-bar-badge {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .cart-bar-btn {
        padding: 10px 16px;
        font-size: 0.82rem;
        gap: 6px;
    }

    .cart-bar-items {
        padding: 0 14px;
    }

    .cart-bar-expanded .cart-bar-items {
        padding: 10px 14px 6px;
    }

    .cart-bar-item {
        padding: 6px 0;
    }

    .cart-bar-item-qty {
        min-width: 1.4rem;
        height: 1.4rem;
        font-size: 0.72rem;
        padding: 0 0.35rem;
    }

    .cart-bar-item-name {
        font-size: 0.8rem;
    }

    .cart-bar-item-price {
        font-size: 0.8rem;
    }
}

/* ============================================
   Off-Canvas Mobile Menu
   ============================================ */

/* Overlay */
.offcanvas-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease, visibility 300ms ease;
}

.offcanvas-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Panel */
.offcanvas-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 340px;
    background: var(--charcoal-dark);
    z-index: 61;
    transform: translateX(100%);
    transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.offcanvas-panel.is-open {
    transform: translateX(0);
}

/* Header */
.offcanvas-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.offcanvas-logo {
    height: 72px;
    filter: brightness(0) invert(1);
}

.offcanvas-logo-text {
    color: white;
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 800;
}

.offcanvas-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 12px;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 200ms ease;
    flex-shrink: 0;
}

.offcanvas-close:hover {
    background: rgba(255,255,255,0.14);
    color: white;
}

.offcanvas-close svg {
    width: 20px;
    height: 20px;
}

/* Body */
.offcanvas-body {
    flex: 1;
    padding: 8px 0;
    overflow-y: auto;
}

/* Nav Links */
.offcanvas-nav {
    padding: 8px 16px;
}

.offcanvas-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 200ms ease;
    cursor: pointer;
}

.offcanvas-link:hover,
.offcanvas-link.is-active {
    background: rgba(255,255,255,0.08);
    color: white;
}

.offcanvas-link.is-active {
    color: var(--red);
}

.offcanvas-link-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    flex-shrink: 0;
    transition: background 200ms ease;
}

.offcanvas-link:hover .offcanvas-link-icon,
.offcanvas-link.is-active .offcanvas-link-icon {
    background: rgba(220, 38, 38, 0.15);
}

.offcanvas-link-icon svg {
    width: 20px;
    height: 20px;
}

.offcanvas-link.is-active .offcanvas-link-icon svg {
    color: var(--red);
}

.offcanvas-link-arrow {
    margin-left: auto;
    width: 16px;
    height: 16px;
    color: rgba(255,255,255,0.2);
    transition: color 200ms ease, transform 200ms ease;
}

.offcanvas-link:hover .offcanvas-link-arrow {
    color: rgba(255,255,255,0.4);
    transform: translateX(2px);
}

/* Divider */
.offcanvas-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 8px 24px;
}

/* Section label */
.offcanvas-label {
    padding: 12px 32px 6px;
    font-family: var(--font);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.3);
}

/* Info items */
.offcanvas-info {
    padding: 4px 16px;
}

.offcanvas-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 10px;
    transition: all 200ms ease;
}

a.offcanvas-info-item {
    cursor: pointer;
}

a.offcanvas-info-item:hover {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.8);
}

.offcanvas-info-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: rgba(255,255,255,0.3);
}

/* Hours */
.offcanvas-hours {
    padding: 4px 24px;
}

.offcanvas-hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    font-size: 0.82rem;
    border-radius: 6px;
}

.offcanvas-hours-day {
    color: rgba(255,255,255,0.45);
    font-weight: 500;
}

.offcanvas-hours-time {
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}

.offcanvas-hours-row.is-today {
    background: rgba(220, 38, 38, 0.1);
}

.offcanvas-hours-row.is-today .offcanvas-hours-day {
    color: var(--red);
    font-weight: 600;
}

.offcanvas-hours-row.is-today .offcanvas-hours-time {
    color: white;
    font-weight: 700;
}

/* CTA button */
.offcanvas-cta {
    margin: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--red);
    color: white;
    text-decoration: none;
    font-family: var(--font);
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: background 200ms ease, transform 150ms ease;
}

.offcanvas-cta:hover {
    background: var(--red-dark);
}

.offcanvas-cta:active {
    transform: scale(0.98);
}

.offcanvas-cta svg {
    width: 20px;
    height: 20px;
}

/* Footer */
.offcanvas-foot {
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.offcanvas-socials {
    display: flex;
    gap: 10px;
}

.offcanvas-social {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: all 200ms ease;
    cursor: pointer;
}

.offcanvas-social:hover {
    background: var(--red);
    color: white;
}

.offcanvas-social svg {
    width: 18px;
    height: 18px;
}

/* Lock body scroll */
body.offcanvas-open {
    overflow: hidden;
}

/* ============================================
   Quick-Add Modal (globaal - home + producten)
   ============================================ */
.qa-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.qa-modal {
    background: white;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 40px rgba(0,0,0,0.15);
    overflow: hidden;
}

.qa-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
}

.qa-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.qa-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.qa-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
}

.qa-highlight {
    color: var(--red);
}

.qa-product-name {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.qa-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.qa-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-gray);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 150ms ease;
    flex-shrink: 0;
}

.qa-close:hover {
    background: var(--border);
    color: var(--text);
}

.qa-close svg {
    width: 18px;
    height: 18px;
}

.qa-step {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.qa-body {
    padding: 20px;
    flex-shrink: 0;
}

.qa-body-scroll {
    overflow-y: auto;
    flex: 1;
    flex-shrink: 1;
    min-height: 0;
}

/* Sizes */
.qa-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.qa-size-btn {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: all 150ms ease;
    cursor: pointer;
    min-width: 90px;
    flex: 1;
    font-family: var(--font);
}

.qa-size-btn:hover { border-color: var(--red); }

.qa-size-btn.selected {
    border-color: var(--red);
    background: var(--red-light);
}

.qa-size-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.qa-size-btn.selected .qa-size-name { color: var(--red); }

.qa-size-price {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
}

.qa-size-btn.selected .qa-size-price { color: var(--red); opacity: 0.8; }

/* Extras */
.qa-extras-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    overflow: hidden;
    transition: border-color 150ms, background 150ms;
}
.qa-extras-section.has-selected {
    border-color: rgba(220, 38, 38, 0.3);
    background: rgba(220, 38, 38, 0.025);
}

.qa-extras-section + .qa-extras-section {
    margin-top: 10px;
}

.qa-extras-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    transition: background 120ms;
}
.qa-extras-header:hover { background: rgba(0,0,0,0.025); }
.qa-extras-section.is-open .qa-extras-header { border-bottom: 1px solid var(--border); }

.qa-extras-header-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.qa-extras-count {
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--red);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.qa-extras-chevron {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform 200ms ease;
}
.qa-extras-chevron.is-open { transform: rotate(180deg); }

.qa-extras-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.qa-extras-max {
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    color: var(--text-muted);
    font-size: 0.72rem;
}

.qa-extras-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 14px 14px;
}

.qa-chip {
    padding: 7px 14px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border);
    background: white;
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 150ms ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    user-select: none;
}

.qa-chip:hover { border-color: var(--red); }

.qa-chip.selected {
    border-color: var(--red);
    background: var(--red-light);
    color: var(--red);
    font-weight: 600;
}

.qa-chip-price {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.qa-chip.selected .qa-chip-price { color: var(--red); }

/* ===== Chip met qty-stepper (extras) ===== */
.qa-chip--qty {
    padding: 0;
    overflow: hidden;
    gap: 0;
    cursor: default;
    align-items: stretch;
}
.qa-chip--qty .qa-chip-body {
    background: transparent;
    border: none;
    padding: 7px 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font: inherit;
    color: inherit;
    cursor: pointer;
}
.qa-chip--qty.selected .qa-chip-body { cursor: default; }

.qa-chip-controls {
    display: inline-flex;
    align-items: stretch;
    border-left: 1.5px solid transparent;
    transition: border-color 150ms;
}
.qa-chip--qty.selected .qa-chip-controls {
    border-left-color: rgba(220, 38, 38, 0.25);
}

.qa-chip-btn {
    width: 26px;
    height: 100%;
    min-height: 32px;
    border: none;
    background: transparent;
    color: var(--red);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 150ms;
    padding: 0;
}
.qa-chip-btn:hover:not(:disabled) {
    background: rgba(220, 38, 38, 0.12);
}
.qa-chip-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.qa-chip-btn--plus {
    width: 30px;
    font-size: 1.15rem;
}
.qa-chip-btn--check {
    width: 30px;
}

.qa-chip-stepper {
    display: inline-flex;
    align-items: center;
    background: rgba(220, 38, 38, 0.08);
}
.qa-chip-qty {
    min-width: 1.5rem;
    text-align: center;
    font-weight: 700;
    color: var(--red);
    font-variant-numeric: tabular-nums;
    font-size: 0.85rem;
    padding: 0 2px;
}

/* Footer */
.qa-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-gray);
    flex-shrink: 0;
}

.qa-footer-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.qa-footer-total-price {
    font-weight: 800;
    color: var(--red);
    font-size: 0.95rem;
}

.qa-footer-actions {
    display: flex;
    gap: 10px;
}

/* ===== Product quantity stepper (in modal-footer) ===== */
.qa-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 4px 12px;
    border-bottom: 1px dashed var(--border);
    margin-bottom: 12px;
}
.qa-qty-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}
.qa-qty-stepper {
    display: inline-flex;
    align-items: center;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
}
.qa-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--red);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 150ms;
}
.qa-qty-btn:hover:not(:disabled) {
    background: rgba(220, 38, 38, 0.1);
}
.qa-qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.qa-qty-value {
    min-width: 2.25rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    padding: 0 4px;
}

.qa-btn-skip {
    flex: 1;
    height: 48px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 150ms ease;
}

.qa-btn-skip:hover {
    border-color: var(--text-muted);
    color: var(--text);
}

.qa-btn-primary {
    flex: 1.5;
    height: 48px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--red);
    color: white;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 150ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.qa-btn-primary:hover {
    background: var(--red-dark);
    box-shadow: 0 4px 16px rgba(220,38,38,0.3);
}

.qa-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qa-btn-primary:disabled:hover {
    background: var(--red);
    box-shadow: none;
}

.qa-btn-primary svg {
    width: 18px;
    height: 18px;
}

/* Mobile modal buttons */
@media (max-width: 639px) {
    .qa-btn-skip {
        font-size: 0.85rem;
        height: 46px;
        padding: 0 8px;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .qa-btn-primary {
        font-size: 0.85rem;
        height: 46px;
        gap: 4px;
        padding: 0 10px;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
    }

    .qa-btn-primary svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    .qa-btn-primary span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .qa-footer-actions {
        gap: 8px;
    }

    /* Quantity stepper iets compacter op mobile */
    .qa-qty-row {
        padding: 8px 2px 10px;
        margin-bottom: 10px;
    }
    .qa-qty-label { font-size: 0.85rem; }
    .qa-qty-btn { width: 34px; height: 34px; font-size: 1.1rem; }
    .qa-qty-value { min-width: 2rem; font-size: 0.95rem; }

    /* Extras chips: 2 kolommen ipv onder elkaar */
    .qa-extras-chips {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        padding: 10px 12px 12px;
    }
    .qa-chip {
        width: 100%;
        font-size: 0.78rem;
        padding: 6px 10px;
    }
    .qa-chip--qty {
        padding: 0;
    }
    .qa-chip--qty .qa-chip-body {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 1px;
        padding: 6px 10px;
        font-size: 0.78rem;
        flex: 1;
        min-width: 0;
        text-align: left;
        line-height: 1.2;
    }
    .qa-chip-name {
        white-space: normal;
        word-break: break-word;
        hyphens: auto;
    }
    .qa-chip-price {
        font-size: 0.68rem;
        white-space: nowrap;
    }
    .qa-chip-btn { width: 24px; min-height: 30px; font-size: 0.95rem; }
    .qa-chip-btn--plus { width: 28px; font-size: 1.05rem; }
    .qa-chip-btn--check { width: 28px; }
    .qa-chip-qty { min-width: 1.25rem; font-size: 0.78rem; }

    .qa-extras-header { padding: 10px 12px; }
    .qa-extras-label { font-size: 0.72rem; }
    .qa-extras-section + .qa-extras-section { margin-top: 8px; }
}

/* Hele kleine telefoons (iPhone SE, Galaxy Mini etc.) */
@media (max-width: 360px) {
    .qa-btn-skip,
    .qa-btn-primary { font-size: 0.78rem; padding: 0 6px; }
    .qa-footer-actions { gap: 6px; }
}

/* Tablet/Desktop */
@media (min-width: 640px) {
    .qa-overlay {
        align-items: center;
        padding: 24px;
    }

    .qa-modal {
        max-width: 540px;
        max-height: 80vh;
        border-radius: var(--radius);
        box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    }

    .qa-header { padding: 24px 28px 18px; }
    .qa-title { font-size: 1.2rem; }
    .qa-body { padding: 24px 28px; }
    .qa-footer { padding: 18px 28px; }
}

@media (min-width: 1024px) {
    .qa-modal { max-width: 680px; }
}

/* ===== Cart Toast ===== */
.cart-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--text);
    border-radius: var(--radius-full);
    padding: 12px 20px 12px 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    width: max-content;
    max-width: calc(100vw - 32px);
}

@media (min-width: 640px) {
    .cart-toast {
        bottom: 100px;
        padding: 14px 24px 14px 16px;
        gap: 12px;
    }
}

.cart-toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .cart-toast-icon { width: 40px; height: 40px; }
}

.cart-toast-check {
    width: 20px;
    height: 20px;
    stroke: white;
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: toast-check-draw 0.4s ease 0.15s forwards;
}

@keyframes toast-check-draw {
    to { stroke-dashoffset: 0; }
}

/* Mobiel: naam en bevestiging gestapeld zodat lange productnamen netjes
   kunnen afbreken i.p.v. de toast breder dan het scherm te duwen. */
.cart-toast-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    line-height: 1.25;
    min-width: 0;
}

.cart-toast-text strong {
    font-size: 0.88rem;
    font-weight: 800;
    color: white;
    overflow-wrap: anywhere;
}

.cart-toast-text span {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
    white-space: nowrap;
}

/* Desktop: genoeg ruimte, dus weer als één regel naast elkaar */
@media (min-width: 640px) {
    .cart-toast-text {
        flex-direction: row;
        align-items: baseline;
        gap: 5px;
        line-height: 1;
    }
    .cart-toast-text strong { font-size: 0.92rem; }
    .cart-toast-text span { font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   GESLOTEN POPUP — verschijnt na add-to-cart als cafetaria nu dicht is
   ============================================================ */
.closed-overlay {
    position: fixed; inset: 0;
    background: rgba(15, 17, 21, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    padding: 1rem;
    animation: closed-fade-in 200ms ease-out;
}

@keyframes closed-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.closed-card {
    background: #ffffff;
    color: #111827;
    border-radius: 1.25rem;
    box-shadow: 0 32px 80px -12px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,0,0,0.04);
    max-width: 28rem; width: 100%;
    padding: 2rem 1.75rem 1.75rem;
    position: relative;
    text-align: center;
    animation: closed-pop-in 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes closed-pop-in {
    from { opacity: 0; transform: translateY(12px) scale(0.94); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.closed-close {
    position: absolute; top: 0.85rem; right: 0.85rem;
    width: 2.1rem; height: 2.1rem; border-radius: 999px;
    background: #f3f4f6; border: none; cursor: pointer;
    color: #6b7280;
    display: flex; align-items: center; justify-content: center;
    transition: all 150ms;
}
.closed-close:hover { background: #e5e7eb; color: #111827; transform: rotate(90deg); }
.closed-close svg { width: 1rem; height: 1rem; }

.closed-illustration {
    width: 4.5rem; height: 4.5rem;
    margin: 0 auto 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #FEF2F2 0%, #FFE4E4 100%);
    color: #DC2626;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px -6px rgba(220, 38, 38, 0.3);
}
.closed-illustration svg { width: 2.5rem; height: 2.5rem; }

.closed-title {
    font-size: 1.5rem; font-weight: 800;
    margin: 0 0 0.75rem;
    color: #111827;
    letter-spacing: -0.02em;
}

.closed-body {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #4b5563;
    margin: 0 0 1.25rem;
}
.closed-body strong { color: #111827; font-weight: 700; }

.closed-next {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.25);
    border-radius: 0.9rem;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.5rem;
}
.closed-next__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #B45309;
    margin-bottom: 0.4rem;
}
.closed-next__time {
    display: flex; align-items: baseline; justify-content: center;
    gap: 0.45rem;
    color: #111827;
    font-weight: 700;
    margin-bottom: 0.45rem;
}
.closed-next__day {
    font-size: 1.35rem;
    text-transform: capitalize;
    letter-spacing: -0.01em;
}
.closed-next__sep {
    font-size: 0.95rem;
    color: #6b7280;
    font-weight: 500;
}
.closed-next__clock {
    font-size: 1.75rem;
    font-variant-numeric: tabular-nums;
    color: #DC2626;
    letter-spacing: -0.02em;
}
.closed-next__hint {
    font-size: 0.8rem;
    color: #78716C;
    margin: 0;
    line-height: 1.4;
}

.closed-ok {
    width: 100%;
    background: #DC2626;
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    padding: 0.95rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 150ms;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}
.closed-ok:hover { background: #B91C1C; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35); }
.closed-ok:active { transform: translateY(0); }

/* Mobiel: minder padding, kleiner */
@media (max-width: 480px) {
    .closed-card {
        padding: 1.6rem 1.2rem 1.3rem;
        max-width: 100%;
        border-radius: 1rem;
    }
    .closed-illustration { width: 3.75rem; height: 3.75rem; margin-bottom: 0.75rem; }
    .closed-illustration svg { width: 2.05rem; height: 2.05rem; }
    .closed-title { font-size: 1.3rem; margin-bottom: 0.5rem; }
    .closed-body { font-size: 0.9rem; }
    .closed-next { padding: 0.95rem 1rem; }
    .closed-next__day { font-size: 1.15rem; }
    .closed-next__clock { font-size: 1.5rem; }
    .closed-ok { padding: 0.85rem 1rem; }
}

/* Tablet+: iets ruimer */
@media (min-width: 768px) {
    .closed-card { max-width: 30rem; padding: 2.25rem 2rem 2rem; }
}

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
    .closed-overlay,
    .closed-card { animation: none !important; }
}

/* ============================================================
   SHOP-STATUS (Geopend / Gesloten — in navbar)
   Vlak "deurbordje": klok-icoon + twee regels typografie.
   Bewust geen gradient, glow of pulse — status zit in kleur + tekst.
   ============================================================ */
.shop-status {
    display: none;
    align-items: center;
    gap: 0.6rem;
    padding: 0.42rem 0.85rem 0.42rem 0.7rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.18);
    line-height: 1;
}
@media (min-width: 1024px) {
    .shop-status { display: inline-flex; }
}

.shop-status__icon {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
}

.shop-status__lines {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.shop-status__state {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.shop-status__sub {
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
}

.shop-status--open .shop-status__icon,
.shop-status--open .shop-status__state {
    color: #4ade80;
}

.shop-status--closed .shop-status__icon,
.shop-status--closed .shop-status__state {
    color: #f87171;
}

/* Logo-variant binnen de popup — geen rode bubble eronder, gewoon logo */
.closed-illustration--logo {
    background: transparent;
    box-shadow: none;
    width: auto;
    height: auto;
    min-height: 4.5rem;
    padding: 0;
}
.closed-illustration--logo img {
    max-height: 4.5rem;
    max-width: 12rem;
    width: auto;
    height: auto;
    display: block;
}
@media (max-width: 480px) {
    .closed-illustration--logo { min-height: 3.5rem; }
    .closed-illustration--logo img { max-height: 3.5rem; max-width: 10rem; }
}

/* ============ SCROLL-TO-TOP KNOP ============ */
/* Alleen vanaf tablet (>= 768px) — mobile heeft 'm niet nodig.
   Verschijnt na 400px scroll-down (via JS-class .is-visible). */
.scroll-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #DC2626;
    color: white;
    border: none;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.36),
                0 3px 8px rgba(0, 0, 0, 0.2);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 220ms ease, transform 220ms ease, background 160ms ease;
    z-index: 45;
}

.scroll-to-top svg {
    width: 26px;
    height: 26px;
}

.scroll-to-top:hover,
.scroll-to-top:focus-visible {
    background: #B91C1C;
    transform: translateY(0) scale(1.06);
    outline: none;
}

.scroll-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top.is-visible:hover,
.scroll-to-top.is-visible:focus-visible {
    transform: translateY(0) scale(1.06);
}

@media (min-width: 768px) {
    .scroll-to-top { display: inline-flex; }
}

/* ============ DESKTOP NAV — PREMIUM LINKS ============ */
.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.005em;
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    border-radius: 10px;
    transition: color 280ms ease,
                background-color 280ms ease,
                transform 220ms ease;
    cursor: pointer;
    isolation: isolate;
}

/* Onderstreep — gradient rood, bounce-in vanuit center */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(220, 38, 38, 0.65) 0%,
        #ef4444 50%,
        rgba(220, 38, 38, 0.65) 100%);
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 380ms cubic-bezier(0.34, 1.36, 0.64, 1),
                box-shadow 280ms ease;
    pointer-events: none;
}

/* Zachte rode shimmer-glow achter de tekst (verschijnt bij hover/active) */
.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 100%,
        rgba(220, 38, 38, 0.18) 0%,
        rgba(220, 38, 38, 0) 70%);
    opacity: 0;
    transition: opacity 320ms ease;
    pointer-events: none;
    z-index: -1;
}

/* ---- HOVER ---- */
.nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-link:hover::after {
    transform: scaleX(0.7);
}

.nav-link:hover::before {
    opacity: 1;
}

/* ---- ACTIVE (current page) ---- */
.nav-link.is-active {
    color: white;
    font-weight: 600;
}

.nav-link.is-active::after {
    transform: scaleX(1);
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.55),
                0 0 4px rgba(239, 68, 68, 0.4);
}

.nav-link.is-active::before {
    opacity: 1;
}

/* ---- FOCUS (keyboard accessibility) ---- */
.nav-link:focus-visible {
    outline: 2px solid rgba(220, 38, 38, 0.6);
    outline-offset: 2px;
    color: white;
}

@media (prefers-reduced-motion: reduce) {
    .nav-link,
    .nav-link::after,
    .nav-link::before {
        transition: none;
    }
}

/* ============================================================
   PRODUCT BADGES — Korting / Nieuw / Bijna op / Populair
   Rendered top-left/right op product-cards. Stack-bar voor meerdere.
   ============================================================ */
.product-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 4;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    pointer-events: none;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-family: var(--font);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.18);
    white-space: nowrap;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.product-badge svg {
    width: 0.7rem;
    height: 0.7rem;
}

.product-badge--sale {
    background: linear-gradient(135deg, #DC2626, #B91C1C);
    color: white;
    box-shadow: 0 2px 8px -1px rgba(220, 38, 38, 0.45);
}

.product-badge--new {
    background: linear-gradient(135deg, #16A34A, #15803D);
    color: white;
    box-shadow: 0 2px 8px -1px rgba(22, 163, 74, 0.45);
}

.product-badge--low-stock {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    box-shadow: 0 2px 8px -1px rgba(245, 158, 11, 0.45);
}

.product-badge--popular {
    background: linear-gradient(135deg, #7C3AED, #6D28D9);
    color: white;
    box-shadow: 0 2px 8px -1px rgba(124, 58, 237, 0.45);
}

/* ============================================================
   OUT-OF-STOCK — Diagonale streep + dimmed image + duidelijke badge
   ============================================================ */
.product-card.out-of-stock,
.popular-card.is-sold-out,
.drink-card.is-sold-out {
    opacity: 1; /* override van oude 0.55 op .product-card.out-of-stock */
    position: relative;
}

.product-card.out-of-stock .product-img,
.product-card.out-of-stock img,
.popular-card.is-sold-out .popular-card-visual img,
.drink-card.is-sold-out .drink-card-product-img {
    filter: grayscale(1) brightness(0.85);
    opacity: 0.55;
    transition: filter 300ms ease, opacity 300ms ease;
}

.product-card.out-of-stock .product-name,
.product-card.out-of-stock .product-desc,
.product-card.out-of-stock .product-price {
    opacity: 0.55;
}

.sold-out-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: white;
    background: linear-gradient(135deg, #57534E, #44403C);
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.sold-out-overlay svg { width: 0.75rem; height: 0.75rem; }

/* Diagonale "Uitverkocht" streep over image */
.popular-card-visual.is-sold-out::before,
.drink-card-top.is-sold-out::before {
    content: 'Uitverkocht';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-12deg);
    z-index: 3;
    padding: 4px 18px;
    background: rgba(220, 38, 38, 0.92);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 6px 18px -3px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

/* ============================================================
   CART BADGE BUMP — schaalt 1 → 1.4 → 1 bij +1, back-out easing
   Trigger: cartApp() watcht 'count' en zet .cart-badge-bump class voor 480ms
   ============================================================ */
@keyframes cart-badge-bump {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.45); }
    65%  { transform: scale(0.92); }
    100% { transform: scale(1); }
}

[data-cart-badge].cart-badge-bump,
.cart-bar-badge.cart-badge-bump {
    animation: cart-badge-bump 480ms var(--ease-back-out);
    transform-origin: center;
}

/* Cart price-pulse — subtiele scale + color flash bij update */
@keyframes cart-price-pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.08); }
    100% { transform: scale(1); }
}

[data-cart-total].cart-price-pulse,
.cart-bar-price.cart-price-pulse {
    animation: cart-price-pulse 360ms ease-out;
    transform-origin: center right;
    display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
    [data-cart-badge].cart-badge-bump,
    .cart-bar-badge.cart-badge-bump,
    [data-cart-total].cart-price-pulse,
    .cart-bar-price.cart-price-pulse {
        animation: none;
    }
}

/* ============================================================
   FLY-TO-CART CLONE — geclonede image die naar het cart-icoon vliegt
   ============================================================ */
.fly-to-cart-clone {
    position: fixed;
    pointer-events: none;
    z-index: 1500;
    border-radius: 12px;
    object-fit: contain;
    background: white;
    padding: 4px;
    box-shadow: 0 18px 40px -8px rgba(0, 0, 0, 0.35),
                0 4px 12px -2px rgba(220, 38, 38, 0.25);
    will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
    .fly-to-cart-clone { display: none !important; }
}

/* ============================================================
   SCROLL-REVEAL — IntersectionObserver toggles .reveal-in
   Default: gefadet + iets omlaag → fade-up bij in-view
   (will-change weggelaten — creëerde stacking-context conflicts
    waardoor body horizontal-scrollbar kreeg)
   ============================================================ */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms var(--ease-out-quart),
                transform 700ms var(--ease-out-quart);
}

[data-reveal].reveal-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger-children: elk direct kind krijgt opeenvolgende delay (max 6) */
[data-reveal-stagger] > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms var(--ease-out-quart),
                transform 600ms var(--ease-out-quart);
}
[data-reveal-stagger].reveal-in > *:nth-child(1) { transition-delay:  40ms; opacity: 1; transform: translateY(0); }
[data-reveal-stagger].reveal-in > *:nth-child(2) { transition-delay: 100ms; opacity: 1; transform: translateY(0); }
[data-reveal-stagger].reveal-in > *:nth-child(3) { transition-delay: 160ms; opacity: 1; transform: translateY(0); }
[data-reveal-stagger].reveal-in > *:nth-child(4) { transition-delay: 220ms; opacity: 1; transform: translateY(0); }
[data-reveal-stagger].reveal-in > *:nth-child(5) { transition-delay: 280ms; opacity: 1; transform: translateY(0); }
[data-reveal-stagger].reveal-in > *:nth-child(6) { transition-delay: 340ms; opacity: 1; transform: translateY(0); }
[data-reveal-stagger].reveal-in > *:nth-child(n+7) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    [data-reveal],
    [data-reveal-stagger] > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ============================================================
   VIEW TRANSITIONS — list → detail product image morph
   Cards in lijst en detail-image krijgen dezelfde transition-name
   via inline style; CSS regelt timing + easing.
   ============================================================ */
@supports (view-transition-name: none) {
    ::view-transition-group(product-image) {
        animation-duration: 420ms;
        animation-timing-function: var(--ease-out-quart);
    }
    ::view-transition-old(product-image),
    ::view-transition-new(product-image) {
        animation-duration: 420ms;
        animation-timing-function: var(--ease-out-quart);
    }
}

/* ============================================================
   :has() — body krijgt cart-states zodat checkout-CTA's subtiel
   pulsen wanneer cart > 0, en cart-empty messages verbergen
   wanneer cart > 0.
   ============================================================ */
body:has([data-cart-badge]:not([data-count="0"])) [data-cart-cta] {
    animation: cart-cta-pulse 2.4s ease-in-out infinite;
}

@keyframes cart-cta-pulse {
    0%, 100% { box-shadow: 0 4px 14px -2px rgba(220, 38, 38, 0.25); }
    50%      { box-shadow: 0 4px 18px 0 rgba(220, 38, 38, 0.55); }
}

@media (prefers-reduced-motion: reduce) {
    body:has([data-cart-badge]:not([data-count="0"])) [data-cart-cta] {
        animation: none;
    }
}

/* ============================================================
   SAFE-AREA — cart-bar respecteert iOS home-indicator
   ============================================================ */
.cart-bar-wrap {
    padding-bottom: max(16px, var(--safe-bottom));
}

@media (max-width: 640px) {
    .cart-bar-wrap {
        padding-bottom: max(12px, var(--safe-bottom));
    }
}

/* ============================================================
   IMAGE LOADING — LQIP/CLS-veilig: alle <img> krijgen subtiele
   fade-in als ze klaar zijn, en de wrapper houdt aspect-ratio.
   :not() excludeert images die hun eigen opacity-animatie hebben
   (zoals cart-bar-frietje) zodat we die niet overschrijven.
   ============================================================ */
img[loading="lazy"]:not(.cart-bar-frietje):not(.no-fade) {
    opacity: 0;
    transition: opacity 400ms ease;
}

img[loading="lazy"]:not(.cart-bar-frietje):not(.no-fade).is-loaded,
img[loading="lazy"]:not(.cart-bar-frietje):not(.no-fade)[data-loaded] {
    opacity: 1;
}

/* Eager images zijn meteen zichtbaar — behalve het cart-bar frietje/milkshake,
   dat zijn eigen opacity-animatie heeft (rust = 0, hover/open = 1) en anders
   permanent zichtbaar onder de balk uitsteekt. */
img:not([loading="lazy"]):not(.cart-bar-frietje) {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    img[loading="lazy"]:not(.cart-bar-frietje):not(.no-fade) {
        opacity: 1;
        transition: none;
    }
}

/* ============================================================
   FORM-VALIDATION (checkout) — inline error/success states
   ============================================================ */
.form-field {
    position: relative;
}

.form-field--invalid input,
.form-field--invalid select,
.form-field--invalid textarea {
    border-color: #DC2626 !important;
    background: #FEF2F2;
}

.form-field--valid input,
.form-field--valid select,
.form-field--valid textarea {
    border-color: #16A34A !important;
}

.form-field-error {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #DC2626;
    font-weight: 500;
    animation: form-error-shake 280ms ease-out;
}

.form-field-error svg {
    width: 0.85rem;
    height: 0.85rem;
    flex-shrink: 0;
}

@keyframes form-error-shake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-3px); }
    40%      { transform: translateX(3px); }
    60%      { transform: translateX(-2px); }
    80%      { transform: translateX(2px); }
}

@media (prefers-reduced-motion: reduce) {
    .form-field-error { animation: none; }
}

/* Submit-button loading state — spinner + dim */
.btn-submit[data-loading="true"] {
    pointer-events: none;
    opacity: 0.85;
    position: relative;
}

.btn-submit[data-loading="true"] .btn-submit-label {
    visibility: hidden;
}

.btn-submit[data-loading="true"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .btn-submit[data-loading="true"]::after {
        animation: none;
        opacity: 0.7;
    }
}

/* ============================================================
   PRINT — voor bonnen die klanten misschien afdrukken
   ============================================================ */
@media print {
    .cart-bar-wrap, .scroll-to-top, .offcanvas-overlay,
    .offcanvas-panel, header { display: none !important; }
}
