/* LuxeFashion productpagina — herontwerp.
   Alleen geladen op de productpagina (is_product()), zie lf_enqueue_assets(). */

/* ---------- Layout: twee kolommen ---------- */
body.single-product div.product {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 48px;
	align-items: flex-start;
}
body.single-product .woocommerce-product-gallery {
	background: #F1F1EE;
	position: sticky;
	top: 96px;
}
body.single-product .woocommerce-product-gallery img { width: 100%; height: auto; display: block; }
body.single-product .woocommerce-product-gallery__trigger { display: none; }
body.single-product div.product .summary.entry-summary { position: static; }

/* ---------- Lettertype-consistentie: Cormorant Garamond alleen voor de
   productnaam, al het andere op deze pagina in Inter. ---------- */
body.single-product .summary.entry-summary h1,
body.single-product .summary.entry-summary h2,
body.single-product .summary.entry-summary h3,
body.single-product .related.products h2,
body.single-product .lf-accordion summary {
	font-family: var(--lf-font-body);
}

/* 1. Kruimelpad */
body.single-product .ct-breadcrumbs,
body.single-product .ct-breadcrumbs a {
	color: var(--lf-muted) !important;
}
body.single-product .ct-breadcrumbs a:hover { color: var(--lf-sage) !important; }

/* 2. Productnaam */
body.single-product .product_title {
	font-family: var(--lf-font-heading) !important;
	font-weight: 400;
	font-size: 29px;
	color: var(--lf-ink);
	margin: 0 0 12px;
}

/* 3. Prijs — één keer, via de wrapper met de class die de snippet
   "Variatieprijs live update" nodig heeft (elementor-element-79c3265c). */
body.single-product .lf-product-price,
body.single-product .lf-product-price .price {
	font-family: var(--lf-font-body);
	font-weight: 500;
	font-size: 17px;
	color: var(--lf-ink);
	margin: 0 0 20px;
}
body.single-product .lf-product-price .price ins { text-decoration: none; font-weight: 600; }
body.single-product .lf-product-price .price del { opacity: 0.55; font-size: 15px; margin-right: 8px; }
/* Verborgen wisselblok van WooCommerce zelf (niet verwijderen — de snippet
   toont 'm zelf niet, die update alleen elementor-element-79c3265c). */
body.single-product .woocommerce-variation-price { display: none; }

/* 4. Scheidingslijn (Blocksy's eigen divider-element, na de prijs) */
body.single-product .ct-product-divider {
	display: block;
	height: 1px;
	background: var(--lf-line);
	margin: 4px 0 20px;
}

/* ---------- Voorraadstatus (indien getoond) ---------- */
body.single-product .stock {
	display: inline-block;
	margin: 0 0 16px;
	padding: 4px 10px;
	font-family: var(--lf-font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.3px;
}
body.single-product .stock.in-stock { background: #E4F1EA; color: var(--lf-sage); }
body.single-product .stock.out-of-stock { background: var(--lf-line); color: var(--lf-ink); }

/* ---------- 5. "Maat"-label + maattabel-link ---------- */
body.single-product table.variations { margin: 0; }
/* WooCommerce zet dit element zelf met een inline style op display:block
   zodra een variatie is gevonden — !important is hier dus nodig om dat te
   blijven overschrijven (zonder dit blijft de standaard "Wissen"-link met
   WooCommerce's eigen groene link-kleur zichtbaar zodra een maat gekozen is). */
body.single-product table.variations .reset_variations { display: none !important; }
body.single-product .lf-size-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 4px 0 10px;
}
body.single-product .lf-size-row__label {
	font-family: var(--lf-font-body);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--lf-muted);
}
body.single-product .lf-size-row__chart-link {
	background: none;
	border: none;
	padding: 0;
	font-family: var(--lf-font-body);
	font-size: 12px;
	color: var(--lf-ink);
	text-decoration: underline;
	cursor: pointer;
}
body.single-product .lf-size-row__chart-link:hover { color: var(--lf-sage); }

/* ---------- 6. Maathokjes ---------- */
body.single-product .lf-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
body.single-product .lf-size-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}
body.single-product .lf-size-swatch {
	min-width: 52px;
	height: 44px;
	padding: 0 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #FFFFFF;
	border: 1px solid var(--lf-line);
	color: var(--lf-ink);
	font-family: var(--lf-font-body);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
}
body.single-product .lf-size-swatch:hover:not(:disabled) { border-color: var(--lf-ink); }
body.single-product .lf-size-swatch--selected {
	border-width: 1.5px;
	border-color: var(--lf-ink);
	font-weight: 700;
}
body.single-product .lf-size-swatch--soldout {
	border-color: var(--lf-line);
	color: var(--lf-muted);
	text-decoration: line-through;
	cursor: not-allowed;
	background: #FAFAF8;
}
body.single-product .lf-size-swatch:focus-visible {
	outline: 2px solid var(--lf-ink);
	outline-offset: 2px;
}

