/* Chocolaterie Fleur — shop/categorie-archief + productkaart.
   1:1 uit Figma "Bonbons" (520:2756) en "Assortiment optie 1" (520:3570).
   Gescoped onder body.woocommerce / body.archive / .fleur-shop — geen globale
   selectors die buiten de shop lekken. Tokens uit fonts.css; alleen nieuwe
   design-kleuren hieronder toegevoegd. */

:root {
	/* Lichtroze toevoeg-knop op de kaart (Figma Rectangle 114 = #f6bddd). */
	--fleur-pink-soft: #f6bddd;
	/* Subtiele lijnen/randen in de shop (filter, toolbar). */
	--fleur-line: #ece7e9;
	/* Afbeeldingsachtergrond van de kaart (cream, terwijl de foto laadt). */
	--fleur-card-bg: #f1eef0;
}

/* =========================================================
   1. Kop: titel + intro
   ========================================================= */
body.woocommerce .fleur-shop__head,
body.archive .fleur-shop__head {
	margin: 8px 0 32px;
}
body.woocommerce .fleur-shop__title,
body.archive .fleur-shop__title {
	font-family: var(--fleur-font-serif);
	font-size: clamp(34px, 4vw, 45px);
	line-height: 1.1;
	color: var(--fleur-aubergine);
	margin: 0 0 .35em;
}
body.woocommerce .fleur-shop__intro,
body.archive .fleur-shop__intro {
	max-width: 640px;
	color: var(--fleur-aubergine);
	font-size: 16px;
	line-height: 1.6;
}
body.woocommerce .fleur-shop__intro p,
body.archive .fleur-shop__intro p { margin: 0 0 .5em; }

/* =========================================================
   2. Layout: filter-kolom + grid
   ========================================================= */
body.woocommerce .fleur-shop,
body.archive .fleur-shop {
	display: grid;
	grid-template-columns: 248px minmax(0, 1fr);
	gap: 40px;
	align-items: start;
	margin-bottom: 64px;
}

/* Mobiele filter-toggle: verborgen op desktop. */
body.woocommerce .fleur-shop__filter-toggle,
body.archive .fleur-shop__filter-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	width: 100%;
	justify-content: space-between;
	padding: 12px 16px;
	margin-bottom: 12px;
	border: 1px solid var(--fleur-line);
	border-radius: 100px;
	background: #fff;
	font-family: var(--fleur-font-sans);
	font-weight: 600;
	font-size: 15px;
	color: var(--fleur-aubergine);
	cursor: pointer;
}

/* =========================================================
   3. Filtermenu (.sellabees-filter* — markup uit parent)
   ========================================================= */
body.woocommerce .sellabees-filter,
body.archive .sellabees-filter {
	font-family: var(--fleur-font-sans);
	font-size: 15px;
}
body.woocommerce .sellabees-filter__title,
body.archive .sellabees-filter__title {
	font-family: var(--fleur-font-serif);
	font-size: 22px;
	color: var(--fleur-aubergine);
	margin: 0 0 16px;
}
body.woocommerce .sellabees-filter__section,
body.archive .sellabees-filter__section {
	border-top: 1px solid var(--fleur-line);
	padding: 14px 0;
}
body.woocommerce .sellabees-filter__head,
body.archive .sellabees-filter__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	font-family: var(--fleur-font-sans);
	font-weight: 600;
	font-size: 15px;
	color: var(--fleur-aubergine);
}
body.woocommerce .sellabees-filter__chevron,
body.archive .sellabees-filter__chevron {
	transition: transform .2s ease;
	flex: none;
}
body.woocommerce .sellabees-filter__section[data-collapsed="1"] .sellabees-filter__chevron,
body.archive .sellabees-filter__section[data-collapsed="1"] .sellabees-filter__chevron {
	transform: rotate(-90deg);
}
body.woocommerce .sellabees-filter__section[data-collapsed="1"] .sellabees-filter__body,
body.archive .sellabees-filter__section[data-collapsed="1"] .sellabees-filter__body {
	display: none;
}
body.woocommerce .sellabees-filter__body,
body.archive .sellabees-filter__body { padding-top: 12px; }

