/* ==========================================================================
   Fiche produit School of Cool / Hold Fast — refonte 2026
   Direction : Kustom Noir (#000 sol, #FFF encre, #F15A1A accent, rayon 0)
   Portée : tout est descendant de .sc-fiche* — inerte sur l'ancien template.
   ========================================================================== */

.sc-fiche,
.sc-fiche__detail,
.sc-fiche__similaires,
.sc-fiche__titre {
  --sc-bg: #000000;
  --sc-surface: #1A202C;
  --sc-ink: #FFFFFF;
  --sc-muted: #A0AEC0;
  --sc-accent: #F15A1A;
  --sc-hairline: #2D3748;
  --sc-ok: #0ABF62;
  --sc-head: 'Roboto Flex', sans-serif;
  --sc-body: Roboto, sans-serif;
}

/* ---------- 1. GALERIE : un seul ratio, plus aucun saut ---------- */

.sc-fiche__galerie .woocommerce-product-gallery { margin-bottom: 0; }

/* On NE touche PAS a la hauteur du .flex-viewport : c'est elle qui decoupe le
   carrousel. La stabilite vient du ratio identique impose aux images ci-dessous.
   Seule la transition de hauteur est supprimee pour eviter l'effet elastique. */
.sc-fiche__galerie .flex-viewport {
  transition: none !important;
  overflow: hidden;
}

.sc-fiche__galerie .woocommerce-product-gallery__image { display: block; }

/* ---- VERROU ANTI-EMPILEMENT (le correctif decisif) ----
   Quand FlexSlider s'initialise, il deplace la liste des photos DANS un
   .flex-viewport. Le selecteur ci-dessous ne cible donc QUE l'etat non
   initialise : JavaScript bloque, retarde par LiteSpeed, ou en erreur.
   Dans ce cas on n'affiche que la premiere photo, sinon les 32 visuels
   s'empilent verticalement et la page depasse 15 000 px. */
.sc-fiche__galerie .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
  max-height: 125vw;
  overflow: hidden;
}
.sc-fiche__galerie .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper > *:not(:first-child) {
  display: none !important;
}

/* Une fois le slider en place, tout redevient normal */
.sc-fiche__galerie .flex-viewport .woocommerce-product-gallery__wrapper > * { display: block; }
.sc-fiche__galerie .flex-viewport .woocommerce-product-gallery__wrapper { max-height: none; overflow: visible; }

/* Le ratio unique. C'est la règle qui supprime le vide sous l'image. */
.sc-fiche__galerie .woocommerce-product-gallery__image img,
.sc-fiche__galerie .woocommerce-product-gallery__wrapper img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
}

/* Miniatures : une ligne défilante, angles vifs, sélection à l'orange */
.sc-fiche__galerie .flex-control-nav,
.sc-fiche__galerie .flex-control-thumbs {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 6px;
  margin: 8px 0 0 !important;
  padding: 0 0 2px !important;
  list-style: none;
}
.sc-fiche__galerie .flex-control-nav::-webkit-scrollbar { display: none; }

.sc-fiche__galerie .flex-control-nav li {
  flex: 0 0 64px !important;
  width: 64px !important;
  margin: 0 !important;
}
.sc-fiche__galerie .flex-control-nav li img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  height: auto;
  opacity: .5;
  border: 0;
  border-radius: 0;
  transition: opacity .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.sc-fiche__galerie .flex-control-nav li img.flex-active,
.sc-fiche__galerie .flex-control-nav li img:hover {
  opacity: 1;
  box-shadow: inset 0 0 0 2px var(--sc-accent);
}

/* Loupe de zoom : discrète, carrée */
.sc-fiche__galerie .woocommerce-product-gallery__trigger {
  border-radius: 0 !important;
  background: rgba(0,0,0,.55) !important;
  border: 1px solid var(--sc-hairline);
  top: 12px; right: 12px;
}

/* ---------- 2. TITRE ---------- */

.sc-fiche__titre .product_title,
.sc-fiche__titre h1 {
  font-family: var(--sc-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--sc-ink);
  text-wrap: balance;
}

/* ---------- 3. BLOC ACHAT ---------- */

.sc-fiche__achat { font-family: var(--sc-body); }

.sc-fiche__achat .price,
.sc-fiche__achat .woocommerce-Price-amount {
  font-family: var(--sc-head);
  font-weight: 700;
  color: var(--sc-accent);
  letter-spacing: -.01em;
}
.sc-fiche__achat .price { margin: 0 0 20px; line-height: 1.1; }

