/* =============================================================================
   Thema van een tijdelijke actie (Black Friday). Wordt alleen ingeladen als de actie actief is
   (templates/layout.php, app/actie.php) en bouwt voort op stijl.css: balken, header, hero en footer
   worden zwart, knoppen en etiketten krijgen de accentkleur. De inhoud zelf blijft licht en leesbaar,
   zodat productinformatie, winkelwagen en afrekenen precies zo werken als altijd.
   De accentkleur komt uit het beheer: /actie-kleur.css (app/actie.php, actie_kleur_css()) overschrijft de
   --actie-accent-variabelen hieronder; de waarden hier zijn goud, als terugval.
   ============================================================================= */

.thema-actie {
    --actie-zwart: #0b0b0d;
    --actie-zwart-2: #15151a;
    --actie-zwart-3: #22222a;
    --actie-lijn: rgb(255 255 255 / 0.12);
    --actie-licht: #f4efe3;
    --actie-licht-zacht: #bdb8ab;

    /* Terugval goud: accent op zwart, knop met donkere tekst (wordt overschreven door /actie-kleur.css) */
    --actie-accent: #f0c04a;
    --actie-accent-tint: #fff5d6;
    --actie-knop-bg: #f0c04a;
    --actie-knop-bg-hover: #ffd468;
    --actie-knop-tekst: #1a1300;
    --actie-prijs: #9a6b00;

    --schaduw: 0 10px 28px -14px rgb(0 0 0 / 0.6);
}

/* ---------------------------------------------------------------------------
   Aankondigingsbalk met aftelklok
   --------------------------------------------------------------------------- */
.actie-balk {
    background: var(--actie-zwart);
    color: var(--actie-licht);
    border-bottom: 1px solid var(--actie-lijn);
    font-size: var(--tekst-sm);
}
.actie-balk-inhoud {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 28px;
    min-height: 48px;
    padding-block: 9px;
    text-align: center;
}
.actie-balk-tekst {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 12px;
    color: inherit;
    text-decoration: none;
    line-height: 1.35;
}
.actie-balk-tekst:hover {
    color: #fff;
}
.actie-balk-tekst:hover span:last-child {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.actie-balk-naam {
    font-family: var(--font-kop);
    font-weight: 800;
    font-size: var(--tekst-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--actie-accent);
    padding: 3px 11px;
    border: 1px solid currentColor;
    border-radius: var(--radius-rond);
    white-space: nowrap;
}
.actie-balk-tekst b {
    color: var(--actie-accent);
    font-weight: 800;
}
.actie-aftel {
    display: none;
    margin: 0;
    align-items: center;
    gap: 5px;
    font-variant-numeric: tabular-nums;
}
.actie-aftel.is-actief {
    display: inline-flex;
}
.actie-aftel-label {
    font-size: var(--tekst-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--actie-licht-zacht);
    margin-right: 3px;
}
.actie-aftel-blok {
    display: inline-grid;
    justify-items: center;
    min-width: 46px;
    padding: 3px 6px 4px;
    border-radius: var(--radius-klein);
    background: var(--actie-zwart-3);
    border: 1px solid var(--actie-lijn);
    line-height: 1.1;
}
.actie-aftel-blok b {
    font-family: var(--font-kop);
    font-size: var(--tekst-md);
    font-weight: 800;
    color: #fff;
}
.actie-aftel-blok small {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--actie-licht-zacht);
}
.actie-aftel.is-laatste-dag .actie-aftel-blok b {
    color: var(--actie-accent);
}

/* ---------------------------------------------------------------------------
   USP-strook en header
   --------------------------------------------------------------------------- */
.thema-actie .usp-strook {
    background: var(--actie-zwart-2);
    color: var(--actie-licht);
    border-bottom: 1px solid var(--actie-lijn);
}
.thema-actie .usp-strook svg {
    color: var(--actie-accent);
}

