@font-face {
    font-family: "Agrandir Wide Bold";
    src: url("../fonts/agrandir-wide-bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Agrandir Wide Bold", Inter, system-ui, sans-serif;

    /* ---- Huisstijl (palet Paul Oram, 2026-05-08) ---- */
    --primary:        #1F5063;   /* blauw diep — footer, hero-overlay, zware vlakken */
    --primary-medium: #2D7088;   /* blauw medium — headings, dark UI */
    --primary-light:  #9ED1DF;   /* blauw soft — banner, B2B-blok, accent */

    --accent:         #E32511;   /* rood — CTA, logo-driehoek */
    --accent-hover:   #AB1B0B;   /* rood hover, pressed */

    --text:           #2A2622;   /* broodtekst */
    --text-muted:     #6B6358;   /* ondergeschikte tekst */

    --bg:             #ffffff;   /* pagina-achtergrond */
    --bg-subtle:      #F5F5F5;   /* section-achtergrond / subtiele vlakken */
    --border:         #E4E4E4;   /* subtiele lijnen / randen */

    /* ---- Status (semantisch) ---- */
    --success-bg:       #dcfce7;
    --success-text:     #16a34a;
    --success-strong:   #2a7a3a;
    --warning-text:     #a45c00;
    --error-bg:         #fee2e2;
    --error-text:       #dc2626;
    --error-soft-bg:    #fff1f2;
    --error-soft-text:  #be123c;
    --error-border:     #fda4af;

    --text-soft:        #666666;

    /* ---- Admin status-badges ---- */
    --status-paid-bg:        #e8f5e9;
    --status-paid-text:      #2e7d32;
    --status-verzonden-bg:   #e3f2fd;
    --status-verzonden-text: #1565c0;
    --status-authorized-bg:  #ede7f6;
    --status-authorized-text:#4527a0;
    --status-pending-bg:     #fff3e0;
    --status-pending-text:   #e65100;
    --status-failed-bg:      #fce4ec;
    --status-failed-text:    #c62828;
    --status-canceled-bg:    #f5f5f5;
    --status-canceled-text:  #666666;
    --status-expired-bg:     #f5f5f5;
    --status-expired-text:   #999999;

    /* ---- Layout ---- */
    --container:     1152px;
    --r-sm:          6px;
    --r-md:          0;
    --r-lg:          0;

    --shadow-sm:     0 1px 3px rgba(0,0,0,0.06);
    --shadow-md:     0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg:     0 12px 40px rgba(0,0,0,0.1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; scroll-padding-top: 120px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body  { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.625; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
h1, h2 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.1; text-wrap: balance; }
h3, h4 { font-weight: 600; line-height: 1.3; text-wrap: balance; }
p { text-wrap: pretty; }

/* ---- Layout ---- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 5rem 0; }

/* ---- Header ---- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0 0.75rem;
}

.logo img { height: 73px; }

.header-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-link svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-link:hover svg { stroke: var(--primary); }

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--accent);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-nav {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    margin-left: 2.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary); }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-bar {
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
    border-radius: 2px;
}

.menu-toggle.active .menu-bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active .menu-bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .menu-bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font-body);
    border-radius: 0;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* CTA: voor primaire koop-acties (in winkelmand, bestel nu, afrekenen).
   Rood = urgentie/actie volgens huisstijl. */
.btn-cta { background: var(--accent); color: #fff; }
.btn-cta:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* Ghost: transparant met rode rand en rode tekst — voor secundaire CTA's */
.btn-ghost {
    background: transparent;
    color: var(--accent);
    border: 2.5px solid var(--accent);
}
.btn-ghost:hover {
    color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-lg { padding: 0.75rem 1.75rem; font-size: 0.9rem; }

.btn-b2b {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text-muted);
    transition: all 0.2s;
}
.btn-b2b:hover, .btn-b2b.active { border-color: var(--accent-hover); color: var(--accent-hover); }

/* ---- Shared components ---- */
.nav-links a.active { color: var(--primary); }
.btn-full { width: 100%; justify-content: center; }

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}
.section-label-danger { color: var(--accent); }

.section-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 3.5rem;
}
.section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: 0.5rem;
}
.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1rem;
}
.section-header p:last-child { margin-bottom: 0; }
.section-header-link { margin-top: 0.5rem; }