/* ---------- 7. Hoeveelheid + bestelknop ---------- */
body.single-product .ct-cart-actions {
	display: flex;
	align-items: stretch;
	gap: 12px;
	margin: 0 0 8px;
}
body.single-product .quantity {
	width: 96px;
	flex: 0 0 96px;
}
body.single-product .quantity input.qty {
	width: 100%;
	height: 50px;
	padding: 0 8px;
	border: 1px solid var(--lf-line);
	background: #FFFFFF;
	font-family: var(--lf-font-body);
	font-size: 14px;
	text-align: center;
	box-sizing: border-box;
}
body.single-product .single_add_to_cart_button,
body.single-product button.add_to_cart_button {
	flex: 1 1 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	padding: 0 24px;
	background: var(--lf-ink) !important;
	color: #FFFFFF !important;
	border: none;
	font-family: var(--lf-font-body);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.2px;
	cursor: pointer;
}
body.single-product .single_add_to_cart_button:hover { opacity: 0.9; }
body.single-product .single_add_to_cart_button.disabled { opacity: 0.4; cursor: not-allowed; }

/* Subtiele verzend-USP, direct onder de knop — bewust klein en gedempt
   zodat hij niet concurreert met prijs, maatkeuze of de bestelknop. */
body.single-product .lf-product-shipping-usp {
	margin: 10px 0 0;
	font-family: var(--lf-font-body);
	font-size: 12px;
	color: var(--lf-muted);
}

/* Rustige melding i.p.v. WooCommerce's standaard rode balk. */
body.single-product .woocommerce-error,
body.single-product .woocommerce-message,
body.single-product .woocommerce-info {
	background: #F1F1EE;
	border: 1px solid var(--lf-line);
	border-left: 3px solid var(--lf-ink);
	color: var(--lf-ink);
	font-family: var(--lf-font-body);
	font-size: 13px;
	padding: 14px 16px;
	margin: 0 0 16px;
	list-style: none;
}
body.single-product .woocommerce-error::before,
body.single-product .woocommerce-message::before,
body.single-product .woocommerce-info::before {
	display: none;
}

/* ---------- 8. Uitklapblokken ---------- */
body.single-product .lf-accordion {
	margin-top: 32px;
	border-top: 1px solid var(--lf-line);
}
body.single-product .lf-accordion__item {
	border-bottom: 1px solid var(--lf-line);
}
body.single-product .lf-accordion__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--lf-ink);
	cursor: pointer;
	list-style: none;
}
body.single-product .lf-accordion__item summary::-webkit-details-marker { display: none; }
body.single-product .lf-accordion__item summary::after {
	content: '+';
	font-size: 20px;
	font-weight: 400;
	color: var(--lf-muted);
	line-height: 1;
}
body.single-product .lf-accordion__item[open] summary::after { content: '\2212'; }
body.single-product .lf-accordion__panel {
	padding: 0 0 20px;
	font-family: var(--lf-font-body);
	font-size: 14px;
	line-height: 1.7;
	color: var(--lf-muted);
}
body.single-product .lf-accordion__panel img { max-width: 100%; height: auto; display: block; }
body.single-product .lf-accordion__panel p { margin: 0 0 1em; }
body.single-product .lf-accordion__panel p:last-child { margin-bottom: 0; }

/* ---------- Productmeta (artikelnummer/categorie) ---------- */
body.single-product .product_meta {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--lf-line);
}
body.single-product .product_meta,
body.single-product .product_meta a {
	font-family: var(--lf-font-body);
	font-size: 12px;
	color: var(--lf-muted) !important;
}
body.single-product .product_meta a:hover { color: var(--lf-sage) !important; }

/* ---------- Gerelateerde producten: erf de bestaande stijl, alleen het
   koptekst-lettertype hier naar Inter (zie regel bovenaan). ---------- */

/* ---------- Mobiel ---------- */
@media (max-width: 860px) {
	body.single-product div.product { grid-template-columns: 1fr; gap: 24px; }
	body.single-product .woocommerce-product-gallery { position: static; }
}
@media (max-width: 480px) {
	body.single-product,
	body.single-product div.product {
		max-width: 100%;
		overflow-x: hidden;
	}
	body.single-product .ct-cart-actions { flex-wrap: wrap; }
	body.single-product .quantity { flex: 1 1 100%; width: 100%; }
	body.single-product .single_add_to_cart_button,
	body.single-product button.add_to_cart_button {
		flex: 1 1 100%;
		min-height: 48px;
	}
	body.single-product .lf-size-swatch { min-height: 44px; }
}
