/*
Theme Name: Hello Elementor Child
Theme URI: http://instantdaudace.local
Description: Thème enfant de Hello Elementor pour personnalisation CSS et fonctionnalités.
Author: Laurine
Author URI: http://instantdaudace.local
Template: hello-elementor
Version: 1.0.2
Text Domain: hello-elementor-child
*/

/* =================================================
   🧩 YITH QUICK VIEW – STRUCTURE GÉNÉRALE
================================================= */

.yith-quick-view.yith-modal.open .yith-wcqv-wrapper {
  height: auto !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #fff;
  border-radius: 12px;
  z-index: 9999;
}

.yith-quick-view.yith-modal.open .yith-wcqv-main {
  width: 100%;
  max-width: 1200px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.yith-quick-view.yith-modal.open .product {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 30px;
  align-items: flex-start;
}

.yith-quick-view.yith-modal.open .images.classic {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 85vh;
}

.yith-quick-view.yith-modal.open .images.classic img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.yith-quick-view.yith-modal.open .summary.entry-summary {
  flex: 1 1 50%;
  overflow-y: auto !important;
  max-height: 85vh !important;
  padding: 0 15px !important;
  scroll-behavior: smooth;
}

/* Scrollbar style */
.yith-quick-view.yith-modal.open .summary.entry-summary::-webkit-scrollbar {
  width: 6px;
}
.yith-quick-view.yith-modal.open .summary.entry-summary::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}
.yith-quick-view.yith-modal.open .summary.entry-summary::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* =================================================
   📱 QUICK VIEW – VERSION MOBILE
================================================= */

@media (max-width: 768px) {
  .yith-quick-view.yith-modal.open {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .yith-quick-view.yith-modal.open .yith-wcqv-main,
  .yith-quick-view.yith-modal.open .product,
  .yith-quick-view.yith-modal.open .summary.entry-summary,
  .yith-quick-view.yith-modal.open .images.classic {
    width: 100% !important;
    max-width: 100% !important;
  }

  .yith-quick-view.yith-modal.open .product {
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
  }

  .yith-quick-view.yith-modal.open .yith-wcqv-wrapper {
    overflow: visible !important;
    max-height: none !important;
  }

  .yith-quick-view.yith-modal.open .images.classic {
    max-height: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .yith-quick-view.yith-modal.open .summary.entry-summary {
    overflow: visible !important;
    max-height: none !important;
    padding: 0 15px 30px !important;
  }

  .yith-quick-view.yith-modal.open .yith-wcqv-main {
    overflow-x: hidden !important;
  }
}

/* =================================================
   🎨 SELECT COULEUR ACCESSOIRES
================================================= */

#pa_couleur_accessoires {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: inline-block;
  width: 100%;
  max-width: 220px;
  padding: 12px 18px;
  border-radius: 30px;
  border: 2px solid #627369;
  background-color: #CE9D98;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3E%3Cpath fill='%23ffffff' d='M7 8L0 0h14z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 8px;
}

#pa_couleur_accessoires:focus {
  outline: none;
  border-color: #F2A03D;
  box-shadow: 0 0 10px rgba(242,160,61,0.5);
}

#pa_couleur_accessoires:hover {
  background-color: #627369;
}

.reset_variations {
  color: #627369;
  font-size: 14px;
  text-decoration: underline;
  margin-left: 10px;
  transition: color 0.3s ease;
}

.reset_variations:hover {
  color: #F2A03D;
}

/* =================================================
   WOOF FILTERS
================================================= */

.woof_redraw_zone {
  display: flex !important;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.woof_select {
  border-radius: 12px !important;
  border: 1px solid #CE9D98 !important;
  background-color: #fff !important;
  font-size: 18px !important;
  color: #503636D9 !important;
  padding: 8px 12px !important;
  width: 250px !important;
  text-align: center !important;
}

.woof_select option {
  text-align: center;
}

.chosen-search {
  display: none !important;
}

.woof_submit_search_form_container .woof_submit_search_form {
  border-radius: 12px !important;
  background-color: #CE9D98 !important;
  color: #fff !important;
  padding: 10px 20px !important;
  font-size: 18px !important;
  border: none !important;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
}

.woof_submit_search_form_container .woof_submit_search_form:hover {
  background-color: #EAB5AF !important;
}

/* =================================================
   PRODUITS + LABELS
================================================= */

.e-loop-item,
.woocommerce ul.products li.product {
  position: relative;
  overflow: visible !important;
}

.e-loop-item.product_tag-personnalisable::before,
.woocommerce ul.products li.product.product_tag-personnalisable::before {
  content: "Personnalisable";
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #F2C6C6;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 12px;
  z-index: 50;
  white-space: nowrap;
}

.woocommerce ul.products li.product.product_tag-couleurs::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: conic-gradient(
      #000000 0deg 72deg,
      #D8BFD8 72deg 144deg,
      #B8C4A2 144deg 216deg,
      #F7E7CE 216deg 288deg,
      #FFFFFF 288deg 360deg
  );
  border: 2px solid #fff;
  z-index: 40;
}

/* =================================================
   BOUTONS PRODUITS
================================================= */

.yith-wcqv-button {
  color: #FFFFFF !important;
  background-color: #CE9D98 !important;
  font-family: "Poppins", Sans-serif !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  border-radius: 20px !important;
  margin-top: 5px !important;
  padding: 10px 20px !important;
  text-align: center !important;
  transition: all 0.2s;
}

.yith-wcqv-button:hover {
  background-color: #d49c94 !important;
}

/* =================================================
   RESPONSIVE LABELS
================================================= */

@media (max-width: 1024px) and (min-width: 768px) {
  .e-loop-item.product_tag-personnalisable::before {
    top: 20px;
    right: 15px;
    font-size: 11px;
  }
  .woocommerce ul.products li.product.product_tag-couleurs::after {
    width: 30px;
    height: 30px;
    top: 15px;
    left: 15px;
  }
}

@media (max-width: 767px) {
  .e-loop-item.product_tag-personnalisable::before {
    bottom: 10px;
    right: 10px;
    font-size: 8px;
  }
  .woocommerce ul.products li.product.product_tag-couleurs::after {
    width: 25px;
    height: 25px;
    top: 10px;
    left: 10px;
  }
}
/* 🔓 Débloque la superposition sur toutes les sections et colonnes de filtres */
.elementor-widget-taxonomy-filter,
.elementor-widget-taxonomy-filter * {
  overflow: visible !important;
}

/* 💫 Contexte propre à chaque widget */
.elementor-widget-taxonomy-filter {
  position: relative !important;
  z-index: 999 !important;
}

/* 🎯 Le menu déroulant flottant */
.elementor-widget-taxonomy-filter .e-filter {
  position: absolute !important;
  top: calc(100% - 2px) !important;
  left: 0 !important;
  z-index: 10000 !important;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  overflow-y: auto;
  display: none;
  width: max-content;
}

/* 🧠 Optionnel : quand le parent est actif (ex: accordéon ouvert), on affiche le menu */
.elementor-accordion-item.elementor-active .elementor-widget-taxonomy-filter .e-filter {
  display: block !important;
}

/* 🧱 Sécurité : empêche les parents de couper le menu */
.elementor-section,
.elementor-column {
  overflow: visible !important;
}
