/**
 * Feestthema's (alleen geladen als er een thema actief is; zie themas.php).
 * Per thema: --thema-balk (topbalk), --thema-balk-tekst, --thema-knop (hoofdknoppen), --thema-knop-tekst.
 * Contrast gecontroleerd: witte tekst alleen op donkere kleuren, anders inkt.
 */
body.obp-thema-sinterklaas { --thema-balk: #B3202E; --thema-balk-tekst: #fff; --thema-knop: #F2C94C; --thema-knop-tekst: #1F2A2E; --thema-slinger: url(../img/thema/slinger-sinterklaas.svg); --thema-figuur-1: url(../img/thema/sint-stoomboot.svg); --thema-figuur-2: url(../img/thema/sint-sinterklaas.svg); }
body.obp-thema-kerst       { --thema-balk: #B3262E; --thema-balk-tekst: #fff; --thema-knop: #2F7A50; --thema-knop-tekst: #fff; --thema-slinger: url(../img/thema/slinger-kerst.svg); --thema-figuur-1: url(../img/thema/kerst-rendier.svg); --thema-figuur-2: url(../img/thema/kerst-cadeau.svg); }
body.obp-thema-nieuwjaar   { --thema-balk: #1F2A2E; --thema-balk-tekst: #F2C94C; --thema-knop: #F2C94C; --thema-knop-tekst: #1F2A2E; --thema-slinger: url(../img/thema/slinger-nieuwjaar.svg); --thema-figuur-1: url(../img/thema/nieuwjaar-vuurwerk.svg); --thema-figuur-2: url(../img/thema/nieuwjaar-hoedje.svg); }
body.obp-thema-valentijn   { --thema-balk: #C2185B; --thema-balk-tekst: #fff; --thema-knop: #F07A93; --thema-knop-tekst: #1F2A2E; --thema-slinger: url(../img/thema/slinger-valentijn.svg); --thema-figuur-1: url(../img/thema/valentijn-hart.svg); --thema-figuur-2: url(../img/thema/valentijn-envelop.svg); }
body.obp-thema-pasen       { --thema-balk: #FBEF8F; --thema-balk-tekst: #1F2A2E; --thema-knop: #CDB8EC; --thema-knop-tekst: #1F2A2E; --thema-slinger: url(../img/thema/slinger-pasen.svg); --thema-figuur-1: url(../img/thema/pasen-haas.svg); --thema-figuur-2: url(../img/thema/pasen-ei.svg); }
body.obp-thema-zomer       { --thema-balk: #6BD0EF; --thema-balk-tekst: #1F2A2E; --thema-knop: #FBEF8F; --thema-knop-tekst: #1F2A2E; --thema-slinger: url(../img/thema/slinger-zomer.svg); --thema-figuur-1: url(../img/thema/zomer-zon.svg); --thema-figuur-2: url(../img/thema/zomer-ijsje.svg); }

body.obp-thema-lente       { --thema-balk: #A8D672; --thema-balk-tekst: #1F2A2E; --thema-knop: #F9B0B9; --thema-knop-tekst: #1F2A2E; --thema-slinger: url(../img/thema/slinger-lente.svg); --thema-figuur-1: url(../img/thema/lente-vlinder.svg); --thema-figuur-2: url(../img/thema/lente-bloem.svg); }
body.obp-thema-herfst      { --thema-balk: #A9542A; --thema-balk-tekst: #fff; --thema-knop: #E8B04C; --thema-knop-tekst: #1F2A2E; --thema-slinger: url(../img/thema/slinger-herfst.svg); --thema-figuur-1: url(../img/thema/herfst-blad.svg); --thema-figuur-2: url(../img/thema/herfst-paddenstoel.svg); }
body.obp-thema-winter      { --thema-balk: #2E4A62; --thema-balk-tekst: #fff; --thema-knop: #6BD0EF; --thema-knop-tekst: #1F2A2E; --thema-slinger: url(../img/thema/slinger-winter.svg); --thema-figuur-1: url(../img/thema/winter-sneeuwpop.svg); --thema-figuur-2: url(../img/thema/winter-want.svg); }

/* Overal: topbalk, hoofdknoppen en Sale-pil in de themakleur */
body.obp-thema .obp-topbalk { background: var(--thema-balk) !important; color: var(--thema-balk-tekst) !important; }
body.obp-thema .obp-topbalk .obp-placeholder { color: #1F2A2E; }
body.obp-thema .wp-block-button:not(.is-style-outline) > .wp-element-button,
body.obp-thema .wc-block-components-button:not(.is-link):not(.wc-block-components-button--text),
body.obp-thema .wp-block-woocommerce-add-to-cart-with-options .wp-element-button { background: var(--thema-knop); color: var(--thema-knop-tekst); }
body.obp-thema .wp-block-button:not(.is-style-outline) > .wp-element-button:hover,
body.obp-thema .wc-block-components-button:not(.is-link):hover { background: var(--wp--preset--color--inkt); color: #fff; }
body.obp-thema .obp-nav .obp-sale > a { background: var(--thema-knop); color: var(--thema-knop-tekst); }

/* Homepage: slinger onder de header en twee figuurtjes bij de hero */
.obp-thema-slinger { display: none; }
body.obp-thema .obp-thema-slinger { display: block; max-width: 100%; height: 48px; margin: -8px 0 8px; background: var(--thema-slinger) repeat-x left top / 160px 48px; }
body.obp-thema .obp-hero { position: relative; overflow: visible !important; }
body.obp-thema .obp-hero::before, body.obp-thema .obp-hero::after { content: ""; position: absolute; z-index: 2; pointer-events: none; background: no-repeat center / contain; filter: drop-shadow(0 4px 8px rgba(31,42,46,.12)); }
body.obp-thema .obp-hero::before { width: 112px; height: 112px; right: 10px; top: -40px; background-image: var(--thema-figuur-1); transform: rotate(8deg); animation: obp-thema-wiebel 4s ease-in-out infinite; }
body.obp-thema .obp-hero::after { width: 84px; height: 84px; left: 10px; bottom: -26px; background-image: var(--thema-figuur-2); transform: rotate(-10deg); }
/* Sinterklaas: stoomboot iets breder (dobbert), Sinterklaasje iets groter */
body.obp-thema-sinterklaas .obp-hero::before { width: 150px; height: 128px; top: -64px; animation-name: obp-thema-dobber; }
body.obp-thema-sinterklaas .obp-hero::after { width: 100px; height: 100px; bottom: -30px; }
@keyframes obp-thema-dobber { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-4px); } }
@keyframes obp-thema-wiebel { 0%, 100% { transform: rotate(8deg); } 50% { transform: rotate(2deg) translateY(-3px); } }
@media (max-width: 781px) {
	body.obp-thema .obp-hero::before { width: 76px; height: 76px; right: 6px; top: -30px; }
	body.obp-thema .obp-hero::after { width: 60px; height: 60px; left: 6px; bottom: -18px; }
	body.obp-thema .obp-thema-slinger { height: 36px; background-size: 120px 36px; }
	body.obp-thema-sinterklaas .obp-hero::before { width: 96px; height: 82px; top: -44px; }
	body.obp-thema-sinterklaas .obp-hero::after { width: 70px; height: 70px; bottom: -20px; }
	/* Binnenkort-pagina: ruimte onderin, zodat het figuurtje linksonder niet over de knoppen valt (3 dec 2026) */
	body.obp-thema .obp-binnenkort-inhoud.obp-hero { padding-bottom: 64px !important; }
}
@media (prefers-reduced-motion: reduce) { body.obp-thema .obp-hero::before { animation: none; } }

/* Bewegend effect (thema.js): over de pagina, nooit klikbaar, onder header en menu's */
.obp-thema-effect { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; transition: opacity 1.5s ease; }
.obp-thema-effect.is-weg { opacity: 0; }

/* Voorbeeld-melding (alleen voor beheer) */
.obp-thema-voorbeeld { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 100001; display: flex; gap: 12px; align-items: center; padding: 10px 16px; border-radius: 999px; background: #1F2A2E; color: #fff; font-weight: 700; font-size: .9rem; box-shadow: 0 8px 24px rgba(31,42,46,.25); }
.obp-thema-voorbeeld a { color: #FBEF8F; }
@media (max-width: 599px) { .obp-thema-voorbeeld { width: max-content; max-width: calc(100% - 24px); font-size: .8rem; padding: 8px 14px; gap: 8px; white-space: nowrap; } }

/* Themapakketten (14 nov 2026): extra looks binnen een thema. Kleuren, slinger en figuurtjes komen als inline CSS-variabelen
   (obp-core themapakketten.php); hieronder de vormen. Look 1 "Klassiek" heeft geen obp-pakket-class en verandert dus niets. */
body.obp-pakket .obp-thema-slinger { background-color: var(--thema-tint, transparent); }
body.obp-pk-zonder-slinger .obp-thema-slinger { display: none; }
body.obp-pk-fig-geen .obp-hero::before, body.obp-pk-fig-geen .obp-hero::after,
body.obp-pk-fig-een .obp-hero::after, body.obp-pk-fig-twee .obp-hero::before { display: none; }
/* Knopvorm */
body.obp-pk-knop-rond .wp-block-button > .wp-element-button, body.obp-pk-knop-rond .wc-block-components-button:not(.is-link), body.obp-pk-knop-rond .wp-block-woocommerce-add-to-cart-with-options .wp-element-button { border-radius: 14px; }
body.obp-pk-knop-strak .wp-block-button > .wp-element-button, body.obp-pk-knop-strak .wc-block-components-button:not(.is-link), body.obp-pk-knop-strak .wp-block-woocommerce-add-to-cart-with-options .wp-element-button { border-radius: 6px; }
body.obp-pk-knop-strak .obp-nav .obp-sale > a { border-radius: 6px; }
/* Productkaarten (homepage en winkel) */
body.obp-pk-kaart-schaduw .wc-block-product, body.obp-pk-kaart-schaduw .obp-kaart { box-shadow: 0 6px 18px rgba(31,42,46,.10); border-radius: var(--wp--custom--radius--klein); }
body.obp-pk-kaart-rand .wc-block-product, body.obp-pk-kaart-rand .obp-kaart { box-shadow: inset 0 0 0 2px var(--thema-knop); border-radius: var(--wp--custom--radius--klein); }
body.obp-pk-kaart-tint .wc-block-product, body.obp-pk-kaart-tint .obp-kaart { background: var(--thema-tint); border-radius: var(--wp--custom--radius--klein); }
body.obp-pk-kaart-schaduw .wc-block-product, body.obp-pk-kaart-rand .wc-block-product, body.obp-pk-kaart-tint .wc-block-product { padding: 8px 8px 12px; }
/* Koppen */
body.obp-pk-kop-vet :is(h1, h2, h3) { font-weight: 800; }
body.obp-pk-kop-ruim :is(h1, h2, h3) { letter-spacing: .03em; }
