/*
 * Kerlys — Catalogue & fiche produit (WooCommerce)
 * Chargé uniquement sur les pages WooCommerce (voir functions.php).
 * S'appuie sur les classes natives WooCommerce (ul.products, .variations,
 * .single_variation_wrap...) plutôt que de les remplacer, pour ne pas casser les
 * hooks/JS natifs (sélecteur de variation, ajout panier AJAX...).
 */

/* ---------- Fil d'Ariane ---------- */

.kerlys-breadcrumb {
	font-size: 13px;
	color: var(--text-muted);
	margin-bottom: 16px;
}

.kerlys-breadcrumb a {
	color: var(--text-muted);
	text-decoration: none;
}

.kerlys-breadcrumb a:hover,
.kerlys-breadcrumb a:focus-visible {
	color: var(--color-primary);
	text-decoration: underline;
}

.kerlys-breadcrumb span[aria-hidden="true"] {
	margin: 0 6px;
}

.kerlys-breadcrumb--on-dark,
.kerlys-breadcrumb--on-dark a {
	color: var(--text-muted-4);
}

.kerlys-breadcrumb--on-dark a:hover,
.kerlys-breadcrumb--on-dark a:focus-visible {
	color: #fff;
}

/* ================= Catalogue ================= */

.kerlys-shop {
	background: var(--color-surface);
	padding-bottom: 64px;
}

/* ---------- Bandeau de titre foncé ---------- */

.kerlys-shop__band {
	background: var(--footer-bg);
	color: #fff;
}

.kerlys-shop__band-inner {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 40px 32px 48px;
}

.kerlys-shop__eyebrow {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent-light);
}

.kerlys-shop__title {
	font-family: var(--font-display);
	font-weight: 700;
	color: #fff;
	font-size: 36px;
	margin: 0 0 12px;
	text-transform: uppercase;
}

.kerlys-shop__band-inner .term-description,
.kerlys-shop__band-inner .page-description {
	color: var(--text-muted-4);
	margin: 0 0 24px;
	max-width: 640px;
}

.kerlys-shop__search {
	display: flex;
	align-items: center;
	max-width: 480px;
	background: #fff;
	border-radius: 999px;
	padding: 4px 4px 4px 20px;
	gap: 12px;
}

.kerlys-shop__search input[type="search"] {
	flex: 1;
	border: none;
	outline: none;
	font-family: var(--font-body);
	font-size: 14.5px;
	color: var(--color-text);
	background: transparent;
	min-width: 0;
}

.kerlys-shop__search button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	border: none;
	background: var(--color-primary);
	color: #fff;
	cursor: pointer;
	flex-shrink: 0;
}

.kerlys-shop__search button:hover,
.kerlys-shop__search button:focus-visible {
	background: var(--color-primary-hover);
}

/* ---------- Corps : sidebar + grille ---------- */

.kerlys-shop__body {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 32px 32px 0;
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 32px;
	align-items: start;
}

.kerlys-shop__sidebar {
	position: sticky;
	top: 24px;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

/* En-tête "Filtres / Réinitialiser" de la sidebar (maquette). */
.kerlys-filter-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.kerlys-filter-head__title {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--color-secondary);
}

/* Palette de teintes (présentation, filtre à venir). */
.kerlys-teinte-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 10px;
}

.kerlys-teinte-swatch {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.12);
}

.kerlys-filter-group__note--light {
	margin: 0;
	font-size: 12px;
	color: var(--text-muted);
}

.kerlys-filter-group__title {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--color-secondary);
}

.kerlys-filter-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.kerlys-filter-checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--color-text);
	text-decoration: none;
	font-size: 14px;
}

.kerlys-filter-checkbox__box {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	border-radius: 4px;
	border: 1.5px solid #C7D0D5;
	background: #fff;
	position: relative;
}

.kerlys-filter-checkbox.is-checked .kerlys-filter-checkbox__box {
	background: var(--color-primary);
	border-color: var(--color-primary);
}

.kerlys-filter-checkbox.is-checked .kerlys-filter-checkbox__box::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 1px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.kerlys-filter-checkbox__label {
	flex: 1;
}

.kerlys-filter-checkbox.is-checked .kerlys-filter-checkbox__label {
	color: var(--color-primary);
	font-weight: 600;
}

.kerlys-filter-checkbox__count {
	color: var(--text-muted);
	font-size: 12.5px;
}

.kerlys-filter-checkbox:hover .kerlys-filter-checkbox__label,
.kerlys-filter-checkbox:focus-visible .kerlys-filter-checkbox__label {
	color: var(--color-primary);
}

.kerlys-filter-group--soon .kerlys-filter-group__note {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--text-muted);
	background: var(--color-surface);
	border: 1px dashed var(--border);
	border-radius: 8px;
	padding: 12px 14px;
}

.kerlys-filter-group--soon .kerlys-filter-group__note code {
	background: #fff;
	border-radius: 3px;
	padding: 1px 4px;
}

