/* ==========================================================================
   Fiche produit, façon boutique en ligne : galerie + colonne d'achat (avec volets),
   puis compléments, produits associés et garanties.
   Portée par .lss-pdp / .lss-pdp-more (le corps de page porte déjà .woocommerce).
   ========================================================================== */

/* ---------- Haut de fiche (fond sombre, assorti aux photos) ---------- */

.lss-pdp {
	position: relative; isolation: isolate; color: var(--sur-sombre);
	background: radial-gradient(55% 70% at 85% 0%, rgba(92, 30, 22, .45) 0%, rgba(92, 30, 22, 0) 70%), var(--ebene);
	padding-bottom: clamp(48px, 5vw, 80px);
}
.lss-pdp::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--grain); opacity: .1; mix-blend-mode: overlay; }
.lss-pdp__wrap { max-width: 1400px; }

body.lss .lss-pdp .lss-crumbs--woo { margin: 0; padding: 22px 0 24px; color: var(--sur-sombre-2); font-size: .68rem; }
body.lss .lss-pdp .lss-crumbs--woo a { color: var(--sur-sombre-2); }
body.lss .lss-pdp .lss-crumbs--woo a:hover { color: var(--laiton-clair); }
body.lss .lss-pdp .lss-crumbs__sep { color: var(--laiton); }

body.lss .lss-pdp div.product {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 460px); gap: clamp(32px, 4.5vw, 80px); align-items: start; margin: 0;
}
body.lss .lss-pdp div.product > * { grid-column: 1 / -1; min-width: 0; }
body.lss .lss-pdp div.product > .woocommerce-product-gallery { grid-column: 1; width: auto !important; float: none !important; margin: 0 !important; position: sticky; top: 100px; }
body.lss .lss-pdp div.product > .summary { grid-column: 2; width: auto !important; float: none !important; margin: 0 !important; }
body.lss .lss-pdp .woocommerce-notices-wrapper:not(:empty) { margin-bottom: 22px; }

/* Galerie : miniatures verticales à gauche (défilantes, à la hauteur de la photo), grande photo carrée */
body.lss .lss-pdp .woocommerce-product-gallery { position: relative; display: block; }
body.lss .lss-pdp .woocommerce-product-gallery:has(.flex-control-thumbs) { padding-left: 98px; }
body.lss .lss-pdp .woocommerce-product-gallery .flex-viewport, body.lss .lss-pdp .woocommerce-product-gallery__wrapper { box-shadow: 0 40px 80px -46px rgba(0, 0, 0, .9); }
body.lss .lss-pdp .woocommerce-product-gallery__wrapper { margin: 0; }
body.lss .lss-pdp .woocommerce-product-gallery__image { background: var(--ebene-2); }
body.lss .lss-pdp .woocommerce-product-gallery__image img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
body.lss .lss-pdp .flex-control-thumbs { position: absolute; top: 0; bottom: 0; left: 0; width: 84px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(216, 164, 68, .4) transparent; display: flex !important; flex-direction: column; gap: 10px; margin: 0 !important; padding: 0; list-style: none; }
body.lss .lss-pdp .flex-control-thumbs li { flex: none; width: auto !important; float: none !important; margin: 0 !important; }
body.lss .lss-pdp .flex-control-thumbs img { aspect-ratio: 1; object-fit: cover; opacity: .5; cursor: pointer; outline: 1px solid rgba(216, 164, 68, .15); outline-offset: -1px; transition: opacity .2s, outline-color .2s; }
body.lss .lss-pdp .flex-control-thumbs img.flex-active, body.lss .lss-pdp .flex-control-thumbs img:hover { opacity: 1; outline: 1px solid var(--laiton); }
body.lss .lss-pdp .woocommerce-product-gallery__trigger { top: 14px; right: 14px; left: auto; width: 42px; height: 42px; border-radius: 0; background: rgba(21, 16, 13, .72) !important; z-index: 5; }
body.lss .lss-pdp .woocommerce-product-gallery__trigger::before { border-color: #fff !important; }
body.lss .lss-pdp .woocommerce-product-gallery__trigger::after { background: #fff !important; }

/* ---------- Colonne d'achat ---------- */

body.lss .lss-pdp .summary { font-size: 1rem; }
.lss-buy__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 14px; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sur-sombre-2); }
.lss-buy__meta a { color: var(--laiton); text-decoration: none; }
.lss-buy__meta a:hover { color: var(--laiton-clair); }
.lss-buy__meta .lss-badges { position: static; margin-left: auto; }
body.lss .lss-pdp .product_title { margin: 0 0 14px; font-size: clamp(1.9rem, 2.5vw, 2.5rem); line-height: 1.1; letter-spacing: -.01em; color: var(--lin); }
body.lss .lss-pdp .summary .price {
	display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin: 0 0 4px !important;
	font-family: var(--f-display); font-size: 1.85rem !important; line-height: 1.1; color: var(--laiton-clair) !important;
}
body.lss .lss-pdp .summary .price del { font-size: 1.15rem; color: var(--sur-sombre-2); opacity: .8; }
body.lss .lss-pdp .summary .price ins { text-decoration: none; }
body.lss .lss-pdp .lss-vat { margin: 0 0 20px; font-size: .78rem; color: var(--sur-sombre-2); }
body.lss .lss-pdp .woocommerce-product-details__short-description { margin: 0 0 22px; padding: 0 0 22px; border-bottom: 1px solid rgba(216, 164, 68, .16); font-size: 1rem; line-height: 1.7; color: var(--sur-sombre); }
body.lss .lss-pdp .woocommerce-product-details__short-description p { margin: 0; }

