/**
 * LEM | Fiches produit WooCommerce (V5)
 * Correctif de conteneur Agraria et harmonisation responsive.
 * Uniquement les pages produit, sans surcharge de template WooCommerce.
 */
body.lem-woo-single {
  --lem-single-brown: #502d20;
  --lem-single-green: #172f15;
  --lem-single-pink: #d34490;
  --lem-single-border: #e9e5e1;
}

/* Le theme Agraria utilise une grille a marges negatives sur les fiches produits. */
body.lem-woo-single main#qodef-page-content.qodef-grid.qodef-layout--template {
  display: block !important;
  width: calc(100% - 48px) !important;
  max-width: 1360px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 44px 0 84px !important;
  box-sizing: border-box !important;
}
body.lem-woo-single main#qodef-page-content > .qodef-grid-inner {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}
body.lem-woo-single main#qodef-page-content > .qodef-grid-inner > #qodef-woo-page {
  display: block !important;
  float: none !important;
  flex: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}
body.lem-woo-single #qodef-woo-page > .product {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
}

/* Galerie et résumé : conserver les interactions du theme et du produit variable. */
body.lem-woo-single #qodef-woo-page .qodef-woo-single-inner {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}
body.lem-woo-single #qodef-woo-page .qodef-woo-single-image,
body.lem-woo-single #qodef-woo-page .summary.entry-summary {
  min-width: 0;
  box-sizing: border-box;
}
body.lem-woo-single #qodef-woo-page .woocommerce-product-gallery img {
  max-width: 100%;
  height: auto;
}
body.lem-woo-single #qodef-woo-page .summary .price {
  color: var(--lem-single-brown);
}

/* Onglets et produits similaires restent dans le meme conteneur central. */
body.lem-woo-single #qodef-woo-page .woocommerce-tabs,
body.lem-woo-single #qodef-woo-page .related.products,
body.lem-woo-single #qodef-woo-page .upsells.products {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}
body.lem-woo-single #qodef-woo-page .woocommerce-tabs .wc-tabs,
body.lem-woo-single #qodef-woo-page .woocommerce-tabs .woocommerce-Tabs-panel {
  max-width: 100%;
  box-sizing: border-box;
}
body.lem-woo-single #qodef-woo-page .related.products > h2,
body.lem-woo-single #qodef-woo-page .upsells.products > h2 {
  color: var(--lem-single-green);
}

/* Les cartes de produits similaires conservent les liens WooCommerce. */
body.lem-woo-single #qodef-woo-page .related.products ul.products,
body.lem-woo-single #qodef-woo-page .upsells.products ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.lem-woo-single #qodef-woo-page .related.products ul.products::before,
body.lem-woo-single #qodef-woo-page .related.products ul.products::after,
body.lem-woo-single #qodef-woo-page .upsells.products ul.products::before,
body.lem-woo-single #qodef-woo-page .upsells.products ul.products::after {
  display: none;
}
body.lem-woo-single #qodef-woo-page .related.products ul.products > li.product,
body.lem-woo-single #qodef-woo-page .upsells.products ul.products > li.product {
  float: none;
  clear: none;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  body.lem-woo-single main#qodef-page-content.qodef-grid.qodef-layout--template {
    width: calc(100% - 40px) !important;
    padding-top: 34px !important;
  }
  body.lem-woo-single #qodef-woo-page .related.products ul.products,
  body.lem-woo-single #qodef-woo-page .upsells.products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  body.lem-woo-single main#qodef-page-content.qodef-grid.qodef-layout--template {
    width: calc(100% - 32px) !important;
    padding-top: 26px !important;
    padding-bottom: 48px !important;
  }
  body.lem-woo-single #qodef-woo-page .qodef-woo-single-inner {
    display: block;
  }
  body.lem-woo-single #qodef-woo-page .qodef-woo-single-image,
  body.lem-woo-single #qodef-woo-page .summary.entry-summary {
    width: 100%;
    max-width: 100%;
  }
  body.lem-woo-single #qodef-woo-page .related.products ul.products,
  body.lem-woo-single #qodef-woo-page .upsells.products ul.products {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
}

/* ==========================================================
 * LEM V6 | Maquette fiche produit : galerie, achat et contenu.
 * Garde les templates, galeries, variations et actions WooCommerce.
 * ========================================================== */
