/* COUPON CSS */
.coupon-offers{display:flex;flex-direction:column;gap:1rem;width:100%}.coupon-offer-tile{display:flex;align-items:center;border:1px solid #e0e0e0;border-radius:8px;background:#fff;overflow:hidden;transition:box-shadow .2s,transform .1s;cursor:pointer}.coupon-offer-tile:hover{box-shadow:0 4px 12px rgba(0,0,0,.1);transform:translateY(-1px)}.cot-col{display:flex;align-items:center}.cot-col-logo{width:15%;flex-direction:column;justify-content:center;align-items:center;padding:.75rem;border-right:1px solid #f0f0f0}.cot-logo-img{max-width:48px;max-height:48px;object-fit:contain;border-radius:4px}.cot-logo-name{margin-top:.5rem;font-size:.9rem;font-weight:600;color:#333;text-align:center;line-height:1.2}.cot-col-info{width:60%;flex-direction:column;padding:0 .75rem}.cot-condition{font-size:1rem;font-weight:600;color:#333;margin-bottom:.25rem;white-space:normal;overflow:hidden}.cot-detail-small{font-size:.75rem;color:#666;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3}.cot-col-button{width:25%;justify-content:center;padding:0 .75rem}.coupon-button{position:relative;display:inline-flex;align-items:center;justify-content:flex-start;min-width:120px;height:48px;padding:.5rem 1rem .5rem .75rem;background:var(--theme-palette-color-9,#53a318);color:#fff;font-size:.9rem;font-weight:700;border:none;border-radius:6px;clip-path:polygon(0 0,calc(100% - 20px) 0,100% 20px,100% 100%,0 100%);box-shadow:0 2px 6px rgba(0,0,0,.15);transition:background .2s,transform .1s,box-shadow .2s}.coupon-button:hover{background:#4a9016;box-shadow:0 4px 8px rgba(0,0,0,.2);transform:translateY(-1px)}.coupon-text{margin-left:.5rem;z-index:3}.coupon-button-peel{position:absolute;top:0;right:0;width:24px;height:48px;background:linear-gradient(135deg,rgba(255,255,255,.3) 0%,rgba(255,255,255,.1) 50%,rgba(255,255,255,.2) 100%);clip-path:polygon(0 0,100% 0,100% 100%);display:flex;align-items:center;justify-content:center;font-size:.6rem;font-weight:700;color:rgba(0,0,0,.7);text-shadow:0 1px 1px rgba(255,255,255,.5);z-index:4}.coupon-button::after{content:"";position:absolute;top:0;right:0;width:20px;height:20px;background:rgba(0,0,0,.1);clip-path:polygon(0 0,100% 0,100% 100%);z-index:2}@media (max-width:768px){.coupon-offers{gap:.75rem}.coupon-offer-tile{min-height:80px}.cot-col-logo{width:25%}.cot-col-info{width:50%;padding:0 .5rem}.cot-condition{font-size:.75rem;line-height:1.2;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.cot-detail-small{font-size:.65rem}.cot-col-button{width:25%}.coupon-button{font-size:.75rem;padding:.4rem .6rem .4rem .4rem;min-width:auto;height:42px}.coupon-button-peel{width:18px;height:42px;font-size:.5rem}.cot-logo-img{max-width:40px;max-height:40px}.cot-logo-name{font-size:.8rem;margin-top:.4rem}}.promo-modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.6);z-index:9999}.promo-modal-overlay[aria-hidden=false]{display:flex}.promo-modal{background:#fff;border-radius:8px;max-width:600px;width:90%;padding:2rem;box-shadow:0 4px 20px rgba(0,0,0,.15);position:relative;font-family:inherit}.promo-modal-close{position:absolute;top:1rem;right:1rem;background:none;border:none;font-size:1.5rem;cursor:pointer;color:#888;line-height:1}.promo-modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.promo-modal-title{font-size:1.75rem;margin:0;color:#333}.promo-modal-logo{max-width:60px;max-height:60px;object-fit:contain}.promo-modal-cond{font-size:1.1rem;font-weight:600;color:#333;margin-bottom:1.5rem}.promo-modal-code-wrapper{border:2px dashed #ccc;padding:1rem;text-align:center;margin-bottom:1rem}.promo-modal-code-label{font-size:.85rem;color:#666;margin-bottom:.5rem}.promo-modal-code{font-size:1.5rem;font-weight:700;letter-spacing:.1em;color:var(--theme-palette-color-9,#53a318)}.promo-modal-actions{display:flex;gap:.5rem;margin-bottom:1.5rem}.promo-modal-actions .pm-copy,.promo-modal-actions .pm-shop{flex:1;padding:.75rem;font-size:1rem;font-weight:600;border-radius:6px;text-align:center;cursor:pointer;transition:background .2s,color .2s}.promo-modal-actions .pm-copy{background:var(--theme-palette-color-9,#53a318);color:#fff;border:none}.promo-modal-actions .pm-shop{background:transparent;color:var(--theme-palette-color-9,#53a318);border:2px solid var(--theme-palette-color-9,#53a318);text-decoration:none;line-height:1.5}.promo-modal-end{font-size:.9rem;color:#c00;text-align:center;margin-bottom:1rem;font-weight:600}.promo-modal-details{font-size:.7rem;color:#777;line-height:1.4;margin-bottom:1.5rem;text-align:left}



/* bouton mobile compare wishlist */
@media (max-width: 768px) {
.ct-product-additional-actions button
 {
    height: 30px!important;
    min-width: 30px!important;
    padding: 5px 5px!important;
     }
    .ct-product-add-to-cart {
        margin-right: 10px!important;
}
    .ct-product-additional-actions[data-type=button]
 {
    gap: 5px!important;
}
}

.bb-average-rating {
    font-size: .8rem;
    }
/* ════════════════════════════════════════════════
   BADGES CSS
   ════════════════════════════════════════════════ */
.cdl-badge {
  display: inline-block;
  padding: .2em .5em;
  border-radius: .25rem;
  font-size: .6rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  margin-right: .5em;
  text-decoration: none;
  transition: opacity .2s;
}
.cdl-badge:hover {
  opacity: .85 !important;
  background-color: inherit !important;
  color: #fff !important;
  text-decoration: none !important;
}
/* ════════════════════════════════════════════════
   pop up rating review
   ════════════════════════════════════════════════ */
@media (min-width:1024px) {
  .woocommerce-product-rating {
    position: relative;
  }
  .bb-hover-box {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 2em;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 9999;
    width: 100%;
    max-width: 500px;
  }
  .woocommerce-product-rating:hover .bb-hover-box {
    display: block;
  }

  .bb-hover-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
  }
  .bb-hover-col--left {
    text-align: center;
  }
  .bb-hover-average {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: .5rem;
  }
  .bb-hover-button {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: .5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
  }
  .bb-hover-button:hover {
    background: #1e40af;
  }

  .bb-hover-row {
    display: flex;
    align-items: center;
    margin: .4rem 0;
  }
  .bb-hover-star {
    width: 2rem;
    font-weight: 600;
  }
  .bb-hover-bar {
    flex: 1;
    height: 8px;
    background: #eee;
    margin: 0 .75rem;
    position: relative;
  }
  /* ← on ajoute display:block ici */
  .bb-hover-bar span {
    display: block;
    height: 100%;
    background: #2563eb;
  }
  .bb-hover-count {
    width: 2rem;
    text-align: right;
    font-weight: 600;
  }
}
/* masquer le popup hover en-dessous de 1024px */
@media (max-width: 1023px) {
  .bb-hover-box {
    display: none !important;
  }
}
/* ════════════════════════════════════════════════
   DESCRIPTION : prix%
   ════════════════════════════════════════════════ */