/* Sélecteur de taille */
.sc-fiche__achat table.variations { margin: 0 0 18px; border: 0; width: 100%; }
.sc-fiche__achat table.variations th,
.sc-fiche__achat table.variations td { border: 0; padding: 0; display: block; width: 100%; }
.sc-fiche__achat table.variations th.label {
  font-family: var(--sc-head);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--sc-muted);
  padding-bottom: 8px;
}
.sc-fiche__achat .variations select,
.sc-fiche__achat select {
  width: 100%;
  min-height: 52px;
  padding: 0 44px 0 14px;
  background-color: #fff;
  color: #14171d;
  border: 1px solid var(--sc-hairline);
  border-radius: 0;
  font-family: var(--sc-body);
  font-size: 16px; /* empêche le zoom automatique iOS */
  font-weight: 500;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F15A1A' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.sc-fiche__achat .reset_variations {
  color: var(--sc-muted);
  font-size: 13px;
  text-decoration: underline;
}

/* Quantité + bouton : le bouton domine */
.sc-fiche__achat form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 0; }
.sc-fiche__achat form.cart .quantity { flex: 0 0 96px; }
.sc-fiche__achat form.cart .quantity input.qty {
  width: 100%; height: 100%; min-height: 54px;
  background: transparent;
  color: var(--sc-ink);
  border: 1px solid var(--sc-hairline);
  border-radius: 0;
  text-align: center;
  font-family: var(--sc-head);
  font-size: 16px; font-weight: 700;
}
.sc-fiche__achat form.cart .variations_form,
.sc-fiche__achat form.variations_form { display: block; width: 100%; }

.sc-fiche__achat .single_add_to_cart_button,
.sc-fiche__achat button.button.alt {
  flex: 1 1 200px;
  min-height: 54px;
  padding: 16px 28px;
  background: var(--sc-accent) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-family: var(--sc-head);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  box-shadow: none !important;
  cursor: pointer;
  transition: transform .12s ease, filter .18s ease;
}
.sc-fiche__achat .single_add_to_cart_button:hover { filter: brightness(1.1); }
.sc-fiche__achat .single_add_to_cart_button:active { transform: translateY(1px); }
.sc-fiche__achat .single_add_to_cart_button:focus-visible {
  outline: 3px solid #fff; outline-offset: 2px;
}
.sc-fiche__achat .single_add_to_cart_button.disabled,
.sc-fiche__achat .single_add_to_cart_button:disabled {
  background: var(--sc-hairline) !important; cursor: not-allowed; filter: none;
}

/* Disponibilité */
.sc-fiche__achat .stock.in-stock {
  color: var(--sc-ok);
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  margin: 14px 0 0;
}
.sc-fiche__achat .stock.out-of-stock { color: #F56565; }

.sc-fiche__achat .single_variation_wrap { width: 100%; }
.sc-fiche__achat .woocommerce-variation-price { margin-bottom: 14px; }

/* ---------- 4. RÉASSURANCE ---------- */

.sc-rea-wrap { margin: 26px 0 0; }
.sc-rea {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--sc-hairline);
  border-bottom: 1px solid var(--sc-hairline);
}
.sc-rea__i {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 6px;
  text-align: center;
  color: var(--sc-ink);
}
.sc-rea__i + .sc-rea__i { border-left: 1px solid var(--sc-hairline); }
.sc-rea__i svg { width: 24px; height: 24px; flex: 0 0 auto; color: var(--sc-accent); }
.sc-rea__i span {
  font-family: var(--sc-head);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--sc-muted);
}

/* ---------- 5. DESCRIPTION COURTE ---------- */

.sc-fiche__achat .woocommerce-product-details__short-description {
  font-family: var(--sc-body);
  font-size: 15px;
  line-height: 1.62;
  color: #E2E6EC;
  margin: 0;
  max-width: 62ch;
}

/* La description est le premier bloc, juste sous les photos : aucune marge
   haute, et le prix qui suit prend la separation. */