body.lem-woo-single {
  --lem-single-cream: #f9f7f5;
  --lem-single-shadow: 0 10px 28px rgb(80 45 32 / 8%);
}
body.lem-woo-single #qodef-woo-page .qodef-woo-single-inner {
  display: grid !important;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(30px, 4vw, 64px);
  margin-bottom: clamp(48px, 6vw, 80px);
}
body.lem-woo-single #qodef-woo-page .qodef-woo-single-inner > .qodef-woo-single-image,
body.lem-woo-single #qodef-woo-page .qodef-woo-single-inner > .summary.entry-summary {
  float: none !important;
  clear: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* Agraria place la galerie secondaire a l'interieur de son wrapper. */
body.lem-woo-single #qodef-woo-page .woocommerce-product-gallery,
body.lem-woo-single #qodef-woo-page .woocommerce-product-gallery__wrapper {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  margin: 0 !important;
}
body.lem-woo-single #qodef-woo-page .woocommerce-product-gallery__wrapper {
  display: grid !important;
  grid-template-columns: 80px minmax(0, 1fr);
  grid-template-rows: auto;
  gap: 16px;
  align-items: start;
}
body.lem-woo-single #qodef-woo-page .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child {
  grid-column: 2;
  grid-row: 1;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--lem-single-cream);
}
body.lem-woo-single #qodef-woo-page .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child img:not(.zoomImg) {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: inherit;
}
body.lem-woo-single #qodef-woo-page .woocommerce-product-gallery__wrapper > .qodef-woo-thumbnails-wrapper {
  grid-column: 1;
  grid-row: 1;
  display: flex !important;
  flex-direction: column;
  gap: 12px;
  width: 80px !important;
  max-width: 80px !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.lem-woo-single #qodef-woo-page .qodef-woo-thumbnails-wrapper .woocommerce-product-gallery__image {
  display: block;
  width: 80px !important;
  margin: 0 !important;
  border: 1px solid var(--lem-single-border);
  border-radius: 7px;
  overflow: hidden;
  box-sizing: border-box;
}
body.lem-woo-single #qodef-woo-page .qodef-woo-thumbnails-wrapper .woocommerce-product-gallery__image img {
  display: block;
  width: 100% !important;
  height: 80px !important;
  object-fit: cover;
}
/* Achat : ordre maintenu, suppression du titre par Agraria uniquement si deja cache. */
body.lem-woo-single #qodef-woo-page .summary.entry-summary {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
body.lem-woo-single #qodef-woo-page .lem-single-category-badge {
  display: inline-block;
  margin: 0 0 17px;
  padding: 8px 16px;
  border-radius: 100px;
  color: #fff;
  background: var(--lem-single-pink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}