.kerlys-filter-reset {
	align-self: flex-start;
	color: var(--color-primary);
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
}

.kerlys-filter-reset:hover,
.kerlys-filter-reset:focus-visible {
	text-decoration: underline;
}

.kerlys-shop__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding-bottom: 16px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--border);
	color: var(--text-muted);
	font-size: 14px;
}

.kerlys-shop__toolbar .woocommerce-ordering select {
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 8px 12px;
	font-family: var(--font-body);
	color: var(--color-text);
	background: #fff;
}

/* Cartes ~300px de large (mini) × 500px de haut, colonnes automatiques —
   ≈ 3 colonnes sur desktop comme la maquette (demande du 02/09). */
.kerlys-shop ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 28px 24px;
	list-style: none;
	margin: 0;
	padding: 0 0 48px;
}

/* Le clearfix WooCommerce (ul.products::before/::after, display:table) devient
   un item de grille et occupait la première cellule — les cartes démarraient en
   cellule 2. Suppression des pseudo-éléments. */
.woocommerce .kerlys-shop ul.products::before,
.woocommerce .kerlys-shop ul.products::after,
.woocommerce-page .kerlys-shop ul.products::before,
.woocommerce-page .kerlys-shop ul.products::after,
.kerlys-shop ul.products::before,
.kerlys-shop ul.products::after {
	content: none !important;
	display: none !important;
}

/* woocommerce-layout.css impose float:left + width:22.05% + margin 3.8% aux
   li.product (.columns-4), avec une spécificité supérieure à .kerlys-product-card ;
   en grille CSS ce pourcentage se résout contre la colonne (~330px) et écrasait
   les cartes à ~66px de large (constaté aux DevTools le 02/09). Neutralisation. */
.woocommerce .kerlys-shop ul.products li.product,
.woocommerce-page .kerlys-shop ul.products li.product,
.kerlys-shop ul.products li.product {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	clear: none !important;
}

@media (max-width: 1180px) {
	.kerlys-shop__body {
		grid-template-columns: 240px 1fr;
	}
}

@media (max-width: 960px) {
	.kerlys-shop__body {
		grid-template-columns: 1fr;
	}
	.kerlys-shop__sidebar {
		position: static;
	}
	.kerlys-shop ul.products {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 780px) {
	.kerlys-shop__band-inner {
		padding: 32px 20px 36px;
	}
	.kerlys-shop__title {
		font-size: 28px;
	}
	.kerlys-shop__body {
		padding: 24px 20px 0;
		gap: 20px;
	}
	.kerlys-shop ul.products {
		gap: 20px 16px;
	}
}

@media (max-width: 480px) {
	.kerlys-shop ul.products {
		grid-template-columns: 1fr;
	}
}

/* ---------- Carte produit ---------- */

.kerlys-product-card {
	list-style: none;
	float: none;
	width: auto;
	min-height: 500px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	transition: border-color 0.15s ease;
	display: flex;
	flex-direction: column;
}

.kerlys-product-card a.woocommerce-loop-product__link {
	flex: 1;
}

.kerlys-product-card:hover,
.kerlys-product-card:focus-within {
	border-color: var(--color-primary);
}

.kerlys-product-card a.woocommerce-loop-product__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.kerlys-product-thumb {
	position: relative;
	display: block;
	background: #F3F5F6;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.kerlys-product-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	display: block;
	padding: 16px;
	box-sizing: border-box;
}

.kerlys-product-thumb__pill {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #fff;
	border: 1px solid var(--border);
	color: var(--color-secondary);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
}

.kerlys-product-thumb__badge {
	position: absolute;
	bottom: 10px;
	right: 10px;
	background: var(--footer-bg);
	color: #fff;
	font-size: 11px;
	padding: 4px 10px;
	border-radius: 4px;
}

/* Eyebrow gamme au-dessus du titre (maquette catalogue). */
.kerlys-product-eyebrow {
	display: block;
	margin: 16px 16px 2px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--color-primary);
}

/* Sélecteur renforcé : woocommerce.css (.woocommerce ul.products li.product
   .woocommerce-loop-product__title { margin: 0 }) écrasait notre marge gauche. */
.woocommerce .kerlys-shop ul.products li.product .woocommerce-loop-product__title,
.kerlys-product-card .woocommerce-loop-product__title {
	font-family: var(--font-body);
	font-size: 18px;
	font-weight: 600;
	color: var(--color-text);
	margin: 4px 16px 4px;
	padding: 0;
}

.kerlys-product-card__desc {
	margin: 4px 16px 8px;
	font-size: 13.5px;
	font-weight: 300;
	line-height: 1.45;
	color: var(--text-muted);
}

.kerlys-product-card .star-rating {
	margin: 0 16px 4px;
}

.kerlys-product-thumb-sizes {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 16px 8px;
}

.kerlys-product-thumb-sizes__pill {
	display: inline-block;
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 3px 10px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--text-muted);
}

