:root {
    --navy-950: #122c56;
    --navy-900: #17346a;
    --navy-800: #1f3f7c;
    --navy-700: #2a4f92;
    --navy-600: #3760ab;
    --lime: #a6ff1e;
    --lime-dark: #8be000;
    --lime-soft: rgba(166, 255, 30, 0.14);
    --bg: #f4f6fa;
    --card: #ffffff;
    --text: #101828;
    --text-muted: #5c6579;
    --border: #e4e8f0;
    --danger: #e0435b;
    --radius: 12px;
    --shadow: 0 2px 10px rgba(10, 23, 48, 0.06);
    --shadow-hover: 0 8px 24px rgba(10, 23, 48, 0.12);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: var(--lime);
    color: var(--navy-950);
}
.btn-primary:hover { background: var(--lime-dark); box-shadow: 0 4px 14px rgba(166, 255, 30, 0.35); }
.btn-outline {
    background: transparent;
    border-color: var(--navy-700);
    color: var(--navy-800);
}
.btn-outline:hover { background: var(--navy-800); color: #fff; }
.btn-ghost {
    background: transparent;
    color: inherit;
}
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* Header */
.site-header {
    background: var(--navy-950);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
}
.header-left { display: flex; align-items: center; justify-self: start; min-width: 0; }
.header-center { justify-self: center; }
.logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    flex-shrink: 0;
}
.logo img { height: 36px; width: auto; display: block; }

.header-subbar { background: var(--navy-900); border-top: 1px solid rgba(255,255,255,0.08); }
.header-subbar .container { padding-top: 10px; padding-bottom: 10px; }

.main-nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Admin-pinned quick-access category buttons (e.g. "Notebooks") shown directly in the subbar,
   next to — not inside — the "Categorieën" dropdown. Outline style so the lime dropdown button
   still reads as the primary "browse everything" action. */
.header-subbar-link {
    display: inline-flex;
    align-items: center;
    color: rgba(255,255,255,0.85);
    font-weight: 700;
    font-size: 0.78rem;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1.5px solid rgba(255,255,255,0.25);
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.header-subbar-link:hover { background: rgba(255,255,255,0.1); border-color: var(--lime); color: var(--lime); }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
    background: var(--lime);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    color: var(--navy-950);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 9px 16px;
    transition: background 0.15s;
}
.nav-dropdown-toggle:hover { background: #95e619; }
.nav-dropdown-toggle svg { transition: transform 0.15s; }
.nav-dropdown.open .nav-dropdown-toggle { background: #95e619; }
.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }
/* Two-panel mega-menu: top-level categories on the left, the hovered/tapped one's
   subcategories flip in on the right — same pattern as Coolblue/MediaMarkt/Bol.com use once a
   catalog has too many categories for one flat scrolling list. */
.nav-megamenu {
    display: none;
    position: absolute;
    top: calc(100% + 18px);
    left: 0;
    width: 580px;
    max-width: 90vw;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 16px 36px rgba(9,20,45,0.25);
    overflow: hidden;
    z-index: 60;
}
.nav-dropdown.open .nav-megamenu { display: flex; }
.nav-megamenu-list {
    width: 230px;
    flex-shrink: 0;
    background: #f7f8fb;
    border-right: 1px solid var(--border);
    padding: 8px;
    overflow-y: auto;
    max-height: 70vh;
}
.nav-megamenu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--navy-950);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
}
.nav-megamenu-item svg { color: var(--text-muted); flex-shrink: 0; }
.nav-megamenu-item:hover, .nav-megamenu-item.active { background: #fff; color: var(--navy-800); box-shadow: 0 1px 4px rgba(9,20,45,0.08); }
.nav-megamenu-item.active svg { color: var(--navy-800); }

.nav-megamenu-panels { flex: 1; min-width: 0; padding: 14px; overflow-y: auto; max-height: 70vh; }
.nav-megamenu-panel { display: none; flex-direction: column; }
.nav-megamenu-panel.active { display: flex; }
.nav-megamenu-panel a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--navy-950);
    font-weight: 500;
    font-size: 0.88rem;
}
.nav-megamenu-panel a:hover { background: #f2f5fb; color: var(--navy-800); }
.nav-megamenu-panel-all {
    font-weight: 700 !important;
    color: var(--navy-800) !important;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
    padding-bottom: 10px !important;
    border-radius: 0 !important;
}
.nav-megamenu-back { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; justify-self: end; }

.contact-link {
    display: flex;
    align-items: center;
    color: #fff;
    padding: 6px;
    border-radius: 999px;
    transition: background 0.15s, color 0.15s;
}
.contact-link:hover { background: rgba(255,255,255,0.1); color: var(--lime); }

.admin-edit-link {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ff8a1e;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 999px;
    white-space: nowrap;
}
.admin-edit-link:hover { background: #e67610; color: #fff; }

.print-link {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: var(--navy-900);
    border: 1px solid var(--border);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 999px;
    white-space: nowrap;
}
.print-link:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

.search-form { display: flex; align-items: center; background: rgba(255,255,255,0.08); border-radius: 999px; padding: 8px 8px 8px 20px; }
.search-form input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.95rem;
    width: 380px;
    outline: none;
}
.search-form input::placeholder { color: rgba(255,255,255,0.45); }
.search-form button { background: var(--lime); border: none; color: var(--navy-950); width: 36px; height: 36px; border-radius: 999px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
/* Header search is hidden below 900px (see media query) since it doesn't fit alongside the
   icons — this mobile copy lives inside the hamburger menu instead, so search isn't lost. */
.search-form-mobile { display: none; }

/* Account/contact move into the hamburger menu on mobile too (see media query) — these are
   hidden here and only shown there, keeping the top row down to just cart + hamburger. */
.mobile-account-links { display: none; }
.mobile-account-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 10px 12px;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}
.mobile-account-link:hover { background: rgba(255,255,255,0.1); color: var(--lime); }

.account-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
    transition: background 0.15s, color 0.15s;
}
.account-link:hover { background: rgba(255,255,255,0.1); color: var(--lime); }
.account-link svg { flex-shrink: 0; }
.account-link-label { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
    padding: 6px;
    border-radius: 999px;
    transition: background 0.15s, color 0.15s;
}
.cart-link:hover { background: rgba(255,255,255,0.1); color: var(--lime); }
.cart-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--lime);
    color: var(--navy-950);
    font-size: 0.68rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--navy-950);
}

