body.torqo-fiche-produit .summary.entry-summary {
  --torqo-fiche-largeur: 748px;
}

.torqo-partners {
  clear: both;
  box-sizing: border-box;
  width: min(100%, var(--torqo-fiche-largeur, 748px));
  margin: 1.1rem 0;
  padding: clamp(11px, 2.42%, 19.8px);
  border-radius: 12px;
  border-inline-start: 4px solid #a8eb27;
  background: linear-gradient(120deg, #171b1b, #262c28);
  color: #fff;
}

.torqo-partners .torqo-partners__heading {
  margin: 0 0 .65rem;
  color: #c1f461;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: .075em;
  line-height: 1.35;
  text-transform: uppercase;
}

.torqo-partners .torqo-partners__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(5px, 2%, 12px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.torqo-partners .torqo-partners__partner {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid #454e46;
  border-radius: 7px;
  background: #202522;
  list-style: none;
  overflow: hidden;
}

.torqo-partners__logo {
  position: relative;
  aspect-ratio: 2.05;
  overflow: hidden;
  background: #242524;
}

.torqo-partners .torqo-partners__logo > img {
  position: absolute;
  display: block;
  left: var(--torqo-logo-left);
  top: var(--torqo-logo-top);
  width: var(--torqo-logo-width);
  height: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

.torqo-partners__partner--crew {
  --torqo-logo-left: -24%;
  --torqo-logo-top: -66%;
  --torqo-logo-width: 145%;
}

.torqo-partners__partner--evenement {
  --torqo-logo-left: -18%;
  --torqo-logo-top: -79%;
  --torqo-logo-width: 135%;
}

.torqo-partners__partner--xavier {
  --torqo-logo-left: 0%;
  --torqo-logo-top: -51%;
  --torqo-logo-width: 100%;
}

.torqo-partners__name {
  display: block;
  padding: 7px 4px;
  color: #f6f8f5;
  font-size: clamp(13px, 1.2vw, 16.5px);
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  overflow-wrap: break-word;
}

/* Typographie et commandes principales des fiches de produits. */
body.torqo-fiche-produit .summary.entry-summary h1.product_title {
  font-size: clamp(29px, 2.45vw, 49px) !important;
  line-height: 1.12;
  overflow-wrap: break-word;
}

body.torqo-fiche-produit .summary.entry-summary > .price,
body.torqo-fiche-produit .summary.entry-summary .woocommerce-variation-price .price {
  font-size: clamp(42px, 3vw, 54px) !important;
  line-height: 1.25;
}

body.torqo-fiche-produit .summary.entry-summary > .price :is(.amount, bdi, .woocommerce-Price-currencySymbol),
body.torqo-fiche-produit .summary.entry-summary .woocommerce-variation-price .price :is(.amount, bdi, .woocommerce-Price-currencySymbol) {
  font-size: inherit !important;
}


body.torqo-fiche-produit .summary.entry-summary .torqo-features {
  max-width: var(--torqo-fiche-largeur, 748px);
  box-sizing: border-box;
  padding: clamp(13px, 2.1%, 19px);
}

body.torqo-fiche-produit .summary.entry-summary .torqo-features,
body.torqo-fiche-produit .summary.entry-summary .torqo-features :is(p, ul, li, span, div),
body.torqo-fiche-produit .summary.entry-summary .woocommerce-product-details__short-description,
body.torqo-fiche-produit .summary.entry-summary .woocommerce-product-details__short-description p {
  font-size: clamp(16px, 1.08vw, 19px) !important;
  line-height: 1.55;
}

body.torqo-fiche-produit .summary.entry-summary .woocommerce-product-details__short-description {
  max-inline-size: 70ch;
}

/* Le thème peut limiter le formulaire à la largeur de ses contrôles. */
body.torqo-fiche-produit .summary.entry-summary :is(
  form.cart,
  form.cart .single_variation_wrap,
  form.cart .woocommerce-variation-add-to-cart
) {
  box-sizing: border-box;
  width: 100% !important;
  max-width: var(--torqo-fiche-largeur, 748px) !important;
  margin-inline: 0;
}

body.torqo-fiche-produit .summary.entry-summary :is(
  form.cart:not(.grouped_form),
  form.cart .woocommerce-variation-add-to-cart
) {
  flex-direction: column;
  align-items: flex-start;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
}

body.torqo-fiche-produit .summary.entry-summary form.cart .single_add_to_cart_button {
  box-sizing: border-box;
  display: block;
  clear: both;
  float: none;
  width: 100% !important;
  min-width: 0;
  max-width: var(--torqo-fiche-largeur, 748px) !important;
  margin-block-start: 10px;
  margin-inline: 0;
  min-height: 104px !important;
  padding: 12px clamp(8px, 2vw, 22px);
  font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1.35;
}

body.torqo-fiche-produit .summary.entry-summary form.cart .quantity {
  width: 116px !important;
  max-width: 100%;
}

body.torqo-fiche-produit .summary.entry-summary form.cart .quantity .qty {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100%;
  height: 112px !important;
  font-size: 34px !important;
}

.torqo-couleurs {
  width: min(100%, var(--torqo-fiche-largeur, 748px));
  margin: 1.15rem 0;
}

.torqo-couleurs .torqo-couleurs__titre {
  margin: 0;
  font-size: clamp(19px, 1.55vw, 23px);
  line-height: 1.3;
}

.torqo-couleurs .torqo-couleurs__actuelle {
  margin: .25rem 0 .8rem;
  color: #4d594f;
  font-size: 15px;
}

.torqo-couleurs .torqo-couleurs__grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 144px), 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.torqo-couleurs .torqo-couleurs__option {
  min-width: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.torqo-couleurs .torqo-couleurs__lien {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  box-sizing: border-box;
  border: 1px solid #d4ddd1;
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
}

.torqo-couleurs .torqo-couleurs__lien[aria-current="page"] {
  border: 2px solid #3b720d;
  box-shadow: inset 0 -3px #a5e72c;
}

.torqo-couleurs .torqo-couleurs__lien:hover {
  border-color: #3b720d;
}

.torqo-couleurs .torqo-couleurs__lien:focus-visible {
  outline: 2px solid #3b720d;
  outline-offset: 2px;
}

.torqo-couleurs .torqo-couleurs__image {
  display: block;
  width: 100%;
  aspect-ratio: 1.65;
  overflow: hidden;
}

.torqo-couleurs .torqo-couleurs__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0;
}

.torqo-couleurs .torqo-couleurs__image--montage {
  position: relative;
}

.torqo-couleurs .torqo-couleurs__image--montage img {
  position: absolute;
  inset: 15% 0 auto;
  height: 70%;
  object-fit: cover;
  object-position: center top;
}

.torqo-couleurs--outlaw .torqo-couleurs__image img {
  object-fit: cover;
  object-position: center 59%;
}

.torqo-couleurs .torqo-couleurs__nom {
  padding: 6px 7px 8px;
  color: #233021;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 650;
  overflow-wrap: break-word;
  text-align: center;
}

@media (max-width: 640px) {
  .torqo-couleurs .torqo-couleurs__grille {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 108px), 1fr));
    gap: 8px;
  }

  .torqo-couleurs .torqo-couleurs__nom {
    font-size: 13px;
  }
}

