/* ==========================================================================
   Fiche produit et fiches location (woocommerce/single-product.php)
   Maquettes : « Fiche produit », « Location Raid Maroc / Raid Bardenas / Balade Off-road ».
   Le bloc d'achat contient le vrai formulaire WooCommerce et les champs des extensions :
   - Deposits & Partial Payments (Acowebs) : .awcdp-deposits-wrapper / .awcdp-radio ;
   - YITH Product Add-ons : #yith-wapo-container / .yith-wapo-addon / .yith-wapo-option / #wapo-total-price-table ;
   - RnB Booking & Rental : form.rnb-cart (.date-time-picker, .booking-pricing-info, .redq_request_for_a_quote).
   Responsive : 1100 / 900 / 700 / 480 px.
   ========================================================================== */

/* ---------- 01 · Héros ---------- */
.te-product-hero .te-crumbs li:last-child > span {
	display: inline-block; max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom;
}

/* Notices WooCommerce (ajouté au panier, erreurs) */
.te-product-notices .woocommerce-notices-wrapper:not(:empty) { padding-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.te-product-notices .woocommerce-message,
.te-product-notices .woocommerce-info,
.te-product-notices .woocommerce-error {
	margin: 0; padding: 14px 18px; border-radius: 12px; list-style: none; background: var(--white); border: 1px solid var(--line-2);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; font-size: 15px; font-weight: 600; color: var(--ink);
}
.te-product-notices .woocommerce-message { border-left: 4px solid var(--green); }
.te-product-notices .woocommerce-info { border-left: 4px solid var(--brown); }
.te-product-notices .woocommerce-error { border-left: 4px solid var(--red); flex-direction: column; align-items: flex-start; }
.te-product-notices .woocommerce-message .button,
.te-product-notices .woocommerce-info .button {
	order: 2; padding: 8px 18px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 14px; font-weight: 700; white-space: nowrap;
}
.te-product-notices .woocommerce-message .button:hover { background: var(--ink-2); color: var(--white); }

/* ---------- 02 · Réservation : galerie + bloc d'achat ---------- */
.te-product-buy {
	padding-top: 40px; padding-bottom: var(--section-y);
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start;
}

/* Galerie */
.te-gallery { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 130px; min-width: 0; }
.admin-bar .te-gallery { top: 162px; }
.te-gallery__stage { position: relative; aspect-ratio: 1 / 1; border-radius: 24px; overflow: hidden; background: var(--white); }
.te-gallery__slide {
	position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0;
	background: transparent; display: block; cursor: zoom-in;
}
.te-gallery__slide.is-active { animation: te-product-fade .5s var(--ease); }
.te-gallery__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.te-gallery__slide:focus-visible { outline-offset: -4px; border-radius: 24px; }
.te-gallery__badge {
	position: absolute; left: 18px; top: 18px; z-index: 1; pointer-events: none;
	padding: 6px 14px; border-radius: 999px; background: var(--brown); color: var(--ink); font-size: 13px; font-weight: 800; line-height: 1.4;
}
.te-gallery__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.te-gallery__thumb {
	padding: 0; margin: 0; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden;
	border: 2px solid transparent; background: var(--white); transition: border-color .2s;
}
.te-gallery__thumb:hover { border-color: var(--line-3); }
.te-gallery__thumb.is-active, .te-gallery__thumb[aria-pressed="true"] { border-color: var(--brown); }
.te-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes te-product-fade { from { opacity: 0; } to { opacity: 1; } }

/* Bloc d'achat */
.te-buy {
	min-width: 0; background: var(--white); border: 1px solid var(--line-2); border-radius: 24px; padding: 34px;
	display: flex; flex-direction: column; gap: 20px; box-shadow: 0 30px 60px -40px rgba(26, 23, 22, .4);
}
.te-buy__price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.te-buy__price { margin: 0; font: 400 40px/1 var(--marker); color: var(--ink); }
.te-buy__price del { font-size: .6em; color: var(--muted); margin-right: 8px; }
.te-buy__price ins { text-decoration: none; }
.te-buy__price .woocommerce-price-suffix, .te-buy__tax { font: 400 14px/1.4 var(--font); color: var(--muted); }
.te-buy__price .woocommerce-price-suffix { margin-left: 4px; }

.te-buy__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.te-buy__facts .te-pill { color: var(--ink); }

.te-buy__text { color: var(--text); text-wrap: pretty; }
.te-buy__text strong { color: var(--ink); }
.te-buy__short { display: flex; flex-direction: column; gap: 10px; }
.te-buy__short ul, .te-buy__short ol { padding-left: 20px; }
.te-buy__short h2, .te-buy__short h3, .te-buy__short h4 { font-size: 17px; font-family: var(--font); color: var(--ink); }

.te-buy__features { display: flex; flex-direction: column; gap: 10px; }
.te-buy__label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.te-buy__features ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.te-buy__features li {
	display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
	border: 1px solid var(--line-2); font-size: 14px; font-weight: 600;
}
.te-buy__features li span { color: var(--brown); }

.te-buy__quote { padding: 16px 18px; border-radius: 14px; background: var(--sand); font-size: 15px; line-height: 1.55; color: var(--text); }
.te-buy__quote strong { color: var(--ink); }
.te-buy__quote a { font-weight: 700; color: var(--brown-dark); }
.te-buy__quote a:hover { color: var(--ink); }
.te-buy__secure { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--text); }
.te-buy__secure .te-icon { flex: none; }

