/* ==========================================================================
   unicord.css - eigen opmaak unicord (child-thema). Bewerken kan ook via
   Control Center > Design > CSS-bestand.
   1. Menubalk: knoppen Bulk en Sale
   2. Knop Categorieën: lijst links (hoofdgroepen + snelkoppelingen)
   3. Megamenu-panelen (ucm-*)
   ========================================================================== */

:root {
	--ucm-donker: #13302a;
	--ucm-groen: #2c7766;
	--ucm-licht: #e9f3f0;
	--ucm-tekst: #1d2b28;
	--ucm-grijs: #5b6b67;
	--ucm-geel: #f2c14e;
}

/* 1. Menubalk: knoppen Bulk en Sale ------------------------------------- */
.ucm-knoppen { display: flex; align-items: center; gap: 10px; }
.ucm-knop {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 14px; border-radius: 20px;
	font-weight: 700; font-size: 14px; line-height: 1.2; text-decoration: none !important;
	transition: filter .15s ease;
}
.ucm-knop:hover { filter: brightness(1.08); }
.ucm-knop-bulk { background: var(--ucm-geel); color: #3b2a00 !important; }
.ucm-knop-sale { color: #fff !important; border: 1.5px solid rgba(255, 255, 255, .45); }
.ucm-knop i { font-size: 13px; }

/* 2. Knop Categorieën: lijst links -------------------------------------- */
.wd-header-cats .wd-dropdown-cats { border-top: 3px solid var(--ucm-groen); }
.wd-header-cats .wd-nav-vertical > li > a { font-weight: 600; }
.wd-header-cats .wd-nav-vertical > li.ucm-scheiding {
	pointer-events: none; margin: 6px 16px; border-top: 1px solid #cfe1dc; height: 0; overflow: hidden;
}
.wd-header-cats .wd-nav-vertical > li.ucm-scheiding > a { display: none; }
.wd-header-cats .wd-nav-vertical > li.ucm-snel > a { font-weight: 600; font-size: 14px; }
.wd-header-cats .wd-nav-vertical > li.ucm-snel > a:before {
	font-family: "Font Awesome 5 Free", "Font Awesome 6 Free"; font-weight: 900;
	display: inline-block; width: 22px; color: var(--ucm-groen);
}
.wd-header-cats li.ucm-nieuw > a:before { content: "\f005"; }
.wd-header-cats li.ucm-bulk > a:before { content: "\f49e"; }
.wd-header-cats li.ucm-aanbieding > a:before { content: "\f295"; }
.wd-header-cats li.ucm-bestseller > a:before { content: "\f091"; }

/* 3. Megamenu-panelen ---------------------------------------------------- */
.ucm-paneel {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 240px; gap: 28px;
	padding: 24px 28px; background: #fff; color: var(--ucm-tekst);
}
.ucm-kolom h4 {
	margin: 0 0 12px; font-size: 16px; font-weight: 700; text-transform: none; letter-spacing: 0;
}
.ucm-kolom h4 a { color: var(--ucm-donker) !important; }
.ucm-kolom ul { list-style: none; margin: 0; padding: 0; }
.ucm-kolom li { margin: 0; padding: 0; }
.ucm-kolom li a {
	display: flex; align-items: center; gap: 10px; padding: 5px 0;
	font-size: 14px; line-height: 1.3; color: var(--ucm-tekst) !important; text-decoration: none;
}
.ucm-kolom li a:hover { color: var(--ucm-groen) !important; }
.ucm-kolom li img {
	width: 36px; height: 36px; flex: none; border-radius: 50%; object-fit: cover;
	background: #f3f3f3; border: 1px solid #e3e3e3;
}
.ucm-kolom li .ucm-leeg {
	width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--ucm-licht);
}
.ucm-alles {
	display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700;
	color: var(--ucm-groen) !important;
}
.ucm-uitgelicht {
	background: var(--ucm-licht); border-radius: 12px; padding: 14px; text-align: center;
	align-self: start; font-size: 14px; color: var(--ucm-tekst);
}
.ucm-uitgelicht img { width: 100%; border-radius: 10px; background: #fff; display: block; }
.ucm-uitgelicht strong { display: block; margin: 10px 0 4px; font-size: 16px; color: var(--ucm-donker); }
.ucm-uitgelicht .ucm-knop { margin-top: 10px; background: var(--ucm-groen); color: #fff !important; font-size: 13px; }

@media (max-width: 1200px) {
	.ucm-paneel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ucm-uitgelicht { display: none; }
}

/* 4. Menubalk compact houden met Inter (breder dan het oude smalle lettertype) */
@media (min-width: 1025px) {
	.whb-header-bottom .wd-header-main-nav .wd-nav > li > a { padding-left: 9px; padding-right: 9px; font-size: 14px; }
	.whb-header-bottom .wd-header-main-nav .wd-nav { flex-wrap: nowrap; }
	.whb-header-bottom .wd-header-cats { max-width: 250px; }
}

/* 5. Knop Categorieën: lichte lijst links (vervangt donkergroen), compacte snelkoppelingen */
.wd-header-cats .wd-dropdown-cats { background: #fff; }
.wd-header-cats .wd-nav-vertical { background: var(--ucm-licht) !important; padding: 8px 0; }
.wd-header-cats .wd-nav-vertical > li > a {
	color: var(--ucm-tekst) !important; background: transparent !important;
	padding-top: 11px; padding-bottom: 11px; font-size: 15px;
}
.wd-header-cats .wd-nav-vertical > li:hover > a,
.wd-header-cats .wd-nav-vertical > li.wd-opened > a {
	background: #fff !important; color: var(--ucm-groen) !important; box-shadow: inset 4px 0 0 var(--ucm-groen);
}
.wd-header-cats .wd-nav-vertical > li.ucm-snel > a { padding-top: 7px; padding-bottom: 7px; }
.wd-header-cats .wd-nav-vertical > li > .wd-dropdown-menu { background: #fff; box-shadow: 0 12px 28px rgba(0, 0, 0, .12); }

/* 6. Menubalk: woorden niet afbreken */
@media (min-width: 1025px) {
	.whb-header-bottom .wd-header-main-nav .wd-nav > li > a { white-space: nowrap; padding-left: 7px; padding-right: 7px; }
	.whb-header-bottom .wd-header-main-nav .wd-nav > li > a .nav-link-text { white-space: nowrap; }
	.whb-header-bottom .wd-header-main-nav .wd-nav { gap: 0; }
}

/* 7. Paneel altijd licht (menu-items stonden op een donker kleurschema) */
.wd-header-cats .wd-nav-vertical > li > .wd-dropdown-menu,
.wd-header-cats .wd-nav-vertical > li > .wd-dropdown-menu.color-scheme-light { background: #fff !important; color: var(--ucm-tekst); }
.wd-header-cats .wd-dropdown-menu .ucm-paneel { color: var(--ucm-tekst); }

/* 8. Paneelbreedte en koppen */
.wd-header-cats .wd-nav-vertical > li > .wd-dropdown-menu.wd-design-sized { width: min(940px, calc(100vw - 340px)) !important; }
.wd-header-cats .wd-dropdown-menu .container { max-width: 100%; padding: 0; }
.ucm-paneel { grid-template-columns: repeat(3, minmax(0, 1fr)) 200px; gap: 24px; box-sizing: border-box; width: 100%; }
.ucm-kolom h4, .ucm-kolom h4 a { color: var(--ucm-donker) !important; }

/* 9. Menubalk: brede panelen (ucm-breed) */
.whb-header-bottom .wd-header-main-nav .wd-dropdown-menu.wd-design-full-width {
	background: #fff !important; border-top: 3px solid var(--ucm-groen); box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
	border-radius: 0 0 14px 14px;
}
.ucm-breed { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; padding: 22px 6px; color: var(--ucm-tekst); }
.ucm-breed-kop { margin-bottom: 14px; }
.ucm-breed-kop a { font-weight: 700; font-size: 14px; color: var(--ucm-groen) !important; }
.ucm-tegels { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ucm-tegel {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
	padding: 14px 10px; border-radius: 12px; background: #f7faf9; border: 1px solid #e4eeeb;
	color: var(--ucm-tekst) !important; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.ucm-tegel:hover { border-color: var(--ucm-groen); box-shadow: 0 6px 16px rgba(44, 119, 102, .15); transform: translateY(-2px); }
.ucm-tegel img, .ucm-tegel .ucm-leeg { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid #e3e3e3; }
.ucm-tegel-naam { font-weight: 600; font-size: 14px; line-height: 1.3; }
.ucm-tegel-aantal { font-size: 12px; color: var(--ucm-grijs); }
.ucm-kolommen { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 22px; }
.ucm-kolommen .ucm-kolom li a { padding: 4px 0; }
.whb-header-bottom .wd-header-main-nav .wd-dropdown-menu .ucm-paneel { padding: 22px 6px; }
@media (max-width: 1200px) { .ucm-breed { grid-template-columns: minmax(0, 1fr); } .ucm-breed .ucm-uitgelicht { display: none; } }

/* 10. Tegels met onderliggende categorieën */
.ucm-tegel { padding: 0; }
.ucm-tegel-hoofd {
	display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%;
	padding: 14px 10px 10px; color: var(--ucm-tekst) !important; text-decoration: none;
}
.ucm-tegel-hoofd img, .ucm-tegel-hoofd .ucm-leeg { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid #e3e3e3; }
.ucm-tegel-sub { list-style: none; margin: 0 0 10px; padding: 0 10px; width: 100%; }
.ucm-tegel-sub li { margin: 0; }
.ucm-tegel-sub a { display: block; padding: 2px 0; font-size: 12.5px; color: var(--ucm-grijs) !important; }
.ucm-tegel-sub a:hover { color: var(--ucm-groen) !important; }

/* 11. Compacte, liggende tegels (alles past binnen het scherm) */
.ucm-tegels { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; align-items: start; }
.ucm-tegel { align-items: stretch; text-align: left; }
.ucm-tegel-hoofd { flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px; }
.ucm-tegel-hoofd img, .ucm-tegel-hoofd .ucm-leeg { width: 46px; height: 46px; flex: none; }
.ucm-tegel-hoofd .ucm-tegel-tekst { display: flex; flex-direction: column; }
.ucm-tegel-naam { font-size: 14px; }
.ucm-tegel-sub { padding: 0 12px 0 70px; margin: -4px 0 10px; }
.ucm-breed { padding-top: 18px; padding-bottom: 18px; }
.whb-header-bottom .wd-header-main-nav .wd-dropdown-menu.wd-design-full-width { max-height: calc(100vh - 190px); overflow-y: auto; }

/* 12. Lege alinea's/regeleinden die WordPress in de blokken zet verbergen */
.ucm-breed p:empty, .ucm-paneel p:empty, .ucm-tegel br, .ucm-kolom br { display: none; }
.ucm-tegel p { margin: 0; }

/* 13. Panelen blijven open als je met de muis naar beneden gaat:
   paneel direct tegen het menu-item (geen marge/verschuiving) + onzichtbare brug erboven. */
.whb-header-bottom .wd-header-main-nav .wd-nav > li > .wd-dropdown-menu { margin-top: 0 !important; }
.whb-header-bottom .wd-header-main-nav .wd-nav > li > .wd-dropdown-menu::before,
.wd-header-cats .wd-dropdown-cats::before {
	content: ""; position: absolute; left: 0; right: 0; top: -30px; height: 30px; background: transparent;
}
.wd-header-cats .wd-nav-vertical > li > .wd-dropdown-menu::before {
	content: ""; position: absolute; top: 0; left: -30px; width: 30px; height: 100%; background: transparent;
}
/* 13b. Openen/sluiten op muispositie, zonder vervagen (geen knipperen):
   direct open; sluiten na 0,2 s; naar een ander item: oude paneel meteen weg. */
@media (min-width: 1025px) {
	.whb-header-bottom .wd-header-main-nav .wd-nav > li > .wd-dropdown-menu {
		transition: opacity 0s linear .2s, visibility 0s linear .2s !important; transform: none !important;
	}
	.whb-header-bottom .wd-header-main-nav .wd-nav > li:hover > .wd-dropdown-menu {
		opacity: 1 !important; visibility: visible !important; pointer-events: auto !important;
		transition: none !important;
	}
	.whb-header-bottom .wd-header-main-nav .wd-nav:hover > li:not(:hover) > .wd-dropdown-menu { transition: none !important; }
	.wd-header-cats .wd-dropdown-cats, .wd-header-cats .wd-nav-vertical > li > .wd-dropdown-menu { transform: none !important; }
}

/* 14. Menubalk: geen pijltjes, geen pil; streep onder het actieve/aangewezen item */
.whb-header-bottom .wd-header-main-nav .wd-nav > li > a::after,
.wd-header-cats .menu-opener::after,
.wd-header-cats .menu-opener .menu-opener-arrow { display: none !important; }
.whb-header-bottom .wd-header-main-nav .wd-nav.wd-style-bg > li > a {
	background: transparent !important; border-radius: 0 !important; position: relative;
	color: #e8f1ee !important; height: 52px; padding-top: 0; padding-bottom: 0;
}
.whb-header-bottom .wd-header-main-nav .wd-nav > li > a::before {
	content: ""; position: absolute; left: 7px; right: 7px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
	background: rgba(255, 255, 255, .55); transform: scaleX(0); transform-origin: center; transition: transform .15s ease;
}
.whb-header-bottom .wd-header-main-nav .wd-nav > li:hover > a::before { transform: scaleX(1); }
.whb-header-bottom .wd-header-main-nav .wd-nav > li:hover > a { color: #fff !important; }
.whb-header-bottom .wd-header-main-nav .wd-nav > li.current-menu-item > a,
.whb-header-bottom .wd-header-main-nav .wd-nav > li.ucm-actief > a { color: #fff !important; font-weight: 700; }
.whb-header-bottom .wd-header-main-nav .wd-nav > li.current-menu-item > a::before,
.whb-header-bottom .wd-header-main-nav .wd-nav > li.ucm-actief > a::before { transform: scaleX(1); background: var(--ucm-geel); }

/* 15. Brede panelen vast over de hele rij (niet afhankelijk van het WoodMart-script) */
@media (min-width: 1025px) {
	.whb-header-bottom .whb-flex-row, .whb-header-bottom .container { position: relative; }
	.whb-header-bottom .wd-header-main-nav, .whb-header-bottom .wd-header-main-nav .wd-nav > li.menu-mega-dropdown { position: static !important; }
	.whb-header-bottom .wd-header-main-nav .wd-nav > li > .wd-dropdown-menu.wd-design-full-width {
		left: 0 !important; right: 0 !important; width: 100% !important; top: 100% !important; margin-left: 0 !important;
	}
}

/* 16. Populaire artikelen in de menupanelen (witruimte benutten) */
.ucm-populair { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e4eeeb; }
.ucm-populair-kop { font-weight: 700; font-size: 15px; color: var(--ucm-donker); margin-bottom: 12px; }
.ucm-populair-rij { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ucm-artikel { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid #e4eeeb; border-radius: 12px; background: #fff; }
.ucm-artikel-foto img { width: 100%; height: 120px; object-fit: contain; border-radius: 8px; background: #fff; display: block; }
.ucm-artikel-naam {
	font-size: 13px; line-height: 1.35; color: var(--ucm-tekst) !important; font-weight: 600;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em;
}
.ucm-artikel-prijs { font-size: 14px; font-weight: 700; color: var(--ucm-groen); }
.ucm-artikel-prijs small, .ucm-artikel-prijs .woocommerce-price-suffix { font-size: 11px; font-weight: 400; color: var(--ucm-grijs); }
.ucm-koop {
	align-self: flex-start; display: inline-block; padding: 6px 12px; border-radius: 16px; font-size: 12.5px; font-weight: 700;
	background: var(--ucm-groen); color: #fff !important; text-decoration: none; line-height: 1.2;
}
.ucm-koop:hover { filter: brightness(1.1); }
.ucm-koop-bekijk { background: var(--ucm-licht); color: var(--ucm-groen) !important; }
.ucm-koop.added::after { content: " ✓"; }
.ucm-artikel .added_to_cart { font-size: 12px; color: var(--ucm-groen) !important; font-weight: 600; }
.ucm-koop.loading { opacity: .6; pointer-events: none; }

/* 17. Compacter: minder lege ruimte boven/onder het paneel en tussen de sublinks, zodat het minder vaak scrolt */
.whb-header-bottom .wd-header-main-nav .wd-dropdown-menu.wd-design-full-width { padding-top: 14px; padding-bottom: 14px; }
.ucm-breed { padding-top: 8px; padding-bottom: 8px; }
.ucm-tegel-sub a { padding: 1px 0; line-height: 1.45; }
.ucm-artikel-foto img { height: 100px; }

/* 18. Wisselknop excl./incl. btw in de kopbalk (plugin UCWEB Btw-weergave) */
.ucm-knoppen .ucbtw-knop { background: rgba(255, 255, 255, .12); color: #fff; margin-right: 4px; }
.ucm-knoppen .ucbtw-knop button { padding: 8px 12px; font-size: 12.5px; }
.ucm-knoppen .ucbtw-knop button { padding: 7px 10px; }
.whb-header .wd-header-cart .ucbtw-label, .whb-header .wd-header-cart .woocommerce-price-suffix { display: none; }
/* Ruimte voor de btw-knop: Categorieën-knop en menu-items iets smaller */
.whb-header-bottom .whb-col-left { flex: 0 0 auto !important; width: auto !important; max-width: none !important; }
.whb-header-bottom .wd-header-cats, .whb-header-bottom .wd-header-cats > .menu-opener { width: 215px; min-width: 215px; max-width: 215px; }
.whb-header-bottom .wd-header-main-nav .menu > li > a { padding-left: 5px; padding-right: 5px; }
.ucm-knoppen { gap: 8px; }

/* 19. Bovenbalk: licht mint, donkere tekst, drie korte punten */
.whb-top-bar { border-bottom: 1px solid #d3e6df; }
.whb-top-bar .ucm-usp { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ucm-donker); margin-right: 22px; white-space: nowrap; }
.whb-top-bar .ucm-usp i { color: var(--ucm-groen); font-size: 13px; }
.whb-top-bar .ucm-usp:last-child { margin-right: 0; }
.whb-top-bar .wd-header-text, .whb-top-bar .wd-header-text p { margin: 0; }
.whb-top-bar .wd-nav > li > a, .whb-top-bar .wd-social-icons a { color: var(--ucm-donker) !important; }
.whb-top-bar .wd-nav > li > a .wd-nav-icon, .whb-top-bar .wd-nav > li > a i { color: var(--ucm-groen) !important; }
.whb-top-bar .wd-header-divider:before { border-color: #c6ddd5 !important; }

/* 20. Sale-knop: gevuld koraalrood met labelvorm */
.ucm-knop-sale {
	border: 0 !important; color: #fff !important;
	background: linear-gradient(135deg, #f0565c 0%, #d9334a 100%);
	box-shadow: 0 2px 8px rgba(217, 51, 74, .35);
}
.ucm-knop-sale:hover { filter: brightness(1.06); }
.ucm-knop-sale i { font-size: 12px; }

/* 21. Productpagina (layout met .ucm-product-info): "Wissen" onder de keuzes i.p.v. buiten het kader */
.ucm-product-info table.variations td.value { position: relative; flex-wrap: wrap; }
.ucm-product-info .variations_form .wd-reset-var, .ucm-product-info .wd-reset-var { width: 100% !important; position: static !important; inset: auto !important; transform: none !important; }
.ucm-product-info a.reset_variations { position: static !important; transform: none !important; margin-top: 6px; display: inline-flex; font-size: 13px; }
.ucm-product-info .elementor-widget-wd_single_product_price .price { margin-bottom: 0; }
/* Foto blijft in beeld bij scrollen langs de bestelinformatie */
@media (min-width: 1025px) { .elementor-element-4125cd5f { position: sticky; top: 90px; align-self: flex-start; } }

/* 22. Klantenservicepagina: snelkoppelingen, tabel, afbeelding */
.ucm-ks-snel { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 28px; }
.ucm-ks-snel a { display: inline-block; padding: 7px 14px; border-radius: 18px; background: #e8f3ef; color: var(--ucm-donker) !important; font-weight: 600; font-size: 14px; text-decoration: none; }
.ucm-ks-snel a:hover { background: #d3e8e0; }
.ucm-ks-afbeelding img { border-radius: 14px; border: 1px solid #d9e7e2; max-width: 760px; width: 100%; height: auto; }
.ucm-ks-tabel table { border-collapse: separate; border-spacing: 0; border: 1px solid #d9e7e2; border-radius: 12px; overflow: hidden; max-width: 760px; }
.ucm-ks-tabel th { background: #e8f3ef; color: var(--ucm-donker); text-align: left; }
.ucm-ks-tabel th, .ucm-ks-tabel td { padding: 10px 14px; border-bottom: 1px solid #e4eeeb; }
.ucm-ks-tabel tr:last-child td { border-bottom: 0; }
h3.wp-block-heading[id] { scroll-margin-top: 110px; padding-top: 10px; }

/* 23. Productlabels (WoodMart) kleiner en rustiger: platte pill linksboven i.p.v. grote ronde badges */
.product-labels { top: 10px; left: 10px; gap: 5px; }
.product-labels .product-label,
.product-labels.labels-rounded .product-label {
	min-width: 0 !important; min-height: 0 !important; width: auto; height: auto;
	padding: 4px 10px; border-radius: 20px; line-height: 1.25;
	font-size: 11.5px; font-weight: 700; letter-spacing: .02em; text-transform: none;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}
.product-labels .product-label.onsale { background: linear-gradient(135deg, #f0565c 0%, #d9334a 100%); color: #fff; }
.product-labels .product-label.featured { background: var(--ucm-geel); color: #3b2a00; }
.product-labels .product-label.new { background: var(--ucm-groen); color: #fff; }
.product-labels .product-label.out-of-stock { background: #6b7280; color: #fff; }

/* 24. Aantalveld op productkaarten breed genoeg voor 4 cijfers (minimale afname, bijv. 2500) */
.wd-product .quantity input.qty { width: 46px; }