/* Pied de carte : prix à gauche, bouton "Commander" à droite (maquette). */
.kerlys-product-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 4px 16px 16px;
	margin-top: auto;
}

.kerlys-product-card .price {
	display: block;
	margin: 0;
	color: var(--color-secondary);
	font-weight: 600;
	font-size: 19px;
}

.kerlys-price-fallback {
	display: inline-block;
	color: var(--color-secondary);
	background: var(--color-surface);
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 3px 10px;
	font-size: 13px;
	font-weight: 500;
}

/* Bouton "Commander" foncé, aligné à droite comme la maquette catalogue. */
.kerlys-product-card .button.add_to_cart_button,
.kerlys-product-card .button.product_type_variable {
	display: inline-block;
	flex-shrink: 0;
	margin: 0;
	text-align: center;
	background: var(--color-secondary);
	border: none;
	color: #fff;
	border-radius: 999px;
	padding: 10px 20px;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.15s ease;
}

.kerlys-product-card .button.add_to_cart_button:hover,
.kerlys-product-card .button.add_to_cart_button:focus-visible,
.kerlys-product-card .button.product_type_variable:hover,
.kerlys-product-card .button.product_type_variable:focus-visible {
	background: var(--color-primary);
	color: #fff;
}

/* ---------- État vide (aucun produit publié dans la gamme) ---------- */

.kerlys-empty-state {
	max-width: 480px;
	margin: 48px auto;
	text-align: center;
	padding: 40px 32px;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 16px;
}

.kerlys-empty-state__title {
	font-family: var(--font-display);
	color: var(--color-secondary);
	font-size: 22px;
	margin: 0 0 12px;
}

.kerlys-empty-state__text {
	color: var(--text-muted);
	margin: 0 0 24px;
}

/* ================= Fiche produit ================= */

.kerlys-product-page {
	background: var(--color-surface);
	padding: 32px 0 80px;
}

.kerlys-product-page__inner {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 32px;
}

.kerlys-product-hero {
	display: grid;
	grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
	gap: 56px;
	align-items: start;
	margin-top: 8px;
}

/* ---------- Galerie ---------- */

.kerlys-product-gallery__main {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 16px;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 24px;
}

.kerlys-product-gallery__main img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.kerlys-product-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-top: 12px;
}

.kerlys-product-gallery__thumb {
	background: #fff;
	border: 1.5px solid var(--border);
	border-radius: 10px;
	padding: 6px;
	aspect-ratio: 1 / 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.kerlys-product-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.kerlys-product-gallery__thumb.is-active,
.kerlys-product-gallery__thumb:hover,
.kerlys-product-gallery__thumb:focus-visible {
	border-color: var(--color-primary);
}

.kerlys-gallery-badge {
	margin: 12px 0 0;
	font-size: 13px;
	color: var(--text-muted);
	text-align: center;
}

/* ---------- Colonne info ---------- */

.kerlys-product-info__eyebrow {
	margin: 0 0 8px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-primary);
}

.kerlys-product-info__title {
	font-family: var(--font-display);
	font-weight: 700;
	text-transform: uppercase;
	color: var(--color-secondary);
	font-size: 32px;
	margin: 0 0 12px;
}

.kerlys-product-info__desc {
	color: var(--color-text);
	margin-bottom: 16px;
	max-width: 480px;
}

.kerlys-product-info .woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
}

.kerlys-product-info > .price {
	display: block;
	font-size: 22px;
	font-weight: 600;
	color: var(--color-secondary);
	margin-bottom: 16px;
}

/* Formulaire de variation natif — habillage "pastilles" par-dessus (cf.
   assets/js/product-options.js). Le <select> ne disparaît que si les pastilles
   ont bien été générées (form.kerlys-has-pills), jamais par défaut. */

.kerlys-product-info__variations table.variations {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 4px;
}

.kerlys-product-info__variations table.variations th.label {
	text-align: left;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--text-muted-3);
	padding: 0 0 10px;
}

.kerlys-product-info__variations table.variations td.value select {
	width: 100%;
	max-width: 320px;
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: 8px;
	font-family: var(--font-body);
	color: var(--color-text);
	background: #fff;
}

.kerlys-product-info__variations form.kerlys-has-pills .kerlys-pills-source {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.kerlys-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 20px;
}

.kerlys-pills__btn {
	border: 1.5px solid var(--border);
	background: #fff;
	border-radius: 10px;
	padding: 10px 20px;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 600;
	color: var(--color-secondary);
	cursor: pointer;
}

.kerlys-pills__btn[aria-pressed="true"] {
	border-color: var(--color-primary);
	background: rgba(81, 178, 170, 0.1);
	color: var(--color-primary);
}

.kerlys-pills__btn:hover,
.kerlys-pills__btn:focus-visible {
	border-color: var(--color-primary);
}