body.lem-woo-single #qodef-woo-page .summary .product_title {
  display: block;
  margin: 0 0 13px !important;
  color: var(--lem-single-green);
  font-size: clamp(25px, 2.2vw, 35px);
  font-weight: 600;
  line-height: 1.18;
  text-transform: uppercase;
}
body.lem-woo-single #qodef-woo-page .summary > p.price,
body.lem-woo-single #qodef-woo-page .summary .price {
  margin: 0 0 22px !important;
  color: var(--lem-single-brown) !important;
  font-size: clamp(23px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.25;
}
body.lem-woo-single #qodef-woo-page .woocommerce-product-details__short-description {
  width: 100%;
  margin: 0 0 26px;
  color: #454545;
  font-size: 16px;
  line-height: 1.75;
}
body.lem-woo-single #qodef-woo-page .woocommerce-product-details__short-description p {
  margin: 0 0 12px;
}
body.lem-woo-single #qodef-woo-page .woocommerce-product-details__short-description ul {
  margin: 0 0 14px;
  padding-left: 24px;
}
body.lem-woo-single #qodef-woo-page .summary form.cart {
  width: 100%;
  max-width: 100%;
  margin: 0 0 24px !important;
}
body.lem-woo-single #qodef-woo-page .summary form.variations_form table.variations {
  width: 100%;
  border: 0;
  border-collapse: separate;
  border-spacing: 0 10px;
  margin: 0 0 20px;
}
body.lem-woo-single #qodef-woo-page .summary form.variations_form table.variations tr {
  background: transparent;
}
body.lem-woo-single #qodef-woo-page .summary form.variations_form table.variations th,
body.lem-woo-single #qodef-woo-page .summary form.variations_form table.variations td {
  border: 0;
  padding: 0 0 12px;
  vertical-align: middle;
}
body.lem-woo-single #qodef-woo-page .summary form.variations_form table.variations th.label {
  width: 24%;
  padding-right: 12px;
  text-align: left;
  color: var(--lem-single-green);
}
body.lem-woo-single #qodef-woo-page .summary form.variations_form table.variations th.label label {
  margin: 0;
  color: var(--lem-single-green);
  font-weight: 700;
  font-size: 16px;
}
body.lem-woo-single #qodef-woo-page .summary form.variations_form table.variations td.value {
  width: 76%;
  text-align: left;
}
body.lem-woo-single #qodef-woo-page .summary form.variations_form table.variations td.value .select2-container {
  width: 100% !important;
  max-width: 100% !important;
}
body.lem-woo-single #qodef-woo-page .summary .variations select,
body.lem-woo-single #qodef-woo-page .summary .variations .select2-selection {
  width: 100%;
  min-height: 48px;
  border: 1px solid #ded9d5;
  border-radius: 7px;
  background: #fff;
  box-sizing: border-box;
  color: var(--lem-single-green);
}
body.lem-woo-single #qodef-woo-page .summary .variations .select2-selection__rendered {
  line-height: 46px;
  padding-left: 16px;
}
body.lem-woo-single #qodef-woo-page .summary .variations .select2-selection__arrow {
  height: 46px;
}
body.lem-woo-single #qodef-woo-page .summary .single_variation_wrap,
body.lem-woo-single #qodef-woo-page .summary .woocommerce-variation-add-to-cart {
  width: 100%;
}
body.lem-woo-single #qodef-woo-page .summary .woocommerce-variation-add-to-cart,
body.lem-woo-single #qodef-woo-page .summary form.cart:not(.variations_form) {
  display: flex;
  align-items: stretch;
  gap: 16px;
  flex-wrap: wrap;
}
body.lem-woo-single #qodef-woo-page .summary .qodef-quantity-buttons {
  flex: 0 0 auto;
  margin: 0 !important;
  border: 1px solid var(--lem-single-border);
}
body.lem-woo-single #qodef-woo-page .summary button.single_add_to_cart_button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: 1 1 250px;
  min-height: 54px;
  margin: 0 !important;
  padding: 12px 24px;
  border: 0;
  border-radius: 6px;
  background: #064c38;
  color: #fff;
  text-align: center;
  font-weight: 700;
  letter-spacing: .02em;
}
body.lem-woo-single #qodef-woo-page .summary button.single_add_to_cart_button:hover,
body.lem-woo-single #qodef-woo-page .summary button.single_add_to_cart_button:focus-visible {
  background: var(--lem-single-pink);
  color: #fff;
}
body.lem-woo-single #qodef-woo-page .summary button.single_add_to_cart_button.disabled {
  opacity: .55;
  cursor: not-allowed;
}
body.lem-woo-single #qodef-woo-page .summary .product_meta {
  width: 100%;
  padding: 22px 0 0;
  margin-top: 18px;
  border-top: 1px solid var(--lem-single-border);
  font-size: 13px;
  line-height: 1.65;
}
body.lem-woo-single #qodef-woo-page .summary .qodef-social-share {
  width: 100%;
  margin-top: 12px;
}
/* Informations sous le produit, sans duplications ni panneaux artificiels. */
body.lem-woo-single #qodef-woo-page .woocommerce-tabs {
  margin: 0 0 68px;
  padding: 0;
}
body.lem-woo-single #qodef-woo-page .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 36px;
  padding: 0;
  margin: 0 0 30px;
  border-bottom: 1px solid var(--lem-single-border);
}
body.lem-woo-single #qodef-woo-page .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0 0 14px;
  border: 0;
  background: none;
}
body.lem-woo-single #qodef-woo-page .woocommerce-tabs ul.tabs li a {
  color: var(--lem-single-brown);
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 600;
  text-decoration: none;
}
body.lem-woo-single #qodef-woo-page .woocommerce-tabs ul.tabs li.active {
  border-bottom: 3px solid var(--lem-single-green);
}
body.lem-woo-single #qodef-woo-page .woocommerce-tabs ul.tabs li.active a {
  color: var(--lem-single-green);
}
body.lem-woo-single #qodef-woo-page .woocommerce-tabs .woocommerce-Tabs-panel {
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  color: #454545;
  font-size: 16px;
  line-height: 1.8;
}
body.lem-woo-single #qodef-woo-page .woocommerce-tabs .woocommerce-Tabs-panel > h2:first-child {
  display: none;
}
body.lem-woo-single #qodef-woo-page .related.products,
body.lem-woo-single #qodef-woo-page .upsells.products {
  margin: 0 0 50px;
}
body.lem-woo-single #qodef-woo-page .related.products > h2,
body.lem-woo-single #qodef-woo-page .upsells.products > h2 {
  margin: 0 0 30px;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.2;
  font-weight: 650;
  text-transform: uppercase;
}
body.lem-woo-single #qodef-woo-page .related.products ul.products > li.product,
body.lem-woo-single #qodef-woo-page .upsells.products ul.products > li.product {
  overflow: hidden;
  border: 1px solid var(--lem-single-border);
  border-radius: 9px;
  background: #fff;
  transition: box-shadow .2s ease;
}
body.lem-woo-single #qodef-woo-page .related.products ul.products > li.product:hover,
body.lem-woo-single #qodef-woo-page .upsells.products ul.products > li.product:hover {
  box-shadow: var(--lem-single-shadow);
}
body.lem-woo-single #qodef-woo-page .related.products li.product .qodef-e-media-image img,
body.lem-woo-single #qodef-woo-page .upsells.products li.product .qodef-e-media-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
body.lem-woo-single #qodef-woo-page .related.products li.product .qodef-e-content,
body.lem-woo-single #qodef-woo-page .upsells.products li.product .qodef-e-content {
  padding: 18px 20px 22px;
}
body.lem-woo-single #qodef-woo-page .related.products li.product .qodef-woo-product-title,
body.lem-woo-single #qodef-woo-page .upsells.products li.product .qodef-woo-product-title {
  color: var(--lem-single-green);
  font-size: clamp(17px, 1.5vw, 23px);
  line-height: 1.25;
}
body.lem-woo-single #qodef-woo-page .related.products li.product .price,
body.lem-woo-single #qodef-woo-page .upsells.products li.product .price {
  color: var(--lem-single-brown);
  font-size: 18px;
  font-weight: 650;
}
body.lem-woo-single #qodef-woo-page .related.products li.product .qodef-e-media-inner .button,
body.lem-woo-single #qodef-woo-page .upsells.products li.product .qodef-e-media-inner .button {
  background: var(--lem-single-pink);
  color: #fff;
}
@media (max-width: 1024px) {
  body.lem-woo-single #qodef-woo-page .qodef-woo-single-inner {
    gap: 28px;
  }
  body.lem-woo-single #qodef-woo-page .woocommerce-product-gallery__wrapper {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }
  body.lem-woo-single #qodef-woo-page .woocommerce-product-gallery__wrapper > .qodef-woo-thumbnails-wrapper,
  body.lem-woo-single #qodef-woo-page .qodef-woo-thumbnails-wrapper .woocommerce-product-gallery__image {
    width: 64px !important;
    max-width: 64px !important;
  }
  body.lem-woo-single #qodef-woo-page .qodef-woo-thumbnails-wrapper .woocommerce-product-gallery__image img {
    height: 64px !important;
  }
}
@media (max-width: 780px) {
  body.lem-woo-single #qodef-woo-page .qodef-woo-single-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }
  body.lem-woo-single #qodef-woo-page .summary .product_title {
    font-size: clamp(24px, 5vw, 32px);
  }
}
@media (max-width: 480px) {
  body.lem-woo-single #qodef-woo-page .woocommerce-product-gallery__wrapper {
    grid-template-columns: minmax(0, 1fr);
  }
  body.lem-woo-single #qodef-woo-page .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child {
    grid-column: 1;
    grid-row: 1;
  }
  body.lem-woo-single #qodef-woo-page .woocommerce-product-gallery__wrapper > .qodef-woo-thumbnails-wrapper {
    grid-column: 1;
    grid-row: 2;
    flex-direction: row;
    width: 100% !important;
    max-width: 100% !important;
  }
  body.lem-woo-single #qodef-woo-page .summary form.variations_form table.variations th.label {
    width: 30%;
  }
  body.lem-woo-single #qodef-woo-page .summary form.variations_form table.variations td.value {
    width: 70%;
  }
  body.lem-woo-single #qodef-woo-page .summary button.single_add_to_cart_button {
    flex-basis: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.lem-woo-single #qodef-woo-page .related.products ul.products > li.product,
  body.lem-woo-single #qodef-woo-page .upsells.products ul.products > li.product {
    transition: none;
  }
}