body.woocommerce .sellabees-filter__list,
body.archive .sellabees-filter__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
body.woocommerce .sellabees-filter__check,
body.archive .sellabees-filter__check {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	color: var(--fleur-aubergine);
}
body.woocommerce .sellabees-filter__check input,
body.archive .sellabees-filter__check input {
	width: 17px;
	height: 17px;
	accent-color: var(--fleur-pink);
	flex: none;
	margin: 0;
}
body.woocommerce .sellabees-filter__label,
body.archive .sellabees-filter__label { line-height: 1.3; }

/* Kleur-swatches */
body.woocommerce .sellabees-filter__swatches,
body.archive .sellabees-filter__swatches {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
body.woocommerce .sellabees-filter__swatch,
body.archive .sellabees-filter__swatch {
	display: inline-flex;
	cursor: pointer;
	position: relative;
}
body.woocommerce .sellabees-filter__swatch input,
body.archive .sellabees-filter__swatch input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
body.woocommerce .sellabees-filter__swatch-dot,
body.archive .sellabees-filter__swatch-dot {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 1px solid var(--fleur-line);
	display: block;
}
body.woocommerce .sellabees-filter__swatch.is-checked .sellabees-filter__swatch-dot,
body.archive .sellabees-filter__swatch.is-checked .sellabees-filter__swatch-dot {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--fleur-pink);
}

/* Prijs-sectie */
body.woocommerce .sellabees-filter__price-inputs,
body.archive .sellabees-filter__price-inputs {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}
body.woocommerce .sellabees-filter__price-field,
body.archive .sellabees-filter__price-field {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--fleur-line);
	border-radius: 6px;
	font-family: var(--fleur-font-sans);
	font-size: 14px;
	color: var(--fleur-aubergine);
}
body.woocommerce .sellabees-filter__slider,
body.archive .sellabees-filter__slider {
	position: relative;
	height: 24px;
}
body.woocommerce .sellabees-filter__slider-track,
body.archive .sellabees-filter__slider-track {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 3px;
	transform: translateY(-50%);
	background: var(--fleur-line);
	border-radius: 3px;
}
body.woocommerce .sellabees-filter__slider-range,
body.archive .sellabees-filter__slider-range {
	position: absolute;
	top: 50%;
	height: 3px;
	transform: translateY(-50%);
	background: var(--fleur-pink);
	border-radius: 3px;
}
body.woocommerce .sellabees-filter__slider-input,
body.archive .sellabees-filter__slider-input {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	margin: 0;
	background: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
	height: 24px;
}
body.woocommerce .sellabees-filter__slider-input::-webkit-slider-thumb,
body.archive .sellabees-filter__slider-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--fleur-pink);
	border: 2px solid #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
	cursor: pointer;
}
body.woocommerce .sellabees-filter__slider-input::-moz-range-thumb,
body.archive .sellabees-filter__slider-input::-moz-range-thumb {
	pointer-events: auto;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--fleur-pink);
	border: 2px solid #fff;
	cursor: pointer;
}
body.woocommerce .sellabees-filter__submit,
body.archive .sellabees-filter__submit {
	margin-top: 16px;
}

/* =========================================================
   4. Toolbar: resultaat-teller + sortering
   ========================================================= */
