/* ==========================================================================
   WH Carparts: nieuwe onderdeelpagina (licht, mobiel-eerst)
   Alleen geladen als het nieuwe ontwerp actief is (inc/wh-new-design.php).
   ========================================================================== */

.wh-pdp {
	--wh-gold: #c9a84c;
	--wh-gold-d: #b49146;
	--wh-gold-l: #faf5e8;
	--wh-ink: #1a1a1a;
	--wh-ink-2: #4a4a4a;
	--wh-muted: #6b6b6b;
	--wh-line: #e6e3dc;
	--wh-bg-2: #f7f6f3;
	--wh-ok: #1f7a3d;
	--wh-ok-l: #e8f4ec;
	--wh-r: 10px;
	color: var(--wh-ink);
	font-size: 15px;
	line-height: 1.55;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 16px 96px;
}
.wh-pdp *, .wh-pdp *::before, .wh-pdp *::after { box-sizing: border-box; }

/* ── Bovenblok: foto's + koopblok ───────────────────────────────────────── */
.wh-pdp__top { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); padding-top: 12px; }
@media (min-width: 900px) {
	.wh-pdp__top { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 24px; }
	.wh-pdp__buy { position: sticky; top: 110px; }
}
.wh-pdp__gallery .woocommerce-product-gallery { width: 100% !important; float: none !important; margin: 0 !important; }
.wh-pdp__gallery img { border-radius: var(--wh-r); background: var(--wh-bg-2); }