.sc-fiche__achat .elementor-widget-woocommerce-product-short-description { margin-top: 0 !important; }
.sc-fiche__achat .elementor-widget-woocommerce-product-price { margin-top: 22px !important; }
.sc-fiche__achat .woocommerce-product-details__short-description > *:first-child { margin-top: 0; }
.sc-fiche__achat .woocommerce-product-details__short-description > *:last-child { margin-bottom: 0; }
.sc-fiche__achat .woocommerce-product-details__short-description ul { padding-left: 0; list-style: none; margin: 0; }
.sc-fiche__achat .woocommerce-product-details__short-description li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
}
.sc-fiche__achat .woocommerce-product-details__short-description li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 8px; height: 1px;
  background: var(--sc-accent);
}
.sc-fiche__achat .woocommerce-product-details__short-description b,
.sc-fiche__achat .woocommerce-product-details__short-description strong { color: #fff; font-weight: 600; }

/* Repli de la description courte sur mobile : 3 lignes puis « Lire la suite » */
.sc-desc-clamp { position: relative; }
.sc-desc-clamp[data-replie="1"] .woocommerce-product-details__short-description {
  max-height: 128px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}
.sc-desc-plus {
  display: none;
  margin-top: 12px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--sc-accent);
  padding: 0 0 3px;
  color: var(--sc-accent);
  font-family: var(--sc-head);
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
  cursor: pointer;
}
.sc-desc-clamp .sc-desc-plus { display: inline-block; }

/* ---------- 6. DÉTAIL : onglets desktop, accordéons mobile ---------- */

.sc-fiche__detail { font-family: var(--sc-body); }

.sc-fiche__detail .woocommerce-tabs ul.tabs {
  padding: 0;
  margin: 0 0 28px;
  border-bottom: 1px solid var(--sc-hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.sc-fiche__detail .woocommerce-tabs ul.tabs::before { display: none; }
.sc-fiche__detail .woocommerce-tabs ul.tabs li {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.sc-fiche__detail .woocommerce-tabs ul.tabs li::before,
.sc-fiche__detail .woocommerce-tabs ul.tabs li::after { display: none !important; }
.sc-fiche__detail .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 14px 22px;
  font-family: var(--sc-head);
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--sc-muted) !important;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.sc-fiche__detail .woocommerce-tabs ul.tabs li.active a,
.sc-fiche__detail .woocommerce-tabs ul.tabs li a:hover {
  color: var(--sc-ink) !important;
  border-bottom-color: var(--sc-accent);
}

.sc-fiche__detail .woocommerce-Tabs-panel {
  font-size: 15px;
  line-height: 1.68;
  color: #E2E6EC;
}
.sc-fiche__detail .woocommerce-Tabs-panel > h2:first-child { display: none; }
.sc-fiche__detail .woocommerce-Tabs-panel h2,
.sc-fiche__detail .woocommerce-Tabs-panel h3 {
  font-family: var(--sc-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--sc-ink);
  margin: 34px 0 12px;
}
.sc-fiche__detail .woocommerce-Tabs-panel h3 { font-size: 19px; }
.sc-fiche__detail .woocommerce-Tabs-panel p { max-width: 68ch; }
.sc-fiche__detail .woocommerce-Tabs-panel table {
  width: 100%; border-collapse: collapse; margin: 18px 0;
}
.sc-fiche__detail .woocommerce-Tabs-panel table th,
.sc-fiche__detail .woocommerce-Tabs-panel table td {
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid var(--sc-hairline);
  text-align: left;
}
.sc-fiche__detail .woocommerce-Tabs-panel table th {
  font-family: var(--sc-head);
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--sc-accent);
}

/* ---------- 7. PRODUITS SIMILAIRES ---------- */

.sc-fiche__similaires .products li.product .woocommerce-loop-product__title {
  font-family: var(--sc-head);
  font-size: 14px; font-weight: 700;
  line-height: 1.28;
  text-transform: uppercase; letter-spacing: .03em;
}
.sc-fiche__similaires .products li.product img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
  transition: transform .5s cubic-bezier(.22,.61,.36,1), opacity .3s ease;
}
.sc-fiche__similaires .products li.product:hover img { transform: scale(1.045); }
.sc-fiche__similaires .products li.product .price { color: var(--sc-accent); font-family: var(--sc-head); font-weight: 700; }
.sc-fiche__similaires .products li.product a.button {
  background: transparent;
  border: 2px solid #fff;
  border-radius: 0;
  color: #fff;
  font-family: var(--sc-head);
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
}
.sc-fiche__similaires .products li.product a.button:hover {
  background: var(--sc-accent); border-color: var(--sc-accent);
}

/* ==========================================================================
   DESKTOP — galerie collante + parallaxe
   ========================================================================== */