/* LEM V7 : masquer uniquement les blocs de meta et de partage de la fiche.
   Les autres composants WooCommerce et le badge de categorie restent visibles. */
body.single-product.lem-woo-single #qodef-woo-page .summary.entry-summary > .product_meta,
body.single-product.lem-woo-single #qodef-woo-page .summary.entry-summary > .qodef-social-share {
  display: none !important;
}

/* ==========================================================
 * LEM V8 | Onglets produit : un seul indicateur sous l'onglet actif.
 * Neutralise les soulignements/ornements herites d'Agraria.
 * ========================================================== */
body.lem-woo-single #qodef-woo-page .woocommerce-tabs ul.tabs li,
body.lem-woo-single #qodef-woo-page .woocommerce-tabs ul.tabs li a {
  border-bottom: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  background-image: none !important;
}
body.lem-woo-single #qodef-woo-page .woocommerce-tabs ul.tabs li::before,
body.lem-woo-single #qodef-woo-page .woocommerce-tabs ul.tabs li::after,
body.lem-woo-single #qodef-woo-page .woocommerce-tabs ul.tabs li a::before,
body.lem-woo-single #qodef-woo-page .woocommerce-tabs ul.tabs li a::after {
  content: none !important;
  display: none !important;
}
body.lem-woo-single #qodef-woo-page .woocommerce-tabs ul.tabs li.active {
  border-bottom: 3px solid var(--lem-single-green, #193414) !important;
}