body.woocommerce .fleur-shop__toolbar,
body.archive .fleur-shop__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}
body.woocommerce .fleur-shop__toolbar .woocommerce-result-count,
body.archive .fleur-shop__toolbar .woocommerce-result-count {
	margin: 0;
	font-size: 14px;
	color: var(--fleur-aubergine);
	opacity: .8;
}
body.woocommerce .fleur-shop__toolbar .woocommerce-ordering,
body.archive .fleur-shop__toolbar .woocommerce-ordering {
	margin: 0;
}
body.woocommerce .fleur-shop__toolbar .orderby,
body.archive .fleur-shop__toolbar .orderby {
	font-family: var(--fleur-font-sans);
	font-size: 14px;
	color: var(--fleur-aubergine);
	padding: 10px 38px 10px 16px;
	border: 1px solid var(--fleur-line);
	border-radius: 100px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%234c3d45' stroke-width='2' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

/* =========================================================
   5. Productgrid + kaart (content-product.php)
   ========================================================= */
body.woocommerce ul.products.fleur-shop__main,
body.woocommerce .fleur-shop__main ul.products,
body.archive .fleur-shop__main ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}
/* WC voegt soms helper-classes columns-N toe — onze grid wint. */
body.woocommerce .fleur-shop__main ul.products::before,
body.woocommerce .fleur-shop__main ul.products::after,
body.archive .fleur-shop__main ul.products::before,
body.archive .fleur-shop__main ul.products::after { content: none; display: none; }

body.woocommerce li.product.fleur-card,
body.archive li.product.fleur-card {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	display: flex;
	flex-direction: column;
	text-align: left;
}

body.woocommerce .fleur-card__media,
body.archive .fleur-card__media {
	position: relative;
	display: block;
	border-radius: 5px;
	overflow: hidden;
	background: var(--fleur-card-bg);
	aspect-ratio: 299 / 325;
	margin-bottom: 12px;
}
body.woocommerce .fleur-card__media a,
body.archive .fleur-card__media a {
	display: block;
	width: 100%;
	height: 100%;
}
body.woocommerce .fleur-card__media img,
body.archive .fleur-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}
body.woocommerce .fleur-card:hover .fleur-card__media img,
body.archive .fleur-card:hover .fleur-card__media img {
	transform: scale(1.04);
}
/* Product-card titel + prijs ZWART (Figma: #000 op alle product-cards, niet het
   geërfde aubergine). Home heeft eigen #000-regels met hogere specificiteit. */
.fleur-card__title,
.fleur-card__title a,
.fleur-card__price {
	color: #000;
}

/* Sale-prijs op product-cards: oude prijs grijs doorgehaald, sale-prijs rose bold
   (Figma). De WooCommerce screen-reader-text blijft verborgen via .screen-reader-text. */