@media (min-width: 1025px) {
  .sc-fiche__galerie {
    position: sticky;
    top: 90px;
    align-self: start;
  }
  /* Profondeur : le visuel principal réagit au défilement (piloté en JS) */
  .sc-fiche__galerie .woocommerce-product-gallery__image img {
    will-change: transform;
    transform: translate3d(0, var(--sc-par, 0px), 0) scale(var(--sc-par-s, 1));
  }
  .sc-fiche__achat { padding-bottom: 40px; }

  /* Apparition en profondeur des blocs de détail */
  .sc-anim {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  }
  .sc-anim.sc-vu { opacity: 1; transform: none; }
}

/* ==========================================================================
   MOBILE — sobre, dense, achat toujours à portée de pouce
   ========================================================================== */

@media (max-width: 1024px) {

  .sc-fiche { display: flex; flex-direction: column; }

  /* Le visuel touche les bords : plus premium, et on récupère 40px de largeur */
  .sc-fiche__galerie {
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
    max-width: calc(100% + 40px);
  }
  .sc-fiche__galerie .flex-control-nav { padding-left: 20px !important; padding-right: 20px !important; }

  .sc-fiche__achat { padding: 22px 0 0 !important; }

  .sc-fiche__achat .price { font-size: 26px; margin-bottom: 18px; }

  /* Réassurance : 2 colonnes, plus lisible qu'en 4 sur 360px */
  .sc-rea { grid-template-columns: repeat(2, 1fr); }
  .sc-rea__i:nth-child(odd) { border-left: 0; }
  .sc-rea__i:nth-child(-n+2) { border-bottom: 1px solid var(--sc-hairline); }
  .sc-rea__i { padding: 15px 8px; }

  /* Onglets convertis en accordéons */
  .sc-fiche__detail .woocommerce-tabs ul.tabs { display: none !important; }
  .sc-fiche__detail .woocommerce-Tabs-panel { display: block !important; padding: 0; }

  .sc-acc { border-top: 1px solid var(--sc-hairline); }
  .sc-acc:last-of-type { border-bottom: 1px solid var(--sc-hairline); }
  .sc-acc__t {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-height: 58px;
    padding: 16px 2px;
    background: none;
    border: 0;
    color: var(--sc-ink);
    font-family: var(--sc-head);
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .09em;
    cursor: pointer;
  }
  .sc-acc__t svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--sc-accent); transition: transform .3s cubic-bezier(.22,.61,.36,1); }
  .sc-acc__t[aria-expanded="true"] svg { transform: rotate(180deg); }
  .sc-acc__c {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .34s cubic-bezier(.22,.61,.36,1);
  }
  .sc-acc__c > div { overflow: hidden; }
  .sc-acc[data-ouvert="1"] .sc-acc__c { grid-template-rows: 1fr; }
  .sc-acc__c .sc-acc__in { padding: 0 2px 24px; }

  /* Barre d'achat collante */
  .sc-barre {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 998;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(6, 8, 12, .94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--sc-hairline);
    transform: translate3d(0, 105%, 0);
    transition: transform .34s cubic-bezier(.22,.61,.36,1);
  }
  .sc-barre.sc-visible { transform: none; }
  .sc-barre__vig {
    flex: 0 0 46px; width: 46px; height: 56px;
    object-fit: cover; border-radius: 0;
  }
  .sc-barre__txt { flex: 1 1 auto; min-width: 0; }
  .sc-barre__nom {
    display: block;
    font-family: var(--sc-head);
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    color: var(--sc-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .sc-barre__prix {
    display: block;
    font-family: var(--sc-head);
    font-size: 19px; font-weight: 700;
    color: var(--sc-accent);
    line-height: 1.25;
  }
  .sc-barre__prix .woocommerce-Price-amount { font-size: inherit; color: inherit; }
  .sc-barre__b {
    flex: 0 0 auto;
    min-height: 48px;
    padding: 13px 22px;
    background: var(--sc-accent);
    color: #fff;
    border: 0; border-radius: 0;
    font-family: var(--sc-head);
    font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    cursor: pointer;
  }
  .sc-barre__b:active { transform: translateY(1px); }

  /* Le WhatsApp flottant du site ne doit pas passer sous la barre */
  body.sc-barre-on .wa__button,
  body.sc-barre-on .whatsapp-chat-box,
  body.sc-barre-on [class*="whatsapp"][class*="float"] { bottom: 92px !important; }

  /* Apparitions sobres : fondu + 16px, rien de plus */
  .sc-anim {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    transition: opacity .5s ease, transform .5s cubic-bezier(.22,.61,.36,1);
  }
  .sc-anim.sc-vu { opacity: 1; transform: none; }
}

/* ---------- Accessibilité : mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  .sc-anim { opacity: 1 !important; transform: none !important; transition: none !important; }
  .sc-fiche__galerie .woocommerce-product-gallery__image img { transform: none !important; }
  .sc-barre { transition: none !important; }
  .sc-acc__c { transition: none !important; }
  .sc-fiche__similaires .products li.product img { transition: none !important; }
}

/* Si le JS ne tourne pas, rien n'est caché */
.no-js .sc-anim, html:not(.sc-js) .sc-anim { opacity: 1 !important; transform: none !important; }

/* ==========================================================================
   CORRECTIONS — cohabitation avec les personnalisations déjà en place
   ========================================================================== */

/* --- Titre : il était en gris rosé (#FFDEDE) sur fond noir --- */
.sc-fiche__titre .elementor-widget-woocommerce-product-title h1,
.sc-fiche__titre h1.product_title,
.sc-fiche__titre h1 {
  color: #FFFFFF !important;
  font-family: var(--sc-head) !important;
  font-size: clamp(21px, 3.4vw, 36px) !important;
  line-height: 1.1 !important;
  letter-spacing: -.01em;
  overflow: visible;
  text-wrap: balance;
}

/* --- Champ quantité : le thème ajoute des boutons +/- (spinners-added) --- */
.sc-fiche__achat form.cart .quantity,
.sc-fiche__achat .quantity.spinners-added {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  height: 54px;
  width: auto;
}
.sc-fiche__achat .quantity input.minus,
.sc-fiche__achat .quantity input.plus {
  flex: 0 0 38px;
  width: 38px;
  height: 54px;
  padding: 0;
  background: transparent;
  color: var(--sc-ink);
  border: 1px solid var(--sc-hairline);
  border-radius: 0;
  font-family: var(--sc-head);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s ease;
}
.sc-fiche__achat .quantity input.minus:hover,
.sc-fiche__achat .quantity input.plus:hover { background: var(--sc-surface); }
.sc-fiche__achat .quantity input.minus { border-right: 0; }
.sc-fiche__achat .quantity input.plus { border-left: 0; }
.sc-fiche__achat form.cart .quantity input.qty {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  min-height: 0;
  border-left: 0;
  border-right: 0;
}
.sc-fiche__achat .quantity label.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Le formulaire de variation contient son propre bloc : on aligne proprement */
.sc-fiche__achat .single_variation_wrap .woocommerce-variation-add-to-cart {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}
.sc-fiche__achat .woocommerce-variation-add-to-cart .single_add_to_cart_button { flex: 1 1 190px; }

/* --- Bloc « Complète ton look » existant --- */
.sc-fiche__achat .soc-look-suggestion {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--sc-hairline);
  background: transparent;
}
.sc-fiche__achat .soc-look-suggestion img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
}

