/* ============================================================
   Les Pierres de Claude – Fiche produit : bloc achat
   (formats en cartes, stepper m², marge 10 %, encart total)
   Charte : Lato, vert #7A8663, crème #FDF6EA, beige #D9C8A9, texte #3B3A36
   ============================================================ */

/* --- Structure générale du formulaire --- */
.single-product form.cart.lpc-has-calc .quantity { display: none; }
.single-product form.cart .quantity.lpc-qty-moved { display: none; }
.single-product form.cart .woocommerce-variation-add-to-cart {
  display: flex; flex-direction: column; gap: 22px;
}
.single-product form.cart .single_add_to_cart_button {
  width: 100%; box-sizing: border-box; min-height: 54px; margin: 0 !important;
  font-size: 15px; font-weight: 600; letter-spacing: .01em;
}
.single-product form.cart .plugify_fields_container,
.single-product form.cart .plugify_results_container { margin: 0; }
/* Prix de la variation (doublon : le prix en tête est mis à jour par le snippet "MAJ du prix") */
.single-product form.cart .woocommerce-variation-price { display: none; }

/* Le champ natif "Mètre carré" reste dans le DOM mais est piloté par le stepper */
.single-product form.cart .plugify_fields_container > h4,
.single-product form.cart .plugify_expo_sty_div > strong,
.single-product form.cart .plugify_tooltip { display: none !important; }
.single-product form.cart .plugify_expo_sty_div { position: relative; }
.single-product form.cart .lpc-native-hidden {
  position: absolute !important; opacity: 0; width: 1px !important; height: 1px;
  pointer-events: none; margin: 0; padding: 0; border: 0;
}