.kerlys-product-info__variations .woocommerce-variation-price .price {
	font-size: 20px;
	font-weight: 600;
	color: var(--color-secondary);
	display: block;
	margin-bottom: 12px;
}

.kerlys-product-info__variations .reset_variations {
	display: inline-block;
	margin: 0 0 16px;
	font-size: 13px;
	color: var(--text-muted);
}

.kerlys-qty-enhanced {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--border);
	border-radius: 999px;
	overflow: hidden;
	margin-right: 12px;
}

.kerlys-qty-enhanced .qty {
	width: 48px;
	border: none;
	text-align: center;
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--color-text);
	-moz-appearance: textfield;
}

.kerlys-qty-enhanced .qty::-webkit-inner-spin-button,
.kerlys-qty-enhanced .qty::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.kerlys-qty__btn {
	width: 32px;
	height: 36px;
	border: none;
	background: var(--color-surface);
	color: var(--color-secondary);
	font-size: 16px;
	cursor: pointer;
}

.kerlys-qty__btn:hover,
.kerlys-qty__btn:focus-visible {
	background: var(--border);
}

.kerlys-product-info__variations .single_add_to_cart_button,
.kerlys-product-info__variations .button.wc-variation-selection-needed {
	background: var(--color-primary);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 13px 32px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 14px;
	cursor: pointer;
}

.kerlys-product-info__variations .single_add_to_cart_button:hover,
.kerlys-product-info__variations .single_add_to_cart_button:focus-visible {
	background: var(--color-primary-hover);
}

.kerlys-product-info__variations .single_add_to_cart_button:disabled {
	background: #C7D0D5;
	cursor: not-allowed;
}

.kerlys-product-info :is(a, button, select, input):focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

/* ---------- Nuancier RAL (cosmétique) ---------- */

.kerlys-ral-nuancier {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
}

.kerlys-ral-nuancier__label {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--text-muted-3);
}

.kerlys-ral-nuancier__preview {
	width: 56px;
	height: 56px;
	border-radius: 12px;
	border: 1px solid var(--border);
	margin-bottom: 8px;
}

.kerlys-ral-nuancier__selected {
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 600;
	color: var(--color-secondary);
}

.kerlys-ral-nuancier__grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 10px;
	max-width: 360px;
	margin-bottom: 14px;
}

.kerlys-ral-swatch {
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	border: 1.5px solid var(--border);
	cursor: pointer;
	padding: 0;
}

.kerlys-ral-swatch.is-selected,
.kerlys-ral-swatch:hover,
.kerlys-ral-swatch:focus-visible {
	border-color: var(--color-secondary);
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-primary);
}

.kerlys-ral-nuancier__note {
	margin: 0;
	max-width: 460px;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--text-muted);
}

/* Variante "teintes bois" (Gamme Lasure) : pastilles en photo — 5 colonnes et
   un aperçu plus grand pour laisser voir le veinage. */
.kerlys-ral-nuancier--bois .kerlys-ral-nuancier__grid {
	grid-template-columns: repeat(5, 1fr);
	max-width: 380px;
}

.kerlys-ral-nuancier--bois .kerlys-ral-nuancier__preview {
	width: 72px;
	height: 72px;
}

/* ---------- Meta (réf / livraison / fabrication) ---------- */

.kerlys-product-meta {
	list-style: none;
	margin: 24px 0 0;
	padding: 20px 0 0;
	border-top: 1px solid var(--border);
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	font-size: 13.5px;
	color: var(--text-muted);
}

/* ---------- Onglets ---------- */

.kerlys-product-tabs {
	margin-top: 56px;
}

.kerlys-product-tabs__list {
	display: flex;
	gap: 8px;
	border-bottom: 1px solid var(--border);
}

.kerlys-product-tabs__tab {
	background: none;
	border: none;
	padding: 14px 22px;
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 600;
	color: var(--text-muted);
	cursor: pointer;
	border-bottom: 3px solid transparent;
	margin-bottom: -1px;
}

.kerlys-product-tabs__tab[aria-selected="true"] {
	color: var(--color-secondary);
	border-bottom-color: var(--color-primary);
}

.kerlys-product-tabs__panel {
	padding: 28px 4px;
	max-width: 760px;
	color: var(--color-text);
	line-height: 1.7;
}

.kerlys-product-tabs__panel[hidden] {
	display: none;
}

.kerlys-specs-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.kerlys-specs-table th,
.kerlys-specs-table td {
	text-align: left;
	padding: 10px 14px;
	border-bottom: 1px solid var(--border);
	vertical-align: top;
}

.kerlys-specs-table th {
	width: 38%;
	color: var(--text-muted);
	font-weight: 600;
}

/* ---------- Fiches associées ---------- */

.kerlys-product-page .related.products {
	margin-top: 56px;
}

.kerlys-product-page .related.products > h2 {
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--color-secondary);
	font-size: 24px;
}

.kerlys-product-page .related.products ul.products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	list-style: none;
	padding: 0;
}