.thema-actie .site-header {
    background: var(--actie-zwart);
    border-bottom: 0;
    box-shadow: inset 0 -2px 0 var(--actie-accent);
}
.thema-actie .icoon-knop {
    color: var(--actie-licht);
}
.thema-actie .icoon-knop:hover {
    background: rgb(255 255 255 / 0.08);
    color: var(--actie-accent);
}
.thema-actie .badge {
    background: var(--actie-knop-bg);
    color: var(--actie-knop-tekst);
}
.thema-actie .zoek-vorm .veld {
    background: var(--actie-zwart-3);
    color: #fff;
    border-color: transparent;
}
.thema-actie .zoek-vorm .veld::placeholder {
    color: var(--actie-licht-zacht);
}
.thema-actie .zoek-vorm .veld:focus {
    background: var(--actie-zwart-3);
    border-color: var(--actie-accent);
    box-shadow: none;
}
.thema-actie .zoek-vorm button {
    color: var(--actie-accent);
}
.thema-actie .zoek-vorm button:hover {
    background: rgb(255 255 255 / 0.1);
}
.thema-actie .hoofdmenu {
    border-top-color: var(--actie-lijn);
}
.thema-actie .hoofdmenu a {
    color: var(--actie-licht);
    border-bottom-color: var(--actie-lijn);
}
.thema-actie .hoofdmenu a:hover,
.thema-actie .hoofdmenu a[aria-current="page"] {
    color: var(--actie-accent);
}
.thema-actie .hoofdmenu a::after {
    background: var(--actie-accent);
}
.thema-actie .hoofdmenu .menu-extra {
    color: var(--actie-licht-zacht);
}
.thema-actie .hoofdmenu .menu-extra a {
    color: var(--actie-licht);
}
.thema-actie .actie-balk :focus-visible,
.thema-actie .usp-strook :focus-visible,
.thema-actie .site-header :focus-visible,
.thema-actie .site-footer :focus-visible,
.thema-actie .home-hero :focus-visible {
    outline-color: var(--actie-accent);
}

/* ---------------------------------------------------------------------------
   Knoppen, etiketten en prijzen
   --------------------------------------------------------------------------- */
.thema-actie .knop {
    background: var(--actie-knop-bg);
    color: var(--actie-knop-tekst);
}
.thema-actie .knop:hover {
    background: var(--actie-knop-bg-hover);
    color: var(--actie-knop-tekst);
}
.thema-actie .knop-secundair {
    color: var(--inkt);
    border-color: #cfcabf;
}
.thema-actie .knop-secundair:hover {
    background: var(--actie-accent-tint);
    color: var(--inkt);
}
/* Op de donkere cookiebalk blijft de tweede knop wit (stijl.css zet dat ook, maar dit bestand laadt later) */
.thema-actie .cookiebalk .knop-secundair {
    color: #fff;
    border-color: rgb(255 255 255 / 0.5);
}
.thema-actie .cookiebalk .knop-secundair:hover {
    background: rgb(255 255 255 / 0.12);
    color: #fff;
}
.thema-actie .productkaart a:hover {
    border-color: var(--actie-accent);
}
.thema-actie .etiket--actie {
    background: var(--actie-knop-bg);
    color: var(--actie-knop-tekst);
    font-family: var(--font-kop);
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px -4px rgb(0 0 0 / 0.45);
}
.thema-actie .productkaart-prijs s,
.thema-actie .product-prijs s {
    color: var(--grijs);
}
.actie-bespaar {
    margin: 8px 0 0;
    padding: 6px 12px;
    max-width: none;
    border-radius: var(--radius-klein);
    background: var(--actie-accent-tint);
    color: var(--inkt);
    font-size: var(--tekst-sm);
}
.actie-bespaar b {
    font-size: inherit; /* .product-prijs b is de grote prijs; hier gewoon vet */
    font-weight: 800;
    color: var(--actie-prijs);
}

/* ---------------------------------------------------------------------------
   Homepage-header
   --------------------------------------------------------------------------- */
.thema-actie .home-hero {
    background: var(--actie-zwart);
}
.thema-actie .home-hero-media::after {
    background:
        linear-gradient(180deg, rgb(0 0 0 / 0.45) 0%, rgb(0 0 0 / 0.25) 35%, rgb(0 0 0 / 0.9) 100%),
        linear-gradient(90deg, rgb(0 0 0 / 0.72) 0%, rgb(0 0 0 / 0.3) 55%, rgb(0 0 0 / 0) 100%);
}
.home-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 7px 15px 7px 13px;
    border-radius: var(--radius-rond);
    border: 1px solid var(--actie-accent);
    background: rgb(0 0 0 / 0.5);
    color: var(--actie-accent);
    font-family: var(--font-kop);
    font-weight: 800;
    font-size: var(--tekst-sm);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    max-width: none;
    backdrop-filter: blur(6px);
}
.home-hero-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--actie-accent);
    box-shadow: 0 0 0 4px rgb(255 255 255 / 0.12);
}
.thema-actie .home-hero p {
    color: #dcd7ca;
}
.thema-actie .home-hero-zekerheden {
    color: #dcd7ca;
}
.thema-actie .home-hero-zekerheden svg {
    color: var(--actie-accent);
}
.thema-actie .home-hero-afspelen:hover {
    border-color: var(--actie-accent);
}

