/* Utility helpers appended */
.initially-hidden { display: none !important; }
.modal-width-sm .modal-dialog { --modal-max-width-sm: 420px; }
/*
    main.css - Overzicht van uniforme knop-structuur voor alle pagina's

    Gebruik per pagina/component een eigen button-class:
    - .login-button           (loginpagina)
    - .register-button        (registratiepagina)
    - .shop-product-button    (shop)
    - .hero-button            (homepage)
    - .account-menu-button    (account menu)

    Voeg deze class toe aan de HTML-knoppen en style ze in de betreffende CSS-bestanden.
    Dit zorgt voor een uniforme, duidelijke en onderhoudbare structuur.

    Voorbeeld:
    <button class="login-button">Inloggen</button>
    <button class="register-button">Registreren</button>
    <button class="shop-product-button">Toevoegen</button>
    <a class="hero-button" href="#">Start nu</a>
*/

/* Globale font-standaard: Outfit overal toepassen */
html, body, input, select, textarea, button {
    font-family: 'Outfit', Arial, sans-serif;
}
/* Global link color: purple */
a { color: #6d00c7; }
a:hover { color: #5a00a5; }

/* ============================= */
/* Global password toggle button */
/* ============================= */
/* Icon-only variant ensures stable width so swapping eye / eye-slash doesn't shift layout */
/* Introduce sizing variable so we can fine-tune component site-wide from one place */
:root { --password-toggle-size: 34px; /* was 40px */ }
.password-toggle[data-icon-only] {
    width: var(--password-toggle-size);
    min-width: var(--password-toggle-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    box-sizing: border-box;
}
/* Remove extra text spacing if legacy text still present (defensive) */
.password-toggle[data-icon-only] i { pointer-events: none; }

/* Unified in-field password toggle (desktop + tablet) */
.with-toggle { position: relative; }
.with-toggle input[type="password"],
.with-toggle input[type="text"] {
    /* Ensure space: toggle size + gap (8px) + base padding (~14px). When size=34 → 34 + 8 + 14 ≈ 56 */
    padding-right: calc(var(--password-toggle-size) + 22px) !important;
    box-sizing: border-box;
}
.with-toggle .password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--password-toggle-size);
    height: var(--password-toggle-size);
    min-height: var(--password-toggle-size);
    border: 1px solid var(--password-toggle-border, #d0c8e0);
    background: var(--password-toggle-bg, #faf7ff);
    color: var(--password-toggle-fg, #6d00c7);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.with-toggle .password-toggle:hover,
.with-toggle .password-toggle:focus {
    background: var(--password-toggle-bg-hover, #f3eaff);
}
.with-toggle .password-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(109,0,199,0.25);
}
.with-toggle .password-toggle i { font-size: 0.95em; line-height: 1; }

/* High contrast / reduced motion (optional progressive enhancement) */
@media (prefers-reduced-motion: reduce) {
  .with-toggle .password-toggle { transition: none; }
}

/* Reserve vertical scrollbar space to prevent width jump between pages */
html {
    /* Keep layout width identical whether the page scrolls or not */
    scrollbar-gutter: stable; /* widely supported in modern browsers */
}
@supports not (scrollbar-gutter: stable) {
    /* Fallback: always show vertical scrollbar gutter on desktop/tablet only */
    @media (min-width: 768px) {
        html { overflow-y: scroll; }
    }
}

/* Desktop: match cart icon/button look to mobile (icon-only 36x36, no border/shadow) */
@media (min-width: 768px) {
    .header-main .header-right .shop-cart-icon {
        font-size: 0 !important;
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 !important;
        border-radius: 10px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        position: relative !important;
        line-height: 1 !important;
        border: 0 !important;
        background-color: transparent !important;
        color: inherit !important;
        box-shadow: none !important;
    }
    .header-main .header-right .shop-cart-icon:hover,
    .header-main .header-right .shop-cart-icon:focus,
    .header-main .header-right .shop-cart-icon:active {
        background-color: transparent !important;
        color: inherit !important;
        border: 0 !important;
        box-shadow: none !important;
    }
    .header-main .header-right .shop-cart-icon i {
        font-size: 18px !important;
        margin: 0 !important;
        line-height: 1 !important;
        display: inline-block !important;
    }
    .header-main .cart-badge {
            /* Make it icon-only like mobile, with purple border to match buttons */
            border: 1px solid #6d00c7 !important;
        background-color: #6d00c7 !important; /* fill circle with purple */
            color: #ffffff !important;
            box-shadow: none !important;
        border-width: 2px !important;
        position: absolute !important;
        right: -6px !important;
        top: -6px !important;
        /* Make the badge smaller and perfectly round on desktop */
        width: 16px !important;
        height: 16px !important;
        min-width: 16px !important;
        padding: 0 !important;
        font-size: 0.65rem !important; /* smaller number */
        line-height: 1 !important;     /* avoid vertical jitter; flex centers content */
        border-radius: 9999px !important;
        text-align: center !important;
    }
}

/* Globale container: houdt header/footer/content even breed en gecentreerd */
.site-container {
    width: 96%;
    max-width: 1450px; /* afgestemd op gewenste paginabreedte */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
@media (max-width: 900px) {
    .site-container { width: 96%; padding-left: 8px; padding-right: 8px; }
}

/* Header container should visually match the index width without extra inner padding
   (avoid inherited .site-container horizontal padding creating a narrower header on subpages) */
.header-container {
    width: 96%;
    max-width: 1450px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
}
/* Menu and footer containers should mirror header sizing (no inner padding) */
.menu-container,
.footer-container {
    width: 96%;
    max-width: 1450px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
}


/* Gelijke ruimte tussen alle header knoppen */
.header-right > a,
.header-right > form > .header-logout-link {
    margin-left: 10px;
    margin-right: 0;
}
.header-right > a:first-child,
.header-right > form:first-child > .header-logout-link {
    margin-left: 0;
}
.header-right .header-logout-link {
    background: #6d00c7 !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: 8px;
    padding: 8px 18px;
    text-decoration: none;
    border: 2px solid #6d00c7 !important;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
    display: inline-block;
    cursor: pointer;
    font-size: 1em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.header-right .header-logout-link:hover {
    background: #fff !important;
    color: #6d00c7 !important;
    border: 2px solid #6d00c7 !important;
     text-decoration: none;
    border-radius: 8px !important;
}
/* Uitloggen knop: visueel identiek aan account/registratie knoppen */
.header-right .header-logout-link {
    background: #6d00c7 !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: 8px;
    padding: 8px 18px;
    text-decoration: none;
    border: 2px solid #6d00c7;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
    cursor: pointer;
    font-size: 1em;
    border: none;
}
.header-right .header-logout-link:hover {
    background: #fff !important;
    color: #6d00c7 !important;
    text-decoration: underline;
}
/* ===================== */
/* KNOPPEN (HEADER)     */
/* ===================== */


/* Inloggen knop: toont loginmogelijkheid voor uitgelogde gebruikers */
.header-right a.header-logout-btn {
    background: #6d00c7;
    color: #fff !important;
    font-weight: 700;
    border-radius: 8px;
    padding: 8px 18px;
    text-decoration: none;
    border: 2px solid #6d00c7;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
}
.header-right a.header-logout-btn:hover {
    background: #fff;
    color: #6d00c7 !important;
}

/* Registratie knop: toont registratie voor uitgelogde gebruikers */
.header-right a[href*="register.php"] {
    line-height: 1.2 !important;
    background: #6d00c7;
    color: #fff !important;
    font-weight: 700;
    border-radius: 8px;
    padding: 8px 18px;
    text-decoration: none;
    border: 2px solid #6d00c7;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
}
.header-right a[href*="register.php"]:hover {
    background: #fff;
    color: #6d00c7 !important;
    line-height: 1.2 !important;
}

/* Account knop: toont accountpagina voor ingelogde gebruikers */
.header-right a[href*="account.php"] {
    background: #6d00c7;
    color: #fff !important;
    font-weight: 700;
    border-radius: 8px;
    padding: 8px 18px;
    text-decoration: none;
    border: 2px solid #6d00c7;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
}
.header-right a[href*="account.php"]:hover {
    background: #fff;
    color: #6d00c7 !important;
}

/* Winkelmandje knop: toont winkelmandje in shop */
.header-cart.shop-cart-icon {
    background: #fff;
    color: #6d00c7 !important;
    border-radius: 8px;
    padding: 8px 18px;
    text-decoration: none;
    border: 2px solid #6d00c7;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
}
.header-cart.shop-cart-icon:hover {
    background: #6d00c7;
    color: #fff !important;
}
/* ===================== */
/* UITGELOGD STYLING    */
/* ===================== */
.header-right a[href*="register.php"] {
    background: #6d00c7;
    color: #fff !important;
    font-weight: 700;
    border-radius: 8px;
    padding: 8px 18px;
    text-decoration: none;
    border: 2px solid #6d00c7;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
}
.header-right a[href*="register.php"]:hover {
    background: #fff;
    color: #6d00c7 !important;
}

/* ===================== */
/* INGLOGD STYLING      */
/* ===================== */
.header-right a[href*="account.php"] {
    background: #6d00c7;
    color: #fff !important;
    font-weight: 700;
    border-radius: 8px;
    padding: 8px 18px;
    text-decoration: none;
    border: 2px solid #6d00c7;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
}
.header-right a[href*="account.php"]:hover {
    background: #fff;
    color: #6d00c7 !important;
}
.header-right a[href*="account.php"] {
    background: #6d00c7;
    color: #fff !important;
    font-weight: 700;
    border-radius: 8px;
    padding: 8px 18px;
    text-decoration: none;
    border: 2px solid #6d00c7;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
}
.header-right a[href*="account.php"]:hover {
    background: #fff;
    color: #6d00c7 !important;
}
.header-right a[href*="register.php"] {
    background: #6d00c7;
    color: #fff !important;
    font-weight: 700;
    border-radius: 8px;
    padding: 8px 18px;
    text-decoration: none;
    border: 2px solid #6d00c7;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
}
/* ===================== */
/* KNOPPEN (HEADER)     */
/* ===================== */

/* Uitloggen knop: toont uitlogmogelijkheid voor ingelogde gebruikers */
.header-right .header-logout-link,
.header-right .header-logout-link:hover {
    background: #6d00c7 !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: 8px !important;
    padding: 8px 18px;
    text-decoration: none;
    border: 2px solid #6d00c7 !important;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    display: inline-block;
    cursor: pointer;
    font-size: 1em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: none;
}
.header-right .header-logout-link:hover {
    background: #fff !important;
    color: #6d00c7 !important;
    border: 2px solid #6d00c7 !important;
    text-decoration: underline;
}

/* Inloggen knop: toont loginmogelijkheid voor uitgelogde gebruikers */
.header-right a.header-logout-btn {
    background: #6d00c7;
    color: #fff !important;
    font-weight: 700;
    border-radius: 8px;
    padding: 8px 18px;
    text-decoration: none;
    border: 2px solid #6d00c7;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.header-right a.header-logout-btn:hover {
    background: #fff;
    color: #6d00c7 !important;
    border: 2px solid #6d00c7;
}

/* Registratie en account knop: visueel identiek voor uitgelogd en ingelogd */
.header-right a[href*="register.php"],
.header-right a[href*="account.php"] {
    background: #6d00c7;
    color: #fff !important;
    font-weight: 700;
    border-radius: 8px;
    padding: 8px 18px;
    text-decoration: none;
    border: 2px solid #6d00c7;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.header-right a[href*="register.php"]:hover,
.header-right a[href*="account.php"]:hover {
    background: #fff;
    color: #6d00c7 !important;
    border: 2px solid #6d00c7;
}

/* Winkelmandje knop: toont winkelmandje in shop */
.header-cart.shop-cart-icon {
    background: #fff;
    color: #6d00c7 !important;
    border-radius: 8px;
    padding: 8px 18px;
    text-decoration: none;
    border: 2px solid #6d00c7;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.header-cart.shop-cart-icon:hover {
    background: #6d00c7;
    color: #fff !important;
    border: 2px solid #6d00c7;
}
.header-right a[href*="register.php"]:hover {
    background: #fff;
    color: #6d00c7 !important;
}
.header-right a[href*="register.php"],
.header-right a[href*="account.php"] {
    background: #6d00c7;
    color: #fff !important;
    font-weight: 700;
    border-radius: 8px;
    padding: 8px 18px;
    text-decoration: none;
    border: 2px solid #6d00c7;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
}
.header-right a[href*="register.php"]:hover,
.header-right a[href*="account.php"]:hover {
    background: #fff;
    color: #6d00c7 !important;
}
.header-logout-link {
    color: #fff;
    background: #fff;
    border: none;
    font-size: 1em;
    font-weight: 600;
    padding: 8px 18px;
    text-decoration: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.header-logout-link:hover {
    background: #6d00c7;
    color: #fff;
    text-decoration: underline;
}
a.header-logout-btn {
    color: #fff !important;
}
.header-logout-btn {
    font-size: 1em;
    line-height: 1.2;
    padding: 8px 18px;
    border-radius: 8px;
    vertical-align: middle;
    font-weight: 600;
    background: #6d00c7;
    border: none;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
}
.header-logout-btn:hover {
    text-decoration: none;
    color: #fff !important;
}
/* Uitloggen knop styling */
.header-logout-btn {
    font-size: 1em;
    line-height: 1.2;
    padding: 8px 18px;
    border-radius: 8px;
    vertical-align: middle;
    font-weight: 600;
    background: #6d00c7;
    border: none;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
}
.header-logout-btn:hover {
    background: #228;
    color: #fff !important;
}
.header-logo-container {
    height: 64px;
    display: flex;
    align-items: center;
    overflow: visible;
    position: relative;
}
.header-logo img {
    height: 64px;
    width: auto;
    max-width: 200px;
    display: block;
    margin-top: 0;
}
/* Styling voor de header */
.header-main {
    /* Match footer background color on all screens */
    background: #222 !important;
    color: #fff !important;
    padding: 6px 0; /* iets smaller op desktop */
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
}
.header-nav {
    margin: 20px 0;
}
.header-nav a {
    color: #222 !important;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
    position: relative;
    z-index: 11;
    pointer-events: auto;
}
.header-nav a:hover {
    text-decoration: none;
}
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.header-left {
    display: flex;
    align-items: center;
}
/* Hamburger hidden by default; shown via page-specific mobile CSS */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: inherit;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 18px;
}
.header-left a.header-logo {
    margin: 0 10px 0 0; /* align logo flush to left edge */
    display: inline-block;
    height: 64px; /* unify desktop header height with index */
    position: relative;
    z-index: 12;
    pointer-events: auto;
}
.header-left a.header-logo img {
    height: 64px; /* unify desktop header height with index */
    width: auto;
    max-width: 200px;
    pointer-events: auto;
    display: block;
    margin-top: 0;
}
.header-right a, .header-right form {
    margin: 0 0 0 10px;
    display: inline-block;
}
.header-right form { display: contents; margin: 0; padding: 0; }
.header-bar form { display: inline; }
/* Remove generic link hover color/underline in header to avoid conflicts/flicker */
/* Specific button rules below handle visuals */
.header-right .header-logout-btn {
    background: #6d00c7;
    color: #fff !important;
    border-radius: 8px;
    transition: background 0.2s;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.header-right .header-logout-btn:hover {
    background: #888;
    color: #fff !important;
}
/* Verplaatste in-line styles uit header.php */
.shop-cart-icon {
    font-size: 1.5rem;
    margin-right: 18px;
}
.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    margin-left: 6px;
    font-size: 0.85rem;
    line-height: 1;
    background: #6d00c7;
    color: #fff !important;
    border-radius: 999px;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.header-logout-btn {
    font-size: 1em;
    line-height: 1.2;
    padding: 8px 18px;
    border-radius: 8px;
    vertical-align: middle;
    font-weight: 600;
    background: #6d00c7;
    border: none;
    color: #fff !important;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
}
.header-logout-btn:hover {
    background: #888;
    color: #fff !important;
}

/* Mobile header normalization moved to /assets/css/includes/site.mobile.css */

/* Desktop/tablet header normalization: match exact sizing across ALL pages (align with partnerplatform) */
@media (min-width: 768px) {
    .header-main { padding: 6px 0 !important; background: #222 !important; color: #fff !important; }
    .header-nav { margin: 16px 0 !important; }
    .header-logo-container { height: 64px !important; display: flex !important; align-items: center !important; }
    .header-left a.header-logo { height: 64px !important; display: inline-flex !important; align-items: center !important; margin-left: 0 !important; }
    .header-left a.header-logo img { height: 64px !important; width: auto !important; max-width: 200px !important; margin-top: 0 !important; display: block !important; }
}

/* Desktop: header buttons with purple border and dark grey interior (login/register/account/logout) */
@media (min-width: 768px) {
    .header-main .header-right a.header-logout-btn,
    .header-main .header-right a[href*="register.php"],
    .header-main .header-right a[href*="account.php"],
    .header-main .header-right .header-logout-link {
        background-color: #2b2b2b !important; /* dark grey interior */
        background-image: none !important;
        color: #ffffff !important;            /* white text on dark */
        border-color: #6d00c7 !important;    /* purple border */
        box-shadow: none !important;         /* flat look */
        text-decoration: none !important;
    }
    .header-main .header-right a.header-logout-btn:hover,
    .header-main .header-right a[href*="register.php"]:hover,
    .header-main .header-right a[href*="account.php"]:hover,
    .header-main .header-right .header-logout-link:hover {
        background-color: #333333 !important;  /* slightly lighter dark grey */
        color: #ffffff !important;             /* keep white text */
        border-color: #ffffff !important;      /* white border on hover */
        box-shadow: none !important;
        text-decoration: none !important;
    }
}

/* ===== MAIN STYLING ===== */
/* Body background removed to allow dynamic global theme CSS to control it (no static background here) */

/* Global flash (floating under header + menu) */
.global-flash {
    position: fixed; /* floating: doesn't shift content */
    left: 0;
    right: 0;
    top: 0; /* will be adjusted in JS to sit just below header+menu */
    width: 100%;
    box-sizing: border-box;
    z-index: 9999; /* above header/menu */
    pointer-events: none; /* allow clicks through except on inner */
        /* Entrance animation: start transparent/raised; JS will add [data-flash-mounted] to trigger transition */
        opacity: 0;
        transform: translateY(-6px);
        transition: opacity 240ms ease, transform 240ms ease;
}
/* Reduce motion preference: no translate animation */
@media (prefers-reduced-motion: reduce) {
    .global-flash { transition: opacity 180ms linear !important; transform: none !important; }
}
.global-flash[data-flash-mounted] { opacity: 1; transform: translateY(0); }
.global-flash .site-container {
    pointer-events: none;
    display: flex;
    justify-content: center;
}
.global-flash .flash-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 10px;
    padding: 12px 16px; /* a bit taller vertically */
    margin: 0; /* managed by position */
    box-shadow: 0 10px 26px rgba(0,0,0,0.18);
    border: 1px solid transparent;
    font-size: 0.95rem; /* compact text */
    pointer-events: auto; /* clickable close button */
    max-width: 760px; /* horizontally narrower */
    width: 100%;
}
.global-flash.flash-success .flash-inner {
    background: #e8f5e9;
    color: #145a32;
    border-color: #bbdfc1;
}
.global-flash.flash-error .flash-inner {
    background: #fdecea;
    color: #8a1f11;
    border-color: #f5c6cb;
}
.global-flash.flash-info .flash-inner {
    background: #eef2ff;
    color: #1e3a8a;
    border-color: #c7d2fe;
}
.global-flash .flash-text { flex: 1 1 auto; }
.global-flash .flash-close {
    appearance: none;
    background: transparent;
    border: 0;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
}

/* Generic notices */
.notice {
    margin: 32px auto;
    max-width: 600px;
    text-align: center;
    font-size: 1.1em;
}
.notice.error {
    color: #c00;
}

/* Global page-level banners (non-floating persistent info) */
.banner {
    margin: 16px auto;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fafafa;
    color: #111827;
}
.banner.warning { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.banner.error { background: #fdecea; color: #8a1f11; border-color: #f5c6cb; }
.banner.info { background: #eef2ff; color: #1e3a8a; border-color: #c7d2fe; }

/* Payment return minimal container */
.payment-return {
    max-width: 680px;
    margin: 40px auto;
    text-align: center;
    font-family: system-ui,-apple-system,Segoe UI,Helvetica,Arial,sans-serif;
}

/* ===== FOOTER STYLING ===== */
/* Styling voor de footer */
.footer-bar {
    background: #111 !important;
    color: #fff !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 24px 0 18px 0; /* horizontale padding via .site-container */
    font-size: 1rem;
    margin-top: 0 !important;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    position: relative;
    z-index: 9;
}
.footer-copyright {
    background: #111;
    color: #6d00c7;
    text-align: center;
    font-size: 1rem;
    padding: 10px 0 8px 0;
    width: 100%;
    margin: 0 !important;
    border-bottom: 0;
    box-sizing: border-box;
    line-height: 1.2;
    flex-shrink: 0;
}

/* Footer styling: grijze balk, adres rechts, telefoon apart blok */
.footer-bar {
    background: #222 !important;
    color: #fff !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 24px 0 18px 0; /* horizontale padding via .site-container */
    font-size: 1rem;
    margin-top: 40px;
    width: 100%;
    box-sizing: border-box;
}
.footer-contact {
    text-align: left;
    font-style: normal;
    line-height: 1.6;
    font-size: 1em;
    flex: 1 1 0;
    min-width: 180px;
}
.footer-phone {
    font-style: normal;
    line-height: 1.6;
    font-size: 1em;
    background: none;
    padding: 0;
    border-radius: 0;
    font-weight: 400;
    box-shadow: none;
    margin: 0;
}
.footer-phone a {
    color: #ffffff !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.footer-phone-link {
    color: #ffffff !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
}
.footer-phone a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}
.footer-copyright {
    background: #111;
    color: #fff;
    text-align: center;
    font-size: 1rem;
    padding: 10px 0 8px 0;
    width: 100%;
    margin: 0 !important;
    border-bottom: 0;
    box-sizing: border-box;
    line-height: 1.2;
}
.footer-sections {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    text-align: left;
}
.footer-brand, .footer-links, .footer-legal, .footer-social {
    min-width: 140px;
    font-size: 1em;
    line-height: 1.6;
    text-align: left;
}
.footer-links, .footer-legal {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.footer-links a, .footer-legal a {
    color: #ffffff !important; /* footer links must be white */
    text-decoration: none;
    font-size: 1em;
    margin-bottom: 2px;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}
.footer-links a:hover, .footer-legal a:hover {
    text-decoration: underline;
}
.footer-social {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}
.footer-social span {
    margin-right: 10px;
}
.footer-social-btn {
    background: #6d00c7 !important;
    color: #fff !important;
    border-radius: 50%;
    border: none;
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    font-weight: 600;
    font-size: 1.1em;
    letter-spacing: 1px;
    transition: transform 0.2s cubic-bezier(0.4,0,0.2,1), background 0.2s, color 0.2s;
    text-decoration: none;
    box-sizing: border-box;
}
.footer-social-btn:hover {
    background: #fff !important;
    color: #6d00c7 !important;
}
.footer-social-icon {
    background: #000 !important;
    color: #fff !important;
    border-radius: 50%;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    transition: background 0.2s;
}
.footer-social-icon:hover {
    background: #6d00c7 !important;
    color: #fff !important;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
main {
    flex: 1 0 auto;
}
.footer-bar, .footer-copyright {
    flex-shrink: 0;
}
@media (max-width: 900px) {
    .footer-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 18px 12px;
        gap: 16px;
    }
    .footer-contact {
        min-width: 0;
    }
    .footer-sections {
        flex-direction: column;
        gap: 24px;
    }
}
/* phone-only footer sizing moved to includes/main.mobile.css */
.footer-brand strong,
.footer-links span,
.footer-legal span,
.footer-social span {
    color: #fff;
    font-weight: 600;
}

/* ===== Global Buttons base (spacing/behaviour only) ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    transition: box-shadow 0.15s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    box-shadow: none; /* remove purple glow globally for buttons */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-clip: padding-box; /* avoid subtle UA highlight on some browsers */
}
/* Header/footer button variant (kept) */
.btn-header,
.btn-dark-purple-outline {
    /* Reusable variant that matches header buttons: dark grey interior,
       purple border, white border on hover; no size jitter */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    user-select: none;
    border: 1px solid #6d00c7 !important; /* purple border */
    background-color: #2b2b2b !important;  /* dark grey interior */
    color: #ffffff !important;             /* white text */
    box-shadow: none !important;
    min-height: 40px;
}
.btn-header.btn-small,
.btn-header.btn-sm,
.btn-dark-purple-outline.btn-small,
.btn-dark-purple-outline.btn-sm {
    /* Ensure small size actually reduces height despite base min-height */
    min-height: 32px !important;
    height: 32px !important;
    padding: 6px 10px !important;
    font-size: 0.95rem !important;
    border-radius: 8px !important;
}
.btn-header:hover,
.btn-header:focus,
.btn-dark-purple-outline:hover,
.btn-dark-purple-outline:focus {
    background-color: #333333 !important;
    border-color: #ffffff !important; /* white border on hover */
    color: #ffffff !important;
    text-decoration: none !important;
}

/* ===== Global variant classes (apply outside <main> too, e.g. modals) ===== */
/* Outline (paarse tekst, zachte paarse achtergrond) */
.btn-outline,
.btn-purple-outline {
    background: #f6f3fb;
    color: #6d00c7;
    border: 1px solid #ece6f6;
}
.btn-outline:hover,
.btn-outline:focus,
.btn-purple-outline:hover,
.btn-purple-outline:focus {
    background: #ece6f6;
    color: #6d00c7;
    border-color: #ece6f6;
}
/* Primary (gevuld paars) */
.btn-primary,
.btn-purple-solid {
    background: #6d00c7;
    color: #ffffff;
    border: 1px solid #6d00c7;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-purple-solid:hover,
.btn-purple-solid:focus {
    background: #5a00a5;
    border-color: #5a00a5;
    color: #ffffff;
}
/* Danger (rood) – voorzorg, voor toekomstige modals */
.btn-danger,
.btn-red-solid {
    background: #c1002e;
    color: #ffffff;
    border: 1px solid #c1002e;
}
.btn-danger:hover,
.btn-danger:focus,
.btn-red-solid:hover,
.btn-red-solid:focus { background:#9e0025; border-color:#9e0025; color:#ffffff; }

/* Footer-specific small spacing for the logout form */
.footer-logout-form { margin-top: 6px; }
.btn-small, .btn-sm { padding: 6px 10px; font-size: 0.95rem; border-radius: 8px; }

/* ===== Universal page button look (exclude header/footer) ===== */
/* Apply neutral style to all button-like elements within page content only */
main .btn,
main a.btn,
main button.btn,
main input.btn,
/* also catch non-.btn and legacy button-like classes inside page content */
main a[class*="btn"],
main button[class*="btn"],
main input[type="button"],
main input[type="submit"],
main input[type="reset"],
main .store-product-button,
main .store-product-bekijk-btn,
main .view-order-btn,
main .order-view-toggle,
main .hero-btn {
    background: #f6f3fb !important;
    color: #6d00c7 !important;
    border: 1px solid #ece6f6 !important;
    border-radius: 8px !important;
    background-image: none !important; /* neutral look, remove gradients */
    box-shadow: none !important;
    cursor: pointer; /* zorg voor handje op product pagina voor icon button */
}
/* Consistent button sizing/structure for btn-like classes only (avoid small utility buttons) */
main .btn,
main a.btn,
main button.btn,
main input.btn,
main a[class*="btn"],
main button[class*="btn"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 16px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
}
main .btn:hover,
main a.btn:hover,
main button.btn:hover,
main input.btn:hover,
main .btn:focus,
main a[class*="btn"]:hover,
main button[class*="btn"]:hover,
main input[type="button"]:hover,
main input[type="submit"]:hover,
main input[type="reset"]:hover,
main .store-product-button:hover,
main .store-product-bekijk-btn:hover,
main .view-order-btn:hover,
main .order-view-toggle:hover,
main .hero-btn:hover {
    background: #ece6f6 !important;
    color: #6d00c7 !important;
    border-color: #ece6f6 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

/* Disabled state (page content). Keep consistent look and remove hover effects */
main .btn[disabled],
main button[disabled],
main a.btn[aria-disabled="true"],
main .btn.disabled {
    opacity: .55 !important;
    cursor: not-allowed !important;
    background: #f0edf4 !important;
    color: #7c6493 !important;
    border-color: #e2d9ec !important;
    box-shadow: none !important;
    pointer-events: none !important;
}
main .btn[disabled]:hover,
main button[disabled]:hover,
main a.btn[aria-disabled="true"]:hover,
main .btn.disabled:hover { background: #f0edf4 !important; color: #7c6493 !important; }

/* Lock global .btn size on hover (no growth/shrink) */
.btn,
.btn:hover {
    box-sizing: border-box;
    padding: 12px 16px;
}
/* Ensure btn-like anchors/buttons and hero-btn share baseline line-height and no transform */
main a[class*="btn"],
main button[class*="btn"],
main .hero-btn {
    line-height: 1.2;
    transform: none;
}

/* Small global utilities (scoped, minimal) */
.mt-10 { margin-top: 10px !important; }
.lh-14 { line-height: 1.4 !important; }
.fs-095 { font-size: 0.95rem !important; }
.gap-10 { gap: 10px !important; }
.mb-6 { margin-bottom: 6px !important; }
.w-80 { width: 80px !important; }
.w-36 { width: 36px !important; }

/* Global text/overflow utilities (opt-in, safe site-wide)
     Usage examples:
         <div class="u-min-w-0"> … </div>
         <span class="u-nowrap">Lang label op één regel</span>
         <div class="u-nowrap-ellipsis">Te lange inhoud wordt netjes afgekapt…</div>
         <div class="u-flex-ellipsis"><span>Label</span><span class="ml-6">Waarde</span></div>
     Notes:
     - For flex/grid children to truncate, ensure the child has min-width:0 (use .u-min-w-0)
     - Combine with width utilities where needed (e.g., u-w-full) */
.u-min-w-0 { min-width: 0 !important; }
.u-w-full { width: 100% !important; }
.u-nowrap { white-space: nowrap !important; }
.u-ellipsis { overflow: hidden !important; text-overflow: ellipsis !important; }
.u-nowrap-ellipsis { white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
/* Convenience: single-line flex/inline-flex container that truncates its content */
.u-flex-ellipsis { display: inline-flex !important; min-width: 0 !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }

/* Map existing header buttons to the new button style (no upward shift, keep shadow) */
.header-right a.header-logout-btn,
.header-right a[href*="register.php"],
.header-right a[href*="account.php"],
.header-right .header-logout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2; /* normalize line-height for consistent height */
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    border: 1px solid #6d00c7;
    background-color: #6d00c7 !important; /* explicit base color to avoid flicker */
    background-image: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(0,0,0,0)) !important; /* constant overlay */
    color: #fff !important;
    transition: box-shadow 0.15s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    box-shadow: none;
    min-height: 40px; /* normalize header button height */
    height: 40px; /* exact height for consistent sizing */
}
.header-right a.header-logout-btn:hover,
.header-right a[href*="register.php"]:hover,
.header-right a[href*="account.php"]:hover,
.header-right .header-logout-link:hover {
    background-color: #5a00a5 !important; /* animate color only for smoothness */
    color: #fff !important;
    border-color: #5a00a5 !important;
    box-shadow: none;
}
.header-cart.shop-cart-icon {
    /* Filled variant for cart (consistent with header buttons) */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2; /* normalize line-height for consistent height */
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    border: 1px solid #6d00c7;
    background-color: #6d00c7 !important; /* explicit base color to avoid flicker */
    background-image: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(0,0,0,0)) !important; /* constant overlay */
    color: #fff !important;
    transition: box-shadow 0.15s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    box-shadow: none;
    min-height: 40px; /* match account/logout height */
    height: 40px; /* exact height for consistent sizing */
    margin-right: 0 !important; /* neutralize older global margin */
}
.header-cart.shop-cart-icon:hover {
    background-color: #5a00a5 !important; /* darker purple hover */
    color: #fff !important;
    border-color: #5a00a5 !important;
    box-shadow: none;
}

/* ===== Header buttons: lock size on hover (no growth) ===== */
/* Ensure hover does not change font weight, border width, padding, or transform */
.header-right a.header-logout-btn,
.header-right a[href*="register.php"],
.header-right a[href*="account.php"],
.header-right .header-logout-link,
.header-cart.shop-cart-icon {
    box-sizing: border-box;
    font-weight: 700 !important;
    letter-spacing: normal !important;
    padding: 10px 16px !important; /* keep consistent */
    border-width: 1px !important; /* prevent 1px↔2px jumps */
    border-style: solid !important;
    transform: none !important;
    height: 40px !important; /* lock height on hover states too */
}
.header-right a.header-logout-btn:hover,
.header-right a[href*="register.php"]:hover,
.header-right a[href*="account.php"]:hover,
.header-right .header-logout-link:hover,
.header-cart.shop-cart-icon:hover {
    text-decoration: none !important;
    font-weight: 700 !important;
    padding: 10px 16px !important;
    border-width: 1px !important;
    border-style: solid !important;
    transform: none !important;
    height: 40px !important;
}

/* Normalize icon sizes to avoid height differences */
.header-cart.shop-cart-icon i,
.header-right .user-icon {
    font-size: 1.1em;
    line-height: 1;
}

/* Cross-app page-specific mappings removed;
   rely on universal page button look below for all page content. */

/* ===== Harden header buttons against hover shift ===== */
/* Some earlier rules toggle borders/underline on hover, causing 1-2px vertical jitter.
   These high-specificity overrides lock dimensions and remove underline for header buttons. */
.header-main .header-right a.header-logout-btn,
.header-main .header-right .header-logout-link,
.header-main .header-right a[href*="account.php"],
.header-main .header-right a[href*="register.php"],
.header-main .header-right .shop-cart-icon {
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 16px !important;
    height: 40px !important;
    min-height: 40px !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-color: #6d00c7 !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: normal !important;
    text-decoration: none !important;
    transform: none !important;
    vertical-align: middle !important;
}
.header-main .header-right a.header-logout-btn:hover,
.header-main .header-right .header-logout-link:hover,
.header-main .header-right a[href*="account.php"]:hover,
.header-main .header-right a[href*="register.php"]:hover,
.header-main .header-right .shop-cart-icon:hover {
    padding: 10px 16px !important;
    border-width: 1px !important;
        background-color: #333333 !important; /* match button hover interior */
        color: #ffffff !important;            /* explicit white for consistency */
        border: 1px solid #ffffff !important; /* white border on hover */
        box-shadow: none !important;
    height: 40px !important;
}