@media (max-width: 900px) {
	.kerlys-product-hero {
		grid-template-columns: 1fr;
	}
	.kerlys-product-page__inner {
		padding: 0 20px;
	}
	.kerlys-product-tabs__list {
		overflow-x: auto;
	}
	.kerlys-product-page .related.products ul.products {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.kerlys-product-info__title {
		font-size: 26px;
	}
	.kerlys-ral-nuancier__grid {
		grid-template-columns: repeat(5, 1fr);
		max-width: none;
	}
	.kerlys-product-page .related.products ul.products {
		grid-template-columns: 1fr;
	}
}

/* ================= Panier (bloc WooCommerce) ================= */

/* Vignette produit réduite de 30 % (demande du 01/09). */
.wc-block-cart .wc-block-cart-item__image {
	width: 70px;
}

.wc-block-cart .wc-block-cart-item__image img {
	max-width: 70px;
	height: auto;
}

/* Lien de suppression natif du bloc panier, rendu bien visible. */
.wc-block-cart .wc-block-cart-item__remove-link {
	display: inline-block;
	margin-top: 6px;
	color: #B3261E;
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.wc-block-cart .wc-block-cart-item__remove-link:hover,
.wc-block-cart .wc-block-cart-item__remove-link:focus-visible {
	color: #8C1D18;
}

/* Panier — « Nouveau dans la boutique » (panier vide) : c'est le bloc legacy
   woocommerce/product-new (.wc-block-grid), rendu côté serveur — pas le composant
   React .wc-block-components-product-image visé par les premières passes.
   Demandes du 02/09 : margin 120px, gap 40px entre vignettes, images à 50 %. */
.woocommerce-cart .wp-block-product-new {
	margin: 120px auto;
}

.woocommerce-cart .wc-block-grid__products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce-cart .wc-block-grid__product {
	margin: 0 !important;
	padding: 0;
	width: auto;
	max-width: none !important;
}

.woocommerce-cart .wc-block-grid__product-image img {
	max-width: 50% !important;
	width: auto !important;
	height: auto !important;
	margin: 0 auto;
	display: block;
}

@media (max-width: 900px) {
	.woocommerce-cart .wc-block-grid__products {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 520px) {
	.woocommerce-cart .wc-block-grid__products {
		grid-template-columns: 1fr;
	}
}

/* Libellé "Nombre de pots" au-dessus du stepper de quantité (fiche produit). */
.kerlys-qty-label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--text-muted-3);
}

/* Commutateur Litres / Kilos du filtre Contenance (demande du 02/09). */
.kerlys-unit-toggle {
	display: flex;
	width: fit-content;
	border: 1px solid var(--border);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 14px;
}

.kerlys-unit-toggle__btn {
	padding: 7px 18px;
	font-size: 13px;
	font-weight: 600;
	color: var(--text-muted);
	text-decoration: none;
	background: #fff;
}

.kerlys-unit-toggle__btn.is-active {
	background: var(--color-primary);
	color: #fff;
}

.kerlys-unit-toggle__btn:not(.is-active):hover,
.kerlys-unit-toggle__btn:not(.is-active):focus-visible {
	color: var(--color-primary);
}

/* ================================================================
   Panier & Commander — refonte maquette Claude Design (02/09)
   Pages en blocs WooCommerce (wc-block-*) : on restyle les classes
   natives, scopées sous .kerlys-wc (posé sur <main> par page.php).
   Récapitulatif sombre #202E37, cartes blanches bord #E7EAED r16,
   boutons pill, accent #51B2AA / #78C9B9 sur fond sombre.
   ================================================================ */

/* ---------- Bandeau titre (Étape 1/2, Étape 2/2) ---------- */

.kerlys-wc {
	background: var(--color-surface);
	padding-bottom: 96px;
}

.kerlys-wc-band__inner {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 40px 32px 44px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

.kerlys-wc-band__title {
	margin-bottom: 0;
}

.kerlys-wc-band__link {
	color: var(--text-muted-4);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.kerlys-wc-band__link:hover,
.kerlys-wc-band__link:focus-visible {
	color: #fff;
}

/* ---------- Conteneur des blocs ---------- */

.kerlys-wc .wp-block-woocommerce-cart,
.kerlys-wc .wp-block-woocommerce-checkout {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 40px 32px 0;
	font-family: var(--font-body);
}

/* Deux colonnes : contenu + récapitulatif 400px (desktop). */
.kerlys-wc .wc-block-components-sidebar-layout.is-large .wc-block-components-main {
	width: calc(100% - 440px);
	padding-right: 40px;
	padding-left: 0;
}

.kerlys-wc .wc-block-components-sidebar-layout.is-large .wc-block-components-sidebar {
	width: 440px;
	position: sticky;
	top: 24px;
}

/* ---------- Récapitulatif sombre (panier ET commander) ---------- */

.kerlys-wc .wc-block-components-sidebar {
	background: var(--color-secondary);
	border-radius: 16px;
	padding: 32px;
	color: #fff;
}

/* Titre "Totaux du panier" remplacé visuellement par "Récapitulatif". */
.kerlys-wc .wc-block-cart__totals-title {
	font-size: 0;
	line-height: 0;
	border: none;
	padding: 0 0 4px;
	text-align: left;
}

.kerlys-wc .wc-block-cart__totals-title::after {
	content: "Récapitulatif";
	display: block;
	font-family: var(--font-body);
	font-size: 20px;
	line-height: 1.3;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #fff;
}

.kerlys-wc .wc-block-components-checkout-order-summary__title {
	color: #fff;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.kerlys-wc .wc-block-components-sidebar .wc-block-components-totals-wrapper {
	border-top-color: rgba(255, 255, 255, 0.12);
}

.kerlys-wc .wc-block-components-sidebar .wc-block-components-totals-item,
.kerlys-wc .wc-block-components-sidebar .wc-block-components-totals-item__label {
	color: #B7C2C9;
	font-size: 14.5px;
}

.kerlys-wc .wc-block-components-sidebar .wc-block-components-totals-item__value {
	color: #fff;
	font-weight: 500;
}

.kerlys-wc .wc-block-components-sidebar .wc-block-components-totals-item__description,
.kerlys-wc .wc-block-components-sidebar .wc-block-components-totals-shipping__via,
.kerlys-wc .wc-block-components-sidebar .wc-block-components-shipping-address,
.kerlys-wc .wc-block-components-sidebar small {
	color: #8C99A1;
	font-size: 12.5px;
}

/* Valeur de la ligne Livraison / Retrait en teal clair. */
.kerlys-wc .wc-block-components-sidebar .wc-block-components-totals-shipping .wc-block-components-totals-item__value {
	color: var(--accent-light);
}

/* Total final : gros, blanc. */
.kerlys-wc .wc-block-components-sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.kerlys-wc .wc-block-components-sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	color: #fff;
	font-weight: 600;
}

.kerlys-wc .wc-block-components-sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 26px;
}

/* Liens et boutons radio dans la sidebar sombre. */
.kerlys-wc .wc-block-components-sidebar a,
.kerlys-wc .wc-block-components-sidebar .wc-block-components-totals-coupon-link {
	color: var(--accent-light);
}

.kerlys-wc .wc-block-components-sidebar a:hover,
.kerlys-wc .wc-block-components-sidebar a:focus-visible {
	color: #fff;
}

.kerlys-wc .wc-block-components-sidebar .wc-block-components-radio-control__option,
.kerlys-wc .wc-block-components-sidebar .wc-block-components-radio-control__label {
	color: #fff;
	font-size: 14px;
}

.kerlys-wc .wc-block-components-sidebar .wc-block-components-radio-control__description,
.kerlys-wc .wc-block-components-sidebar .wc-block-components-radio-control__secondary-label {
	color: #B7C2C9;
}

.kerlys-wc .wc-block-components-sidebar input[type="radio"] {
	accent-color: var(--accent-light);
}

/* Champ code promo sur fond sombre. */
.kerlys-wc .wc-block-components-sidebar .wc-block-components-totals-coupon input[type="text"] {
	background: #fff;
	border: none;
	border-radius: 8px;
	color: var(--color-text);
}

.kerlys-wc .wc-block-components-sidebar .wc-block-components-totals-coupon label {
	color: var(--text-muted-3);
}

.kerlys-wc .wc-block-components-sidebar .wc-block-components-totals-coupon .wc-block-components-button {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-weight: 600;
}

/* CTA "Passer à la caisse" : pill blanc sur fond sombre. */
.kerlys-wc .wc-block-cart__submit-container .wc-block-cart__submit-button {
	background: #fff;
	color: var(--color-secondary);
	border: none;
	border-radius: 999px;
	padding: 16px 24px;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	width: 100%;
	transition: background 0.15s ease;
}

.kerlys-wc .wc-block-cart__submit-container .wc-block-cart__submit-button:hover,
.kerlys-wc .wc-block-cart__submit-container .wc-block-cart__submit-button:focus-visible {
	background: #EAF6F4;
	color: var(--color-secondary);
}

/* ---------- Barre "Livraison offerte dès X €" (cart-progress.js) ---------- */

.kerlys-ship-progress {
	margin-bottom: 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.kerlys-ship-progress__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.kerlys-ship-progress__label {
	font-size: 12.5px;
	font-weight: 500;
	color: #8C99A1;
}

.kerlys-ship-progress__status {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--accent-light);
}

.kerlys-ship-progress__track {
	height: 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	overflow: hidden;
}

.kerlys-ship-progress__fill {
	height: 100%;
	border-radius: 999px;
	background: var(--accent-light);
	width: 0;
	transition: width 0.3s ease;
}

/* ---------- Panier : tableau des articles ---------- */

.kerlys-wc .wc-block-cart-items {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 10px 28px 14px;
}

.kerlys-wc .wc-block-cart-items th {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--text-muted-4);
	padding: 18px 0 14px;
	border-bottom: 1px solid #EEF0F2;
}