/* Keuzehulp "Welk pinapparaat past bij jou?" en het Ultra-blok */
.thema-actie .home-keuze-label--actie,
.thema-actie .is-favoriet .home-keuze-label--actie {
    background: var(--actie-knop-bg);
    color: var(--actie-knop-tekst);
    font-family: var(--font-kop);
    box-shadow: 0 4px 12px -4px rgb(0 0 0 / 0.45);
}
.thema-actie .home-keuze-item.is-favoriet {
    border-color: var(--actie-accent);
    box-shadow: 0 18px 40px -22px rgb(0 0 0 / 0.45);
}
.thema-actie .home-keuze-prijs s {
    color: var(--grijs);
    font-size: var(--tekst-md);
    font-weight: 600;
}
.thema-actie .home-ultra {
    background: var(--actie-zwart);
}
.thema-actie .home-ultra p,
.thema-actie .home-ultra-prijs {
    color: #dcd7ca;
}
.thema-actie .home-ultra-prijs s {
    color: var(--actie-licht-zacht);
}
.home-ultra-actie {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: var(--radius-rond);
    background: var(--actie-knop-bg);
    color: var(--actie-knop-tekst);
    font-family: var(--font-kop);
    font-size: var(--tekst-xs);
    font-weight: 800;
    letter-spacing: 0.02em;
}

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */
.thema-actie .site-footer {
    background: var(--actie-zwart);
    border-top: 1px solid var(--actie-lijn);
    color: var(--actie-licht-zacht);
}
.thema-actie .site-footer h2,
.thema-actie .footer-adres a {
    color: var(--actie-licht);
}
.thema-actie .site-footer a:hover {
    color: var(--actie-accent);
}
.thema-actie .footer-usp svg {
    color: var(--actie-accent);
}
.thema-actie .nieuwsbrief-vorm {
    background: var(--actie-zwart-3);
    border-color: var(--actie-lijn);
}
.thema-actie .nieuwsbrief-vorm:focus-within {
    border-color: var(--actie-accent);
    box-shadow: none;
}
.thema-actie .nieuwsbrief-vorm .veld {
    color: #fff;
}
.thema-actie .nieuwsbrief-vorm .veld::placeholder {
    color: var(--actie-licht-zacht);
}
.thema-actie .footer-onder {
    border-top-color: var(--actie-lijn);
}
.thema-actie .footer-onder,
.thema-actie .footer-betaalmethoden {
    color: var(--actie-licht-zacht);
}

/* Zijbanners (app/zijbanners.php): donkere kaart met de accentkleur */
.thema-actie .zijbanner {
    background: var(--actie-zwart-2);
    border-color: var(--actie-lijn);
    color: var(--actie-licht);
}
.thema-actie .zijbanner-beeld { background: #fff; }
.thema-actie .zijbanner-omschrijving,
.thema-actie .zijbanner-prijs,
.thema-actie .zijbanner-prijs s { color: var(--actie-licht-zacht); }
.thema-actie .zijbanner-prijs b { color: var(--actie-accent); }
.thema-actie a.zijbanner:focus-visible { outline-color: var(--actie-accent); }

/* Popup nieuwsbrief (app/popup.php): donkere kaart met de accentkleur */
.thema-actie .popup-kaart {
    background: var(--actie-zwart-2);
    color: var(--actie-licht);
}
.thema-actie .popup-kicker { color: var(--actie-accent); }
.thema-actie .popup-noot { color: var(--actie-licht-zacht); }
.thema-actie .popup-sluit { background: var(--actie-zwart-3); color: var(--actie-licht); }
.thema-actie .popup-vorm .veld { background: #fff; color: #111113; border-color: transparent; }
.thema-actie .popup-code b { border-color: var(--actie-accent); color: var(--actie-accent); }
.thema-actie .popup-fout { color: #ff8a80; }

.thema-actie .popup-plussen { color: var(--actie-licht-zacht); }
.thema-actie .popup-plussen svg { color: var(--actie-accent); }
.thema-actie .popup-nee { color: var(--actie-licht-zacht); }
.thema-actie .popup-nee:hover { color: var(--actie-licht); }
.thema-actie .popup-kopieer { background: var(--actie-zwart-3); border-color: var(--actie-lijn); color: var(--actie-accent); }

/* ---------------------------------------------------------------------------
   Link naar de vergelijkingspagina myPOS vs SumUp in de aankondigingsbalk (alleen als die pagina aan staat)
   --------------------------------------------------------------------------- */
.actie-balk-link {
    color: var(--actie-licht-zacht);
    font-size: var(--tekst-xs);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.actie-balk-link:hover {
    color: #fff;
}