.page-header {
    background: var(--primary);
    padding: 3rem 0;
    text-align: center;
}
.page-header h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.5rem; color: #fff; }
.page-header p { max-width: 42rem; margin: 0 auto; color: rgba(255,255,255,0.8); font-size: 1.05rem; line-height: 1.7; }

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.cart-summary-divider {
    border-top: 1px solid var(--border);
    margin: 1rem 0;
}

.cart-summary-total {
    font-weight: 700;
    font-size: 1.15rem;
}

/* ---- Footer (V0-stijl) ---- */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}
.footer-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}
.footer-brand-tag {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255,255,255,0.55);
}
.footer h3 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 1rem;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; padding: 0; margin: 0; }
.footer a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
    text-decoration: none;
}
.footer a:hover { color: #fff; }
.footer-meta {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}
.footer-meta-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-meta { flex-direction: column; align-items: flex-start; }
}

/* Mobile-only nav-link voor B2B (zit in nav-links op mobiel, los rechts op desktop) */
.nav-b2b-mobile { display: none; }

/* ---- Responsive (shared) ---- */
@media (max-width: 900px) {
    /* A1: Touch targets — minimaal 44px hoogte */
    .btn { padding: 0.75rem 1.25rem; }
    .btn-lg { padding: 0.85rem 2rem; font-size: 0.95rem; }

    /* A2: Hamburger-menu touch target */
    .menu-toggle { display: flex; padding: 10px; }

    /* B2B-knop uit de header-right, terug in het hamburger-menu */
    .btn-b2b { display: none; }
    .nav-b2b-mobile { display: block; }


    /* A4: Menu als overlay */
    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        z-index: 99;
    }
    .header-nav.open { display: block; }
    .header-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.3);
        z-index: 98;
    }
    .header-overlay.open { display: block; }

    .nav-links { flex-direction: column; gap: 0; padding: 0.5rem 0; }
    .nav-links a { padding: 0.85rem 0; border-bottom: 1px solid var(--border); text-align: center; }
    .nav-links a:last-child { border-bottom: none; }
}

/* Utility: verberg element (JS toggled dit via classList) */
.is-hidden { display: none !important; }

/* Subtiele sectie-achtergrond (index.ejs) */
.section-subtle { background: var(--bg-subtle); }

/* ---- Marquee announcement bar (boven de sticky header) ---- */
.marquee {
    background: var(--primary-light);
    color: var(--text);
    padding: 0.65rem 0;
    font-size: 0.95rem;
    line-height: 1.4;
    overflow: hidden;
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 120s linear infinite;
}
.marquee-group {
    display: flex;
    gap: 2rem;
    padding-right: 2rem;
    flex-shrink: 0;
}
.marquee-item,
.marquee-sep {
    white-space: nowrap;
    flex-shrink: 0;
}
.marquee-sep {
    color: rgba(0, 0, 0, 0.4);
}
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; justify-content: center; flex-wrap: wrap; }
}

/* ---- Toast (feedback bij toevoegen aan winkelmand) ---- */
.toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translate(-50%, calc(100% + 2rem));
    background: var(--text);
    color: #fff;
    padding: 0.85rem 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.95rem;
    z-index: 1000;
    transition: transform 0.3s ease;
    max-width: calc(100vw - 2rem);
}
.toast--visible { transform: translate(-50%, 0); }
.toast-text { display: flex; align-items: center; gap: 0.5rem; }
.toast-text::before { content: '✓'; color: #4ade80; font-weight: 700; }
.toast-cta { color: #fff; text-decoration: underline; font-weight: 600; white-space: nowrap; }
.toast-cta:hover { text-decoration: none; }
@media (max-width: 600px) {
    .toast {
        left: 1rem;
        right: 1rem;
        transform: translateY(calc(100% + 2rem));
        max-width: none;
    }
    .toast--visible { transform: translateY(0); }
}
