/* ==========================================================================
   BAYANATURE — AVADA CHILD DESIGN SYSTEM & WCAG 2.2 AA REDESIGN
   Charte dérivée du logo officiel Bayanature (#3AB54A)
   Contrastes vérifiés mathématiquement :
     - #0B2611 sur #FFFFFF : 16.16:1 (AAA)
     - #0B2611 sur #EEF9F0 : 14.96:1 (AAA)
     - #36523C sur #FFFFFF :  8.65:1 (AAA)
     - #36523C sur #EEF9F0 :  8.00:1 (AAA)
     - #FFFFFF sur #157326 :  5.98:1 (AA)
     - #157326 sur #EEF9F0 :  5.54:1 (AA)
     - #08240E sur #3AB54A :  6.22:1 (AA)
     - #3AB54A sur #0D2B14 :  5.75:1 (AA)
     - #FFFFFF sur #0D2B14 : 15.30:1 (AAA)
     - #854D06 sur #FFFFFF :  6.86:1 (AA)
   ========================================================================== */

:root {
  /* Palette Bayanature officielle */
  --bn-brand: #3AB54A;
  --bn-brand-ink: #08240E;
  --bn-action: #157326;
  --bn-action-hover: #0F5B1D;
  --bn-action-soft: #EEF9F0;
  --bn-action-soft-hover: #DCF2E0;
  --bn-deep: #0D2B14;
  --bn-ink: #0B2611;
  --bn-muted: #36523C;
  --bn-border: #D3E6D6;
  --bn-border-strong: #9AC9A3;
  --bn-surface: #FFFFFF;
  --bn-surface-warm: #FAF8F2;
  --bn-amber: #854D06;
  --bn-amber-soft: #FDF5E6;
  --bn-danger: #B91C1C;
  --bn-danger-soft: #FEF2F2;
  --bn-whatsapp: #126E35;
  --bn-whatsapp-hover: #0D572A;
  --bn-radius-sm: 6px;
  --bn-radius-md: 10px;
  --bn-radius-lg: 16px;
  --bn-radius-pill: 9999px;
  --bn-shadow-sm: 0 2px 8px rgba(11, 38, 17, 0.06);
  --bn-shadow-md: 0 10px 28px rgba(11, 38, 17, 0.10);

  /* Remplacement global des tokens Avada 7.17+ (élimine le bleu #427ed1 et les gris faibles) */
  --awb-color1: #ffffff;
  --awb-color2: #eef9f0;
  --awb-color3: #d3e6d6;
  --awb-color4: #3ab54a;
  --awb-color5: #157326;
  --awb-color6: #36523c;
  --awb-color7: #0b2611;
  --awb-color8: #0d2b14;
  --awb-custom_color_10: #3ab54a;
  --awb-custom_color_11: #36523c;
  --awb-custom_color_12: #0b2611;
  --awb-custom_color_13: #08240e;

  --primary_color: #157326;
  --primary_color-85a: rgba(21, 115, 38, 0.85);
  --primary_color-7a: rgba(21, 115, 38, 0.70);
  --primary_color-5a: rgba(21, 115, 38, 0.50);
  --primary_color-35a: rgba(21, 115, 38, 0.35);
  --primary_color-2a: rgba(21, 115, 38, 0.20);

  --link_color: #157326;
  --link_color-8a: rgba(21, 115, 38, 0.85);
  --link_hover_color: #0f5b1d;
  --link_hover_color-85a: rgba(15, 91, 29, 0.85);
  --link_hover_color-7a: rgba(15, 91, 29, 0.70);
  --link_hover_color-5a: rgba(15, 91, 29, 0.50);
  --link_hover_color-35a: rgba(15, 91, 29, 0.35);
  --link_hover_color-2a: rgba(15, 91, 29, 0.20);

  --menu_highlight_background: #3ab54a;
  --menu_hover_first_color: #157326;
  --menu_hover_first_color-65a: rgba(21, 115, 38, 0.65);
  --menu_bg_hover_color: #eef9f0;
  --menu_sub_sep_color: #d3e6d6;
  --menu_sub_color: #0b2611;
  --nav_typography-color: #0b2611;
  --header_top_menu_sub_color: #0b2611;
  --mobile_menu_toggle_color: #0b2611;
  --mobile_menu_hover_color: #eef9f0;
  --mobile_menu_border_color: #d3e6d6;
  --mobile_menu_typography-color: #0b2611;
  --mobile_menu_font_hover_color: #157326;

  --body_typography-color: #1a3320;
  --body_typography-font-size: 16px;
  --body_typography-line-height: 1.65;
  --h1_typography-color: #0b2611;
  --h2_typography-color: #0b2611;
  --h3_typography-color: #0b2611;
  --h4_typography-color: #0b2611;
  --h5_typography-color: #0b2611;
  --h6_typography-color: #0b2611;
  --post_title_typography-color: #0b2611;
  --content_box_title_color: #0b2611;
  --content_box_body_color: #36523c;
  --content_box_hover_animation_accent_color: #157326;

  --button_gradient_top_color: #157326;
  --button_gradient_bottom_color: #157326;
  --button_gradient_top_color_hover: #0f5b1d;
  --button_gradient_bottom_color_hover: #0f5b1d;
  --button_accent_color: #ffffff;
  --button_accent_hover_color: #ffffff;
  --button_padding: 12px 24px;
  --button_font_size: 14px;
  --button_text_transform: none;
  --button_typography-letter-spacing: 0.01em;

  --form_bg_color: #ffffff;
  --form_text_color: #0b2611;
  --form_border_color: #9ac9a3;
  --form_focus_border_color: #157326;
  --form_border_radius: 10px;

  --fusion-woo-sale-badge-background-color: #854d06;
  --fusion-woo-sale-badge-text-color: #ffffff;
  --woo_cart_bg_color: #eef9f0;
  --woo_dropdown_border_color: #d3e6d6;
  --woo_dropdown_text_color: #0b2611;
  --qty_bg_color: #ffffff;
  --qty_bg_hover_color: #eef9f0;

  --accordian_active_color: #157326;
  --checklist_circle_color: #157326;
  --checklist_text_color: #1a3320;
  --sep_color: #d3e6d6;
  --grid_separator_color: #d3e6d6;
  --title_border_color: #d3e6d6;
  --sharing_social_links_box_color: #157326;
  --slidingbar_bg_color: #0d2b14;
  --slidingbar_link_color_hover: #3ab54a;
  --footer_divider_color: rgba(255, 255, 255, 0.14);
  --footer_text_color: #e6f4e8;
}