/* Sur mobile il est sorti de la zone d'achat par le script et pose avant les
   produits similaires. On le compacte en carte horizontale : 385 px de haut
   deviennent environ 110 px. */
@media (max-width: 1024px) {
  .soc-look-suggestion.sc-cross--deplace {
    margin: 0 20px 8px;
    padding: 20px 0 0;
    border-top: 1px solid var(--sc-hairline);
    background: transparent;
  }
  .soc-look-suggestion.sc-cross--deplace h4 {
    margin: 0 0 12px;
    font-family: var(--sc-head, 'Roboto Flex', sans-serif);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #F15A1A;
  }
  .soc-look-suggestion.sc-cross--deplace > a {
    display: flex !important;
    align-items: center;
    gap: 14px;
    height: auto !important;
    text-decoration: none;
    color: #fff;
  }
  .soc-look-suggestion.sc-cross--deplace > a img {
    flex: 0 0 84px;
    width: 84px !important;
    height: 84px !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0;
  }
  .soc-look-suggestion.sc-cross--deplace > a > *:not(img) {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
  }
}

/* --- Boutons de boucle (produits liés, suggestions) : jamais de bleu Kadence --- */
.sc-fiche .add_to_cart_button,
.sc-fiche__similaires .add_to_cart_button,
.sc-fiche__achat .add_to_cart_button {
  background: var(--sc-accent);
  border-radius: 0;
  font-family: var(--sc-head);
  text-transform: uppercase;
  letter-spacing: .07em;
}

/* --- Le PayPal en 4x et les mentions : lisibles sur noir --- */
.sc-fiche__achat .pp-message-container,
.sc-fiche__achat .woocommerce-variation-availability { margin-top: 12px; }