/* Zone formulaire WooCommerce */
.te-buy__form { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.te-buy__form:empty { display: none; }
.te-buy__form > script { display: none; }

/* Stock (« 7 en stock ») */
.te-buy p.stock { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--green); }
.te-buy p.stock::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #3E9A3E; }
.te-buy p.stock.out-of-stock { color: var(--red); }
.te-buy p.stock.out-of-stock::before { background: var(--red); }
.te-buy p.stock.available-on-backorder { color: var(--brown-dark); }
.te-buy p.stock.available-on-backorder::before { background: var(--brown); }

/* Formulaire : blocs des extensions en pleine largeur, quantité + bouton sur la même ligne */
.te-buy form.cart { margin: 0; }
.te-buy form.cart:not(.variations_form),
.te-buy .woocommerce-variation-add-to-cart {
	display: flex; flex-wrap: wrap; align-items: center; gap: 20px 10px;
}
.te-buy form.cart:not(.variations_form) > *,
.te-buy .woocommerce-variation-add-to-cart > * { flex: 1 1 100%; min-width: 0; margin: 0; }
.te-buy form.cart > .quantity,
.te-buy .woocommerce-variation-add-to-cart > .quantity { flex: 0 0 auto; }
.te-buy form.cart > .single_add_to_cart_button,
.te-buy .woocommerce-variation-add-to-cart > .single_add_to_cart_button,
.te-buy form.cart > .redq_request_for_a_quote { flex: 1 1 0; }
.te-buy form.cart > :empty:not(input):not(button):not(textarea):not(select) { display: none; }
.te-buy .quantity.hidden, .te-buy .inventory-qty-next { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden; opacity: 0; pointer-events: none; }
/* Produit « vendu à l'unité » (locations) : champ quantité caché, pas de pastille vide à côté du bouton. */
.te-buy .quantity.te-qty--hidden,
.te-buy .quantity:has(> input.qty[type="hidden"]) { display: none; }

/* Quantité (bouton − / + ajoutés par woocommerce.js) */
.te-buy .quantity {
	display: flex; align-items: center; height: 52px; border-radius: 999px; border: 1.5px solid var(--line-2); overflow: hidden; background: var(--white);
}
.te-buy .quantity input.qty {
	width: 64px; height: 100%; border: 0; background: transparent; text-align: center; font: 700 17px var(--font); color: var(--ink);
	padding: 0 6px; color-scheme: light;
}
.te-buy .quantity input.qty:focus { outline: none; }
.te-buy .quantity:focus-within { border-color: var(--brown); box-shadow: 0 0 0 3px rgba(166, 124, 82, .25); }
.te-buy .te-qty input.qty { width: 32px; padding: 0; -moz-appearance: textfield; appearance: textfield; }
.te-buy .te-qty input.qty::-webkit-outer-spin-button,
.te-buy .te-qty input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.te-qty__btn {
	width: 44px; height: 100%; border: 0; background: transparent; color: var(--ink); font: 400 20px/1 var(--font);
	display: inline-flex; align-items: center; justify-content: center; flex: none; transition: background .2s;
}
.te-qty__btn:hover { background: var(--sand); }
.te-qty__btn:focus-visible { outline-offset: -3px; border-radius: 999px; }