.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 100%);
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 72px 0;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, var(--lime-soft) 0%, transparent 70%);
}
/* An uploaded hero image already carries its own dark tones/light streaks — the lime glow
   decoration was designed for the flat gradient background and clashes on top of a photo. */
.hero.has-image::after { display: none; }
.hero-inner { position: relative; }
.hero-content { max-width: 640px; text-align: left; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.4em; }
.hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; margin-bottom: 1.6em; }

.folder-banner { background: linear-gradient(135deg, #ff8a1e 0%, #ffb347 100%); padding: 28px 0; }
.folder-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.folder-banner-eyebrow { color: rgba(255,255,255,0.85); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; display: block; margin-bottom: 4px; }
.folder-banner h2 { color: #fff; margin: 0 0 4px; font-size: 1.6rem; }
.folder-banner p { color: rgba(255,255,255,0.92); margin: 0; font-size: 0.95rem; }
.folder-banner-btn { background: #fff; color: #ff8a1e; font-weight: 800; flex-shrink: 0; }
.folder-banner-btn:hover { background: var(--navy-950); color: #fff; }

/* Section headings */
/* padding-top/bottom only (not the shorthand) — .section is combined with .container as
   class="container section" on nearly every page, and a full `padding: 56px 0` shorthand here
   would silently override .container's horizontal padding to 0. Masked on desktop by the
   max-width:1200px centering gutter, but on mobile the container spans the full viewport, so
   this was the actual cause of content touching the screen edges on every page. */
.section { padding-top: 56px; padding-bottom: 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.section-head h2 { font-size: 1.6rem; }
.section-head a { color: var(--navy-700); font-weight: 700; font-size: 0.9rem; }
.eyebrow { color: var(--lime-dark); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; margin-bottom: 10px; display: block; }

.folder-category-heading { font-size: 1.3rem; margin: 0 0 18px; padding-bottom: 10px; border-bottom: 2px solid #ff8a1e; }

/* Category grid */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.category-card {
    background: var(--navy-900);
    color: #fff;
    border-radius: var(--radius);
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s ease;
}
.category-card:hover { transform: translateY(-4px); }
.category-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.category-card p { color: rgba(255,255,255,0.6); font-size: 0.88rem; margin-bottom: 0; }
.category-card .arrow { color: var(--lime); font-weight: 800; margin-top: 14px; display: inline-block; }

/* Category images are treated as ready-made marketing banners (own title/tagline/icons already
   baked in), not photos to crop-and-caption — so no dark overlay or duplicate heading text on
   top, just the banner itself in a clean bordered card, at its natural-ish 3:2 aspect ratio. */
.category-card-image { padding: 0; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); aspect-ratio: 3 / 2; }
.category-card-image:hover { box-shadow: var(--shadow-hover); }
.category-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease; }
.category-card-image:hover img { transform: scale(1.04); }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.product-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid var(--border);
    cursor: pointer;
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.product-thumb {
    aspect-ratio: 1 / 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 10px;
}
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-thumb .placeholder { color: #b7c0cf; font-size: 2rem; font-weight: 800; }
.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--lime);
    color: var(--navy-950);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 10px;
    border-radius: 999px;
}
.badge.sale { background: var(--danger); color: #fff; }
.badge.flyer { background: #ff8a1e; color: #fff; }
.product-info { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { font-size: 0.75rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.product-name { font-size: 1rem; font-weight: 700; margin: 0; }
.product-name a { color: var(--text); }
.product-name a:hover { color: var(--navy-700); }
.product-desc { font-size: 0.85rem; color: var(--text-muted); flex: 1; }
.stock-indicator { font-size: 0.78rem; font-weight: 700; margin: 0 0 8px; }
.stock-indicator.in-stock { color: #1a8a4a; }
.stock-indicator.out-of-stock { color: var(--text-muted); }
.product-price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }

.product-grid.view-list { display: flex; flex-direction: column; gap: 14px; }
.product-grid.view-list .product-card { flex-direction: row; }
.product-grid.view-list .product-card:hover { transform: none; }
.product-grid.view-list .product-thumb { width: 150px; height: 150px; aspect-ratio: unset; flex-shrink: 0; }
/* Titel is voldoende in lijstweergave — de korte omschrijving voegde weinig toe en maakte elke
   rij onnodig hoog/breed naast de al zichtbare titel, prijs en voorraadstatus. Was previously
   also the row's flex:1 spacer (see .product-price-row below for why that mattered). */
.product-grid.view-list .product-desc { display: none; }
/* The badge (e.g. "Folderaanbieding") sizes to fit its own text and is clipped by the thumb's
   overflow:hidden — fine at the grid view's much larger thumb, but the list view's fixed-width
   thumb is too narrow for the longer badge labels at full size, cutting them off mid-word.
   Shrunk specifically here rather than site-wide, since the grid view has plenty of room. */
.product-grid.view-list .badge { font-size: 0.6rem; padding: 4px 7px; top: 8px; left: 8px; letter-spacing: 0.02em; }
.product-grid.view-list .product-info { flex-direction: row; align-items: center; gap: 24px; padding: 14px 20px; }
/* Name takes all the space not used by the status+price block on the right, instead of a fixed
   220px — reads much better for this catalog's long Complies-style names ("Lenovo AIO
   ThinkCentre neo 50A | 27" Full HD IPS | ..."). */
.product-grid.view-list .product-name { flex: 1; width: auto; min-width: 0; }
/* Stock status stacked directly above the price/button, both right-aligned as one block — was
   previously a separate item floating between the name and price, which (once .product-desc's
   old flex:1-spacer role was removed) made every row's price sit at a different x-position
   depending on how long that product's status text happened to be. Grouping them removes that
   dependency entirely: .product-name's flex:1 consumes all the leftover space up to this block,
   so it's always flush right regardless of what precedes it. */
.product-grid.view-list .product-status-price { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.product-grid.view-list .stock-indicator { margin: 0; }
.product-grid.view-list .product-price-row { margin-top: 0; gap: 16px; }
@media (max-width: 640px) {
    .product-grid.view-list .product-card { flex-direction: column; }
    .product-grid.view-list .product-thumb { width: 100%; height: auto; aspect-ratio: 1/1; }
    .product-grid.view-list .product-info { flex-direction: column; align-items: stretch; }
    .product-grid.view-list .product-name { width: auto; }

    /* .cart-table is reused across cart/order-detail/dashboard/returns/return-form, each with a
       different column count — rather than tuning widths per page, every one of them collapses
       to a stacked "card per row" layout here, with data-label attributes (where present)
       supplying the field name in front of the value. */
    .cart-table thead { display: none; }
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100% !important; }
    .cart-table tr { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; }
    .cart-table td { padding: 6px 0 !important; border-bottom: none !important; }
    .cart-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: var(--text-muted);
        margin-bottom: 2px;
    }
}

/* Category filter sidebar */
.category-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
/* A parent category with no products of its own (only subcategories) shows a subcategory grid
   instead of a product list/filters — nothing to filter, so the sidebar column collapses away
   entirely rather than leaving a mostly-empty 240px gap next to it. */
.category-layout-no-sidebar { grid-template-columns: 1fr; }
/* A category with many spec facets (RAM, CPU, opslag, ...) stacks well past the viewport height
   — capping the sidebar itself and letting it scroll internally keeps it fully reachable while
   sticky, instead of overflowing off-screen and losing the lower filter groups until the page
   scrolls far enough to un-stick it entirely. */
.filter-sidebar {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 20px 14px 20px 20px;
}
.filter-group { border-bottom: 1px solid var(--border); padding-bottom: 18px; margin-bottom: 18px; }
.filter-group:last-of-type { border-bottom: none; }
.filter-group h4 { font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); margin: 0 0 12px; }
.filter-group .checkbox-row { margin-bottom: 10px; align-items: flex-start; }
.filter-group .checkbox-row:last-child { margin-bottom: 0; }
.filter-group .checkbox-row span { font-size: 0.9rem; }
.filter-group-scroll { max-height: 220px; overflow-y: auto; padding-right: 4px; }

/* Thin, muted scrollbars for the sidebar itself and each facet's inner value list — the default
   OS scrollbar is chunky/grey and clashes with the rest of the UI here. Kept deliberately subtle
   (matches --border, barely visible at rest) rather than the site's navy accent color — the
   navy version read as too dark/attention-grabbing for something that's just a scroll affordance. */
.filter-sidebar, .filter-group-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.filter-sidebar::-webkit-scrollbar, .filter-group-scroll::-webkit-scrollbar { width: 6px; }
.filter-sidebar::-webkit-scrollbar-track, .filter-group-scroll::-webkit-scrollbar-track { background: transparent; }
.filter-sidebar::-webkit-scrollbar-thumb, .filter-group-scroll::-webkit-scrollbar-thumb { background-color: var(--border); border-radius: 10px; }
.filter-sidebar::-webkit-scrollbar-thumb:hover, .filter-group-scroll::-webkit-scrollbar-thumb:hover { background-color: #c3cad9; }
.price-range-inputs { display: flex; align-items: center; gap: 8px; }
.price-range-inputs input { min-width: 0; padding: 8px 10px; font-size: 0.88rem; }
.price-range-inputs span { color: var(--text-muted); flex-shrink: 0; }
.filter-reset { display: inline-block; color: var(--danger); font-weight: 700; font-size: 0.85rem; }

.category-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.category-toolbar-filters { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.view-toggle { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.view-toggle button {
    background: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--text-muted);
}
.view-toggle button + button { border-left: 1px solid var(--border); }
.view-toggle button.active { background: var(--navy-950); color: #fff; }
.price { font-size: 1.25rem; font-weight: 800; color: var(--navy-900); }
.price-compare { font-size: 0.85rem; color: var(--text-muted); text-decoration: line-through; margin-right: 6px; }
.add-btn {
    width: 40px; height: 40px;
    border-radius: 999px;
    background: var(--navy-950);
    color: var(--lime);
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
}
.add-btn:hover { background: var(--lime); color: var(--navy-950); }
.add-btn:disabled { background: var(--border); color: var(--text-muted); cursor: not-allowed; }
.add-btn:disabled:hover { background: var(--border); color: var(--text-muted); }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumbs a:hover { color: var(--navy-800); }
.breadcrumbs span { margin: 0 6px; }

/* Product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-gallery { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; padding: 20px; }
.product-gallery img { width: 100%; height: 100%; object-fit: contain; }
.product-gallery .placeholder { font-size: 3rem; font-weight: 800; color: #b7c0cf; }

.product-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumb {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 8px;
    width: 64px;
    height: 64px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery-thumb.active { border-color: var(--lime-dark); }
.gallery-thumb:hover { border-color: var(--navy-700); }
.product-main h1 { font-size: 1.9rem; }
.stock-line { font-weight: 700; font-size: 0.9rem; margin: 14px 0; }
.stock-line.in { color: #1a8a4a; }
.stock-line.low { color: #92650a; }
.stock-line.critical { color: var(--danger); }
.stock-line.out { color: var(--danger); }
.product-price-block { display: flex; align-items: baseline; gap: 10px; margin: 18px 0; }
.product-price-block .price { font-size: 2rem; }
.qty-form { display: flex; gap: 12px; align-items: center; margin-top: 24px; flex-wrap: wrap; }
.product-actions-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.product-actions-row .qty-form { margin-top: 0; }
.qty-input {
    width: 70px; padding: 12px; border-radius: 10px; border: 1.5px solid var(--border);
    font-size: 1rem; text-align: center;
}
.product-description { margin-top: 32px; border-top: 1px solid var(--border); padding-top: 24px; white-space: pre-line; color: var(--text-muted); }
/* Long descriptions (common on synced products) pushed "Vaak samen besteld" far below the fold —
   collapsed to a fixed height by default with a fade-out + "Lees meer" toggle, JS decides
   whether the toggle is even needed (see product.php) so a short description never gets a
   pointless button. */
.product-description.collapsed { max-height: 220px; overflow: hidden; position: relative; }
.product-description.collapsed::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 50px; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.read-more-btn {
    display: inline-flex; align-items: center; gap: 4px; margin-top: 12px;
    background: none; border: none; padding: 0; color: var(--navy-600); font-weight: 700; font-size: 0.88rem; cursor: pointer;
}
.read-more-btn:hover { text-decoration: underline; }

/* Product specs — native <details>, collapsed by default, zero JS needed */
.product-specs { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 20px; }
.product-specs summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 6px; }
.product-specs summary::-webkit-details-marker { display: none; }
.product-specs summary::before { content: '+'; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; font-weight: 800; color: var(--navy-600); }
.product-specs[open] summary::before { content: '−'; }
.specs-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 0.9rem; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table th, .specs-table td { text-align: left; padding: 8px 0; font-weight: 400; }
.specs-table th { width: 45%; color: var(--text-muted); }

/* Reviews */
.product-rating-summary { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 0.85rem; color: var(--text-muted); text-decoration: none; }
.product-rating-summary:hover { text-decoration: underline; }
.product-rating-summary .stars, .review-item-head .stars { color: #f5a623; letter-spacing: 1px; }
.reviews-list { display: flex; flex-direction: column; gap: 20px; max-width: 640px; }
.review-item { border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.review-item:last-child { border-bottom: none; padding-bottom: 0; }
.review-item-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.review-item-title { font-weight: 700; margin: 0 0 4px; }
.review-item-body { color: var(--text-muted); margin: 0; white-space: pre-line; }
/* Interactive star picker: radios laid out highest-value-first then reversed visually, so a
   plain CSS sibling selector (~) can fill "this star and everything before it" on hover/checked
   without any JS. */
.star-rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-rating-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-rating-input label { font-size: 1.8rem; line-height: 1; color: var(--border); cursor: pointer; }
.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label { color: #f5a623; }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; }
.form-control {
    width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--border);
    font-size: 0.95rem; font-family: var(--font); background: #fff; color: var(--text);
}
.form-control:focus { outline: none; border-color: var(--navy-700); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.checkbox-row input { width: 18px; height: 18px; }

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-size: 0.9rem; font-weight: 600; }
.alert-error { background: #fde8ea; color: #b3273f; }
.alert-success { background: var(--lime-soft); color: #3c6b00; }

/* Cart — .cart-table is reused (order-detail, dashboard, returns, return-form all have
   different column shapes than the real shopping cart), so the column-width percentages below
   are scoped to .cart-layout .cart-table specifically, not the bare class. */
.cart-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cart-table th { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); padding: 0 0 12px; border-bottom: 1px solid var(--border); }
.cart-table td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-layout .cart-table th:nth-child(1), .cart-layout .cart-table td:nth-child(1) { width: 44%; }
.cart-layout .cart-table th:nth-child(2), .cart-layout .cart-table td:nth-child(2) { width: 14%; }
.cart-layout .cart-table th:nth-child(3), .cart-layout .cart-table td:nth-child(3) { width: 16%; }
.cart-layout .cart-table th:nth-child(4), .cart-layout .cart-table td:nth-child(4) { width: 16%; }
.cart-layout .cart-table th:nth-child(5), .cart-layout .cart-table td:nth-child(5) { width: 10%; padding-right: 0; }
/* order-detail.php reuses .cart-table with the same 5-column shape (Product/Prijs/Aantal/Totaal/acties)
   but is wrapped in .checkout-layout, not .cart-layout, so it needs its own matching width rules —
   see the "reused across ... each with a different column count" note in the mobile breakpoint above. */
.order-detail-table th:nth-child(1), .order-detail-table td:nth-child(1) { width: 44%; }
.order-detail-table th:nth-child(2), .order-detail-table td:nth-child(2) { width: 14%; }
.order-detail-table th:nth-child(3), .order-detail-table td:nth-child(3) { width: 16%; }
.order-detail-table th:nth-child(4), .order-detail-table td:nth-child(4) { width: 16%; }
.order-detail-table th:nth-child(5), .order-detail-table td:nth-child(5) { width: 10%; padding-right: 0; }
.cart-product { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cart-thumb { width: 64px; height: 64px; border-radius: 8px; background: #fff; border: 1px solid var(--border); overflow: hidden; flex-shrink: 0; display:flex; align-items:center; justify-content:center; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-product a { min-width: 0; line-height: 1.4; font-size: 0.88rem; }
.cart-summary { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); }
/* Neutral content card matching .cart-summary's own box treatment — for wrapping primary
   content (e.g. account/order-detail's items table + addresses) that would otherwise sit bare
   on the page background next to a boxed sidebar, looking visually unfinished by comparison. */
.content-card { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 0.95rem; }
.summary-row.total { font-weight: 800; font-size: 1.15rem; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.remove-link { color: var(--danger); font-size: 0.8rem; font-weight: 700; }
.empty-state { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.empty-state h2 { color: var(--text); }

.badge-status { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.badge-nieuw { background: #e6f0ff; color: #1955a8; }
.badge-in_behandeling { background: #fff4d6; color: #92650a; }
.badge-verzonden { background: #e3f0ff; color: #1a5fb0; }
.badge-afgerond { background: #e2f7ea; color: #1a8a4a; }
.badge-geannuleerd { background: #fde8ea; color: var(--danger); }
.badge-wacht_op_betaling { background: #f3e8ff; color: #7c3aed; }
.badge-betaald { background: #e2f7ea; color: #1a8a4a; }
.badge-open { background: #fde8ea; color: var(--danger); }
.badge-credit-flag { background: #fff4d6; color: #92650a; }
.badge-aangevraagd { background: #fff4d6; color: #92650a; }
.badge-goedgekeurd { background: #e3f0ff; color: #1a5fb0; }
.badge-afgewezen { background: #fde8ea; color: var(--danger); }
.badge-ontvangen { background: #e6f0ff; color: #1955a8; }
.badge-afgehandeld { background: #e2f7ea; color: #1a8a4a; }

/* Checkout */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.order-line { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; padding: 8px 0; border-bottom: 1px solid var(--border); }
.order-line > span:first-child {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.35;
}
.order-line > span:last-child { flex-shrink: 0; font-weight: 600; white-space: nowrap; }

.checkout-step { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 20px; background: #fff; }
.checkout-step-title { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 1.15rem; color: var(--navy-950); }
.checkout-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--navy-950);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    flex-shrink: 0;
}

.delivery-method-options { display: flex; flex-direction: column; gap: 10px; }
.delivery-method-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    cursor: pointer;
}
.delivery-method-option input { margin-top: 3px; }
.delivery-method-option:has(input:checked) { border-color: var(--navy-700); background: #f4f6fa; }

.payment-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 5px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.02em; color: #fff; line-height: 1.6; }
.payment-badge-ideal { background: #cc0066; }
.payment-badge-wero { background: #1a0b3d; }

.upsell-card {
    background: linear-gradient(135deg, #f4ffe0 0%, #eafccb 100%);
    border: 2px solid var(--lime-dark);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin: 0 0 24px;
}
.upsell-card h3 { color: var(--navy-950); font-size: 1.1rem; }
.upsell-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
}
.upsell-item:last-child { margin-bottom: 0; }
.upsell-item-thumb { width: 52px; height: 52px; border-radius: 8px; object-fit: contain; background: #f4f6fa; border: 1px solid var(--border); flex-shrink: 0; }
.upsell-item-info { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 0.88rem; }
.upsell-item-qty { display: flex; flex-direction: column; align-items: center; gap: 2px; flex-shrink: 0; }
.upsell-item-qty label { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); text-align: center; max-width: 78px; }
.upsell-item-qty .transfer-qty-input { width: 64px; padding: 6px 8px; text-align: center; }
.upsell-item-qty .transfer-qty-input:disabled { background: #f4f6fa; color: var(--text-muted); }

/* Footer */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.7); padding: 48px 0 24px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-grid h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
.footer-grid a { display: block; color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--lime); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Toast */
.toast {
    position: fixed; bottom: 24px; right: 24px; background: var(--navy-950); color: #fff;
    padding: 14px 22px; border-radius: 10px; font-weight: 700; font-size: 0.9rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25); z-index: 100; opacity: 0; transform: translateY(12px);
    transition: opacity 0.2s, transform 0.2s; pointer-events: none;
    border-left: 4px solid var(--lime);
}
.toast.show { opacity: 1; transform: translateY(0); }

/* Pagination-less search */
.search-form-page { display: flex; gap: 10px; max-width: 480px; margin-bottom: 32px; }
.search-form-page input { flex: 1; }

/* Legal / info pages */
.legal-content { max-width: 720px; color: var(--text); }
.legal-content h2 { font-size: 1.2rem; margin: 32px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin: 0 0 14px; color: var(--text-muted); line-height: 1.7; }
.legal-content ul { margin: 0 0 14px; padding-left: 20px; color: var(--text-muted); line-height: 1.7; }
.legal-content a { color: var(--navy-800); text-decoration: underline; }

@media (max-width: 900px) {
    /* The category subbar only exists as a visible bar on desktop — on mobile it stays
       collapsed (no empty strip under the header) until the hamburger opens .main-nav, at
       which point it reveals itself so the dropdown panel has something to anchor to. */
    .header-subbar { display: none; border-top: none; position: relative; }
    .header-subbar:has(.main-nav.open) { display: block; }
    .header-subbar .container { padding: 0; }
    .main-nav { display: none; }
    .main-nav.open {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy-950);
        padding: 14px 20px 20px;
        box-shadow: 0 16px 28px rgba(0,0,0,0.25);
    }
    .nav-dropdown { width: 100%; }
    .nav-megamenu {
        position: static;
        box-shadow: none;
        margin-top: 4px;
        width: 100%;
        max-width: none;
        flex-direction: column;
    }
    .nav-megamenu-list { width: 100%; max-height: none; border-right: none; overflow: visible; }
    .nav-megamenu-panels { display: none; max-height: none; overflow: visible; }
    /* Drill-down on mobile: tapping a category swaps the list for its subcategories full-width,
       via .showing-panel toggled in JS, rather than a cramped side-by-side layout. */
    .nav-megamenu.showing-panel .nav-megamenu-list { display: none; }
    .nav-megamenu.showing-panel .nav-megamenu-panels { display: block; }
    .nav-megamenu-back {
        display: flex;
        align-items: center;
        gap: 6px;
        background: none;
        border: none;
        font-family: inherit;
        color: var(--navy-800);
        font-weight: 700;
        font-size: 0.85rem;
        padding: 6px 8px 14px;
        cursor: pointer;
    }
    .nav-toggle { display: block; }
    .search-form { display: none; }
    .search-form-mobile { display: flex; width: 100%; margin-bottom: 14px; }
    .search-form-mobile input { flex: 1; width: auto; }
    /* Account/contact move into the hamburger menu on mobile — only cart stays in the top row. */
    .account-link, .contact-link { display: none; }
    .mobile-account-links { display: flex; flex-direction: column; gap: 2px; width: 100%; margin-bottom: 14px; }
    .product-detail, .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .category-layout { grid-template-columns: 1fr; }
    .filter-sidebar { position: static; margin-bottom: 24px; max-height: none; overflow-y: visible; }
    .form-row { grid-template-columns: 1fr; }
}
