/* Bordjeskoning / SignHaus: interface-laag bovenop site.css (topbalk, zoeken, favorieten, sticky bestelbalk, polish) */
:root { --bk-tb-h: 38px; --bk-ring: #1f3a5f; --bk-ok: #0f5132; }

/* ---------- Toegankelijkheid ---------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--bk-ring); outline-offset: 2px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ---------- Roterende topbalk ---------- */
.bk-topbar { position: relative; display: flex; align-items: center; justify-content: center; min-height: var(--bk-tb-h); padding: 0 46px !important; background: linear-gradient(90deg, #101a30, var(--bk-ink) 40%, #101a30); color: #fff; font-size: .86rem; letter-spacing: .01em; overflow: hidden; }
.bk-topbar[hidden] { display: none; }
.bk-tb-track { position: relative; flex: 1; height: var(--bk-tb-h); min-width: 0; text-align: center; }
.bk-tb-item { position: absolute; inset: 0; margin: 0 !important; display: flex; align-items: center; justify-content: center; gap: .8rem; padding: 0 .25rem; opacity: 0; transform: translateY(70%); transition: opacity .22s ease, transform .3s ease; pointer-events: none; line-height: 1.25; overflow: hidden; }
.bk-tb-item.is-on { opacity: 1; transform: none; pointer-events: auto; transition: opacity .35s ease .18s, transform .4s ease .18s; }
.bk-tb-item.is-out { transform: translateY(-70%); }
.bk-tb-item[hidden] { display: none; }
.bk-tb-item a { color: inherit; text-decoration: none; }
.bk-tb-item a:hover, .bk-tb-item a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.bk-tb-item strong { color: var(--bk-yellow); font-weight: 800; }
.bk-tb-ship { gap: .9rem; }
.bk-tb-bar { flex: 0 0 110px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.22); overflow: hidden; }
.bk-tb-bar i { display: block; height: 100%; background: var(--bk-yellow); border-radius: 999px; transition: width .6s ease; }
.bk-tb-ship.is-done { color: var(--bk-yellow); font-weight: 700; }
.bk-tb-nav, .bk-tb-close { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: transparent; color: #fff; opacity: .65; font-size: 1.5rem; line-height: 1; cursor: pointer; border-radius: 8px; }
.bk-tb-nav:hover, .bk-tb-close:hover { opacity: 1; background: rgba(255,255,255,.1); }
.bk-tb-prev { left: 6px; } .bk-tb-next { right: 38px; } .bk-tb-close { right: 6px; font-size: 1.3rem; }
.bk-topbar.is-single .bk-tb-nav { display: none; }
.bk-tb-close[hidden] { display: none; }
@media (max-width: 700px) {
  :root { --bk-tb-h: 44px; }
  .bk-topbar { font-size: .8rem; padding: 0 40px !important; }
  .bk-tb-item { white-space: normal; text-align: center; }
  .bk-tb-bar { flex-basis: 64px; }
  .bk-tb-next { right: 34px; } .bk-tb-nav, .bk-tb-close { width: 28px; }
}

/* De topbalk schuift weg; alleen de kop blijft plakken */
header.wp-block-template-part { top: calc(var(--bk-tb-h) * -1) !important; transition: box-shadow .25s ease; }
header.wp-block-template-part.is-scrolled { box-shadow: 0 8px 24px rgba(20,33,61,.1); }
.wp-block-site-logo img { transition: width .25s ease; }
header.is-scrolled .wp-block-site-logo img { width: 168px !important; }
@media (max-width: 700px) { header.is-scrolled .wp-block-site-logo img { width: 130px !important; } }

/* ---------- Kop: favorieten-icoon ---------- */
.bk-fav-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: var(--bk-ink); text-decoration: none; }
.bk-fav-link:hover { background: var(--bk-light); }
.bk-fav-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--bk-yellow); color: var(--bk-ink); font-size: .7rem; font-weight: 800; line-height: 18px; text-align: center; }
.bk-fav-count[hidden] { display: none; }