/* Bouton « Ajouter au panier » (.button : plus spécifique que « .woocommerce-page button.button » de woocommerce.css) */
.te-buy .single_add_to_cart_button,
.te-buy .single_add_to_cart_button.button {
	height: 52px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--brown); color: var(--ink);
	font: 700 16px/1.2 var(--font); display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-align: center;
	cursor: pointer; transition: background .25s;
}
.te-buy .single_add_to_cart_button::after { content: '→'; }
.te-buy .single_add_to_cart_button:hover { background: #B88C60; color: var(--ink); }
.te-buy .single_add_to_cart_button.disabled,
.te-buy .single_add_to_cart_button:disabled { opacity: .5; cursor: not-allowed; }
.te-buy .single_add_to_cart_button.loading { opacity: .6; }
.te-buy .added_to_cart { font-size: 14px; font-weight: 700; text-align: center; }

/* Produits variables */
.te-buy .variations_form { display: flex; flex-direction: column; gap: 20px; }
.te-buy table.variations { width: 100%; border-collapse: collapse; margin: 0; border: 0; }
.te-buy table.variations tbody { display: flex; flex-direction: column; gap: 14px; }
.te-buy table.variations tr { display: flex; flex-direction: column; gap: 7px; }
.te-buy table.variations th, .te-buy table.variations td { padding: 0; border: 0; text-align: left; background: none; }
.te-buy table.variations label,
.te-buy .rnb-cart h5 {
	margin: 0; font: 700 13px/1.3 var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.te-buy table.variations select,
.te-buy .yith-wapo-addon select,
.te-buy .yith-wapo-addon input[type="text"],
.te-buy .yith-wapo-addon input[type="number"],
.te-buy .yith-wapo-addon input[type="date"],
.te-buy .yith-wapo-addon input[type="email"],
.te-buy .yith-wapo-addon input[type="tel"],
.te-buy .yith-wapo-addon textarea,
.te-buy .rnb-cart select,
.te-buy .rnb-cart input[type="text"],
.te-buy .rnb-cart input[type="email"],
.te-buy .rnb-cart textarea {
	width: 100%; height: 50px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #FBF8F4;
	padding: 0 14px; font: 15px var(--font); color: var(--ink); color-scheme: light; transition: border-color .2s, box-shadow .2s;
}
.te-buy .yith-wapo-addon textarea, .te-buy .rnb-cart textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.te-buy table.variations select:focus,
.te-buy .yith-wapo-addon select:focus,
.te-buy .yith-wapo-addon input:focus,
.te-buy .yith-wapo-addon textarea:focus,
.te-buy .rnb-cart select:focus,
.te-buy .rnb-cart input:focus,
.te-buy .rnb-cart textarea:focus { outline: none; border-color: var(--brown); box-shadow: 0 0 0 3px rgba(166, 124, 82, .25); }
.te-buy .reset_variations {
	display: inline-flex; align-items: center; min-height: 40px; margin: 4px 0 -8px; padding: 0; border: 0; border-radius: 0; background: none;
	font: 700 14px/1.3 var(--font); color: var(--brown-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.te-buy .reset_variations:hover { color: var(--ink); }
.te-buy .single_variation_wrap { display: flex; flex-direction: column; gap: 20px; }
.te-buy .woocommerce-variation:empty { display: none; }
.te-buy .woocommerce-variation { display: flex; flex-direction: column; gap: 8px; }
.te-buy .woocommerce-variation-price .price { font: 400 30px/1 var(--marker); color: var(--ink); }
.te-buy .woocommerce-variation-price .woocommerce-price-suffix { font: 400 14px var(--font); color: var(--muted); }
.te-buy .woocommerce-variation-description { color: var(--text); font-size: 15px; }

/* Produits groupés */
.te-buy .woocommerce-grouped-product-list { width: 100%; border-collapse: collapse; }
.te-buy .woocommerce-grouped-product-list td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 15px; }
.te-buy .woocommerce-grouped-product-list .quantity { height: 44px; }

/* --- YITH Product Add-ons : options en lignes cochables --- */
.te-buy #yith-wapo-container { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.te-buy #yith-wapo-container:not(:has(.yith-wapo-block, #wapo-total-price-table)) { display: none; }
.te-buy .yith-wapo-block { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.te-buy .yith-wapo-addon {
	margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line); background: transparent !important;
	display: flex; flex-direction: column; gap: 12px;
}
.te-buy .yith-wapo-addon .addon-header { margin: 0; padding: 0; }
.te-buy .yith-wapo-addon .wapo-addon-title {
	margin: 0; padding: 0; font: 400 30px/1.15 var(--marker); color: var(--ink); cursor: default; pointer-events: none;
}
.te-buy .yith-wapo-addon .wapo-addon-title::before,
.te-buy .yith-wapo-addon .wapo-addon-title::after { display: none; }
/* La maquette montre les options ouvertes : l'accordéon de YITH est neutralisé. */
.te-buy .yith-wapo-addon .options-container { display: flex !important; flex-direction: column; gap: 12px; height: auto !important; margin: 0; padding: 0; }
.te-buy .wapo-addon-description { margin: 0; font-size: 15px; color: var(--text); }
.te-buy .yith-wapo-addon .options { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 10px !important; margin: 0; }
.te-buy .yith-wapo-option {
	position: relative; margin: 0; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--white);
	transition: border-color .2s, background .2s;
}
.te-buy .yith-wapo-option:hover { border-color: var(--line-3); }
.te-buy .yith-wapo-option.is-checked,
.te-buy .yith-wapo-option.selected,
.te-buy .yith-wapo-option:has(input:checked) { border-color: var(--brown); background: var(--sand-3); }
.te-buy .yith-wapo-option .label,
.te-buy .yith-wapo-option .option-container { margin: 0; padding: 0; display: block; width: auto; position: static; }
.te-buy .yith-wapo-option .checkbox-button-container,
.te-buy .yith-wapo-option .radio-button-container { position: static; }
.te-buy .yith-wapo-option .checkbox-button-container,
.te-buy .yith-wapo-option .radio-button-container { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: center; }
.te-buy .yith-wapo-option .checkboxbutton,
.te-buy .yith-wapo-option .radiobutton { display: flex; margin: 0; padding: 0; background: none; border: 0; width: auto; height: auto; }
.te-buy .yith-wapo-option .checkboxbutton::before, .te-buy .yith-wapo-option .checkboxbutton::after,
.te-buy .yith-wapo-option .radiobutton::before, .te-buy .yith-wapo-option .radiobutton::after { display: none; }
.te-buy .yith-wapo-option input[type="checkbox"],
.te-buy .yith-wapo-option input[type="radio"] {
	-webkit-appearance: none; appearance: none; position: relative; z-index: 2; opacity: 1;
	width: 20px; height: 20px; margin: 0; border-radius: 6px; border: 1.5px solid var(--ink); background: var(--white) center / 14px no-repeat;
	cursor: pointer; flex: none;
}
.te-buy .yith-wapo-option input[type="radio"] { border-radius: 50%; }
.te-buy .yith-wapo-option input[type="checkbox"]:checked {
	background-color: var(--ink);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}
.te-buy .yith-wapo-option input[type="radio"]:checked { background: var(--white); box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 10px var(--ink); }
.te-buy .yith-wapo-option input:focus-visible { outline: 3px solid var(--brown); outline-offset: 2px; }
.te-buy .yith-wapo-option .yith-wapo-addon-label,
.te-buy .yith-wapo-option label {
	display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; padding: 0;
	font: 500 15px/1.4 var(--font); color: var(--ink); cursor: pointer;
}
/* Toute la carte est cliquable (le libellé recouvre la ligne) */
.te-buy .yith-wapo-option .yith-wapo-addon-label::after { content: ''; position: absolute; inset: 0; border-radius: 14px; z-index: 1; }
.te-buy .yith-wapo-option .option-price { font-size: 15px; font-weight: 700; white-space: nowrap; color: var(--ink); opacity: 1; }
.te-buy .yith-wapo-option .option-price .brackets { display: none; }
.te-buy .yith-wapo-option .option-price del { font-weight: 400; color: var(--muted); }
.te-buy .yith-wapo-option .description { margin: 6px 0 0 34px; font-size: 13px; color: var(--muted); }
.te-buy .yith-wapo-option img { max-width: 60px; border-radius: 8px; }

/* Totaux YITH */
.te-buy #wapo-total-price-table { margin: 0; padding: 18px 20px; border-radius: 16px; background: var(--sand); font-size: 15px; }
.te-buy #wapo-total-price-table table { width: 100%; margin: 0; border: 0; border-collapse: collapse; }
.te-buy #wapo-total-price-table tbody { display: flex; flex-direction: column; gap: 8px; }
.te-buy #wapo-total-price-table tr { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.te-buy #wapo-total-price-table tr[style*="display: none"], .te-buy #wapo-total-price-table tr[style*="display:none"] { display: none; }
.te-buy #wapo-total-price-table th,
.te-buy #wapo-total-price-table td { padding: 0; border: 0; background: none; }
.te-buy #wapo-total-price-table th { font-weight: 400; color: var(--text); text-align: left; }
.te-buy #wapo-total-price-table td { font-weight: 700; color: var(--ink); text-align: right; }
.te-buy #wapo-total-price-table td small { font-weight: 400; font-size: 13px; color: var(--muted); }
.te-buy #wapo-total-price-table .wapo-total-order { padding-top: 8px; border-top: 1px solid var(--line-2); font-size: 17px; }
.te-buy #wapo-total-price-table .wapo-total-order th { font-weight: 700; color: var(--ink); }
.te-buy #wapo-total-price-table .wapo-total-order td { color: var(--brown-dark); }

/* --- Deposits & Partial Payments : deux cartes « Payer l'acompte » / « Régler le montant total » --- */
.te-buy .awcdp-deposits-wrapper { margin: 0; padding: 0; border: 0; background: none; }
.te-buy .awcdp-deposits-option { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.te-buy .awcdp-radio {
	position: relative; display: flex; flex-direction: column; justify-content: flex-start; gap: 2px; margin: 0;
	padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--white);
	transition: border-color .2s, background .2s;
}
.te-buy .awcdp-radio:hover { border-color: var(--line-3); }
.te-buy .awcdp-radio > div:not(.awcdp-deposits-description) { display: contents; }
.te-buy .awcdp-radio input[type="radio"] {
	position: absolute; top: 14px; right: 14px; width: 16px; height: 16px; margin: 0; opacity: 0; pointer-events: none;
}
.te-buy .awcdp-radio .awcdp-radio-label,
.te-buy .awcdp-radio label {
	margin: 0; padding: 0; font: 700 15px/1.35 var(--font); color: var(--ink); cursor: pointer;
}
.te-buy .awcdp-radio .awcdp-radio-label::before,
.te-buy .awcdp-radio label::before { display: none; }
/* Toute la carte est cliquable */
.te-buy .awcdp-radio .awcdp-radio-label::after,
.te-buy .awcdp-radio label::after { content: ''; position: absolute; inset: 0; border-radius: 14px; background: none; border: 0; width: auto; height: auto; transform: none; opacity: 1; }
.te-buy .awcdp-deposits-description {
	display: block !important; margin: 0; padding: 0; font: 500 13px/1.4 var(--font); color: var(--muted); background: none; border: 0;
}
.te-buy .awcdp-deposits-description span { font: inherit; color: inherit; }
.te-buy .awcdp-radio.is-checked,
.te-buy .awcdp-radio:has(input:checked) { border-color: var(--brown); background: var(--sand-3); }
.te-buy .awcdp-radio:has(input:focus-visible) { outline: 3px solid var(--brown); outline-offset: 2px; }

/* --- RnB (location à la journée) : dates, total, « Demande de devis » --- */
.te-buy .rnb-notice:empty, .te-buy .mfp-hide { display: none !important; }
.te-buy .rnb-loader { display: contents; }
.te-buy form.cart.rnb-cart > .date-time-picker { flex: 1 1 calc(50% - 5px); }
.te-buy .rnb-cart .rnb-component-wrapper h5 { margin-bottom: 7px; }
.te-buy .rnb-cart .pick-up-date-picker,
.te-buy .rnb-cart .drop-off-date-picker { position: relative; display: block; }
.te-buy .rnb-cart .pick-up-date-picker i,
.te-buy .rnb-cart .drop-off-date-picker i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.te-buy .rnb-cart .booking-pricing-info {
	padding: 16px 20px; border-radius: 16px; background: var(--sand); font-size: 15px; color: var(--text);
}
.te-buy .rnb-cart .booking-pricing-info .amount { font-size: 18px; font-weight: 700; color: var(--brown-dark); }
.te-buy .rnb-cart .redq_request_for_a_quote {
	height: 52px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--ink); color: var(--white);
	font: 700 16px/1.2 var(--font); cursor: pointer; transition: background .25s;
}
.te-buy .rnb-cart .redq_request_for_a_quote:hover { background: var(--ink-2); }

/* ---------- En-tête des sections 03 / 05 ---------- */
.te-product-head { display: flex; flex-direction: column; gap: 14px; }

/* ---------- 03 · Informations utiles ---------- */
.te-specs { list-style: none; display: grid; gap: 16px; margin-top: 40px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.te-specs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.te-specs--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.te-spec { padding: 26px 24px; border-radius: 20px; background: var(--sand); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.te-bg-sand .te-spec { background: var(--white); }
.te-spec__ico, .te-serenite__ico, .te-product-list__ico, .te-alert__ico {
	flex: none; border-radius: 50%; background: var(--brown); color: var(--ink); display: flex; align-items: center; justify-content: center;
}
.te-spec__ico { width: 40px; height: 40px; font-size: 16px; }
.te-spec__title { font: 400 24px/1.2 var(--marker); color: var(--ink); }
.te-spec__text { font-size: 15px; line-height: 1.6; color: var(--text); overflow-wrap: anywhere; }
.te-spec__text strong { color: var(--ink); }

.te-serenite {
	margin-top: 20px; border-radius: 24px; background: var(--ink); color: var(--white); padding: 40px 44px;
	display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 48px; align-items: start;
}
.te-serenite__head { display: flex; flex-direction: column; gap: 14px; }
.te-serenite__title { font: 400 30px/1.2 var(--marker); color: var(--white); }
.te-serenite__intro { color: #C9C0B8; }
.te-serenite__intro strong { color: var(--white); }
.te-serenite__list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.te-serenite__item {
	display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 16px 18px; border-radius: 16px;
	background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
	font-size: 15.5px; line-height: 1.55; color: #C9C0B8;
}
.te-serenite__item strong { color: var(--white); }
.te-serenite__ico { width: 26px; height: 26px; font-size: 13px; }

.te-alert { margin-top: 20px; border-radius: 20px; background: var(--ink); color: var(--white); padding: 24px 30px; display: flex; align-items: center; gap: 20px; }
.te-alert__ico { width: 46px; height: 46px; font-size: 22px; font-weight: 800; }
.te-alert p { font-size: 16px; line-height: 1.6; color: #C9C0B8; }
.te-alert strong { color: var(--white); }

/* ---------- 04 · Description ---------- */
.te-product-desc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.te-product-desc--single { grid-template-columns: minmax(0, 1fr); }
.te-product-desc--single .te-product-desc__text { max-width: 860px; }
.te-product-desc--single .te-product-list { max-width: 640px; }
.te-product-desc__text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.te-product-desc__content { text-wrap: pretty; }
.te-product-desc__content img { border-radius: 12px; }
.te-product-desc__content h2 { margin-top: 12px; font-size: 28px; }
.te-product-desc__content h3 { margin-top: 8px; }
.te-product-list {
	padding: 34px; border-radius: 24px; background: var(--white); border: 1px solid var(--line-2);
	display: flex; flex-direction: column; gap: 16px; min-width: 0;
}
.te-product-list__title { font: 400 30px/1.2 var(--marker); color: var(--ink); }
.te-product-list__intro { color: var(--text); }
.te-product-list__items { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.te-product-list__items li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--sand); font-weight: 600; }
.te-product-list__ico { width: 24px; height: 24px; font-size: 12px; }
.te-product-list__after { font-size: 15px; color: var(--text); }

/* Extensions accrochées après la fiche */
.te-product-extra { padding-top: 40px; padding-bottom: 40px; }

/* ---------- 05 · Produits similaires ---------- */
.te-sim-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.te-sim-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.te-sim-grid > li { min-width: 0; }
.te-sim { position: relative; display: block; height: 380px; border-radius: 20px; overflow: hidden; color: var(--white); background: #2A2522; }
.te-sim:hover, .te-sim:focus-visible { color: var(--white); }
.te-sim img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--white); }
.te-sim--cover img { object-fit: cover; background: none; }
.te-sim__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 16, 16, 0) 30%, rgba(18, 16, 16, .92) 100%); }
.te-sim__body { position: absolute; left: 26px; right: 26px; bottom: 24px; display: flex; flex-direction: column; gap: 10px; }
.te-sim__price {
	align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--brown); color: var(--ink);
	font-size: 14px; font-weight: 800; line-height: 1.4;
}
.te-sim__price del { font-weight: 600; opacity: .7; margin-right: 4px; }
.te-sim__price ins { text-decoration: none; }
.te-sim__price .woocommerce-price-suffix { font-size: inherit; font-weight: inherit; }
.te-sim__title {
	margin: 0; font: 400 26px/1.2 var(--marker); color: var(--white);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.te-sim__cta {
	align-self: flex-start; margin-top: 4px; display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 18px;
	border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 700; font-size: 15px; line-height: 1.3;
	transition: background .25s;
}
.te-sim:hover .te-sim__cta { background: var(--sand-3); }
.te-sim__arrow { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--brown); display: flex; align-items: center; justify-content: center; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.te-product-buy { gap: 32px; }
	.te-gallery { top: 100px; }
	.te-buy { padding: 28px; }
	.te-specs--3, .te-specs--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.te-serenite { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.te-sim-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.te-product-desc { gap: 40px; }
}

@media (max-width: 900px) {
	.te-product-buy { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.te-gallery { position: static; width: 100%; max-width: 640px; margin-inline: auto; }
	.te-product-desc { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.te-product-desc .te-product-list { max-width: none; }
	.te-sim { height: 340px; }
}

@media (max-width: 700px) {
	.te-product-buy { padding-top: 28px; }
	.te-gallery__stage { border-radius: 18px; }
	.te-gallery__thumbs { gap: 8px; }
	.te-gallery__thumb { border-radius: 10px; }
	.te-buy { padding: 22px 18px; border-radius: 20px; gap: 18px; }
	.te-buy__price { font-size: 34px; }
	.te-buy .yith-wapo-addon .wapo-addon-title, .te-product-list__title, .te-serenite__title { font-size: 26px; }
	.te-buy form.cart.rnb-cart > .date-time-picker { flex-basis: 100%; }
	.te-specs, .te-specs--3, .te-specs--4 { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
	.te-serenite { padding: 28px 20px; border-radius: 20px; }
	.te-alert { padding: 20px; align-items: flex-start; gap: 14px; }
	.te-alert__ico { width: 38px; height: 38px; font-size: 18px; }
	.te-product-list { padding: 24px 18px; border-radius: 20px; }
	.te-sim-grid, .te-sim-grid--2 { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
	.te-sim { height: 320px; }
	.te-sim__body { left: 20px; right: 20px; bottom: 20px; }
	.te-sim__title { font-size: 23px; }
	.te-product-hero .te-crumbs li:last-child > span { max-width: 26ch; }
}

@media (max-width: 480px) {
	.te-buy .awcdp-deposits-option { grid-template-columns: minmax(0, 1fr); }
	.te-buy form.cart > .single_add_to_cart_button,
	.te-buy .woocommerce-variation-add-to-cart > .single_add_to_cart_button { padding: 0 14px; font-size: 15px; }
	.te-buy form.cart.rnb-cart > .single_add_to_cart_button,
	.te-buy form.cart.rnb-cart > .redq_request_for_a_quote { flex-basis: 100%; }
	.te-buy .yith-wapo-option .yith-wapo-addon-label { flex-wrap: wrap; gap: 4px 12px; }
	.te-qty__btn { width: 40px; }
	.te-buy .te-qty input.qty { width: 36px; }
	.te-buy__price { font-size: 30px; }
}

@media print {
	.te-gallery { position: static; }
	.te-gallery__thumbs, .te-buy__form, .te-product-similar { display: none !important; }
}
