/*
Theme Name: Bric à Vape Child
Theme URI: https://le-bric-a-vape.fr
Description: Thème enfant de Divi pour Le Bric à Vape. Contient le méga-menu personnalisé (E-cigarettes).
Author: Agence Blowup
Template: Divi
Version: 1.0.5
Text Domain: bric-a-vape-child
*/

/* =====================================================================
   MÉGA-MENU — E-CIGARETTES
   Specs issues de Figma (fichier Ui9vPAYOwcyTiq9FGZzSM0, node 17:4396)
   ===================================================================== */

:root {
  --bav-orange: #ef5a32;
  --bav-green: #074235;
  --bav-gray: #6a7282;
  --bav-border: #e5e7eb;
  --bav-panel-from: #f9fafb;
  --bav-panel-to: #ffffff;
}

/* Conteneur du <li> porteur : ancre de positionnement du panneau */
#menu-menu-principal .menu-item.has-megamenu {
  position: relative;
}

/* Le panneau déroulant */
.bav-megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9999;
  width: max-content;
  min-width: 640px;
  max-width: min(960px, 95vw);
  padding: 36px 32px 28px;
  background-image: linear-gradient(to bottom, var(--bav-panel-from), var(--bav-panel-to));
  border-top: 4px solid var(--bav-orange);
  border-radius: 16px;
  box-shadow: 0 25px 25px rgba(0, 0, 0, 0.25);
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;

  /* état fermé */
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  pointer-events: none;
}

/* Pont invisible entre l'item de menu et le panneau (évite la fermeture au survol) */
.bav-megamenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}

/* Ouverture : hover, focus clavier, ou classe .is-open posée par le JS (tactile) */
#menu-menu-principal .menu-item.has-megamenu:hover > .bav-megamenu,
#menu-menu-principal .menu-item.has-megamenu:focus-within > .bav-megamenu,
#menu-menu-principal .menu-item.has-megamenu.is-open > .bav-megamenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .22s ease, transform .22s ease, visibility 0s;
  pointer-events: auto;
}

/* --- Titre « E-CIGARETTES » avec filets dégradés --- */
.bav-megamenu__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 24px;
}
.bav-megamenu__title-line {
  flex: 1 1 0;
  height: 2px;
  min-width: 1px;
}
.bav-megamenu__title-line--left {
  background-image: linear-gradient(90deg, rgba(239, 90, 50, 0) 0%, var(--bav-orange) 100%);
}
.bav-megamenu__title-line--right {
  background-image: linear-gradient(270deg, rgba(239, 90, 50, 0) 0%, var(--bav-orange) 100%);
}
.bav-megamenu__title-text {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 12px;
  color: var(--bav-green);
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --- Groupes de catégories --- */
.bav-megamenu__groups {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
}
.bav-megamenu__group {
  flex: 1 1 0;
}
.bav-megamenu__group-title {
  margin: 0 0 20px;
  color: var(--bav-gray);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-align: center;
}
.bav-megamenu__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 320px;
}

/* --- Item catégorie (cercle + label) --- */
.bav-megamenu__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 90px;
  text-decoration: none;
}
.bav-megamenu__circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 3px rgba(0, 0, 0, 0.1), 0 2px 2px rgba(0, 0, 0, 0.1);
  transition: transform .18s ease, box-shadow .18s ease;
}
.bav-megamenu__circle img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  pointer-events: none;
}
.bav-megamenu__label {
  color: var(--bav-green);
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  text-align: center;
}
.bav-megamenu__item:hover .bav-megamenu__circle {
  transform: translateY(-3px);
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.12), 0 3px 5px rgba(0, 0, 0, 0.1);
}