.wh-pdp__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.wh-badge { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; line-height: 1; padding: 6px 10px; border-radius: 999px; background: var(--wh-bg-2); color: var(--wh-ink-2); border: 1px solid var(--wh-line); }
.wh-badge--used, .wh-badge--overhaul { background: var(--wh-gold-l); border-color: #ecdcae; color: #7a5f1c; }
.wh-badge--new { background: #e9f1fb; border-color: #c9dbf2; color: #1d4f8f; }
.wh-badge--ok, .wh-badge--stock { background: var(--wh-ok-l); border-color: #c4e2cf; color: var(--wh-ok); }
.wh-badge--out { background: #fbeaea; border-color: #f1c9c9; color: #a12a2a; }

.single-product div.product.wh-pdp .wh-pdp__title { font-size: 24px; line-height: 1.2; font-weight: 700; margin: 0 0 6px; color: var(--wh-ink); letter-spacing: -.01em; }
@media (min-width: 900px) { .single-product div.product.wh-pdp .wh-pdp__title { font-size: 30px; } }
.wh-pdp__sub { margin: 0 0 4px; color: var(--wh-ink-2); font-weight: 500; }
.wh-pdp__fullname { margin: 0 0 16px; color: var(--wh-muted); font-size: 13px; }

.wh-pdp__pricebox { border: 1px solid var(--wh-line); border-radius: 14px; padding: 18px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.wh-pdp__price { display: flex; align-items: baseline; gap: 8px; }
.wh-pdp__incl, .wh-pdp__incl .amount { font-size: 30px; font-weight: 800; color: var(--wh-ink); line-height: 1.1; }
.wh-pdp__vat { color: var(--wh-muted); font-size: 13px; }
.wh-pdp__excl { color: var(--wh-muted); font-size: 13px; margin-top: 2px; }

.wh-pdp__delivery { list-style: none; margin: 14px 0 4px; padding: 0; display: grid; gap: 6px; }
.wh-pdp__delivery li { position: relative; padding-left: 24px; font-size: 14px; color: var(--wh-ink-2); }
.wh-pdp__delivery li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 7px; border-left: 2px solid var(--wh-ok); border-bottom: 2px solid var(--wh-ok); transform: rotate(-45deg); }

/* Winkelwagen-formulier van WooCommerce opnieuw stijlen. */
.wh-pdp__cart { margin-top: 14px; }
.wh-pdp__cart form.cart { display: flex; gap: 10px; margin: 0 !important; padding: 0 !important; border: 0 !important; }
.wh-pdp__cart .quantity { display: none !important; } /* één exemplaar per onderdeel */
.wh-pdp__cart .stock { display: none; }
.wh-pdp__cart .single_add_to_cart_button,
.wh-btn--primary {
	flex: 1 1 auto; width: 100%; min-height: 52px; border: 0 !important; border-radius: 10px !important;
	background: var(--wh-gold) !important; color: var(--wh-ink) !important; font-weight: 700 !important;
	font-size: 16px !important; letter-spacing: 0 !important; text-transform: none !important; cursor: pointer;
	transition: background .15s ease; padding: 0 18px !important; line-height: 52px !important; height: auto !important;
}
.wh-pdp__cart .single_add_to_cart_button:hover, .wh-btn--primary:hover { background: var(--wh-gold-d) !important; }
.wh-pdp__cart .single_add_to_cart_button:focus-visible, .wh-btn:focus-visible, .wh-tabs__nav button:focus-visible { outline: 3px solid #1a1a1a; outline-offset: 2px; }
/* Wishlist/vergelijk-knoppen van plugins uit het koopblok houden. */
.wh-pdp__cart .woosw-btn, .wh-pdp__cart .woosc-btn, .wh-pdp__cart .wooscp-btn { display: none !important; }

.wh-pdp__help { display: grid; gap: 8px; margin-top: 12px; }
.wh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none !important; }
.wh-btn--ghost { min-height: 46px; border: 1px solid var(--wh-line); border-radius: 10px; background: #fff; color: var(--wh-ink) !important; font-weight: 600; font-size: 14px; padding: 8px 14px; text-align: center; }
.wh-btn--ghost:hover { border-color: #25d366; background: #f3fbf6; }
.wh-btn--ghost svg { width: 18px; height: 18px; fill: #1ea952; flex: none; }
.wh-pdp__phone { text-align: center; font-size: 13px; color: var(--wh-muted) !important; }

.wh-pdp__key { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0 8px; }
.wh-pdp__key > div { background: var(--wh-bg-2); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.wh-pdp__key dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--wh-muted); margin: 0; }
.wh-pdp__key dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.wh-pdp__sku { font-size: 13px; color: var(--wh-muted); margin: 0; }

/* ── Tabbladen ──────────────────────────────────────────────────────────── */
.wh-tabs { margin-top: 32px; border-top: 1px solid var(--wh-line); }
.wh-tabs__nav { display: none; }
.wh-js .wh-tabs__nav {
	display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--wh-line);
	margin: 0 -16px; padding: 0 16px; position: sticky; top: 0; background: #fff; z-index: 5;
}
.wh-js .wh-tabs__nav::-webkit-scrollbar { display: none; }
.wh-tabs__nav button {
	flex: none; background: none !important; border: 0 !important; border-bottom: 3px solid transparent !important; border-radius: 0 !important;
	color: var(--wh-muted) !important; font-weight: 600; font-size: 15px; padding: 14px 10px 11px !important; cursor: pointer; white-space: nowrap; text-transform: none !important; letter-spacing: 0 !important; line-height: 1.2 !important; min-height: 0 !important;
}
.wh-tabs__nav button[aria-selected="true"] { color: var(--wh-ink) !important; border-bottom-color: var(--wh-gold) !important; }
.wh-count { display: inline-block; min-width: 22px; padding: 1px 6px; margin-left: 4px; border-radius: 999px; background: var(--wh-bg-2); color: var(--wh-ink-2); font-size: 12px; font-weight: 600; text-align: center; }

.wh-tabs__panel { padding: 20px 0 8px; max-width: 860px; }
.wh-tabs__h { font-size: 20px; margin: 0 0 12px; color: var(--wh-ink); }
.wh-js .wh-tabs__h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wh-tabs__panel h3 { font-size: 16px; margin: 20px 0 8px; color: var(--wh-ink); }
.wh-prose p { margin: 0 0 10px; }
.wh-note { font-size: 13px; color: var(--wh-muted); }
.wh-list { margin: 0 0 8px; padding-left: 18px; }
.wh-list li { margin-bottom: 4px; }

.wh-specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.wh-specs th, .wh-specs td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--wh-line); vertical-align: top; }
.wh-specs th { width: 42%; font-weight: 500; color: var(--wh-muted); background: transparent; }
.wh-specs td { font-weight: 600; overflow-wrap: anywhere; }
.wh-specs tr:nth-child(odd) { background: var(--wh-bg-2); }

.wh-fit__tip { background: var(--wh-gold-l); border: 1px solid #ecdcae; border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.wh-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.wh-chips li { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; padding: 4px 8px; border: 1px solid var(--wh-line); border-radius: 6px; background: #fff; }
.wh-chips--muted li { color: var(--wh-ink-2); background: var(--wh-bg-2); }
.wh-chips li.is-own { background: var(--wh-gold); border-color: var(--wh-gold); color: var(--wh-ink); font-weight: 700; }

.wh-pdp .wh-fit__filter { border: 1px solid #cfcac0 !important; width: 100%; max-width: 420px; min-height: 44px; border: 1px solid var(--wh-line); border-radius: 10px; padding: 8px 12px; font-size: 15px; margin-bottom: 10px; background: #fff; }
.wh-fit__group { border: 1px solid var(--wh-line); border-radius: 10px; margin-bottom: 8px; background: #fff; }
.wh-fit__group summary { cursor: pointer; padding: 12px 14px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wh-fit__group summary::-webkit-details-marker { display: none; }
.wh-fit__group summary::after { content: "+"; font-weight: 400; font-size: 20px; color: var(--wh-muted); margin-left: auto; }
.wh-fit__group[open] summary::after { content: "–"; }
.wh-fit__group summary .wh-count { margin-left: 0; }
.wh-fit__group ul { list-style: none; margin: 0; padding: 0 14px 10px; }
.wh-fit__group li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 8px 0; border-top: 1px solid var(--wh-line); font-size: 14px; }
.wh-fit__group li small { color: var(--wh-muted); white-space: nowrap; }

/* ── Ook bekijken ───────────────────────────────────────────────────────── */
.wh-related { margin-top: 36px; }
.wh-related h2 { font-size: 20px; margin: 0 0 14px; }
.wh-related__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .wh-related__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.wh-card a { display: flex; flex-direction: column; gap: 4px; height: 100%; text-decoration: none !important; color: var(--wh-ink) !important; border: 1px solid var(--wh-line); border-radius: 12px; padding: 10px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.wh-card a:hover { border-color: var(--wh-gold); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.wh-card__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--wh-bg-2); display: block; }
.wh-card__title { font-weight: 700; font-size: 14px; line-height: 1.3; margin-top: 6px; }
.wh-card__sub { font-size: 12px; color: var(--wh-muted); }
.wh-card__price { margin-top: auto; padding-top: 6px; font-weight: 800; }

/* ── Sticky koopbalk (mobiel) ──────────────────────────────────────────── */
.wh-sticky {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; display: flex; align-items: center; gap: 12px;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--wh-line);
	box-shadow: 0 -4px 16px rgba(0,0,0,.08); transform: translateY(calc(100% + 70px)); visibility: hidden; transition: transform .2s ease, visibility 0s linear .2s;
}
.wh-sticky.is-on { transform: none; visibility: visible; transition: transform .2s ease; }
.wh-sticky__price { font-weight: 800; font-size: 18px; line-height: 1.1; white-space: nowrap; }
.wh-sticky__price small { display: block; font-weight: 400; font-size: 11px; color: var(--wh-muted); }
.wh-sticky .wh-btn--primary { min-height: 46px; line-height: 46px !important; }
/* Boven de mobiele onderbalk van het thema (Elementor, 53px hoog, tot 767px). */
@media (max-width: 899px) { .wh-nd.single-product .whcc-reopen { bottom: 90px !important; } }
@media (min-width: 900px) { .wh-sticky { display: none; } }

/* Thema-elementen die op deze pagina dubbel zijn. */
.wh-nd.single-product .karpart-product-pagination,
.wh-nd.single-product .single-product-navigation { display: none !important; }

/* ── Eigen fotogalerij: swipen + miniaturen ───────────────────────────── */
.wh-gal { min-width: 0; }
.wh-gal__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 14px; border: 1px solid var(--wh-line); background: #fff; outline: none; }
.wh-gal__track::-webkit-scrollbar { display: none; }
.wh-gal__slide { flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; aspect-ratio: 4 / 3; background: #fff; }
.wh-gal__slide img { width: 100%; height: 100%; object-fit: contain; border-radius: 0 !important; background: #fff !important; }
.wh-gal__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.wh-gal__thumbs button { flex: 0 0 64px; height: 64px; padding: 0 !important; border: 2px solid var(--wh-line) !important; border-radius: 10px !important; background: #fff !important; overflow: hidden; cursor: pointer; min-height: 0 !important; }
.wh-gal__thumbs button[aria-current="true"] { border-color: var(--wh-gold) !important; }
.wh-gal__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 900px) { .wh-gal__thumbs button { flex-basis: 76px; height: 76px; } }
.wh-gal__count { font-size: 12px; color: var(--wh-muted); margin: 8px 0 0; }

.wh-badge--make { background: var(--wh-ink); border-color: var(--wh-ink); color: #fff; }

.wh-pdp__oem { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; background: var(--wh-bg-2); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }
.wh-pdp__oem span { flex: 1 0 100%; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--wh-muted); }
.wh-pdp__oem strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 18px; letter-spacing: .02em; }
.wh-pdp__oem a { font-size: 13px; color: var(--wh-ink-2) !important; text-decoration: underline; text-decoration-color: var(--wh-gold); }

.wh-tabs__sub { margin-top: 0 !important; }
.wh-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; background: var(--wh-bg-2); border-radius: 10px; padding: 12px; margin: 14px 0 6px; }
.wh-facts dt { font-size: 12px; color: var(--wh-muted); margin: 0; }
.wh-facts dd { margin: 0; font-weight: 700; }

.wh-related__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.wh-related__head a { font-weight: 600; font-size: 14px; color: var(--wh-ink) !important; text-decoration: underline; text-decoration-color: var(--wh-gold); text-underline-offset: 3px; }

/* Kaarten: OEM-label en knop (zoals in het ontwerp) */
.wh-card__oemlbl { font-size: 11px; color: var(--wh-muted); margin-top: 2px; }
.wh-card__oem { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--wh-ink); }
.wh-card__cta { display: block; margin-top: 10px; text-align: center; background: var(--wh-gold); color: var(--wh-ink); font-weight: 700; font-size: 14px; border-radius: 8px; padding: 10px; }
.wh-card a:hover .wh-card__cta { background: var(--wh-gold-d); }
.wh-card__price { margin-top: auto; }

/* Foto vergroot (lightbox met knijpzoom) */
.wh-lb { position: fixed; inset: 0; z-index: 100001; background: rgba(15,15,15,.96); display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; }
.wh-lb[hidden] { display: none; }
.wh-lb__stage { grid-column: 1 / -1; grid-row: 1; height: 100vh; height: 100dvh; overflow: hidden; display: grid; place-items: center; touch-action: none; cursor: zoom-in; }
.wh-lb.is-zoomed .wh-lb__stage { cursor: grab; }
.wh-lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center center; transition: transform .05s linear; user-select: none; -webkit-user-drag: none; }
.wh-lb button { position: relative; z-index: 2; background: rgba(255,255,255,.12) !important; color: #fff !important; border: 0 !important; border-radius: 50% !important; width: 48px; height: 48px; font-size: 30px; line-height: 1; padding: 0 !important; min-height: 0 !important; cursor: pointer; }
.wh-lb__prev { grid-column: 1; grid-row: 1; justify-self: center; }
.wh-lb__next { grid-column: 3; grid-row: 1; justify-self: center; }
.wh-lb__close { position: absolute !important; top: 12px; right: 12px; }
.wh-lb__hint { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; color: #bbb; font-size: 13px; margin: 0; pointer-events: none; }
.wh-lb.is-zoomed .wh-lb__prev, .wh-lb.is-zoomed .wh-lb__next { opacity: .25; }
@media (max-width: 699px) { .wh-lb__prev, .wh-lb__next { display: none; } }
.wh-gal__slide { cursor: zoom-in; }

/* Mijn auto: past / past niet */
.wh-badge--fit { background: var(--wh-ok); border-color: var(--wh-ok); color: #fff; }
.wh-badge--fit[hidden] { display: none; }
.wh-fitcheck { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--wh-r); font-size: 14px; font-weight: 600; border: 1px solid; }
.wh-fitcheck[hidden] { display: none; }
.wh-fitcheck.is-fit { background: var(--wh-ok-l); border-color: #c4e2cf; color: var(--wh-ok); }
.wh-fitcheck.is-fit::before { content: "✓ "; }
.wh-fitcheck.is-nofit { background: #fff4e5; border-color: #f3c98b; color: #8a5300; font-weight: 500; }
.wh-fitcheck.is-unknown { background: var(--wh-bg-2, #f7f6f3); border-color: var(--wh-line); color: var(--wh-ink-2, #4a4a4a); font-weight: 500; }