/* Options : pointure, couleur */
.lss-opts { display: grid; gap: 18px; margin: 0 0 18px; }
.lss-opt__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.lss-opt__label { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sur-sombre-2); }
.lss-opt__label strong { color: var(--lin); font-weight: 500; letter-spacing: .08em; }
body.lss .lss-pdp .lss-opt .lss-linkbtn { padding: 0; font-size: .68rem; color: var(--laiton-clair) !important; }
.lss-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lss-pill, body.lss button.lss-pill {
	display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 44px; padding: 0 14px; box-sizing: border-box;
	border: 1px solid rgba(216, 164, 68, .35); background: transparent !important; color: var(--sur-sombre) !important;
	font: 500 .95rem/1 var(--f-text); letter-spacing: .04em; cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.lss-pill.is-on, body.lss button.lss-pill.is-on { border-color: var(--laiton); background: rgba(216, 164, 68, .14) !important; color: var(--lin) !important; box-shadow: inset 0 0 0 1px var(--laiton); }
body.lss button.lss-pill:hover { border-color: var(--laiton); color: var(--lin) !important; }
span.lss-pill { cursor: default; }
.lss-pills__note { font-size: .82rem; color: var(--sur-sombre-2); }
.lss-swatch { display: inline-block; width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 2px var(--ebene), 0 0 0 3px var(--laiton); }
.lss-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 !important; font-size: .9rem; color: var(--sur-sombre-2); }
.lss-facts strong { color: var(--sur-sombre); font-weight: 500; }