/* --- Tableau des variations → lignes propres --- */
.single-product form.cart table.variations { margin: 0; border: 0; width: 100%; }
.single-product form.cart table.variations th,
.single-product form.cart table.variations td {
  padding: 8px 0; border: 0; vertical-align: top; text-align: left; background: none;
}
.single-product form.cart table.variations th.label {
  width: 1%; white-space: nowrap; padding-right: 20px; padding-top: 18px;
  font-weight: 600; font-size: 14px;
}
.single-product form.cart table.variations th.label label { font-weight: 600; }
.single-product form.cart a.reset_variations { display: inline-block; margin-top: 8px; font-size: 12px; }
/* Attributs fixes d’un produit variable (Taille d’une margelle…) : mêmes lignes, valeur en puce non cliquable (lpc-core) */
.single-product form.cart table.lpc-fixed-attributes { margin-top: -4px; }
.single-product form.cart table.lpc-fixed-attributes th.label { padding-top: 18px; }
.lpc-fixed-attributes__chip { display: inline-block; padding: 10px 16px; border: 2px solid #E3DCCD; border-radius: 6px; font-size: 14px; font-weight: 600; line-height: 1.2; margin: 0 6px 6px 0; }

/* Reset des styles de bouton du kit Elementor / thème sur nos contrôles */
.single-product form.cart button.lpc-size-card,
.single-product form.cart button.lpc-step,
.single-product form.cart button.lpc-help-toggle {
  width: auto !important; min-height: 0 !important; height: auto; margin: 0 !important;
  flex: 0 0 auto !important; box-shadow: none !important; text-transform: none !important; letter-spacing: 0 !important;
  line-height: 1.3 !important; font-size: 14px !important; font-weight: 600 !important;
  background: #fff !important; color: #3B3A36 !important; border-radius: 6px !important;
}

/* Cartes de taille (remplacent le select) */
.lpc-select-hidden {
  position: absolute !important; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
.lpc-size-cards { display: flex; flex-wrap: wrap; gap: 10px; }
.single-product form.cart button.lpc-size-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 128px;
  padding: 12px 16px !important; border: 2px solid #E3DCCD !important;
  font-family: inherit; cursor: pointer; text-align: left; transition: border-color .15s, background .15s;
}
.single-product form.cart button.lpc-size-card small { font-size: 12px; font-weight: 400; color: #6B6B65; line-height: 1.3; }
.single-product form.cart button.lpc-size-card:hover { border-color: #7A8663 !important; }
.single-product form.cart button.lpc-size-card.is-selected { border-color: #7A8663 !important; background: #FDF6EA !important; }
.single-product form.cart button.lpc-size-card.is-disabled { opacity: .4; cursor: not-allowed; }

/* Swatches "bouton" (Épaisseur) alignés sur les cartes */
.single-product form.cart .variable-items-wrapper { margin: 0; gap: 10px; }
.single-product form.cart .variable-items-wrapper .button-variable-item {
  min-width: 96px; height: auto; margin: 0; padding: 12px 16px; box-sizing: border-box;
  border: 2px solid #E3DCCD; border-radius: 6px; background: #fff; box-shadow: none;
  font-size: 14px; font-weight: 600; line-height: 1.3;
}
.single-product form.cart .variable-items-wrapper .button-variable-item:hover { border-color: #7A8663; box-shadow: none; }
.single-product form.cart .variable-items-wrapper .button-variable-item.selected,
.single-product form.cart .variable-items-wrapper .button-variable-item.selected:hover {
  border-color: #7A8663; background: #FDF6EA; box-shadow: none;
}

/* --- Surface à couvrir : stepper + marge --- */
.lpc-surface { display: flex; flex-direction: column; gap: 10px; }
.lpc-surface-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.lpc-surface-title { font-weight: 600; }
.single-product form.cart button.lpc-help-toggle {
  background: none !important; border: 0 !important; padding: 0 !important; font-family: inherit;
  font-size: 13px !important; font-weight: 400 !important; color: #7A8663 !important;
  text-decoration: underline; cursor: pointer; border-radius: 0 !important;
}
.lpc-help { font-size: 13px; color: #6B6B65; background: #FDF6EA; border-radius: 6px; padding: 12px 14px; line-height: 1.5; }
.lpc-surface-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lpc-unit-qty .lpc-stepper { max-width: 260px; }
.lpc-stepper {
  display: flex; align-items: stretch; height: 52px; overflow: hidden;
  border: 1px solid #D9D3C5; border-radius: 6px; background: #fff;
}
.single-product form.cart button.lpc-step {
  width: 48px !important; flex: 0 0 48px; height: 100%; padding: 0 !important; border: 0 !important;
  background: #FDF6EA !important; color: #3B3A36 !important; border-radius: 0 !important;
  font-family: inherit; font-size: 20px !important; font-weight: 400 !important; line-height: 1 !important; cursor: pointer;
}
.single-product form.cart button.lpc-step:hover { background: #F3EBDA !important; }
.lpc-step-val { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 4px; }
.single-product form.cart input.lpc-qty {
  width: 64px !important; flex: 0 0 64px; min-height: 0 !important; height: auto !important;
  padding: 0 !important; margin: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important;
  text-align: center; font-family: inherit; font-size: 16px; font-weight: 600; color: inherit;
  -moz-appearance: textfield; appearance: textfield;
}
.single-product form.cart input.lpc-qty:focus { outline: none !important; box-shadow: none !important; }
.lpc-qty::-webkit-outer-spin-button, .lpc-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lpc-step-val > span { font-size: 13px; color: #6B6B65; }
.lpc-margin {
  display: flex; align-items: center; gap: 10px; margin: 0; height: 52px; padding: 0 14px;
  border: 1px solid #D9D3C5; border-radius: 6px; font-size: 13px; color: #6B6B65; cursor: pointer;
}
.single-product form.cart .lpc-margin input { width: 16px !important; height: 16px !important; margin: 0 !important; accent-color: #7A8663; flex: 0 0 16px; }

/* --- Encart "Total calculé" --- */
.single-product form.cart .plugify_results_container > h4 { display: none; }
.single-product form.cart .woosppo_main_parent_divvr { margin: 0; }
.single-product form.cart table.results_inner_tbl_plugify {
  width: 100%; margin: 0; border: 0; border-collapse: separate; border-spacing: 0;
  background: #FDF6EA; border-radius: 8px; overflow: hidden; font-size: 14px;
}
.single-product form.cart table.results_inner_tbl_plugify td {
  padding: 6px 20px; border: 0; background: none; color: #6B6B65; vertical-align: baseline;
}
.single-product form.cart table.results_inner_tbl_plugify td b { font-weight: 400; }
.single-product form.cart table.results_inner_tbl_plugify td:last-child { text-align: right; white-space: nowrap; }
.single-product form.cart table.results_inner_tbl_plugify tr:first-child td { padding-top: 18px; }
.single-product form.cart table.results_inner_tbl_plugify tr:last-child td { padding-bottom: 18px; }
.single-product form.cart table.results_inner_tbl_plugify tr.lpc-total td {
  padding-top: 12px; margin-top: 4px; border-top: 1px solid #E3DCCD; color: inherit;
}
.single-product form.cart table.results_inner_tbl_plugify tr.lpc-total td b { font-weight: 600; }
.single-product form.cart table.results_inner_tbl_plugify tr.lpc-total td:last-child { font-size: 24px; font-weight: 600; }
.single-product form.cart table.results_inner_tbl_plugify tr.lpc-klarna td { font-size: 12px; padding-top: 0; }


/* --- Produits simples (sans variations) : formulaire en colonne --- */
.single-product form.cart:not(.variations_form) { display: flex; flex-direction: column; align-items: stretch; gap: 22px; }
.single-product form.cart:not(.variations_form) .lpc-unit-qty { width: 100%; }
.single-product form.cart:not(.variations_form) .single_add_to_cart_button { height: auto; }
/* Tableau "Informations complémentaires" (produits simples) aligné sur les lignes de variations */
.single-product .elementor-widget-woocommerce-product-additional-information table.shop_attributes { margin: 0; border: 0; width: 100%; }
.single-product .elementor-widget-woocommerce-product-additional-information table.shop_attributes tr,
.single-product .elementor-widget-woocommerce-product-additional-information table.shop_attributes th,
.single-product .elementor-widget-woocommerce-product-additional-information table.shop_attributes td { border: 0; background: none !important; padding: 8px 0; text-align: left; font-size: 14px; font-style: normal; }
.single-product .elementor-widget-woocommerce-product-additional-information table.shop_attributes th { width: 1%; white-space: nowrap; padding-right: 20px; font-weight: 600; }
.single-product .elementor-widget-woocommerce-product-additional-information table.shop_attributes td p { margin: 0; display: inline-block; padding: 10px 16px; border: 2px solid #E3DCCD; border-radius: 6px; font-weight: 600; }

/* --- Bouton échantillon (widget Elementor) : même rythme que le bouton panier --- */
.lpc-btn-echantillon .elementor-button { min-height: 54px; font-weight: 600; }

/* --- Infos livraison : titre + texte sur une ligne --- */
.single-product .elementor-icon-box-content { line-height: 1.5; }

@media (max-width: 560px) {
  .lpc-surface-row { grid-template-columns: 1fr; }
  .single-product form.cart table.variations th.label { display: block; padding: 8px 0 4px; }
  .single-product form.cart table.variations td { display: block; padding-top: 0; }
}


/* --- Poids (données lpc-core) --- */
.lpc-weight-line { font-size: 13px; color: #6B6B65; }
.lpc-weight-line b { color: #3B3A36; font-weight: 600; }
.lpc-pallet-breakdown { margin: 4px 0 0 24px; font-size: 12px; color: #6B6B65; line-height: 1.5; }
.lpc-pallet-breakdown b { color: #3B3A36; }

/* --- Estimation de livraison (fiche produit) --- */
.lpc-estimate { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; padding: 16px 18px; border: 1px solid #E3DCCD; border-radius: 8px; }
.lpc-estimate-head { display: flex; flex-direction: column; gap: 2px; }
.lpc-estimate-sub { font-size: 12px; color: #6B6B65; }
.lpc-estimate-row { display: flex; gap: 10px; }
.single-product form.cart input.lpc-cp { flex: 0 0 150px; width: 150px !important; min-height: 44px; padding: 0 12px !important; border: 1px solid #D9D3C5 !important; border-radius: 6px !important; font-size: 15px; font-family: inherit; background: #fff !important; }
.single-product form.cart button.lpc-estimate-btn { flex: 0 0 auto !important; width: auto !important; min-height: 44px !important; margin: 0 !important; padding: 0 18px !important; border: 0 !important; border-radius: 6px !important; background: #7A8663 !important; color: #fff !important; font-size: 14px !important; font-weight: 600 !important; cursor: pointer; }
.lpc-estimate-result { font-size: 13px; color: #3B3A36; line-height: 1.5; min-height: 1em; }
.lpc-estimate-result b { font-weight: 600; }
.lpc-est-alt { color: #6B6B65; }
.lpc-est-err { color: #A0522D; }
body.lpc-added-popup .woocommerce-notices-wrapper .woocommerce-message { display: none; }

/* ============================================================
   Fiche produit mobile (maquette Claude Design « Fiche produit mobile »)
   ============================================================ */
.lpc-pp-badges .jet-listing-dynamic-field__content { display: inline-block; background: #fff; padding: 5px 10px; border-radius: 999px; line-height: 1.2; white-space: nowrap; }
.lpc-pp-badges .jet-listing-dynamic-field__content:empty, .lpc-pp-badges .elementor-widget:has(.jet-listing-dynamic-field__content:empty) { display: none; }
.lpc-pp-eyebrow .jet-listing-dynamic-field__content { display: block; }
/* Badges sur la galerie mobile : Elementor force les enfants à 100 % sur mobile/tablette → la largeur reste calc(100% - 28px). */
.lpc-pp-badges.e-con { --width: calc(100% - 28px); max-width: calc(100% - 28px); flex-wrap: wrap; }

@media (max-width: 767px) {
  /* Galerie carrée bord à bord, points de pagination */
  .lpc-pp-gallery--m .jet-woo-product-gallery__image, .lpc-pp-gallery--m .swiper-slide { aspect-ratio: 1 / 1; }
  .lpc-pp-gallery--m .jet-woo-product-gallery__image img, .lpc-pp-gallery--m .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
  .lpc-pp-gallery--m .swiper-pagination-bullet { width: 6px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .7); opacity: 1; margin: 0 2.5px !important; }
  .lpc-pp-gallery--m .swiper-pagination-bullet-active { width: 16px; background: #C2A470; }
  .lpc-pp-gallery--m .swiper-pagination { bottom: 12px !important; }
  .lpc-pp-gallery-col { position: relative; }

  /* Formats : tableau compact */
  .lpc-pp-specs-wrap { gap: 8px; }
  .lpc-pp-specs .woocommerce-product-attributes { font-size: 13px; }
  .lpc-pp-specs .woocommerce-product-attributes th, .lpc-pp-specs .woocommerce-product-attributes td { padding: 6px 0; }

  /* Calculateur en encart crème, stepper 52 px, bascule « +10 % chutes » */
  .single-product form.cart .lpc-surface { background: #FDF6EA; border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
  .single-product form.cart .lpc-surface-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
  .single-product form.cart .lpc-surface-title { font-weight: 700; }
  .single-product form.cart .lpc-surface-row { display: flex; flex-direction: column-reverse; gap: 10px; }
  .single-product form.cart .lpc-stepper { display: flex; align-items: center; border: 1px solid #D9D3C5; border-radius: 6px; height: 52px; overflow: hidden; background: #fff; width: 100%; }
  .single-product form.cart button.lpc-step { width: 52px !important; height: 100% !important; border: 0 !important; border-radius: 0 !important; background: #F7F2E8 !important; font-size: 20px !important; color: #505841 !important; }
  .single-product form.cart .lpc-step-val { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 100%; }
  .single-product form.cart .lpc-step-val input.lpc-qty { border: 0; text-align: center; font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 600; color: #505841; background: #fff; width: 70px; min-width: 0; height: 100%; padding: 0; box-shadow: none; }
  .single-product form.cart .lpc-step-val span { font-size: 13px; color: #6B6B65; }
  .single-product form.cart .lpc-margin { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #3B3A36; cursor: pointer; margin-left: auto; }
  .single-product form.cart .lpc-margin-cb { -webkit-appearance: none; appearance: none; width: 34px; height: 20px; border-radius: 999px; background: #D9D3C5; position: relative; margin: 0; border: 0; cursor: pointer; transition: background .2s; flex-shrink: 0; }
  .single-product form.cart .lpc-margin-cb::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .2s; }
  .single-product form.cart .lpc-margin-cb:checked { background: #7A8663; }
  .single-product form.cart .lpc-margin-cb:checked::after { left: 16px; }
  .single-product form.cart .lpc-help-toggle { font-size: 12px !important; }
  .single-product form.cart .plugify_results_container table.results_inner_tbl_plugify { font-size: 12px; }
  .single-product form.cart .plugify_results_container tr.lpc-total td { font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 600; color: #505841; border-top: 1px solid #E3DCCD; padding-top: 10px; }
  .single-product form.cart .plugify_results_container tr.lpc-total td:first-child { font-family: 'Lato', sans-serif; font-size: 13px; font-weight: 700; color: #3B3A36; }
  .single-product form.cart .plugify_results_container tr.lpc-klarna td { font-size: 11px; color: #6B6B65; text-align: right; }
  .single-product form.cart .lpc-estimate { background: #fff; border: 1px solid #E3DCCD; border-radius: 8px; padding: 14px; }

  /* Boutons, réassurance, accordéons */
  .lpc-pp-sample .elementor-button { height: 50px; display: flex; align-items: center; justify-content: center; font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 600; color: #505841 !important; border-color: #505841 !important; }
  .lpc-pp-reassure .elementor-icon-box-description { font-size: 13px; line-height: 1.5; }
  .lpc-pp-accordion .e-n-accordion-item-title { font-family: 'Sora', sans-serif; font-weight: 600; color: #505841; }
  .lpc-pp-faq .e-n-accordion-item-title { font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 600; color: #505841; }

  /* Barre d'achat collante : le contenu de page doit pouvoir défiler au-dessus */
  body.single-product { padding-bottom: 84px; }
  .lpc-sticky-buy { box-shadow: 0 -12px 24px -16px rgba(59, 58, 54, .3); transition: transform .25s; }
  .lpc-sticky-buy.is-hidden { transform: translateY(110%); }
  .lpc-sticky-buy .lpc-sticky-buy__total .elementor-heading-title { white-space: nowrap; }
  .lpc-sticky-buy .lpc-sticky-buy__sub p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lpc-sticky-buy .elementor-button { height: 50px; display: flex; align-items: center; justify-content: center; }
  body.lpc-drawer-open .lpc-sticky-buy { display: none; }
}

/* ---------- Popup « Ajouté au panier » (JetPopup #966, contenu Elementor par tools/popup-added-elementor.php) ---------- */
#jet-popup-966 .jet-popup__container-inner { padding: 28px; }
#jet-popup-966 .jet-popup__close-button { top: 14px; right: 14px; }
.lpc-added__cart { font-size: 13px; color: var(--lpc-muted, #6B6B65); }
.lpc-added__cart strong { color: var(--lpc-text, #3B3A36); }
.lpc-added__thumb .lpc-last-added__image { width: 84px; height: 84px; border-radius: 6px; overflow: hidden; background: var(--lpc-soft, #F7F2E8); }
.lpc-added__thumb .lpc-last-added__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lpc-last-added { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lpc-last-added__name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.lpc-last-added__meta { font-size: 13px; color: var(--lpc-muted, #6B6B65); }
.lpc-last-added__line { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 14px; }
.lpc-last-added__qty { color: var(--lpc-muted, #6B6B65); }
.lpc-last-added__price { font-size: 16px; color: var(--lpc-primary, #505841); }
/* Jauge de palette (mêmes classes que le panier) */
.lpc-added__pallet .lpc-pallet { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 8px; background: var(--lpc-cream, #FDF6EA); font-size: 13px; }
.lpc-added__pallet .lpc-pallet__row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lpc-added__pallet .lpc-pallet__title { font-weight: 700; }
.lpc-added__pallet .lpc-pallet__hint { color: var(--lpc-muted, #6B6B65); }
.lpc-added__pallet .lpc-pallet__bar { height: 8px; border-radius: 999px; background: #E8E1D2; overflow: hidden; }
.lpc-added__pallet .lpc-pallet__fill { height: 100%; border-radius: 999px; background: var(--lpc-green, #7A8663); transition: width .3s; }
.lpc-added__pallet .lpc-pallet__eta { margin: 0; font-size: 12px; color: var(--lpc-muted, #6B6B65); }
/* Actions */
.lpc-added__actions .elementor-button { box-shadow: none; }
.lpc-added__continue .elementor-heading-title { cursor: pointer; }
/* Compléments : carrousel du listing #46, masqué s'il est vide */
.lpc-added__more:not(:has(.jet-listing-grid__item)) { display: none; }
.lpc-added__grid .jet-listing-grid { position: relative; padding: 0 34px; }
/* Flèches : JetEngine les pose sur .jet-listing-grid (Swiper : .jet-listing-grid__slider-icon, Slick : .jet-arrow) */
.lpc-added__grid .jet-listing-grid__slider-icon, .lpc-added__grid .jet-arrow { width: 28px; height: 28px; margin: 0; background: #fff; border: 1px solid #D9D3C5; border-radius: 50%; color: var(--lpc-primary, #505841); display: flex; align-items: center; justify-content: center; box-shadow: none; }
.lpc-added__grid .jet-listing-grid__slider-icon svg, .lpc-added__grid .jet-arrow svg { width: 12px; height: 12px; fill: currentColor; }
.lpc-added__grid .jet-listing-grid__slider-icon.prev-arrow, .lpc-added__grid .jet-arrow.prev-arrow { left: 0; }
.lpc-added__grid .jet-listing-grid__slider-icon.next-arrow, .lpc-added__grid .jet-arrow.next-arrow { right: 0; }
.lpc-added__grid .swiper-button-disabled, .lpc-added__grid .jet-arrow.slick-disabled { opacity: .3; }
/* Échantillon */
.lpc-last-added__sample { margin: 0; font-size: 13px; color: var(--lpc-muted, #6B6B65); line-height: 1.5; }
.lpc-last-added__sample a { color: var(--lpc-green, #7A8663); font-weight: 700; text-decoration: none; }
.lpc-last-added__sample a:hover { text-decoration: underline; }
.lpc-last-added__sample span { display: block; font-size: 12px; }
@media (max-width: 767px) {
  #jet-popup-966 .jet-popup__container { width: calc(100% - 24px) !important; max-height: calc(100vh - 24px); }
  #jet-popup-966 .jet-popup__container-inner { padding: 18px; }
  .lpc-added__thumb .lpc-last-added__image { width: 64px; height: 64px; }
  .lpc-added__grid .jet-listing-grid { padding: 0 24px; }
  #jet-popup-966 .lpc-added__actions .elementor-widget-button, #jet-popup-966 .lpc-added__actions .elementor-button { width: 100%; }
  .lpc-added__more { padding-top: 14px !important; }
}