/* ==========================================================================
   1. SURFACES NAVIGATEUR & ACCESSIBILITÉ WCAG 2.2 AA GLOBALE
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

::selection {
  background-color: var(--bn-brand);
  color: var(--bn-brand-ink);
}

input,
textarea,
select {
  caret-color: var(--bn-action);
}

/* WCAG 2.4.11 Focus Not Obscured (header fixe + barre sticky mobile) */
:target,
:focus,
:focus-visible {
  scroll-margin-top: 104px;
  scroll-margin-bottom: 92px;
}

/* WCAG 2.4.7 Focus Visible haute lisibilité (>= 3:1) */
:is(
  a[href],
  button,
  input,
  select,
  textarea,
  summary,
  [role="button"],
  [role="tab"],
  [tabindex]:not([tabindex="-1"])
):focus-visible {
  outline: 2px solid var(--bn-action) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px rgba(58, 181, 74, 0.25) !important;
}

/* Skip link accessible au 1er Tab */
.skip-link,
.screen-reader-text:focus {
  background: var(--bn-deep) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 12px 20px !important;
  border-radius: 0 0 var(--bn-radius-md) var(--bn-radius-md) !important;
  z-index: 100001 !important;
}

/* WCAG 2.3.3 Respect de prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  color: var(--bn-ink);
  background-color: var(--bn-surface);
  -webkit-font-smoothing: antialiased;
}

/* Chiffres tabulaires propres sur tous les prix MAD */
.price,
.woocommerce-Price-amount,
.bn-price,
.cart-subtotal,
.order-total {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   2. EN-TÊTE AVADA (HEADER) — COMPACT, ACCESSIBLE & ALIGNÉ LOGO #3AB54A
   ========================================================================== */

.fusion-header-wrapper {
  box-shadow: 0 1px 0 var(--bn-border);
}

/* Barre supérieure : fraîcheur botanique + contraste AAA */
.fusion-secondary-header {
  background-color: var(--bn-action-soft) !important;
  border-bottom: 1px solid var(--bn-border) !important;
  color: var(--bn-ink) !important;
}

.fusion-secondary-header .fusion-secondary-menu > ul > li > a,
.fusion-secondary-header .fusion-secondary-menu > ul > li > a .menu-text,
#menu-top-nav-menu > li > a,
#menu-top-nav-menu > li > a .menu-text {
  color: var(--bn-ink) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}