/* 1. Forcer le conteneur price à s’aligner à gauche */
.summary .price {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center;          /* pour garder les éléments bien alignés verticalement */
}

/* 2. Remettre le flex-direction normal si besoin */
.summary .price .sale-price {
  flex-direction: row !important;
}

/* 3. Ordre des éléments : prix soldé, badge, prix barré */
.summary .price .sale-price ins {
  order: 1;
}
.summary .price .sale-price .bld-sale-badge {
  order: 2;
  margin-left: 0.8em;
}
.summary .price .sale-price del {
  order: 3;
}

/* 4. Style du badge */
.bld-sale-badge {
  display: inline-block;
  padding: 0.2em 0.5em;
  background-color: #459616;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  vertical-align: middle;
}


/* ════════════════════════════════════════════════
   DESCRIPTION : preview limitée + voile sur le TEXTE + bouton
   ════════════════════════════════════════════════ */

/* 1) On force la description à s'afficher */
#tab-description {
  overflow: visible !important;
  position: relative;
}

/* 2) Limitation de la hauteur du contenu */
#tab-description .entry-content {
  max-height: 300px;
  overflow: hidden;
  position: relative;
  transition: max-height .4s ease-in-out;
}

/* 3) VOILE/DÉGRADÉ SUR LE TEXTE - effet de fade out */
#tab-description .entry-content::after {
  content: "";
  position: absolute;
  bottom: 0; 
  left: 0; 
  right: 0;
  height: 4rem;
  pointer-events: none;
  z-index: 2;
  /* Dégradé blanc qui masque progressivement le texte */
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.8) 70%,
    rgba(255, 255, 255, 1) 100%
  );
}

/* Alternative avec mask pour un effet plus propre */
#tab-description .entry-content {
  /* Masque qui fait disparaître le texte progressivement */
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 70%,
    rgba(0, 0, 0, 0.3) 90%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 70%,
    rgba(0, 0, 0, 0.3) 90%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* Désactiver le mask quand étendu */
#tab-description .entry-content.expanded {
  -webkit-mask-image: none;
  mask-image: none;
}

/* 4) Bouton "Voir plus" */
#tab-description .voir-plus-btn {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #f6f6f6;
  border: 2px solid #ccc;
  padding: .5em 1.2em;
  font-size: .9rem;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
  z-index: 3;
  display: inline-block;
}