.kerlys-wc .wc-block-cart-items td {
	border-top: none;
	border-bottom: 1px solid #EEF0F2;
	padding: 22px 0;
}

.kerlys-wc .wc-block-cart-items tr:last-child td {
	border-bottom: none;
}

/* Vignette produit sur pastille grise. */
.kerlys-wc .wc-block-cart-item__image a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	background: #F3F5F6;
	border-radius: 10px;
	padding: 6px;
	box-sizing: border-box;
}

.kerlys-wc .wc-block-cart-item__image img {
	background: transparent;
	max-height: 100%;
}

.kerlys-wc .wc-block-components-product-name {
	font-weight: 600;
	font-size: 16px;
	color: var(--color-secondary);
	text-decoration: none;
}

.kerlys-wc .wc-block-components-product-name:hover,
.kerlys-wc .wc-block-components-product-name:focus-visible {
	color: var(--color-primary);
}

.kerlys-wc .wc-block-cart-item__product .wc-block-components-product-details,
.kerlys-wc .wc-block-cart-item__product .wc-block-components-product-metadata {
	font-size: 13px;
	color: var(--text-muted);
}

.kerlys-wc .wc-block-cart-item__prices {
	font-size: 12.5px;
	color: var(--text-muted-4);
}

.kerlys-wc .wc-block-cart-item__total .wc-block-components-product-price {
	font-weight: 600;
	font-size: 16px;
	color: var(--color-secondary);
}