/* --- Boutons CTA --- */
.bav-megamenu__cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-top: 22px;
  border-top: 2px solid var(--bav-border);
}
.bav-megamenu__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 24px;
  border-radius: 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: filter .18s ease, transform .18s ease;
}
.bav-megamenu__btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.bav-megamenu__btn--decouverte {
  background-image: linear-gradient(90deg, #ef5a32 0%, #ff6b42 100%);
}
.bav-megamenu__btn--toutvoir {
  background-image: linear-gradient(90deg, #074235 0%, #085447 100%);
}
.bav-megamenu__btn--tops {
  background-image: linear-gradient(90deg, #00bba7 0%, #009689 100%);
}
.bav-megamenu__btn--coup {
  background-image: linear-gradient(90deg, #f6339a 0%, #e60076 100%);
}

/* --- Responsive --- */
@media (max-width: 980px) {
  .bav-megamenu {
    width: 92vw;
    min-width: 0;
    padding: 28px 20px 24px;
  }
  .bav-megamenu__groups {
    flex-direction: column;
    gap: 24px;
  }
  .bav-megamenu__items {
    max-width: none;
  }
  .bav-megamenu__cta {
    flex-wrap: wrap;
  }
}

/* =====================================================================
   FICHE PRODUIT — badge « Coup de cœur », expédition, fiche technique
   ===================================================================== */

.bav-badge-coup {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  background: #fdeee9;
  border: 1px solid var(--bav-orange);
  border-radius: 999px;
  color: var(--bav-orange);
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.bav-shipping {
  margin: 14px 0;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
}
.bav-shipping__label {
  color: var(--bav-gray);
}
.bav-shipping__date {
  color: var(--bav-green);
  font-weight: 600;
}

.bav-fiche {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.bav-fiche__col {
  flex: 1 1 280px;
}
.bav-fiche__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.bav-fiche__row {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
}
.bav-fiche__label {
  color: var(--bav-gray);
}
.bav-fiche__value {
  color: var(--bav-green);
}

/* =====================================================================
   CATALOGUE — cartes produit alignées maquette
   ===================================================================== */

.woocommerce ul.products li.product .bav-card-saveur {
  display: block;
  margin-bottom: 4px;
  color: var(--bav-orange);
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}
.woocommerce ul.products li.product .bav-card-marque {
  display: block;
  margin: 2px 0 6px;
  color: var(--bav-gray);
  font-family: "Poppins", sans-serif;
  font-size: 12px;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--bav-green);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 18px;
}
/* Prix en orange (cartes + fiche produit) */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--bav-orange);
  font-weight: 600;
}
.woocommerce ul.products li.product img {
  border-radius: 16px;
}

/* =====================================================================
   FICHE PRODUIT — gabarit custom (woocommerce/content-single-product.php)
   Maquette Figma Ui9vPAYOwcyTiq9FGZzSM0 (node 4:2)
   ===================================================================== */

/* --- Neutralise le conteneur/sidebar Divi : fiche pleine largeur --- */
body.single-product #sidebar { display: none; }
body.single-product #left-area { width: 100%; padding: 0; }
body.single-product #main-content .container {
  width: 92%;
  max-width: 1480px;
}
body.single-product #main-content .container::before { display: none; }

/* --- Conteneur fiche --- */
.bav-pdp {
  max-width: 1440px;
  margin: 0 auto;
  padding: 8px 0 0;
  font-family: "Poppins", sans-serif;
}
.bav-pdp__breadcrumb {
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--bav-gray);
}
.bav-pdp__breadcrumb a { color: var(--bav-gray); }
.bav-pdp__breadcrumb .woocommerce-breadcrumb { margin: 0; font-size: 14px; }

/* --- Grille principale 2 colonnes --- */
.bav-pdp__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.bav-pdp__summary {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- Titre --- */
.bav-pdp__title {
  margin: 0;
  color: var(--bav-green);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.2;
}

/* --- Catégorie + marque/gamme --- */
.bav-pbadges__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.bav-pcat {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bav-orange);
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
}
.bav-pbrand { color: var(--bav-gray); font-size: 16px; }

/* --- Note / avis --- */
.bav-pdp__rating {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bav-pdp__rating .star-rating { margin: 0; color: var(--bav-orange); }
.bav-pdp__rating .star-rating::before { color: #d1d5db; }
.bav-pdp__rating .star-rating span::before { color: var(--bav-orange); }
.bav-pdp__reviews { color: var(--bav-gray); font-size: 14px; }

/* --- Badge « Coup de cœur » (bouton vert plein, maquette) --- */
.bav-badge-coup {
  display: inline-block;
  width: fit-content;
  margin: 0;
  padding: 8px 16px;
  background: var(--bav-green);
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

/* --- Prix + stock --- */
.bav-pdp__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.bav-price .price,
.bav-price .price .amount,
.bav-price .price ins .amount {
  color: var(--bav-orange);
  font-family: "Poppins", sans-serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
}
.bav-price .price del {
  color: var(--bav-gray);
  font-size: 18px;
  font-weight: 400;
  opacity: .7;
}
.bav-price .price del .amount { font-size: 18px; }
.bav-stock {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 14px;
}
.bav-stock--in { background: #dcfce7; color: #016630; }
.bav-stock--out { background: #fee2e2; color: #b91c1c; }

/* --- Formulaire panier + variations --- */
.bav-cart form.cart {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
}
.bav-cart table.variations,
.bav-cart table.variations tbody,
.bav-cart table.variations tr,
.bav-cart table.variations th,
.bav-cart table.variations td {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
}
.bav-cart table.variations {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
}
.bav-cart table.variations th.label {
  margin-bottom: 12px;
  color: var(--bav-green);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
}
.bav-cart table.variations th.label label { margin: 0; font-weight: 600; }
.bav-cart .value select {
  width: 100%;
  height: 52px;
  border: 2px solid var(--bav-border);
  border-radius: 14px;
  padding: 0 44px 0 16px;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  color: #0a0a0a;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236a7282' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px 20px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.bav-cart .value select:hover { border-color: #cdd3da; }
.bav-cart .value select:focus {
  outline: none;
  border-color: var(--bav-orange);
  box-shadow: 0 0 0 3px rgba(239, 90, 50, .12);
}
.bav-cart a.reset_variations {
  display: inline-block;
  margin-top: 8px;
  color: var(--bav-gray);
  font-size: 13px;
}
.bav-cart .single_variation { margin-bottom: 4px; }
.bav-cart .single_variation .price,
.bav-cart .single_variation .price .amount {
  color: var(--bav-orange);
  font-size: 24px;
  font-weight: 600;
}
.bav-cart .woocommerce-variation-availability { font-size: 14px; color: var(--bav-green); }

/* Quantité : label + stepper − / + (injecté par product.js) */
.bav-cart .quantity {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bav-cart .quantity::before {
  content: "Quantité";
  color: var(--bav-green);
  font-size: 16px;
  font-weight: 600;
}
.bav-qty-control {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 2px solid var(--bav-border);
  border-radius: 14px;
  overflow: hidden;
}
.bav-qty-btn {
  width: 48px;
  height: 52px;
  border: 0;
  background: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--bav-green);
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease;
}
.bav-qty-btn:hover { background: #f9fafb; }
.bav-qty-control input.qty {
  width: 64px;
  height: 52px;
  border: 0;
  border-left: 2px solid var(--bav-border);
  border-right: 2px solid var(--bav-border);
  border-radius: 0;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #0a0a0a;
  -moz-appearance: textfield;
}
.bav-qty-control input.qty::-webkit-outer-spin-button,
.bav-qty-control input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Quantité au-dessus, bouton pleine largeur en dessous */
.bav-cart .woocommerce-variation-add-to-cart,
.bav-cart .single_variation_wrap .variations_button {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}
.woocommerce div.product .bav-cart form.cart button.single_add_to_cart_button,
.woocommerce div.product .bav-cart form.cart .single_add_to_cart_button.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  padding: 18px 24px;
  background: var(--bav-orange);
  border: 0;
  border-radius: 16px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: 0 4px 10px rgba(239, 90, 50, .25);
  cursor: pointer;
}
.bav-cart button.single_add_to_cart_button::before {
  content: "";
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") no-repeat center / contain;
  flex: 0 0 auto;
}
/* Pas de changement au survol. */
.woocommerce div.product .bav-cart form.cart button.single_add_to_cart_button:hover,
.woocommerce div.product .bav-cart form.cart button.single_add_to_cart_button:focus {
  background: var(--bav-orange);
  color: #fff;
  padding: 18px 24px;
  filter: none;
  transform: none;
  box-shadow: 0 4px 10px rgba(239, 90, 50, .25);
}
/* Supprime la flèche Divi (::after révélé au survol). */
.woocommerce div.product .bav-cart form.cart button.single_add_to_cart_button::after,
.woocommerce div.product .bav-cart form.cart button.single_add_to_cart_button:hover::after,
.woocommerce div.product .bav-cart form.cart button.single_add_to_cart_button:focus::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce div.product .bav-cart form.cart button.single_add_to_cart_button.disabled,
.woocommerce div.product .bav-cart form.cart button.single_add_to_cart_button:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  box-shadow: none;
  cursor: not-allowed;
}
.bav-cart .stock { display: none; }

/* --- Tarifs dégressifs --- */
.bav-deg {
  background: #eff6ff;
  border: 2px solid #bedbff;
  border-radius: 16px;
  padding: 22px;
}
.bav-deg summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.bav-deg summary::-webkit-details-marker { display: none; }
.bav-deg__title { font-weight: 600; color: var(--bav-green); font-size: 16px; }
.bav-deg__more { color: #155dfc; font-size: 14px; font-weight: 500; }
.bav-deg__more::after { content: " \25BE"; }
.bav-deg[open] .bav-deg__more::after { content: " \25B4"; }
.bav-deg__tiers { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.bav-deg__tier { background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.bav-deg__tier p { margin: 0; font-size: 14px; color: #364153; }
.bav-deg__tier b { color: var(--bav-green); }
.bav-deg__px { color: var(--bav-orange); font-weight: 600; margin-top: 2px !important; }
.bav-deg__eco { color: #00a63e; font-weight: 500; }

/* Tarifs dégressifs dynamiques (plugin ADP) : masqué tant qu'aucune vraie
   table .bulk_table n'a été injectée (= aucune règle applicable au produit). */
.bav-deg--plugin:not(:has(.bulk_table)) { display: none; }
.bav-deg--plugin .bav-deg__tiers > .clear { display: none; }
.bav-deg--plugin .wdp_pricing_table_caption { display: none; } /* on garde le titre « Tarifs dégressifs » du <summary> */
.bav-deg--plugin table.wdp_pricing_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
}
.bav-deg--plugin table.wdp_pricing_table thead td {
  padding: 14px 18px;
  background: var(--bav-green);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  border: 0;
}
.bav-deg--plugin table.wdp_pricing_table tbody td {
  padding: 14px 18px;
  color: #364153;
  font-size: 15px;
  text-align: center;
  border: 0;
  border-top: 1px solid rgba(0,0,0,.06);
}
.bav-deg--plugin table.wdp_pricing_table tbody tr:hover td { background: #f9fafb; }
.bav-deg--plugin table.wdp_pricing_table tbody td:last-child { color: var(--bav-orange); font-weight: 700; }
.bav-deg--plugin table.wdp_pricing_table .amount,
.bav-deg--plugin table.wdp_pricing_table .woocommerce-Price-amount { color: inherit; }
.bav-deg--plugin .wdp_pricing_table_footer { display: block; margin-top: 8px; font-size: 12px; color: var(--bav-gray); }

/* --- Expédition --- */
.bav-ship {
  background: #f0fdf4;
  border: 2px solid #b9f8cf;
  border-radius: 16px;
  padding: 18px;
  text-align: center;
}
.bav-ship__label { display: block; color: #364153; font-size: 14px; font-weight: 500; }
.bav-ship__date { display: block; margin-top: 2px; color: var(--bav-green); font-size: 20px; font-weight: 700; }

/* --- Encadré aide --- */
.bav-help {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--bav-green);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}
.bav-help__label { margin: 0; color: #fff; font-size: 14px; font-weight: 500; }
.bav-help__phone { color: var(--bav-orange); font-size: 24px; font-weight: 700; text-decoration: none; }

/* --- Bandeau prévention --- */
.bav-warning {
  background: #000;
  border: 2px solid #fee685;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}
.bav-warning__title { margin: 0 0 4px; color: #fff; font-size: 14px; font-weight: 700; }
.bav-warning__text { margin: 0; color: #fff; font-size: 14px; line-height: 1.5; }

/* --- Onglets produit --- */
.bav-pdp__tabs {
  margin-top: 48px;
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.10);
}
.bav-tabs .wc-tabs,
.bav-tabs ul.tabs {
  display: flex;
  gap: 48px;
  margin: 0 0 24px;
  padding: 0;
  border-bottom: 2px solid var(--bav-border);
  list-style: none;
}
.bav-tabs .wc-tabs::before, .bav-tabs ul.tabs::before,
.bav-tabs .wc-tabs::after, .bav-tabs ul.tabs::after { display: none; }
.bav-tabs .wc-tabs li, .bav-tabs ul.tabs li {
  margin: 0;
  padding: 0 0 12px;
  border: 0;
  background: none;
  border-radius: 0;
}
.bav-tabs .wc-tabs li::before, .bav-tabs .wc-tabs li::after { display: none; }
.bav-tabs .wc-tabs li a, .bav-tabs ul.tabs li a {
  padding: 0;
  color: var(--bav-gray);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}
.bav-tabs .wc-tabs li.active, .bav-tabs ul.tabs li.active { border-bottom: 3px solid var(--bav-orange); }
.bav-tabs .wc-tabs li.active a, .bav-tabs ul.tabs li.active a { color: var(--bav-orange); }
.bav-tabs .woocommerce-Tabs-panel { padding-top: 8px; color: #364153; }
.bav-tabs .woocommerce-Tabs-panel h2 { display: none; }

/* --- Produits similaires (« Vous aimerez aussi ») --- */
.bav-pdp__related { margin-top: 64px; }
.bav-pdp__related > h2 {
  margin: 0 0 32px;
  color: var(--bav-green);
  font-size: 36px;
  font-weight: 500;
  text-align: center;
}
.bav-pdp__related ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
}
.bav-pdp__related ul.products::before,
.bav-pdp__related ul.products::after { display: none; }
.bav-pdp__related ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px -4px rgba(0,0,0,.10);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .bav-pdp__top { grid-template-columns: 1fr; gap: 32px; }
  .bav-pdp__related ul.products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .bav-pdp__title { font-size: 28px; }
  .bav-pdp__tabs { padding: 24px; }
  .bav-tabs .wc-tabs, .bav-tabs ul.tabs { gap: 24px; }
  .bav-pdp__related ul.products { grid-template-columns: 1fr; }
}

/* --- Notices WooCommerce (erreurs de checkout, infos, confirmations) --- */
/* Divi force un fond vert foncé (#074235) sur ces encarts sans définir de
   couleur de texte : le texte retombait sur le bleu hérité, illisible. */
.woocommerce-error,
.woocommerce-error li,
.woocommerce-error strong,
.woocommerce-error a,
.woocommerce-info,
.woocommerce-info li,
.woocommerce-info strong,
.woocommerce-info a,
.woocommerce-message,
.woocommerce-message li,
.woocommerce-message strong,
.woocommerce-message a {
  color: #fff !important;
}

/* Les liens restent identifiables comme tels sur le fond plein. */
.woocommerce-error a,
.woocommerce-info a,
.woocommerce-message a {
  text-decoration: underline;
}