/* Variantes (coffrets) : boutons générés par shop.js, liste déroulante masquée */
body.lss .lss-pdp table.variations { width: 100%; margin: 0; border: 0; }
body.lss .lss-pdp table.variations tr { display: block; position: relative; margin-bottom: 14px; }
body.lss .lss-pdp table.variations th, body.lss .lss-pdp table.variations td { display: block; padding: 0; text-align: left; border: 0; background: none; line-height: 1.4; }
body.lss .lss-pdp table.variations th { margin-bottom: 10px; }
body.lss .lss-pdp table.variations label { font-size: .74rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--sur-sombre-2); }
body.lss .lss-pdp table.variations select { background-color: rgba(255, 255, 255, .05); color: var(--lin); border-color: rgba(216, 164, 68, .45); }
body.lss .lss-pdp table.variations select option { color: var(--encre); background: #fff; }
body.lss .lss-pdp table.variations select.lss-var-select { position: absolute !important; width: 1px !important; min-width: 0 !important; height: 1px !important; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
body.lss .lss-pdp .reset_variations { position: absolute; top: 0; right: 0; margin: 0; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--laiton-clair); }
.lss-pill[data-value="noir" i]::before, .lss-pill[data-value="marron" i]::before, .lss-pill[data-value="incolore" i]::before { content: ""; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; display: inline-block; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.lss-pill[data-value="noir" i]::before { background: #141110; }
.lss-pill[data-value="marron" i]::before { background: #6a4027; }
.lss-pill[data-value="incolore" i]::before { background: linear-gradient(135deg, #f7f3ea, #cfc6b6); }
body.lss .lss-pdp .woocommerce-variation-price .price { font-size: 1.5rem !important; }
body.lss .lss-pdp .woocommerce-variation-availability p.stock { margin-top: 8px; }

/* Disponibilité + achat */
body.lss .lss-pdp p.stock { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; font-size: .86rem; letter-spacing: .02em; color: #9fcf86; }
body.lss .lss-pdp p.stock.in-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #79b05a; box-shadow: 0 0 0 4px rgba(121, 176, 90, .18); }
body.lss .lss-pdp p.stock.out-of-stock { color: #e3a08f; }
body.lss .lss-pdp form.cart { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; }
body.lss .lss-pdp form.cart.variations_form { display: block; }
body.lss .lss-pdp form.cart .button, body.lss .lss-pdp .single_add_to_cart_button { flex: 1 1 220px; width: 100%; min-height: 58px; font-size: .82rem; letter-spacing: .22em; float: none; }
body.lss .lss-pdp .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
body.lss .lss-pdp form.cart .quantity { float: none; margin: 0; }
body.lss .lss-pdp form.cart .quantity .qty { width: 78px; min-height: 58px; text-align: center; background: rgba(255, 255, 255, .06); color: var(--lin); border-color: rgba(216, 164, 68, .4); }
body.lss .lss-pdp .lss-ask { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 0; padding: 4px 0; font-size: .88rem; color: var(--sur-sombre-2); text-decoration: none; border: 0; }
body.lss .lss-pdp .lss-ask strong { color: var(--laiton-clair); font-weight: 500; text-decoration: underline; text-underline-offset: .25em; }
body.lss .lss-pdp .lss-ask .lss-icon { width: 18px; height: 18px; color: #79b05a; }
body.lss .lss-pdp .lss-ask:hover strong { color: var(--lin); }
body.lss .lss-pdp .lss-quote-box, body.lss .lss-pdp .lss-alert-form { margin: 6px 0 14px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(216, 164, 68, .3); }

/* Livraison estimée et conditions */
.lss-deliv { list-style: none; margin: 20px 0 22px; padding: 16px 18px; display: grid; gap: 12px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(216, 164, 68, .2); }
.lss-deliv li { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; line-height: 1.5; color: var(--sur-sombre-2); }
.lss-deliv strong { color: var(--lin); font-weight: 500; }
.lss-deliv .lss-icon { width: 20px; height: 20px; flex: none; color: var(--laiton); margin-top: 1px; }

/* Volets d'information (dans la colonne d'achat) */
body.lss .lss-pdp .lss-acc { margin: 0; max-width: none; border-top: 1px solid rgba(216, 164, 68, .2); }
body.lss .lss-pdp .lss-acc__item { border-bottom: 1px solid rgba(216, 164, 68, .2); }
body.lss .lss-pdp .lss-acc__item summary {
	padding: 17px 36px 17px 0; font-family: var(--f-text); font-size: .76rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--lin);
}
body.lss .lss-pdp .lss-acc__item summary::after {
	content: "+"; right: 2px; top: 50%; width: auto; height: auto; margin-top: -.55em; border: 0; transform: none; background: none !important;
	font-family: var(--f-text); font-size: 1.25rem; font-weight: 300; line-height: 1; letter-spacing: 0; color: var(--laiton);
}
body.lss .lss-pdp .lss-acc__item[open] summary::after { content: "−"; transform: none; }
body.lss .lss-pdp .lss-acc__item summary:hover { color: var(--laiton-clair); }
body.lss .lss-pdp .lss-acc__body { padding: 0 0 20px; font-size: .95rem; line-height: 1.7; color: var(--sur-sombre); }
body.lss .lss-pdp .lss-acc__body > :last-child { margin-bottom: 0; }
body.lss .lss-pdp .lss-acc__body h2, body.lss .lss-pdp .lss-acc__body h3 { margin: 1.3em 0 .5em; font-family: var(--f-text); font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--laiton-clair); }
body.lss .lss-pdp .lss-acc__body a { color: var(--laiton-clair); }
body.lss .lss-pdp .lss-acc__body ul, body.lss .lss-pdp .lss-acc__body ol { margin: 0 0 1em; }
body.lss .lss-pdp .lss-acc__body ul { list-style: none; padding: 0; }
body.lss .lss-pdp .lss-acc__body ul li { position: relative; padding-left: 1.4em; margin-bottom: .4em; }
body.lss .lss-pdp .lss-acc__body ul li::before { content: ""; position: absolute; left: .1em; top: .66em; width: 5px; height: 5px; background: var(--laiton); transform: rotate(45deg); }
body.lss .lss-pdp .lss-acc__body ol { padding-left: 1.2em; }
.lss-spec-table, body.lss .lss-pdp table.shop_attributes { width: 100%; border-collapse: collapse; border: 0; margin: 0; }
.lss-spec-table th, .lss-spec-table td, body.lss .lss-pdp table.shop_attributes th, body.lss .lss-pdp table.shop_attributes td {
	padding: 9px 0; border: 0; border-bottom: 1px solid rgba(216, 164, 68, .12); background: none !important; text-align: left; font-style: normal; vertical-align: top;
}
.lss-spec-table th, body.lss .lss-pdp table.shop_attributes th { width: 42%; font-weight: 400; color: var(--sur-sombre-2); }
.lss-spec-table td, body.lss .lss-pdp table.shop_attributes td { color: var(--lin); }
body.lss .lss-pdp table.shop_attributes td p { margin: 0; }

/* Partage */
body.lss .lss-pdp .lss-share { margin-top: 20px; }
body.lss .lss-pdp .lss-share > span { color: var(--sur-sombre-2); }
body.lss .lss-pdp .lss-share a, body.lss .lss-pdp .lss-share button { width: 38px; height: 38px; color: var(--sur-sombre) !important; box-shadow: inset 0 0 0 1px rgba(216, 164, 68, .28); }
body.lss .lss-pdp .lss-share button { width: auto; }
body.lss .lss-pdp .lss-share a:hover, body.lss .lss-pdp .lss-share button:hover { color: var(--laiton-clair) !important; box-shadow: inset 0 0 0 1px var(--laiton); }

/* ---------- Bas de fiche (fond clair) ---------- */

.lss-pdp-more { background: var(--creme); padding: clamp(48px, 6vw, 84px) 0 clamp(56px, 7vw, 100px); }
.lss-pdp-more__inner { max-width: 1400px; margin: 0 auto; display: grid; gap: clamp(48px, 6vw, 80px); }

.lss-xsell__title, body.lss .lss-pdp-more .related > h2 {
	display: flex; align-items: center; gap: 16px; margin: 0 0 24px; font-size: clamp(1.5rem, 2.2vw, 1.9rem); color: var(--encre);
}
.lss-xsell__title::after, body.lss .lss-pdp-more .related > h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(148, 102, 31, .5), transparent); }
.lss-xsell__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 18px; }
.lss-xsell__item { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: center; padding: 14px; background: var(--lin); border: 1px solid var(--trait-clair); transition: box-shadow .3s; }
.lss-xsell__item:hover { box-shadow: 0 24px 40px -30px rgba(35, 25, 21, .45); }
.lss-xsell__img img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.lss-xsell__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.lss-xsell__name { font-family: var(--f-display); font-size: 1.15rem; line-height: 1.25; color: var(--encre); text-decoration: none; }
.lss-xsell__name:hover { color: var(--laiton-fonce); }
.lss-xsell__price { font-family: var(--f-display); font-size: 1.1rem; color: var(--cuir-2); }
.lss-xsell__body .lss-btn { margin-top: 6px; }
.lss-xsell__body .added_to_cart { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--laiton-fonce); }

body.lss .lss-pdp-more .related { margin: 0; }
body.lss .lss-pdp-more .related ul.products { margin-bottom: 0; }

.lss-strip { list-style: none; margin: 0; padding: 26px clamp(18px, 3vw, 34px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; background: var(--ebene); color: var(--sur-sombre-2); }
.lss-strip li { display: flex; gap: 14px; align-items: center; font-size: .9rem; line-height: 1.4; }
.lss-strip .lss-icon { width: 28px; height: 28px; flex: none; color: var(--laiton); }
.lss-strip strong { display: block; color: var(--lin); font-weight: 500; font-size: .95rem; }
.lss-strip a { color: var(--laiton-clair); }

/* ---------- Tablettes et mobiles ---------- */

@media (max-width: 1080px) {
	body.lss .lss-pdp div.product { grid-template-columns: minmax(0, 1fr); }
	body.lss .lss-pdp div.product > .woocommerce-product-gallery, body.lss .lss-pdp div.product > .summary { grid-column: 1; position: static; }
	body.lss .lss-pdp div.product > .summary { max-width: 640px; }
	.lss-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
	/* Fil d'Ariane réduit au retour vers la catégorie */
	body.lss .lss-pdp .lss-crumbs--woo { padding: 14px 0 16px; font-size: 0; }
	body.lss .lss-pdp .lss-crumbs--woo > * { display: none; }
	body.lss .lss-pdp .lss-crumbs--woo > a:last-of-type { display: inline-flex; align-items: center; gap: 8px; font-size: .7rem; }
	body.lss .lss-pdp .lss-crumbs--woo > a:last-of-type::before { content: "‹"; font-size: 1.3rem; line-height: 1; color: var(--laiton); }
	body.lss .lss-pdp div.product > .woocommerce-product-gallery { display: block; margin: 0 calc(var(--gut) * -1) !important; }
	body.lss .lss-pdp .woocommerce-product-gallery:has(.flex-control-thumbs) { padding-left: 0; }
	body.lss .lss-pdp .flex-control-thumbs { position: static; width: auto; overflow-x: auto; overflow-y: hidden; flex-direction: row !important; padding: 10px var(--gut) 0 !important; }
	body.lss .lss-pdp .flex-control-thumbs li { width: 64px !important; }
	body.lss .lss-pdp .product_title { font-size: clamp(1.8rem, 7vw, 2.2rem); }
	.lss-xsell__item { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
	.lss-strip { grid-template-columns: 1fr; }
}