/* 5) Quand on ajoute .expanded → on enlève la limite, le voile et le bouton */
#tab-description .entry-content.expanded {
  max-height: none !important;
}
#tab-description .entry-content.expanded::after {
  display: none !important;
}
#tab-description .entry-content.expanded + .voir-plus-btn {
  display: none !important;
}

/* 6) Mobile : hauteur réduite */
@media (max-width: 768px) {
  #tab-description .entry-content {
    max-height: 200px;
  }
  #tab-description .entry-content::after {
    height: 3rem;
  }
}







/*** Prix rouge solde  */
.sale-price ins, mark {
    color: var(--theme-palette-color-12);
        }
/*** Agrandir etoile  */
:is(.star-rating,.wc-block-components-product-rating-stars__stars,.wc-block-rating-filter .wc-block-components-product-rating__stars,.wc-block-grid__product-rating .wc-block-grid__product-rating__stars,.has-rating .wc-block-components-review-list-item__rating>.wc-block-components-review-list-item__rating__stars) 
{
    font-size: 0.9em;
    }

/*** Espace page single product */
[data-vertical-spacing*=top] {
    padding-top: 2em;
}
@media screen and (max-width: 600px) {[data-vertical-spacing*=top] {
    padding-top: 0em;
}
                                      }

/*** Full widht image */
@media (max-width: 768px) {
    .woocommerce-product-gallery {
        width: 100vw; /* Prend toute la largeur de l'écran */
        margin-left: calc(-50vw + 50%); /* Centre la galerie en supprimant les marges latérales */
    }
}

/*** espace image et en bas */
@media (max-width: 999.98px) {
    div.woocommerce-product-gallery {
        margin-bottom: 0.5em!important;
    }
}

/*** descatvier gallery thumbnail */
@media screen and (max-width: 600px) {
    .flexy-pills {
    display: none;
    }
}

/*** Espace breadcrumd et h1  single product */ 
.rank-math-breadcrumb p {
    margin-bottom: 0.1em;
}

/* ALIGNER BOUTON CART ET WISHLIST Flex */
.product-actions-container {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    margin-bottom: var(--product-element-spacing, 35px)!important;
    margin-top: var(--product-element-spacing, 35px)!important;
}
/* Espacement horizontal entre les éléments */
.ct-product-add-to-cart {
    flex-grow: 1;
    flex-basis: 80%; 
    max-width: 80%; 
    margin-right: 15px; 
}
.ct-product-additional-actions {
    flex-grow: 0;
    flex-basis: 20%; 
    max-width: 20%; 
    text-align: right;
}
/* Ajuster la marge en bas sur les appareils mobiles */
@media (max-width: 768px) {
    .product-actions-container {
        margin-bottom: var(--product-element-spacing, 25px)!important;
    }
}


/*** Espace breadcrumd et h1  single product */
.rank-math-breadcrumb p {
    margin-bottom: 0.1em;
}

/*** add to cart */
.ct-cart-actions .single_add_to_cart_button {
    font-size: 1.2rem;
    }
@media (max-width: 768px) {
    .ct-cart-actions .single_add_to_cart_button {
    font-size: 1.2rem;
    }
 }

/* Picto produit similaire - Related product Woocommerce single product page */
.woocommerce .related.products > h2:before {
    content: '';
    display: inline-block;
    width: 44px; /* Ajustez la largeur selon vos besoins */
    height: 44px; /* Ajustez la hauteur selon vos besoins */
    background-image: url('/wp-content/uploads/2024/07/similaire.svg');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 10px; /* Ajustez l'espacement selon vos besoins */
    vertical-align: middle; /* Alignez verticalement avec le texte */
}

/* Picto Up Sell - Aimer aussi - Related product Woocommerce single product page */
.woocommerce .upsells.products > h2:before {
    content: '';
    display: inline-block;
    width: 44px; /* Ajustez la largeur selon vos besoins */
    height: 44px; /* Ajustez la hauteur selon vos besoins */
    background-image: url('/wp-content/uploads/2024/07/aimer-aussi.svg');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 10px; /* Ajustez l'espacement selon vos besoins */
    vertical-align: middle; /* Alignez verticalement avec le texte */
}

/* Ajustements pour les écrans mobiles */
@media screen and (max-width: 768px) {
    .woocommerce .related.products > h2:before,
    .woocommerce .upsells.products > h2:before {
        width: 32px;
        height: 32px; /* Réduire la hauteur pour les mobiles */
        margin-right: 8px; /* Réduire l'espacement pour les mobiles */
    }
}

.flexy-pagination {
    position: absolute;
    bottom: 10px; /* Ajustez cette valeur pour la position verticale */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    z-index: 10; /* S'assure que la pagination est au-dessus de l'image */
}

.flexy-pagination-bullet {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.flexy-pagination-bullet-active {
    background-color: #333;
}

/* ICON MARQUE Positionne l’élément de marque à droite sur desktop */
.ct-product-brands-single {
    float: right;
    margin: 0 0 20px 20px;
}