/* Stepper de quantité en pilule. */
.kerlys-wc .wc-block-components-quantity-selector {
	border: 1px solid var(--border);
	border-radius: 999px;
	background: #fff;
	overflow: hidden;
}

.kerlys-wc .wc-block-components-quantity-selector::after {
	display: none;
	border: none;
}

.kerlys-wc .wc-block-components-quantity-selector .wc-block-components-quantity-selector__input {
	border: none;
	background: transparent;
	font-weight: 600;
	font-size: 15px;
	color: var(--color-secondary);
}

.kerlys-wc .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	border: none;
	background: transparent;
	color: var(--color-secondary);
	font-size: 16px;
	opacity: 1;
}

.kerlys-wc .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover,
.kerlys-wc .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:focus-visible {
	background: #F1F3F5;
}

/* Cross-sells sous le tableau. */
.kerlys-wc .wp-block-woocommerce-product-collection {
	margin-top: 48px;
}

.kerlys-wc .wp-block-woocommerce-product-collection h2 {
	font-size: 22px;
	font-weight: 600;
	color: var(--color-secondary);
}

/* ---------- Commander : cartes de sections numérotées ---------- */

.kerlys-wc--checkout .wc-block-components-checkout-step {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 28px 32px;
	margin: 0 0 24px;
}

.kerlys-wc--checkout .wc-block-checkout__form {
	counter-reset: kerlys-step;
	max-width: none;
}

.kerlys-wc--checkout .wc-block-components-checkout-step__heading {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
}

.kerlys-wc--checkout .wc-block-components-checkout-step__heading::before {
	counter-increment: kerlys-step;
	content: counter(kerlys-step);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	flex-shrink: 0;
	border-radius: 50%;
	background: #EAF6F4;
	color: var(--color-primary-hover);
	font-size: 12.5px;
	font-weight: 700;
}

.kerlys-wc--checkout .wc-block-components-checkout-step__title {
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--text-muted-4);
	margin: 0;
}

.kerlys-wc--checkout .wc-block-components-checkout-step__description {
	font-size: 13px;
	color: var(--text-muted);
}

/* ---------- Commander : sélecteur Livraison / Retrait sur place ---------- */

.kerlys-wc--checkout .wc-block-checkout__shipping-method-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	border: none;
	background: transparent;
	padding: 0;
}