/* ==========================================================
 * LEM V9 | Choix Modele et Taille par boutons accessibles.
 * Les selects natifs restent actifs pour WooCommerce et Select2.
 * Les styles ne s'activent qu'apres creation des boutons en JS.
 * ========================================================== */
body.lem-woo-single #qodef-woo-page .summary form.variations_form table.variations {
  border-spacing: 0 !important;
  margin-bottom: 22px;
}
body.lem-woo-single #qodef-woo-page .summary form.variations_form table.variations tr.lem-variation-enhanced {
  display: grid !important;
  width: 100%;
  grid-template-columns: minmax(95px, 130px) minmax(0, 1fr);
  align-items: center;
  gap: 12px 18px;
  margin: 0 0 22px;
}
body.lem-woo-single #qodef-woo-page .summary form.variations_form table.variations tr.lem-variation-row--taille {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
body.lem-woo-single #qodef-woo-page .summary form.variations_form table.variations tr.lem-variation-enhanced > th.label,
body.lem-woo-single #qodef-woo-page .summary form.variations_form table.variations tr.lem-variation-enhanced > td.value {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  min-width: 0;
  text-align: left;
}
body.lem-woo-single #qodef-woo-page .summary form.variations_form table.variations tr.lem-variation-enhanced th.label label {
  display: inline-block;
  color: var(--lem-single-green);
  font-size: 18px;
  font-weight: 700;
}
/* Ne jamais retirer le select du DOM : le moteur de variations le lit. */
body.lem-woo-single #qodef-woo-page .summary form.variations_form tr.lem-variation-enhanced td.value > select,
body.lem-woo-single #qodef-woo-page .summary form.variations_form tr.lem-variation-enhanced td.value > .select2-container {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
body.lem-woo-single #qodef-woo-page .summary .lem-variation-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
}
body.lem-woo-single #qodef-woo-page .summary button.lem-variation-choice {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 55px;
  min-height: 49px;
  margin: 0 !important;
  padding: 11px 16px;
  border: 1px solid #d8d2cf;
  border-radius: 9px;
  background: #fff;
  color: var(--lem-single-green);
  font-family: inherit;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