.torqo-couleurs .torqo-couleurs__stock {
  position: absolute;
  right: 0;
  top: 0;
  padding: 2px 4px;
  background: #252c26;
  color: #fff;
  font-size: 10px;
  line-height: 1.25;
}

/* Aligne la rangée des paiements express avec les blocs de la fiche. */
body.torqo-fiche-produit .summary.entry-summary :is(
  #wc-stripe-express-checkout-element,
  #wc-stripe-express-checkout-element-wrapper,
  .wc-stripe-express-checkout-wrapper,
  #wc-stripe-express-checkout-button-separator,
  #wcpay-express-checkout-element,
  .wcpay-express-checkout-wrapper,
  #wcpay-express-checkout-button-separator,
  #wc-stripe-payment-request-wrapper,
  #wcpay-payment-request-wrapper
) {
  box-sizing: border-box;
  width: 100% !important;
  max-width: var(--torqo-fiche-largeur, 748px) !important;
  margin-inline-start: 0 !important;
  margin-inline-end: auto !important;
}

body.torqo-fiche-vetement .summary.entry-summary form.variations_form .variations {
  width: 100%;
}

body.torqo-fiche-vetement .summary.entry-summary form.variations_form .variations :is(label, select) {
  font-size: 16px;
}

body.torqo-fiche-vetement .summary.entry-summary form.variations_form .variations select {
  min-height: 48px;
  max-width: 100%;
}

body.torqo-fiche-vetement .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:only-child {
  flex: 0 0 100%;
  width: 100%;
}

body.torqo-fiche-vetement .woocommerce-product-gallery__image > a {
  width: 100%;
}

body.torqo-fiche-vetement .woocommerce-product-gallery__image > a > img:not(.zoomImg) {
  display: block;
  float: none !important;
  margin-inline: auto !important;
  object-fit: contain;
  object-position: center;
}

@media (min-width: 1024px) {
  body.torqo-fiche-vetement #main .product-detail-wrapper > .woocommerce-product-gallery {
    align-self: flex-start;
  }

  body.torqo-fiche-vetement .woocommerce-product-gallery__image > a > img:not(.zoomImg) {
    max-width: 65.025% !important;
    height: auto;
  }
}