/* ---------- Zoeksuggesties ---------- */
.bk-sugg { max-width: 760px; margin: .65rem auto 0; background: #fff; border: 1px solid var(--bk-line); border-radius: 14px; box-shadow: 0 16px 40px rgba(20,33,61,.16); overflow: hidden; text-align: left; }
.bk-sugg[hidden] { display: none; }
.bk-sugg-item { display: flex; align-items: center; gap: .85rem; padding: .55rem .8rem; color: var(--bk-ink); text-decoration: none; border-bottom: 1px solid #f0ece3; }
.bk-sugg-item:hover, .bk-sugg-item.is-active { background: var(--bk-cream); }
.bk-sugg-item img, .bk-sugg-ph { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--bk-light); flex: none; }
.bk-sugg-t { display: flex; flex-direction: column; min-width: 0; }
.bk-sugg-t b { font-size: .95rem; line-height: 1.25; font-weight: 800; color: var(--bk-ink); }
.bk-sugg-p { font-size: .85rem; color: var(--bk-grey); }
.bk-sugg-p del { opacity: .6; }
.bk-sugg-all, .bk-sugg-none { display: block; padding: .8rem 1rem; font-weight: 700; font-size: .92rem; color: var(--bk-navy); text-decoration: none; margin: 0; }
.bk-sugg-all:hover { background: var(--bk-light); }

/* ---------- Productkaarten ---------- */
li.wc-block-product, li.product { position: relative; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; border-radius: 16px; }
li.wc-block-product:hover, li.product:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(20,33,61,.14); border-color: #d9d3c4; }
li.wc-block-product .wc-block-components-product-image, li.product .woocommerce-loop-product__link { overflow: hidden; border-radius: 12px; display: block; }
li.wc-block-product .wc-block-components-product-image img { transition: transform .45s ease; }
li.wc-block-product:hover .wc-block-components-product-image img { transform: scale(1.04); }
.bk-heart { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #9aa3b2; cursor: pointer; box-shadow: 0 2px 8px rgba(20,33,61,.18); transition: transform .15s ease, color .15s ease; }
.bk-heart svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.bk-heart:hover { color: #e5484d; transform: scale(1.08); }
.bk-heart[aria-pressed="true"] { color: #e5484d; }
.bk-heart[aria-pressed="true"] svg { fill: currentColor; }
.bk-heart.pop { animation: bk-pop .4s ease; }
@keyframes bk-pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
.bk-heart-card { position: absolute; top: 14px; right: 14px; z-index: 3; }
.bk-heart-single { margin: .3rem 0 .6rem; width: 44px; height: 44px; box-shadow: 0 0 0 2px var(--bk-line) inset; }

/* ---------- Categoriechips ---------- */
.bk-chips { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; display: flex; gap: .5rem; overflow-x: auto; margin: .3rem 0 1.1rem; padding: .15rem 0 .5rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.bk-chips::-webkit-scrollbar { display: none; }
.bk-chip { flex: none; padding: .48rem 1rem; border: 1.5px solid var(--bk-line); border-radius: 999px; background: #fff; color: var(--bk-ink); font-weight: 700; font-size: .88rem; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.bk-chip:hover { border-color: var(--bk-navy); }
.bk-chip.is-current { background: var(--bk-navy); border-color: var(--bk-navy); color: #fff; }

/* ---------- Productpagina ---------- */
.summary .price, .wp-block-woocommerce-product-price { font-size: 1.55rem; font-weight: 800; color: var(--bk-ink); }
.bk-eta { display: flex; align-items: center; gap: .55rem; margin: .5rem 0 1rem; padding: .6rem .85rem; background: #eaf6ee; color: var(--bk-ok); border-radius: 12px; font-weight: 700; font-size: .92rem; }
.bk-eta .mi { font-size: 1.35rem; }
form.cart .variations select, .woocommerce div.product form.cart .variations select { appearance: none; -webkit-appearance: none; min-height: 46px; padding: .65rem 2.5rem .65rem .95rem; border: 2px solid var(--bk-line); border-radius: 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231f3a5f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; font-weight: 700; color: var(--bk-ink); cursor: pointer; transition: border-color .15s; }
form.cart .variations select:hover, form.cart .variations select:focus { border-color: var(--bk-navy); }
form.cart .variations th, form.cart .variations .label { font-weight: 800; padding-right: 1rem; }
form.cart .quantity input.qty { height: 54px; width: 76px; border: 2px solid var(--bk-line); border-radius: 12px; text-align: center; font-weight: 800; font-size: 1.05rem; }
form.cart .woocommerce-variation-add-to-cart, form.cart:not(.variations_form) { display: flex; flex-wrap: wrap; gap: .75rem; align-items: stretch; }
form.cart .single_add_to_cart_button { flex: 1 1 220px; min-height: 54px; padding: 0 1.6rem; font-size: 1.05rem; border-radius: 12px !important; }
.woocommerce-tabs ul.tabs { display: flex; gap: .4rem; padding: 0; margin: 2rem 0 1.2rem; border: 0; flex-wrap: wrap; }
.woocommerce-tabs ul.tabs::before, .woocommerce-tabs ul.tabs::after { display: none !important; }
.woocommerce-tabs ul.tabs li { margin: 0; border: 0 !important; background: transparent !important; }
.woocommerce-tabs ul.tabs li a { display: block; padding: .55rem 1.1rem !important; border-radius: 999px; font-weight: 800; color: var(--bk-grey); background: var(--bk-light); text-decoration: none; }
.woocommerce-tabs ul.tabs li.active a { background: var(--bk-navy); color: #fff; }

/* ---------- Sticky bestelbalk ---------- */
.bk-sticky-atc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; align-items: center; gap: .85rem; padding: .65rem max(1rem, calc(50vw - 620px)); background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-top: 1px solid var(--bk-line); box-shadow: 0 -10px 30px rgba(20,33,61,.12); animation: bk-up .28s ease; }
.bk-sticky-atc[hidden] { display: none; }
@keyframes bk-up { from { transform: translateY(100%); } to { transform: none; } }
.bk-sticky-atc img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--bk-light); }
.bk-sticky-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.bk-sticky-t b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-sticky-p { font-size: .88rem; color: var(--bk-grey); font-weight: 700; }
.bk-sticky-btn { flex: none; background: var(--bk-yellow); color: var(--bk-ink); border: 0; border-radius: 12px; padding: .8rem 1.4rem; font-weight: 800; font-size: 1rem; cursor: pointer; box-shadow: 0 2px 0 rgba(0,0,0,.12); }
.bk-sticky-btn:hover { filter: brightness(.96); }
body.has-sticky-atc { padding-bottom: 74px; }
body.has-sticky-atc .bk-totop { bottom: 160px; }
body.has-sticky-atc .tc-button, body.has-sticky-atc #checkshop-badge { bottom: 86px !important; }
.tc-button, #checkshop-badge { transition: bottom .25s ease; }

/* ---------- Recent bekeken en favorieten ---------- */
.bk-rv { margin: 3.5rem auto 1rem; max-width: 1240px; }
.bk-rv h2 { margin: 0 0 1rem; }
.bk-rv-list, .bk-fav-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.bk-rv-list a { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: .6rem; border: 1px solid var(--bk-line); border-radius: 14px; background: #fff; color: var(--bk-ink); text-decoration: none; font-size: .9rem; transition: transform .2s, box-shadow .2s; }
.bk-rv-list a:hover { transform: translateY(-3px); box-shadow: var(--bk-shadow); }
.bk-rv-list img, .bk-fav-img img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--bk-light); }
.bk-rv-list span { color: var(--bk-grey); font-weight: 600; }
.bk-fav-card { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: .7rem; border: 1px solid var(--bk-line); border-radius: 16px; background: #fff; box-shadow: var(--bk-shadow); }
.bk-fav-name { font-weight: 800; color: var(--bk-ink); text-decoration: none; line-height: 1.25; }
.bk-fav-price { color: var(--bk-grey); font-weight: 600; font-size: .92rem; }
.bk-fav-go { margin-top: auto; text-align: center; padding: .55rem; border-radius: 10px; background: var(--bk-yellow); color: var(--bk-ink); font-weight: 800; text-decoration: none; }
.bk-fav-empty { padding: 1.4rem; background: var(--bk-cream); border: 1px dashed #c9c2b4; border-radius: 14px; font-weight: 600; }

/* ---------- Naar boven ---------- */
.bk-totop { position: fixed; right: 22px; bottom: 90px; z-index: 55; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--bk-navy); color: #fff; box-shadow: 0 8px 22px rgba(20,33,61,.3); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: transform .15s, background .15s; }
.bk-totop[hidden] { display: none; }
.bk-totop:hover { transform: translateY(-2px); background: var(--bk-ink); }
@media (max-width: 700px) { .bk-totop { right: 14px; bottom: 84px; width: 42px; height: 42px; } }

/* ---------- Verschijn-animaties (alleen als JS ze aanzet) ---------- */
.bk-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.bk-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Algemene polish ---------- */
.wp-block-button__link, .button, button.button { border-radius: 12px; transition: transform .15s ease, filter .15s ease, box-shadow .15s ease; }
.bk-btn-primary .wp-block-button__link:hover { box-shadow: 0 8px 20px rgba(247,198,0,.4); }
.bk-hero { box-shadow: 0 24px 60px rgba(20,33,61,.22); }
.bk-hero-img img { border-radius: 16px; box-shadow: 0 18px 40px rgba(0,0,0,.35); transition: transform .5s ease; }
.bk-hero:hover .bk-hero-img img { transform: scale(1.015) rotate(-.4deg); }
.bk-usps .wp-block-column { transition: transform .2s ease, box-shadow .2s ease; }
.bk-usps .wp-block-column:hover { transform: translateY(-3px); box-shadow: var(--bk-shadow); }
.bk-section h2 { letter-spacing: -.015em; }
.woocommerce-breadcrumb, .wc-block-breadcrumbs { font-size: .85rem; color: var(--bk-grey); }
.wc-block-components-product-price, .wc-block-components-product-price .amount { font-weight: 800; }
.wc-block-product .wp-block-button__link, .wc-block-components-product-button .wp-block-button__link { border-radius: 10px; font-weight: 800; }
.woocommerce-ordering select, .wc-block-product-results-count, .woocommerce-result-count { font-size: .88rem; }
.woocommerce-ordering select { appearance: none; padding: .5rem 2rem .5rem .8rem; border: 2px solid var(--bk-line); border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231f3a5f' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 11px center; font-weight: 700; }
footer a { transition: color .15s ease; }
footer a:hover { color: var(--bk-yellow) !important; }
.bk-footer ul { list-style: none; padding-left: 0; }
.bk-footer li { margin: .35rem 0; }
.wc-block-components-text-input input, .wc-block-components-select .wc-block-components-select-input select { border-radius: 10px !important; }
.wc-block-components-checkout-place-order-button { min-height: 56px; font-size: 1.1rem !important; }
img { height: auto; }
@media print { .bk-topbar, .bk-sticky-atc, .bk-totop, .bk-heart { display: none !important; } }

/* ---------- Mobiel: kop en topbalk ---------- */
@media (max-width: 700px) {
  .bk-tb-ship { flex-direction: column; gap: .2rem; }
  .bk-tb-ship .bk-tb-bar { flex: none; width: 120px; height: 4px; }
  header .wp-block-group.is-content-justification-right { gap: 0 !important; }
  header .wp-block-search__button, header .wp-block-navigation__responsive-container-open, header .wp-block-woocommerce-customer-account a, header .wc-block-mini-cart__button, .bk-fav-link { width: 36px !important; height: 36px !important; min-width: 36px !important; }
  .bk-fav-link svg { width: 22px; height: 22px; }
  header .wp-block-site-logo img { width: 128px !important; }
  header .wp-block-group.alignwide { padding-left: 12px !important; padding-right: 8px !important; }
}
@media (max-width: 380px) { header .wp-block-site-logo img { width: 112px !important; } }