body.lem-woo-single #qodef-woo-page .summary .lem-variation-options--modele button.lem-variation-choice {
  min-width: 125px;
}
body.lem-woo-single #qodef-woo-page .summary button.lem-variation-choice:hover:not(:disabled) {
  border-color: var(--lem-single-green);
  background: #f5f7f3;
  color: var(--lem-single-green);
}
body.lem-woo-single #qodef-woo-page .summary button.lem-variation-choice.is-selected,
body.lem-woo-single #qodef-woo-page .summary button.lem-variation-choice.is-selected:hover {
  border-color: var(--lem-single-green);
  background: var(--lem-single-green);
  color: #fff;
}
body.lem-woo-single #qodef-woo-page .summary button.lem-variation-choice:disabled {
  opacity: .38;
  cursor: not-allowed;
  text-decoration: line-through;
}
body.lem-woo-single #qodef-woo-page .summary button.lem-variation-choice:focus-visible {
  outline: 3px solid var(--lem-single-pink);
  outline-offset: 3px;
}
body.lem-woo-single #qodef-woo-page .summary .lem-variation-row .reset_variations {
  display: inline-block;
  margin: 10px 0 0;
  color: var(--lem-single-brown);
  font-size: 13px;
}
@media (max-width: 480px) {
  body.lem-woo-single #qodef-woo-page .summary form.variations_form table.variations tr.lem-variation-enhanced {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  body.lem-woo-single #qodef-woo-page .summary button.lem-variation-choice {
    min-width: 48px;
    min-height: 46px;
    padding: 10px 13px;
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.lem-woo-single #qodef-woo-page .summary button.lem-variation-choice { transition: none; }
}

/* ==========================================================
 * LEM V10 | Galerie proportionnee au bloc d'achat.
 * Desktop : le bas de l'image principale suit le bas de la
 * colonne de droite, au lieu d'une hauteur 3/4 imposee.
 * Tablette/mobile : hauteur limitee, sans incidence sur le panier.
 * ========================================================== */
@media (min-width: 781px) {
  body.lem-woo-single #qodef-woo-page .qodef-woo-single-inner {
    align-items: stretch;
  }
  /* Sortir le contenu photographique du flux permet a la colonne
     de droite (variations + achat) de determiner la hauteur. */
  body.lem-woo-single #qodef-woo-page .qodef-woo-single-inner > .qodef-woo-single-image {
    position: relative;
    min-height: 0;
    height: 100%;
    align-self: stretch;
  }
  body.lem-woo-single #qodef-woo-page .qodef-woo-single-image > .woocommerce-product-gallery {
    position: absolute;
    inset: 0;
    height: 100% !important;
    min-height: 0;
  }
  body.lem-woo-single #qodef-woo-page .woocommerce-product-gallery__wrapper {
    height: 100% !important;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
  }
  body.lem-woo-single #qodef-woo-page .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child {
    height: 100% !important;
    min-height: 0;
  }
  body.lem-woo-single #qodef-woo-page .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child > a {
    display: block;
    width: 100%;
    height: 100%;
  }
  body.lem-woo-single #qodef-woo-page .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child img:not(.zoomImg) {
    width: 100% !important;
    height: 100% !important;
    max-height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center top;
  }
}
@media (max-width: 780px) {
  body.lem-woo-single #qodef-woo-page .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child img:not(.zoomImg) {
    width: 100% !important;
    height: auto !important;
    max-height: 500px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center top;
  }
}


/* ==========================================================
 * LEM V11 | Photos catalogue / produits simples.
 * La hauteur du media reste liee au bloc d'achat (V10),
 * mais une photo de produit sur fond blanc ne doit pas etre
 * recadree : un bonnet doit rester visible integralement.
 * Le recadrage "cover" est conserve pour les photos portees
 * des produits variables.
 * ========================================================== */
body.lem-woo-single #qodef-woo-page .product.product-type-simple .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child {
  background: #fff;
}
body.lem-woo-single #qodef-woo-page .product.product-type-simple .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child img:not(.zoomImg) {
  object-fit: contain !important;
  object-position: center center !important;
  background: #fff;
}

/* LEM V12 | Retour de validation du bouton Commander (sans panier). */
body.lem-woo-single #qodef-woo-page .lem-preorder-feedback {
  margin: 12px 0 0;
  color: #a52240;
  font-size: 14px;
  line-height: 1.45;
}
body.lem-woo-single #qodef-woo-page .lem-preorder-feedback[hidden] { display: none; }
