/* Page produit WooCommerce - Swiss Race Customs */
body.single-product table.variations tr.src-fixed-brand {
  display: none !important;
}

body.single-product {
  background: #f4f4f4;
  color: #111;
}

body.single-product main,
body.single-product .site-main {
  padding-top: 54px;
  padding-bottom: 80px;
}

body.single-product div.product {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  align-items: start;
  gap: 46px 64px;
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
}

body.single-product div.product .woocommerce-product-gallery {
  float: none;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  background: #fff;
}

body.single-product .woocommerce-product-gallery__wrapper,
body.single-product .woocommerce-product-gallery__image,
body.single-product .woocommerce-product-gallery__image > a {
  display: block;
  width: 100%;
  margin: 0;
}

body.single-product .woocommerce-product-gallery__image > a {
  aspect-ratio: 1 / 1;
}

body.single-product .woocommerce-product-gallery__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

body.single-product .woocommerce-product-gallery__trigger {
  top: 18px;
  right: 18px;
}

body.single-product div.product .summary {
  float: none;
  width: 100%;
  margin: 0;
  padding-top: 4px;
}

body.single-product .product_title {
  margin: 0 0 28px;
  color: #111;
  font-size: clamp(38px, 3.2vw, 54px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: none;
}

body.single-product div.product p.price,
body.single-product div.product span.price {
  margin: 0 0 26px;
  color: #111;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
}

body.single-product .woocommerce-product-details__short-description {
  max-width: 650px;
  margin-bottom: 22px;
  color: #353535;
  font-size: 16px;
  line-height: 1.65;
}

body.single-product .woocommerce-product-details__short-description p:last-child {
  margin-bottom: 0;
}

body.single-product div.product p.stock {
  display: inline-flex;
  align-items: center;
  margin: 0 0 18px;
  color: #327347;
  font-size: 14px;
  font-weight: 800;
}

body.single-product div.product p.stock::before {
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

body.single-product form.cart {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  margin: 0 0 24px;
}

body.single-product form.cart .quantity {
  flex: 0 0 72px;
  margin: 0;
}

body.single-product form.cart .qty {
  width: 72px;
  height: 52px;
  padding: 0 8px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

body.single-product form.cart .single_add_to_cart_button {
  flex: 1;
  min-height: 52px;
  padding: 13px 24px;
  border: 1px solid #111;
  border-radius: 6px;
  background: #111;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

body.single-product form.cart .single_add_to_cart_button:hover {
  border-color: #c9a779;
  background: #c9a779;
  color: #111;
}

body.single-product .product_meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 20px;
  margin-top: 24px;
  border-top: 1px solid #ddd;
  color: #606060;
  font-size: 13px;
  line-height: 1.5;
}

body.single-product .product_meta a {
  color: #111;
  font-weight: 700;
  text-decoration: none;
}

/* Les identifiants internes et les slugs vehicule n'aident pas le client. */
body.single-product .product_meta .sku_wrapper,
body.single-product .product_meta .tagged_as {
  display: none;
}

body.single-product .woocommerce-tabs,
body.single-product .related,
body.single-product .up-sells {
  grid-column: 1 / -1;
  width: 100%;
  margin: 8px 0 0;
}

body.single-product .woocommerce-tabs ul.tabs {
  display: flex;
  gap: 28px;
  padding: 0;
  margin: 0 0 30px;
  border-bottom: 1px solid #d8d8d8;
}

body.single-product .woocommerce-tabs ul.tabs::before,
body.single-product .woocommerce-tabs ul.tabs li::before,
body.single-product .woocommerce-tabs ul.tabs li::after {
  display: none;
}

body.single-product .woocommerce-tabs ul.tabs li {
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.single-product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 14px 0;
  border-bottom: 2px solid transparent;
  color: #777;
  font-size: 15px;
  font-weight: 800;
}

body.single-product .woocommerce-tabs ul.tabs li.active a {
  border-bottom-color: #111;
  color: #111;
}

body.single-product .woocommerce-Tabs-panel {
  max-width: 900px;
  color: #333;
  font-size: 16px;
  line-height: 1.7;
}

body.single-product .woocommerce-Tabs-panel > h2 {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 900;
}

body.single-product .related > h2,
body.single-product .up-sells > h2 {
  margin: 34px 0 24px;
  color: #111;
  font-size: 30px;
  font-weight: 900;
}

body.single-product .related ul.products,
body.single-product .up-sells ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

body.single-product .related ul.products li.product,
body.single-product .up-sells ul.products li.product {
  float: none;
  width: auto;
  margin: 0;
}

.src-product-carousel__controls {
  display: none;
}

body.single-product .wpa-test-msg {
  display: none !important;
}

@media (max-width: 980px) {
  body.single-product div.product {
    grid-template-columns: 1fr;
    gap: 34px;
    width: min(760px, calc(100% - 36px));
  }

  body.single-product .related ul.products,
  body.single-product .up-sells ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  html,
  body.single-product {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body.single-product #page,
  body.single-product .site,
  body.single-product main,
  body.single-product .site-main,
  body.single-product .woocommerce {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden;
  }

  body.single-product main,
  body.single-product .site-main {
    padding-top: 28px;
    padding-bottom: 50px;
  }

  body.single-product div.product {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-right: 14px !important;
    margin-left: 14px !important;
    gap: 28px;
  }

  body.single-product div.product > *,
  body.single-product div.product .summary,
  body.single-product div.product .woocommerce-product-gallery {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.single-product div.product .woocommerce-product-gallery {
    margin-bottom: 28px;
  }

  body.single-product .product_title {
    margin-bottom: 20px;
    max-width: 100%;
    font-size: 32px;
    overflow-wrap: anywhere;
  }

  body.single-product .woocommerce-product-details__short-description,
  body.single-product .woocommerce-product-details__short-description p,
  body.single-product .product_meta {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  body.single-product form.cart {
    flex-wrap: wrap;
  }

  body.single-product form.cart .single_add_to_cart_button {
    flex-basis: calc(100% - 82px);
  }

  body.single-product form.variations_form,
  body.single-product table.variations,
  body.single-product table.variations tbody,
  body.single-product table.variations tr,
  body.single-product table.variations th,
  body.single-product table.variations td {
    box-sizing: border-box;
    max-width: 100% !important;
  }

  body.single-product table.variations {
    display: block;
    width: 100% !important;
  }

  body.single-product table.variations tbody,
  body.single-product table.variations tr {
    display: block;
    width: 100%;
  }

  body.single-product table.variations th,
  body.single-product table.variations td {
    display: block;
    width: 100% !important;
    padding-right: 0;
    padding-left: 0;
  }

  body.single-product table.variations select {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.single-product .woocommerce-tabs ul.tabs {
    gap: 18px;
    overflow-x: auto;
  }

  body.single-product .woocommerce-tabs ul.tabs li a {
    white-space: nowrap;
  }

  body.single-product .related ul.products,
  body.single-product .up-sells ul.products {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 2px 14vw 18px 0 !important;
    margin: 0 !important;
    overflow-x: scroll !important;
    overflow-y: hidden !important;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  body.single-product .related ul.products::before,
  body.single-product .related ul.products::after,
  body.single-product .up-sells ul.products::before,
  body.single-product .up-sells ul.products::after {
    display: none !important;
  }

  body.single-product .related ul.products::-webkit-scrollbar,
  body.single-product .up-sells ul.products::-webkit-scrollbar {
    display: none;
  }

  body.single-product .related ul.products li.product,
  body.single-product .up-sells ul.products li.product {
    float: none !important;
    flex: 0 0 82% !important;
    width: 82% !important;
    max-width: 82% !important;
    margin: 0 !important;
    scroll-snap-align: start;
  }

  .src-product-carousel__controls {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: -58px 0 18px;
  }

  .src-product-carousel__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #d2d2d2;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 21px;
    line-height: 1;
  }

  .src-product-carousel__button:disabled {
    cursor: default;
    opacity: 0.35;
  }
}


/* =========================================================
   SRC — VARIANTES WOOCOMMERCE PREMIUM
========================================================= */

.single-product form.variations_form .variations {
  width: 100%;
  margin: 28px 0 20px;
  border: 0;
}

.single-product form.variations_form .variations tbody,
.single-product form.variations_form .variations tr,
.single-product form.variations_form .variations th,
.single-product form.variations_form .variations td {
  display: block;
  width: 100%;
}

.single-product form.variations_form .variations tr {
  margin-bottom: 24px;
}

.single-product form.variations_form .variations th.label {
  margin: 0 0 10px;
  padding: 0;
  text-align: left;
}

.single-product form.variations_form .variations th.label label {
  display: block;

  margin: 0;

  color: #111;

  font-size: 12px;
  font-weight: 700;

  line-height: 1.2;

  letter-spacing: .08em;
  text-transform: uppercase;
}

.single-product form.variations_form .variations td.value {
  position: relative;

  margin: 0;
  padding: 0;
}


/* =========================================================
   CACHER VISUELLEMENT LE SELECT NATIF
   Il reste actif pour WooCommerce
========================================================= */

.single-product form.variations_form .variations select {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;

  margin: 0 !important;
  padding: 0 !important;

  opacity: 0 !important;

  pointer-events: none !important;

  overflow: hidden !important;

  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;

  white-space: nowrap !important;
}


/* =========================================================
   GROUPE DE BOUTONS
========================================================= */

.src-variation-options {
  display: flex;

  flex-wrap: wrap;

  gap: 9px;

  width: 100%;
}


/* =========================================================
   BOUTON DE VARIANTE
========================================================= */

.src-variation-option {
  position: relative;

  display: inline-flex;

  min-width: 72px;
  min-height: 44px;

  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 10px 16px;

  border:
    1px
    solid
    #d6d6d6;

  border-radius: 4px;

  background: #fff;

  color: #111;

  font-family: inherit;
  font-size: 13px;
  font-weight: 600;

  line-height: 1.15;

  text-align: center;

  cursor: pointer;

  transition:
    background .18s ease,
    color .18s ease,
    border-color .18s ease,
    transform .18s ease,
    opacity .18s ease;
}


.src-variation-option:hover {
  border-color: #111;
}


/* =========================================================
   SÉLECTIONNÉ
========================================================= */

.src-variation-option.is-selected {
  border-color: #111;

  background: #111;

  color: #fff;
}


/* petit check discret */

.src-variation-option.is-selected::after {
  content: "✓";

  position: absolute;

  top: 3px;
  right: 5px;

  color: currentColor;

  font-size: 8px;
  font-weight: 700;

  opacity: .8;
}


/* =========================================================
   INDISPONIBLE
========================================================= */

.src-variation-option.is-disabled,
.src-variation-option:disabled {
  border-color: #e5e5e5;

  background: #f4f4f4;

  color: #aaa;

  cursor: not-allowed;

  opacity: .65;
}


/* petite diagonale */

.src-variation-option.is-disabled::before,
.src-variation-option:disabled::before {
  content: "";

  position: absolute;

  top: 50%;
  left: 8px;
  right: 8px;

  height: 1px;

  background: #bbb;

  transform: rotate(-12deg);
}


/* =========================================================
   RESET VARIATIONS
========================================================= */

.single-product form.variations_form .reset_variations {
  display: inline-flex !important;

  align-items: center;

  margin-top: 13px;

  color: #777;

  font-size: 12px;
  font-weight: 500;

  text-decoration: underline;

  text-underline-offset: 3px;
}

.single-product form.variations_form .reset_variations:hover {
  color: #111;
}


/* =========================================================
   PRIX DE LA VARIATION
========================================================= */

.single-product .single_variation_wrap {
  margin-top: 18px;
}

.single-product .woocommerce-variation-price {
  margin-bottom: 16px;
}

.single-product .woocommerce-variation-price .price {
  color: #111;

  font-size: 22px;
  font-weight: 700;
}


/* =========================================================
   STOCK / DISPONIBILITÉ
========================================================= */

.single-product .woocommerce-variation-availability {
  margin-bottom: 14px;
}

.single-product .woocommerce-variation-availability p {
  margin: 0;

  font-size: 13px;
}


/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 768px) {

  .single-product form.variations_form .variations {
    margin-top: 22px;
  }

  .single-product form.variations_form .variations tr {
    margin-bottom: 20px;
  }

  .src-variation-options {
    gap: 8px;
  }

  .src-variation-option {
    min-width: 64px;
    min-height: 43px;

    padding:
      9px
      13px;

    font-size: 13px;
  }

}


/* très petit mobile */

@media screen and (max-width: 390px) {

  .src-variation-option {
    min-width: 58px;

    padding:
      9px
      11px;

    font-size: 12px;
  }

}
















/* =========================================================
   PRODUIT — DESCRIPTION SANS ONGLET
========================================================= */

/* On masque complètement la navigation des onglets */
.single-product .woocommerce-tabs ul.tabs {
    display: none !important;
}


/* Section description */
.single-product .woocommerce-tabs {
    margin-top: 42px !important;
    padding-top: 0 !important;
}


/* Contenu */
.single-product .woocommerce-Tabs-panel {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}


/* Titre Description */
.single-product .woocommerce-Tabs-panel > h2:first-child {
    margin: 0 0 26px !important;

    padding-bottom: 18px !important;

    border-bottom: 1px solid #d8d8d8 !important;

    color: #111 !important;

    font-size: 28px !important;
    font-weight: 750 !important;

    line-height: 1.1 !important;

    letter-spacing: -1.2px !important;
}


/* Paragraphes */
.single-product .woocommerce-Tabs-panel p {
    max-width: 900px;

    margin: 0 0 18px !important;

    color: #444 !important;

    font-size: 14px !important;

    line-height: 1.75 !important;
}


/* Texte en gras */
.single-product .woocommerce-Tabs-panel strong {
    color: #111 !important;
    font-weight: 700 !important;
}


/* Supprime les vieux backgrounds/bordures WooCommerce */
.single-product .woocommerce-tabs::before,
.single-product .woocommerce-tabs::after,
.single-product .woocommerce-Tabs-panel::before,
.single-product .woocommerce-Tabs-panel::after {
    display: none !important;
    content: none !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 767px) {

    .single-product .woocommerce-tabs {
        margin-top: 30px !important;
    }

    .single-product .woocommerce-Tabs-panel > h2:first-child {
        margin-bottom: 20px !important;

        padding-bottom: 14px !important;

        font-size: 24px !important;
    }

    .single-product .woocommerce-Tabs-panel p {
        font-size: 13px !important;
        line-height: 1.7 !important;
    }

}