.fusion-secondary-header .fusion-secondary-menu > ul > li > a:hover,
.fusion-secondary-header .fusion-secondary-menu > ul > li > a:hover .menu-text {
  color: var(--bn-action) !important;
}

.fusion-secondary-header .fusion-secondary-menu .fusion-secondary-menu-icon {
  background-color: transparent !important;
  border-inline-start: 1px solid var(--bn-border) !important;
}

/* Icônes sociales harmonisées (fini l'arc-en-ciel disparate + masque YouTube cassé #) */
.fusion-secondary-header .fusion-social-networks .fusion-social-network-icon {
  background-color: #ffffff !important;
  color: var(--bn-action) !important;
  border: 1px solid var(--bn-border-strong) !important;
  min-width: 32px;
  min-height: 32px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: var(--bn-radius-pill) !important;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.fusion-secondary-header .fusion-social-networks .fusion-social-network-icon:hover {
  background-color: var(--bn-action) !important;
  border-color: var(--bn-action) !important;
  color: #ffffff !important;
}

/* Masque le lien YouTube cassé pointant vers "#" */
.fusion-social-networks a.fusion-youtube[href="#"],
.fusion-social-networks a.fusion-youtube[href$="/#"] {
  display: none !important;
}

/* Header principal */
.fusion-header {
  background-color: #ffffff !important;
  border-bottom: 1px solid var(--bn-border) !important;
}

.fusion-logo {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

.fusion-logo img {
  max-height: 64px !important;
  width: auto !important;
}

/* Menu principal */
.fusion-main-menu > ul > li > a {
  color: var(--bn-ink) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  letter-spacing: 0.01em !important;
  transition: color 180ms ease;
}

.fusion-main-menu > ul > li > a:hover,
.fusion-main-menu > ul > li.current-menu-item > a,
.fusion-main-menu > ul > li.current_page_item > a {
  color: var(--bn-action) !important;
  border-color: var(--bn-brand) !important;
}

/* Bouton CTA du menu (anciennement SHOP NOW! bleu #427ed1) */
.fusion-main-menu > ul > li > a .fusion-button.button-default,
.fusion-main-menu .fusion-menu-item-button .menu-text {
  background: var(--bn-action) !important;
  color: #ffffff !important;
  border-radius: var(--bn-radius-pill) !important;
  padding: 10px 22px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  border: 1px solid var(--bn-action) !important;
  box-shadow: var(--bn-shadow-sm) !important;
}

.fusion-main-menu > ul > li > a:hover .fusion-button.button-default,
.fusion-main-menu .fusion-menu-item-button:hover .menu-text {
  background: var(--bn-action-hover) !important;
  border-color: var(--bn-action-hover) !important;
  color: #ffffff !important;
}

/* Bouton recherche & menu mobile (corrige le contraste #dadada invisible !) */
.fusion-main-menu-search a,
.fusion-mobile-menu-icons a,
.fusion-icon-bars {
  color: var(--bn-ink) !important;
  min-width: 44px !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.fusion-mobile-menu-icons a:hover {
  color: var(--bn-action) !important;
}

/* Bandeau d'annonce COD en haut (injecté par functions.php) */
.bn-cod-topbar {
  background-color: var(--bn-brand);
  color: var(--bn-brand-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  padding-block: 8px;
  padding-inline: 16px;
  text-align: center;
}

.bn-cod-topbar__inner {
  max-width: 1200px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 18px;
}

.bn-cod-topbar a {
  color: var(--bn-brand-ink) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 800;
}

/* ==========================================================================
   3. BARRE DE TITRE / FIL D'ARIANE (FINI LE BANDEAU GRIS #777)
   ========================================================================== */

.fusion-page-title-bar {
  background-color: var(--bn-action-soft) !important;
  background-image: none !important;
  border-bottom: 1px solid var(--bn-border) !important;
  min-height: 52px !important;
  height: auto !important;
  padding-block: 14px !important;
}

.fusion-page-title-bar .fusion-breadcrumbs,
.fusion-page-title-bar .fusion-breadcrumbs span,
.fusion-page-title-bar .fusion-breadcrumbs a,
.fusion-page-title-bar h1 {
  color: var(--bn-ink) !important;
}

.fusion-page-title-bar .fusion-breadcrumbs a {
  color: var(--bn-action) !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bn-shop-hero-header {
  max-width: 1200px;
  margin-inline: auto;
  margin-bottom: 24px;
  padding: 24px 28px;
  background: var(--bn-action-soft);
  border: 1px solid var(--bn-border);
  border-radius: var(--bn-radius-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bn-shop-hero-header h1 {
  margin: 0 !important;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem) !important;
  line-height: 1.2 !important;
  color: var(--bn-ink) !important;
}

.bn-shop-hero-header p {
  margin: 6px 0 0 !important;
  color: var(--bn-muted) !important;
  font-size: 15px !important;
  max-width: 62ch;
}

/* ==========================================================================
   4. PAGE D'ACCUEIL — NETTOYAGE & HARMONISATION BOTANIQUE
   ========================================================================== */

/* Cache proprement les sections vides "De notre blog / Très prochainement" quand 0 article */
body.bn-no-blog-posts.home .fusion-builder-row-8,
body.bn-no-blog-posts.home .fusion-builder-row-9 {
  display: none !important;
}

/* Bandeau Newsletter en bas de page d'accueil (anciennement gris sombre #303337) */
body.home .fusion-builder-row-12 {
  background-color: var(--bn-deep) !important;
  border-top: 4px solid var(--bn-brand) !important;
  color: #ffffff !important;
}

body.home .fusion-builder-row-12 h2,
body.home .fusion-builder-row-12 h3,
body.home .fusion-builder-row-12 p,
body.home .fusion-builder-row-12 label {
  color: #ffffff !important;
}

body.home .fusion-builder-row-12 input[type="submit"],
body.home .fusion-builder-row-12 button[type="submit"],
body.home .fusion-builder-row-12 .fusion-button {
  background: var(--bn-brand) !important;
  color: var(--bn-brand-ink) !important;
  font-weight: 800 !important;
  border-radius: var(--bn-radius-pill) !important;
  min-height: 44px !important;
}

body.home .fusion-builder-row-12 input[type="submit"]:hover,
body.home .fusion-builder-row-12 button[type="submit"]:hover {
  background: #4ecb5e !important;
}

/* Boutons Fusion globaux */
.fusion-button.button-default,
.button-default,
.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--bn-action) !important;
  color: #ffffff !important;
  border-radius: var(--bn-radius-md) !important;
  border: 1px solid var(--bn-action) !important;
  font-weight: 700 !important;
  min-height: 44px;
  padding-inline: 20px !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  transition: background-color 180ms ease, border-color 180ms ease, transform 150ms ease;
}

.fusion-button.button-default:hover,
.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover {
  background: var(--bn-action-hover) !important;
  border-color: var(--bn-action-hover) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   5. CARTES PRODUITS WOOCOMMERCE (/shop/, CATÉGORIES & ACCUEIL)
   ========================================================================== */

ul.products li.product .fusion-product-wrapper,
.products .product .fusion-product-wrapper {
  background: #ffffff !important;
  border: 1px solid var(--bn-border) !important;
  border-radius: var(--bn-radius-lg) !important;
  overflow: hidden;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

ul.products li.product .fusion-product-wrapper:hover,
.products .product .fusion-product-wrapper:hover {
  border-color: var(--bn-brand) !important;
  box-shadow: var(--bn-shadow-md) !important;
  transform: translateY(-2px);
}

ul.products li.product .product-images {
  background: var(--bn-action-soft) !important;
  padding: 12px;
  display: block;
}

/* Corrige le contraste faible (#bcbdbe) dans les sous-menus déroulants Avada */
.fusion-main-menu .sub-menu li a,
.fusion-main-menu .sub-menu li a span,
.fusion-megamenu-wrapper a,
.fusion-megamenu-wrapper span {
  color: var(--bn-ink) !important;
}

.fusion-main-menu .sub-menu li a:hover,
.fusion-main-menu .sub-menu li a:hover span {
  color: var(--bn-action) !important;
  background-color: var(--bn-action-soft) !important;
}

/* Badge Promo / Sale : pilule nette ambre Argan (6.86:1), jamais un gros rond bleu */
.woocommerce span.onsale,
.fusion-woo-badges-wrapper .onsale,
.avada-single-product-gallery-wrapper .onsale,
.fusion-product-wrapper > .fusion-woo-badges-wrapper .onsale {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: var(--bn-amber) !important;
  color: #ffffff !important;
  border-radius: var(--bn-radius-pill) !important;
  padding: 5px 12px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  min-width: 0 !important;
  min-height: 26px !important;
  max-height: 30px !important;
  width: fit-content !important;
  height: auto !important;
  letter-spacing: 0.02em;
  box-shadow: var(--bn-shadow-sm);
}

.fusion-product-wrapper {
  position: relative;
}

.fusion-product-wrapper > .fusion-woo-badges-wrapper {
  position: absolute;
  top: 20px;
  inset-inline-start: 20px;
  z-index: 5;
  pointer-events: none;
}

/* Uniformise le cadrage des photos produits sur /shop/ (portraits/paysages alignés) */
ul.products li.product .product-images img {
  border-radius: var(--bn-radius-md);
  width: 100% !important;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background-color: #ffffff;
}

/* Titres & Prix sur cartes produits (contraste >= 5.98:1 garanti) */
.fusion-product-content .product-title a,
.woocommerce-loop-product__title {
  color: var(--bn-ink) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

.fusion-product-content .product-title a:hover {
  color: var(--bn-action) !important;
}

.price,
.price ins,
.price ins .woocommerce-Price-amount,
.price ins bdi,
.price ins .woocommerce-Price-currencySymbol,
.price > .woocommerce-Price-amount,
.price > .woocommerce-Price-amount bdi {
  color: var(--bn-action) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.price del,
.price del .woocommerce-Price-amount,
.price del bdi,
.price del .woocommerce-Price-currencySymbol {
  color: #46614c !important;
  font-weight: 500 !important;
  opacity: 1 !important;
}

/* Boutons d'action carte produit */
.fusion-product-content .product-buttons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px !important;
  border-top: 1px solid var(--bn-border) !important;
}

.fusion-product-content .product-buttons-container a.add_to_cart_button {
  flex: 1 1 auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px !important;
  background: var(--bn-action) !important;
  color: #ffffff !important;
  border-radius: var(--bn-radius-md) !important;
  padding: 8px 14px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.fusion-product-content .product-buttons-container a.add_to_cart_button:hover {
  background: var(--bn-action-hover) !important;
}

.fusion-product-content .product-buttons-container a.show_details_button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px !important;
  background: var(--bn-action-soft) !important;
  color: var(--bn-action) !important;
  border: 1px solid var(--bn-border-strong) !important;
  border-radius: var(--bn-radius-md) !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

/* Barre de tri / pagination /shop/ */
.catalog-ordering .orderby-order-container,
.catalog-ordering .sort-count {
  border-radius: var(--bn-radius-md) !important;
  border-color: var(--bn-border-strong) !important;
}

.woocommerce-pagination .page-numbers,
.pagination a,
.pagination span {
  min-width: 44px !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: var(--bn-radius-md) !important;
  border: 1px solid var(--bn-border-strong) !important;
  color: var(--bn-ink) !important;
  font-weight: 600 !important;
}

.woocommerce-pagination .page-numbers.current,
.pagination .current {
  background: var(--bn-action) !important;
  border-color: var(--bn-action) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   6. FICHE PRODUIT — CONVERSION MOBILE COD & WHATSAPP + WCAG 2.2 AA
   ========================================================================== */

/* Corrige le bug float-drop Avada sur fiche produit : grille 2 colonnes propre au-dessus de la ligne de flottaison */
@media (min-width: 801px) {
  .single-product div.product {
    display: grid !important;
    grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
    column-gap: 40px;
    row-gap: 32px;
    align-items: start;
  }

  .single-product div.product > .avada-single-product-gallery-wrapper {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .single-product div.product > .summary.entry-summary {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .single-product div.product > .summary.entry-summary .summary-container {
    float: none !important;
    width: 100% !important;
  }

  .single-product div.product > :not(.avada-single-product-gallery-wrapper):not(.summary) {
    grid-column: 1 / -1;
  }
}

.single-product .avada-single-product-gallery-wrapper {
  box-sizing: border-box !important;
  background: var(--bn-action-soft);
  border: 1px solid var(--bn-border);
  border-radius: var(--bn-radius-lg);
  padding: 16px;
}

.single-product .avada-single-product-gallery-wrapper .woocommerce-product-gallery__image img {
  max-height: 520px !important;
  width: 100% !important;
  object-fit: contain !important;
  background: #ffffff;
  border-radius: var(--bn-radius-md);
}

.single-product .summary.entry-summary {
  box-sizing: border-box !important;
}

.single-product .summary.entry-summary h1.product_title {
  color: var(--bn-ink) !important;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem) !important;
  line-height: 1.22 !important;
  margin-bottom: 12px !important;
}

.single-product .summary .price {
  font-size: 1.5rem !important;
  margin-bottom: 14px !important;
}

.single-product .summary p.stock.in-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bn-action-soft);
  color: var(--bn-action) !important;
  border: 1px solid var(--bn-border-strong);
  border-radius: var(--bn-radius-pill);
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
}

/* Stepper quantité 44x44px (WCAG 2.5.8) */
.woocommerce .quantity.buttons_added {
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid var(--bn-border-strong) !important;
  border-radius: var(--bn-radius-md) !important;
  overflow: hidden;
  min-height: 48px !important;
  background: #ffffff !important;
}

.woocommerce .quantity .minus,
.woocommerce .quantity .plus,
.woocommerce .quantity input.qty {
  min-width: 44px !important;
  min-height: 46px !important;
  height: 46px !important;
  border: 0 !important;
  color: var(--bn-ink) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
}

.woocommerce .quantity .minus:hover,
.woocommerce .quantity .plus:hover {
  background: var(--bn-action-soft) !important;
  color: var(--bn-action) !important;
}

.single-product form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-block: 16px !important;
}

.single-product form.cart .single_add_to_cart_button {
  flex: 1 1 220px;
  height: 48px !important;
  min-height: 48px !important;
  line-height: 1 !important;
  padding-block: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  border-radius: var(--bn-radius-md) !important;
}

/* Évite l'affichage en double de la pastille "En stock" dans Avada */
.single-product .summary .post-content ~ p.stock.in-stock,
.single-product .summary .woocommerce-product-details__short-description ~ p.stock.in-stock {
  display: none !important;
}

/* Bouton Commande directe WhatsApp + Bloc réassurance COD Maroc */
.bn-pdp-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  margin-bottom: 18px;
  background: var(--bn-surface);
  color: var(--bn-whatsapp) !important;
  border: 2px solid var(--bn-whatsapp);
  border-radius: var(--bn-radius-md);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background-color 180ms ease, color 180ms ease;
}

.bn-pdp-whatsapp-btn:hover {
  background: var(--bn-whatsapp);
  color: #ffffff !important;
}

.bn-pdp-whatsapp-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.bn-cod-reassurance {
  background: var(--bn-action-soft);
  border: 1px solid var(--bn-border);
  border-radius: var(--bn-radius-md);
  padding: 16px 18px;
  margin-bottom: 20px;
}

.bn-cod-reassurance__list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px 16px;
}

.bn-cod-reassurance__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--bn-ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}

.bn-cod-reassurance__item svg {
  width: 18px;
  height: 18px;
  color: var(--bn-action);
  flex-shrink: 0;
  margin-top: 1px;
}

/* WCAG 1.4.1 : liens discernables dans product_meta (soulignés + contraste >= 5.98:1) */
.single-product .product_meta {
  border-top: 1px solid var(--bn-border) !important;
  padding-top: 14px !important;
  color: var(--bn-muted) !important;
  font-size: 14px !important;
}

.single-product .product_meta a {
  color: var(--bn-action) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  font-weight: 600;
}

/* Onglets WooCommerce accessibles */
.woocommerce-tabs ul.tabs li a {
  color: var(--bn-ink) !important;
  font-weight: 700 !important;
  border-radius: var(--bn-radius-md) var(--bn-radius-md) 0 0 !important;
}

.woocommerce-tabs ul.tabs li.active a {
  color: var(--bn-action) !important;
  border-color: var(--bn-brand) !important;
  background: var(--bn-action-soft) !important;
}

/* Barre sticky mobile "Commander + WhatsApp" sur fiche produit */
.bn-mobile-sticky-bar {
  display: none;
}

@media (max-width: 800px) {
  /* Compresse l'en-tête mobile pour exposer titre + prix + CTA plus vite */
  .fusion-secondary-header .fusion-social-networks {
    padding-block: 4px !important;
  }

  .fusion-logo {
    margin-top: 6px !important;
    margin-bottom: 6px !important;
  }

  .fusion-logo img {
    max-height: 48px !important;
  }

  .fusion-page-title-bar {
    padding-block: 8px !important;
    min-height: 36px !important;
  }

  body.single-product {
    padding-bottom: 78px !important;
  }

  .bn-mobile-sticky-bar {
    position: fixed;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: 99990;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: #ffffff;
    border-top: 1px solid var(--bn-border-strong);
    box-shadow: 0 -6px 24px rgba(11, 38, 17, 0.12);
  }

  .bn-mobile-sticky-bar__price {
    display: flex;
    flex-direction: column;
    min-width: 72px;
  }

  .bn-mobile-sticky-bar__amount {
    color: var(--bn-action);
    font-weight: 800;
    font-size: 16px;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
  }

  .bn-mobile-sticky-bar__cod {
    color: var(--bn-muted);
    font-size: 11px;
    font-weight: 600;
  }

  .bn-mobile-sticky-bar__cta {
    flex: 1 1 auto;
    min-height: 44px;
    border: 0;
    border-radius: var(--bn-radius-md);
    background: var(--bn-action);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 14px;
    cursor: pointer;
  }

  .bn-mobile-sticky-bar__wa {
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--bn-radius-md);
    border: 2px solid var(--bn-whatsapp);
    background: var(--bn-action-soft);
    color: var(--bn-whatsapp) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
  }
}

/* ==========================================================================
   7. FORMULAIRES PANIER & CHECKOUT COD — WCAG 2.2 AA
   ========================================================================== */

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="password"],
textarea,
select {
  color: var(--bn-ink) !important;
  background-color: #ffffff !important;
  border: 1.5px solid var(--bn-border-strong) !important;
  border-radius: var(--bn-radius-md) !important;
  min-height: 46px;
  padding-inline: 14px !important;
  font-size: 15px !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--bn-muted) !important;
  opacity: 0.85 !important;
}

.woocommerce form .form-row label {
  color: var(--bn-ink) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  margin-bottom: 6px !important;
}

.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select,
[aria-invalid="true"] {
  border-color: var(--bn-danger) !important;
  background-color: var(--bn-danger-soft) !important;
}

#payment,
.woocommerce-checkout-review-order-table {
  border-radius: var(--bn-radius-lg) !important;
  border: 1px solid var(--bn-border) !important;
  background: var(--bn-action-soft) !important;
}

/* ==========================================================================
   8. PIED DE PAGE COMPLET BAYANATURE (CORRIGE LE FOOTER VIDE 0PX)
   ========================================================================== */

.bn-footer {
  background-color: var(--bn-deep);
  color: #e6f4e8;
  border-top: 4px solid var(--bn-brand);
  padding-block: 56px 28px;
  padding-inline: 20px;
}

.bn-footer__grid {
  max-width: 1200px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(170px, 1fr));
  gap: 36px 32px;
}

@media (max-width: 900px) {
  .bn-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .bn-footer__grid {
    grid-template-columns: 1fr;
  }
}

.bn-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bn-footer__logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bn-footer__logo-row img {
  width: 56px;
  height: 56px;
  border-radius: var(--bn-radius-pill);
}

.bn-footer__brand-name {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.bn-footer__tagline {
  font-size: 13px;
  color: var(--bn-brand);
  font-weight: 700;
  margin: 2px 0 0;
}

.bn-footer__desc {
  color: #d7ecda;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  max-width: 34ch;
}

.bn-footer__col h2 {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 0 14px !important;
  letter-spacing: 0.02em;
}

.bn-footer__links {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bn-footer__links a {
  color: #d7ecda !important;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  display: inline-block;
  padding-block: 2px;
}

.bn-footer__links a:hover {
  color: #ffffff !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bn-footer__bottom {
  max-width: 1200px;
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #c5e3ca;
}

.bn-footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bn-footer__badge {
  background: rgba(58, 181, 74, 0.16);
  border: 1px solid rgba(58, 181, 74, 0.45);
  color: #e6f4e8;
  padding: 4px 10px;
  border-radius: var(--bn-radius-pill);
  font-size: 12px;
  font-weight: 600;
}