.fleur-card__price del,
.fleur-card .price del { color: #acacac; opacity: 1; text-decoration: line-through; }
.fleur-card__price ins,
.fleur-card .price ins { color: var(--fleur-pink); text-decoration: none; font-weight: 700; }

/* Sale-badge */
body.woocommerce .fleur-card__media .onsale,
body.archive .fleur-card__media .onsale {
	position: absolute;
	top: 12px;
	left: 12px;
	/* z-index boven de afbeelding: bij hover krijgt .fleur-card__media img een
	   transform (scale 1.04) → dat maakt een eigen stacking-context, waardoor de
	   badge (die eerder in de DOM staat) er zonder z-index ACHTER zou verdwijnen.
	   Met z-index:2 blijft de sale-badge ook tijdens de hover-zoom zichtbaar. */
	z-index: 2;
	margin: 0;
	min-height: 0;
	min-width: 0;
	padding: 4px 12px;
	border-radius: 100px;
	background: var(--fleur-pink);
	color: #fff;
	font-family: var(--fleur-font-sans);
	font-weight: 700;
	font-size: 12px;
	line-height: 1.4;
}

body.woocommerce .fleur-card__body,
body.archive .fleur-card__body {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}
body.woocommerce .fleur-card__info,
body.archive .fleur-card__info {
	min-width: 0;
	flex: 1 1 auto;
}

/* Titel — DM Serif Display 16px (Figma 520:2901). */
body.woocommerce .fleur-card .woocommerce-loop-product__title,
body.archive .fleur-card .woocommerce-loop-product__title {
	font-family: var(--fleur-font-serif);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.25;
	color: var(--fleur-aubergine);
	margin: 0 0 4px;
	padding: 0;
}

/* Prijs — DM Sans 14px (Figma 520:2821). */
body.woocommerce .fleur-card .price,
body.archive .fleur-card .price {
	font-family: var(--fleur-font-sans);
	font-weight: 400;
	font-size: 14px;
	line-height: 1.3;
	color: var(--fleur-aubergine);
	margin: 0;
}
body.woocommerce .fleur-card .price del,
body.archive .fleur-card .price del { opacity: .5; margin-right: 6px; font-weight: 400; }
body.woocommerce .fleur-card .price ins,
body.archive .fleur-card .price ins { text-decoration: none; font-weight: 600; }

/* Toevoeg-/bekijk-knop — 42×41, lichtroze, radius 5px (Figma 520:2837). */
body.woocommerce .fleur-card__add,
body.archive .fleur-card__add {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 41px;
	padding: 0;
	border-radius: 5px;
	background: var(--fleur-pink-soft);
	color: var(--fleur-aubergine);
	border: 0;
	margin-top: 2px;
	transition: background .15s ease, transform .15s ease, filter .15s ease;
}
body.woocommerce .fleur-card__add:hover,
body.archive .fleur-card__add:hover {
	background: var(--fleur-pink);
	color: #fff;
	filter: none;
	transform: translateY(-1px);
}
body.woocommerce .fleur-card__add .fleur-card__icon,
body.archive .fleur-card__add .fleur-card__icon {
	width: 19px;
	height: 16px;
	display: block;
}
/* WC voegt na AJAX 'added_to_cart' toe — verberg die extra link in de kaart. */
body.woocommerce .fleur-card .added_to_cart,
body.archive .fleur-card .added_to_cart {
	display: block;
	font-size: 12px;
	margin-top: 6px;
	color: var(--fleur-pink);
}
/* De archief-/categoriekaarten dragen WooCommerce' eigen .ajax_add_to_cart en
   worden door WC zelf afgehandeld. WC tekent daarbij op de knop een laadspinner
   (.loading::after) en na afloop een vinkje (.added::after). Die wil de klant
   niet: de knop moet onveranderd blijven — de enige bevestiging is de toast
   rechtsboven (zie de core added_to_cart-listener). Dus onderdrukken we beide
   pseudo-elementen én de dimming, zodat het winkelwagen-icoon zichtbaar blijft. */
body.woocommerce .fleur-card__add.loading,
body.archive .fleur-card__add.loading { opacity: 1; }
body.woocommerce .fleur-card__add.loading::after,
body.archive .fleur-card__add.loading::after,
body.woocommerce .fleur-card__add.added::after,
body.archive .fleur-card__add.added::after {
	display: none !important;
	content: none !important;
}

/* =========================================================
   6. Paginatie
   ========================================================= */
body.woocommerce nav.woocommerce-pagination,
body.archive nav.woocommerce-pagination {
	margin-top: 40px;
	text-align: center;
}
body.woocommerce nav.woocommerce-pagination ul,
body.archive nav.woocommerce-pagination ul {
	display: inline-flex;
	gap: 8px;
	border: 0;
}
body.woocommerce nav.woocommerce-pagination ul li,
body.archive nav.woocommerce-pagination ul li { border: 0; margin: 0; }
body.woocommerce nav.woocommerce-pagination ul li a,
body.woocommerce nav.woocommerce-pagination ul li span,
body.archive nav.woocommerce-pagination ul li a,
body.archive nav.woocommerce-pagination ul li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 100px;
	font-family: var(--fleur-font-sans);
	font-weight: 600;
	font-size: 14px;
	color: var(--fleur-aubergine);
	background: #fff;
	border: 1px solid var(--fleur-line);
}
body.woocommerce nav.woocommerce-pagination ul li span.current,
body.archive nav.woocommerce-pagination ul li span.current {
	background: var(--fleur-aubergine);
	color: #fff;
	border-color: var(--fleur-aubergine);
}
body.woocommerce nav.woocommerce-pagination ul li a:hover,
body.archive nav.woocommerce-pagination ul li a:hover {
	background: var(--fleur-pink);
	color: #fff;
	border-color: var(--fleur-pink);
}