.kerlys-wc--checkout .wc-block-checkout__shipping-method-option {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	padding: 18px 20px;
	min-height: 84px;
	border: 1px solid var(--border) !important;
	border-radius: 12px !important;
	background: #fff !important;
	color: var(--color-secondary) !important;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.kerlys-wc--checkout .wc-block-checkout__shipping-method-option:hover,
.kerlys-wc--checkout .wc-block-checkout__shipping-method-option:focus-visible {
	border-color: var(--color-primary) !important;
}

.kerlys-wc--checkout .wc-block-checkout__shipping-method-option--selected {
	border-color: var(--color-primary) !important;
	box-shadow: inset 0 0 0 1px var(--color-primary);
	background: #EAF6F4 !important;
}

.kerlys-wc--checkout .wc-block-checkout__shipping-method-option-title {
	font-weight: 600;
	font-size: 15px;
	color: var(--color-secondary);
}

.kerlys-wc--checkout .wc-block-checkout__shipping-method-option-price {
	font-size: 13px;
	font-weight: 600;
	color: var(--color-primary-hover);
}

.kerlys-wc--checkout .wc-block-checkout__shipping-method-option svg {
	fill: var(--color-secondary);
}

/* ---------- Commander : champs de formulaire ---------- */

.kerlys-wc--checkout .wc-block-components-text-input input,
.kerlys-wc--checkout .wc-block-components-combobox .wc-block-components-combobox-control input,
.kerlys-wc--checkout .wc-block-checkout__form select,
.kerlys-wc--checkout .wc-block-checkout__form textarea {
	border: 1px solid var(--border);
	border-radius: 8px;
	background: #fff;
	color: var(--color-text);
	font-family: var(--font-body);
}

.kerlys-wc--checkout .wc-block-components-text-input input:focus,
.kerlys-wc--checkout .wc-block-components-combobox .wc-block-components-combobox-control input:focus,
.kerlys-wc--checkout .wc-block-checkout__form select:focus,
.kerlys-wc--checkout .wc-block-checkout__form textarea:focus {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(81, 178, 170, 0.15);
	outline: none;
}

/* Options de livraison (tarifs) et moyens de paiement : accent teal. */
.kerlys-wc--checkout .wc-block-components-radio-control__input {
	accent-color: var(--color-primary);
}

.kerlys-wc--checkout .wc-block-components-radio-control__input:checked {
	border-color: var(--color-primary);
	background: var(--color-primary);
}

.kerlys-wc--checkout .wc-block-components-radio-control-accordion-option,
.kerlys-wc--checkout .wc-block-components-radio-control__option {
	color: var(--color-text);
}

/* ---------- Commander : actions ---------- */

.kerlys-wc--checkout .wc-block-checkout__actions {
	background: transparent;
}

.kerlys-wc--checkout .wc-block-components-checkout-place-order-button {
	background: var(--color-primary);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 16px 36px;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	transition: background 0.15s ease;
}

.kerlys-wc--checkout .wc-block-components-checkout-place-order-button:hover,
.kerlys-wc--checkout .wc-block-components-checkout-place-order-button:focus-visible {
	background: var(--color-primary-hover);
}

.kerlys-wc--checkout .wc-block-components-checkout-return-to-cart-button {
	color: var(--text-muted);
	box-shadow: none;
}

.kerlys-wc--checkout .wc-block-components-checkout-return-to-cart-button:hover,
.kerlys-wc--checkout .wc-block-components-checkout-return-to-cart-button:focus-visible {
	color: var(--color-primary);
}

/* ---------- Commander : récapitulatif (articles) ---------- */

.kerlys-wc--checkout .wc-block-components-order-summary-item {
	color: #fff;
	font-size: 14px;
}

.kerlys-wc--checkout .wc-block-components-order-summary-item__image img {
	background: #fff;
	border-radius: 8px;
	padding: 3px;
}

.kerlys-wc--checkout .wc-block-components-order-summary-item__quantity {
	background: var(--accent-light);
	color: var(--color-secondary);
	border: none;
	box-shadow: none;
}

.kerlys-wc--checkout .wc-block-components-order-summary-item__description,
.kerlys-wc--checkout .wc-block-components-order-summary-item__meta {
	color: #B7C2C9;
	font-size: 12.5px;
}

.kerlys-wc--checkout .wc-block-components-order-summary-item__total-price {
	color: #fff;
	font-weight: 600;
}

/* ---------- Responsive ---------- */

@media (max-width: 780px) {
	.kerlys-wc-band__inner {
		padding: 32px 20px 36px;
	}

	.kerlys-wc .wp-block-woocommerce-cart,
	.kerlys-wc .wp-block-woocommerce-checkout {
		padding: 24px 16px 0;
	}

	.kerlys-wc .wc-block-components-sidebar {
		padding: 24px 20px;
	}

	.kerlys-wc .wc-block-cart-items {
		padding: 4px 16px 8px;
	}

	.kerlys-wc--checkout .wc-block-components-checkout-step {
		padding: 20px;
	}

	.kerlys-wc--checkout .wc-block-checkout__shipping-method-container {
		grid-template-columns: 1fr;
	}
}

/* ---------- Commander : CTA grisé tant que les CGV ne sont pas acceptées ----------
   Le bloc "terms" du checkout est en mode case à cocher (obligatoire) ; la
   validation native bloque déjà la soumission. Ici on grise en plus le bouton
   via :has() tant que la case n'est pas cochée (doublé par la validation
   serveur/React pour les navigateurs sans :has). */

.kerlys-wc--checkout .wc-block-checkout__form:has(.wc-block-checkout__terms input[type="checkbox"]:not(:checked)) .wc-block-components-checkout-place-order-button {
	background: #C7CFD4;
	color: #FFFFFF;
	pointer-events: none;
}

.kerlys-wc--checkout .wc-block-checkout__terms .wc-block-components-checkbox__input:checked {
	background: var(--color-primary);
	border-color: var(--color-primary);
}