/* =========================================================
   7. Responsive
   ========================================================= */
@media (max-width: 1100px) {
	body.woocommerce .fleur-shop__main ul.products,
	body.archive .fleur-shop__main ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
/* --- Mobile / portrait tablet (≤981px) — matches homepage patterns ---------
   Filter collapses behind the toggle, product grid becomes 2 columns (site
   convention), heading + section paddings shrink. Consolidated from the old
   860px block (breakpoint bumped to 981 so it fires on all portrait tablets/
   phones). Desktop + landscape tablet (≥982px) untouched. */
@media (max-width: 981px) {
	/* Kop: iets kleinere titel + minder ruimte onder de kop. */
	body.woocommerce .fleur-shop__head,
	body.archive .fleur-shop__head {
		margin: 4px 0 24px;
	}
	body.woocommerce .fleur-shop__title,
	body.archive .fleur-shop__title {
		font-size: clamp(28px, 6vw, 34px);
	}

	/* Filter-kolom klapt weg achter de toggle; grid onder elkaar. */
	body.woocommerce .fleur-shop,
	body.archive .fleur-shop {
		grid-template-columns: 1fr;
		gap: 16px;
		margin-bottom: 48px;
	}
	body.woocommerce .fleur-shop__filter-toggle,
	body.archive .fleur-shop__filter-toggle { display: flex; }
	body.woocommerce .fleur-shop__filter-panel,
	body.archive .fleur-shop__filter-panel { display: none; }
	body.woocommerce .fleur-shop__filters.is-open .fleur-shop__filter-panel,
	body.archive .fleur-shop__filters.is-open .fleur-shop__filter-panel { display: block; }

	/* Productgrid: 2 kolommen op mobiel (site-conventie). Overschrijft de
	   3-koloms desktop/tablet-regel (@media max-width:1100px) onder 982px. */
	body.woocommerce .fleur-shop__main ul.products,
	body.archive .fleur-shop__main ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 16px;
	}

	/* Toolbar: teller + sortering mogen wrappen; sortering vult de breedte. */
	body.woocommerce .fleur-shop__toolbar,
	body.archive .fleur-shop__toolbar {
		gap: 10px;
		margin-bottom: 18px;
	}
	body.woocommerce .fleur-shop__toolbar .woocommerce-ordering,
	body.archive .fleur-shop__toolbar .woocommerce-ordering,
	body.woocommerce .fleur-shop__toolbar .orderby,
	body.archive .fleur-shop__toolbar .orderby { width: 100%; }
}

/* --- Kleine telefoons (≤600px) — nauwere gutter tussen de kaarten --------- */
@media (max-width: 600px) {
	body.woocommerce .fleur-shop__main ul.products,
	body.archive .fleur-shop__main ul.products {
		gap: 22px 12px;
	}
}

/* --- Landscape tablet (982-1219px) — desktop-layout, krappere maatvoering ----
   Op deze breedte narrowt de desktop-layout gewoon: filterkolom + grid blijven
   naast elkaar. We zetten het raster op 3 kolommen over de HÉLE tier — de
   bestaande @media(max-width:1100) regel liet 1101-1219 nog op 4 kolommen staan
   (te krap) — en trimmen de grote onderruimte + de filter↔grid gap.
   ≤981 (mobiel) en ≥1220 (desktop) blijven ongemoeid. */
@media (min-width: 982px) and (max-width: 1219px) {
	/* Productgrid: 3 kolommen (ruimer + schoner dan 4 op deze breedte). */
	body.woocommerce .fleur-shop__main ul.products,
	body.archive .fleur-shop__main ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	/* Krappere kolom-gap (filter↔grid) + minder onderruimte onder de sectie. */
	body.woocommerce .fleur-shop,
	body.archive .fleur-shop {
		gap: 32px;
		margin-bottom: 48px;
	}
}
