/* Variables de couleurs */
:root {
  --lvd-purple-light: #e4dfea;
  --lvd-purple-medium: #9985ae;
}

/* Styles pour #content-search - regroupés pour une meilleure lisibilité */
#content-search {
  top: 137px !important;
  height: calc(100dvh - 20%); /* Version avec dvh correcte */
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: auto;
}

#content-search .contents-products {
  display: flex;
  flex-wrap: wrap;
  margin: 1.5rem 0;
  padding: 0;
}

#content-search .container {
  border-radius: 8px;
  background-color: #efefef;
}

/* Correction: Utilisation cohérente de .search-header au lieu de #search-header */
#content-search .container .search-header {
  border-radius: 8px 8px 0px 0px;
  background: var(--LVD-LVD-color-LVD-grey_medium, #efefef);
  position: sticky;
  top: 0;
  display: flex;
  padding: 10px 15px;
  align-items: center;
  gap: 20px;
  align-self: stretch;
  /* z-index: 3; */
  /* min-width: 100%; */
}

#content-search #search-result {
  overflow-y: auto;
  overflow-x: hidden;
  height: 60dvh;
  /* max-height: 455px; */
  padding: 25px 15px 25px 20px;
  box-sizing: border-box;
  border-radius: 0px 0px 8px 8px;
  box-shadow: 0px -5px 4px 0px rgba(0, 0, 0, 0.06);
}

#content-search .suggestion-item:hover,
#content-search .suggestion-item:active,
#content-search .suggestion-item.active {
  border: 1px solid var(--lvd-purple-medium);
}

#content-search .suggestion-item:active,
#content-search .suggestion-item.active {
  box-shadow: inset 0 0 3px rgba(32, 11, 62, 0.2);
}

#content-search .suggestion-item i.fa-magnifying-glass {
  color: var(--dark);
  width: 16px;
  height: 16px;
}

#content-search .suggestion-item i.fa-xmark {
  width: 14px;
  height: 14px;
  padding: 3px;
  color: var(--lvd-purple-medium);
  cursor: pointer;
}

#content-search .suggestion-item i.fa-xmark:hover {
  color: var(--dark);
}

#content-search :not(.history-item) .suggestion-rest {
  color: var(--lvd-purple-medium);
  margin-right: 4px;
  font-family: "Sarabun";
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
}

#content-search .history-item .suggestion-rest {
  color: var(--dark);
  margin-right: 4px;
  font-family: "Sarabun";
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
}

#content-search .suggestion-highlight {
  color: var(--dark);
  font-family: Sarabun;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-decoration: none;
  width: 100%;
}

#content-search .suggestions-list,
#content-search .suggestions-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 100%;
}

#content-search .suggestions-list li,
#content-search .suggestions-list li {
  margin-right: 10px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  border: 1px solid #e5e5e5;
}

#content-search .suggestion-item {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  height: 30px;
  border-radius: 200px;
  background: var(--lvd-purple-light);
  box-sizing: border-box;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

#content-search #input-closeSearch {
  height: 24px;
  width: 24px;
  cursor: pointer;
  background-color: var(--vc-gray-dark) !important;
  text-align: center;
}

#content-search .voice-search-icon svg {
  width: 28.693px;
  height: 28.693px;
  padding: 10px;
}

/* INPUT */
#search-bar {
  padding: 8px 6px !important;
}

#header .search-input {
  padding-left: 10px;
  border: none;
  outline: none;
  box-shadow: none;
}

#header .search-input:focus {
  border: none;
  outline: none;
  box-shadow: none;
}

/* Style pour le bouton en mode "chargement imminent" */
.load-more-button.loading-soon {
  position: relative;
  background-color: #3d1054;
  overflow: hidden;
}

.load-more-button.loading-soon::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.5);
  animation: loading-bar 1.5s linear;
}

@keyframes loading-bar {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.loading-indicator {
  margin: 15px 0;
}

.spinner-border {
  width: 2rem;
  height: 2rem;
  border-width: 0.2rem;
}

/* Styles pour les switches de filtres */
.filter-toggle-button {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 20px;
  background-color: #f0f0f0;
  color: #333;
  text-decoration: none;
  transition: all 0.3s;
  margin-right: 10px;
  display: flex;
  padding: 8px 15px;
  align-items: center;
  gap: 9px;
  border-radius: 200px;
  border: 1px solid var(--LVD-LVD-color-LVD-grey_dark_stroke, #cdcdcd);
  -webkit-border-radius: 200px;
  -moz-border-radius: 200px;
  -ms-border-radius: 200px;
  -o-border-radius: 200px;
}

.filter-toggle-button:hover {
  text-decoration: none;
  background-color: #e0e0e0;
  color: #333;
}

.filter-toggle-button.active .toggle-slider {
  background-color: #2d0a41;
  color: var(--white);
}

.filter-toggle-button.active .toggle-slider:before {
  transform: translateX(16px);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
  margin-left: 8px;
}

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 34px;
  transition: 0.4s;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: var(--white);
  border-radius: 50%;
  transition: 0.4s;
}

.all_filter {
  background: url("../img/all_filters.svg") no-repeat;
  width: 15px;
  height: 15px;
  display: block;
}

.results-count p {
  color: var(--dark);
  font-family: Sarabun;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  vertical-align: middle;
  display: contents;
}

.suggestions-header p {
  color: var(--dark);
  font-family: Sarabun;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  white-space: nowrap;
  display: contents;
  vertical-align: middle;
  margin-right: 10px;
}

/***********************************************/
/* Liste des suggestions */
.search-results-container .suggestions-list,
.search-results-container .suggestions-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 100%;
}

.search-results-container .suggestions-list li,
.search-results-container .suggestions-list li {
  margin-right: 10px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  border: 1px solid #e5e5e5;
}

.search-results-container .suggestion-item,
.search-results-container .suggestion-item {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  height: 30px;
  border-radius: 200px;
  background: var(--lvd-purple-light);
  box-sizing: border-box;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.suggestion-link {
  text-decoration: none;
  display: block;
  width: 100%;
}

.suggestion-link:hover {
  text-decoration: none;
}

/******************************************/

.search-results-container .search-suggestions {
  display: flex;
  align-items: center;
}

.search-suggestions-container {
  display: flex;
  align-items: center;
  padding: 5px 0;
}

.suggestions-title {
  font-size: 16px;
  font-weight: bold;
  margin: 0;
  color: #333;
  display: flex;
  white-space: nowrap;
  margin-right: 10px;
}

/* Style pour le bouton de corbeille */
.clear-history-btn {
  background-color: #e74c3c;
  color: var(--white);
  border: none;
  border-radius: 4px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
  padding: 0;
  font-size: 10px;
  margin-left: 12px;
  margin-top: 3px;
  -webkit-transition: background-color 0.2s ease;
  -moz-transition: background-color 0.2s ease;
  -ms-transition: background-color 0.2s ease;
  -o-transition: background-color 0.2s ease;
}

.clear-history-btn:hover {
  background-color: #c0392b;
}

#input-closeSearch,
#closeSearch {
  display: flex;
  background-color: #cdcdcd !important;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

#closeSearch {
  height: 20px;
  width: 20px;
  font-size: 12px;
}

#input-closeSearch {
  width: 28px;
  height: 28px;
  padding: 7px;
  font-size: 14px;
}

#input-closeSearch:hover,
#closeSearch:hover {
  background-color: #8a8a8a !important;
}

#input-closeSearch:active,
#closeSearch:active {
  background-color: #8a8a8a !important;
}

/************************/

.view-all {
  display: flex;
  padding-bottom: 3px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  /* margin-top: 20px; */
  margin-bottom: 10px;
}

.view-all a.view-all-results {
  border-bottom: 1px solid var(--LVD-LVD-color-LVD-purple_dark, #200b3e);
  color: var(--LVD-LVD-color-LVD-purple_dark, #200b3e) !important;
  font-family: Sarabun;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
  text-align: center;
}

.view-all a.view-all-results:hover {
  color: var(--LVD-LVD-color-LVD-grey_dark, #8a8a8a) !important;
  border-color: var(--LVD-LVD-color-LVD-grey_dark, #8a8a8a) !important;
}

.h3-no-result {
  color: var(--LVD-LVD-color-LVD-purple_dark, #200b3e);
  /* LVD/Title H/LVD-h3_bold */
  font-family: Sarabun;
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 3px;
  padding: 0;
}

.p-no-result {
  color: var(--LVD-LVD-color-LVD-purple_dark, #200b3e);
  /* LVD/Paragraphe p/LVD-p_bold-miniatures */
  font-family: Sarabun;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin: 0;
  padding: 0;
  text-align: center;
}

.voice-search-icon.listening {
  color: #200b3e;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/**************************************/
/* Styles pour l'indicateur de niveau sonore */
.voice-search-wrapper {
  position: relative;
  display: inline-block;
}

.voice-search-icon {
  cursor: pointer;
  position: relative;
  z-index: 2;
  display: flex;
}

.voice-search-icon svg path {
  transition: fill 0.3s ease;
}

.voice-search-icon.listening svg path {
  fill: #fd7325;
}

.voice-levels {
  position: absolute;
  bottom: 0;
  top: 5px;
  right: 50%;
  transform: translateX(-50%);
  height: 20px;
  width: 60px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.voice-search-wrapper.listening .voice-levels {
  opacity: 1;
}

.level-bar {
  width: 4px;
  background-color: #fd7325;
  border-radius: 2px;
  height: 0;
  transition: height 0.2s ease;
}

@media (min-height: 900px) {
  #content-search #search-result {
    max-height: 480px;
    padding-bottom: 25px;
  }
}

@media (min-height: 1080px) {
  #content-search #search-result {
    max-height: 735px;
    padding-bottom: 25px;
  }
}

@media (max-width: 1199px) {
  #content-search .search-header div.d-flex:first-child {
    flex-direction: column;
    align-items: flex-start !important;
  }

  #content-search .search-header {
    display: flex;
    width: 100%;
    padding: 10px 15px;
    align-items: center;
    gap: 20px;
    border-radius: 8px 8px 0px 0px;
    /* box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.06); */
  }

  #content-search .search-header div.d-flex:first-child .suggestions-title {
    color: var(--LVD-LVD-color-LVD-navy-blue, #200b3e);
    font-family: Sarabun;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%; /* 22.4px */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    padding: 0;
    margin-bottom: 10px;
  }

  #content-search .suggestions-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-left: 0 !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    width: 100%;
    padding-right: 5px;
  }

  #content-search .suggestions-list::-webkit-scrollbar {
    display: none;
  }

  #content-search .suggestion-item {
    flex: 0 0 auto;
    margin-right: 8px;
    white-space: nowrap;
    list-style-type: none;
  }

  /*************************/
  /* INPUT */
  #search-bar {
    padding: 10px 8px !important;
    margin: 8px 20px 20px 20px !important;
  }
}

@media (min-width: 992px) {
  .col-lg-2-4 {
    flex: 0 0 20%;
    max-width: 20%;
  }

  #default-products .add-to-cart {
    font-size: 14px;
  }

  #default-products .add-to-cart .current-price {
    font-size: 17px;
  }
}

/* pour la modal */
@media (max-width: 768px) {
  .search-header .d-flex.align-items-center {
    position: relative;
    width: 100%;
  }

  .search-header .d-flex.align-items-center::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 20px;
    pointer-events: none;
  }

  #header-search-form .fa-arrow-left {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    margin-right: 8px;
    font-size: 1rem !important;
  }

  #content-search #search-result {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: none;
    padding: 10px 10px 25px 10px;
    height: calc(100vh - 180px);
  }
}

/************************************************/
/*     Styles pour l'overlay de redirection     */
/************************************************/
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#redirect_overlay_search {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(217, 217, 217, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

#redirect_overlay_search .message {
  color: #200b3e;
  font-size: 1.2em;
  text-align: center;
}

#redirect_overlay_search .spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #200b3e;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  animation: spin 1s linear infinite;
}

.facets-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: flex-start;
}

.facet-item {
  position: relative;
  flex: 0 0 calc(25% - 8px);
  min-width: 180px;
  min-height: 40px;
  border: none;
}

.facet-item button,
.facet-item button:focus-visible,
.facet-item button:hover {
  border: none;
  background: var(--white);
}

.facet-item.facet-extra.hidden {
  display: none;
}

.facet-select-toggle {
  width: 100%;
  padding: 12px 40px 12px 15px;
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.radius-open {
  border-radius: 6px 6px 0 0;
}

.radius-open-dropdown {
  border-radius: 0 0 6px 6px;
}

.facet-select-toggle i {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #aab2bd;
  transition: transform 0.3s ease;
}

.facet-select-toggle.active i {
  transform: translateY(-50%) rotate(180deg);
}

.facet-title {
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  text-transform: uppercase;
  line-height: 1;
  font-weight: 400;
  background: var(--white);
  color: #534769;
}

.facet-options {
  list-style: none;
}

.facet-options li {
  padding: 3px 5px;
  margin: 0;
  position: relative;
}

.facet-option label {
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  margin: 0;
  padding: 2px 0;
  line-height: 1em;
  display: flex;
  align-items: flex-start;
}

.option-label {
  padding-left: 5px;
  color: #200b3e;
}

.option-count {
  color: #d0d5db;
  margin-left: auto;
  padding-left: 3px;
}

.facet-item .facet-dropdown {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  padding: 5px 10px;
  background: var(--white);
  border-top-width: 0;
  z-index: 3;
  margin-top: -2px;
  overflow: hidden;
  box-shadow: 0 -1px 8px 1px rgba(8, 9, 22, 0.06);
}

.facet-item .facet-dropdown > ul {
  padding: 0 10px 1.5rem 10px;
  margin: 0 -10px;
  max-height: 500px;
}

.facet-item .facet-dropdown.show {
  display: block;
}

.facet-checkbox {
  display: none;
}

.checkbox-box {
  width: 15px;
  height: 15px;
  border: 1px solid #200b3e;
  border-radius: 3px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  -ms-border-radius: 3px;
  -o-border-radius: 3px;
}

.facet-checkbox:checked + .checkbox-box {
  background: #007bff;
  border-color: #007bff;
}

.facet-checkbox:checked + .checkbox-box::after {
  content: "✓";
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: 12px;
  font-weight: bold;
}

.btn-toggle-more {
  min-height: 40px;
  padding: 8px 20px;
  background: none;
  border: 2px solid #534769;
  border-radius: 6px;
  color: #534769;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  flex: 0 0 calc(25% - 3px);
  font-weight: 500;
  letter-spacing: 1px;
  outline: none;
}

.btn-toggle-more i {
  font-size: 12px;
  margin-left: 1rem;
}

.active-filters-row {
  margin-top: 15px;
  display: flex;
  /* align-items: center; */
  gap: 10px;
  flex-wrap: wrap;
}

/* Label "Filtres:" */
.active-filters-label {
  font-weight: 600;
  color: #333;
}

.active-filters-list {
  display: flex;
  gap: 8px;
  /* flex: 1; */
  white-space: nowrap;
  overflow-x: auto;
}

.filter-tag {
  padding: 8px 12px;
  border-radius: 20px;
  background: #eceff0;
  color: var(--purple);
  border: 1px solid var(--purple);
  position: relative;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Label du tag (texte) à gauche */
.filter-tag .tag-label {
  order: 1;
}

/* Croix de suppression dans le tag - À DROITE */
.filter-tag .remove-tag {
  order: 2;
  cursor: pointer;
  color: #6b7280;
  font-size: 14px;
  margin-left: 8px;
}

.filter-tag .remove-tag:hover {
  color: var(--black);
}

/* Bouton "Effacer les filtres" - À DROITE */
.btn-clear-all-filters {
  margin-left: auto;
  padding: 10px;
  background: #d0d5db;
  border: none;
  cursor: pointer;
  color: #666;
  text-align: center;
  font-weight: normal;
  text-transform: uppercase;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1;
  margin-top: 0.7em;
  display: inline-block;
  vertical-align: top;
}

.btn-clear-all-filters:hover {
  background: #b0b5bb;
  color: #333;
}

.filter-tag i {
  cursor: pointer;
  font-size: 11px;
}

@media (max-width: 1200px) {
  .facet-item,
  .btn-toggle-more {
    flex: 0 0 calc(33.333% - 7px);
  }
}

@media (max-width: 992px) {
  .facet-item,
  .btn-toggle-more {
    flex: 0 0 calc(50% - 5px);
  }
}

@media (max-width: 768px) {
  .facet-item,
  .btn-toggle-more {
    flex: 0 0 100%;
  }
}

.hidden {
  display: none !important;
}

/**********************************************************/
/* SLIDER PRIX AMAZZING FILTER */
/**********************************************************/
.facet-dropdown-slider {
  padding: 20px 15px;
}

.slider-track {
  position: relative;
  height: 7px;
  background: #e0e0e0;
  border-radius: 2px;
  margin: 0 0 25px 0;
}

.slider-range {
  position: absolute;
  height: 100%;
  background: #d0d5db;
}

.slider-thumb {
  position: absolute;
  top: -5px;
  margin-left: -8px;
  width: 16px;
  height: 16px;
  border-radius: 100%;
  background: #eceff0;
  cursor: pointer;
  z-index: 2;
  border: 5px solid #aab2bd;
  touch-action: none;
}

.slider-thumb:hover,
.slider-thumb:active {
  box-shadow: none;
}

.slider-thumb-min {
  left: 0;
}

.slider-thumb-max {
  left: 100%;
}

.slider-values {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 0px;
}

.slider-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: var(--white);
}

.slider-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14px;
  text-align: center;
  padding: 0;
}

.slider-suffix {
  font-size: 14px;
  color: #666;
  white-space: nowrap;
}

.facet-dropdown-slider {
  display: none;
}

.facet-select-toggle.active + .facet-dropdown-slider {
  display: block;
}

/**********************************************************/
/* CHECKBOX AMAZZING FILTER */
/**********************************************************/
.facet-checkbox-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.facet-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;

  user-select: none;
}

.facet-checkbox-input {
  width: 13px;
  height: 13px;
  cursor: pointer;
  margin: 0;
}

.facet-checkbox-name {
  flex: 1;
  text-transform: uppercase;
  font-size: 12px;
  color: #534769;
}

.facet-checkbox-count {
  color: #d0d5db;
  margin-left: auto;
  padding-left: 3px;
}

.facet-content label {
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  margin: 0;
  padding: 2px 0;
  line-height: 1em;
  display: flex;
  align-items: flex-start;
}

.facet-checkbox-label:hover {
  color: var(--black);
}

.facet-checkbox-input:checked + .facet-checkbox-name {
  font-weight: 600;
  color: var(--black);
}

.facet-checkbox-item[data-facet-style="checkbox"] .facet-content {
  border-radius: 0.5rem !important;
  display: contents;
}

.facet-checkbox-item[data-facet-style="checkbox"] .facet-content label {
  background: var(--white);
  padding: 0.55rem 0.25rem;
  border-radius: 6px;
  border: 2px solid transparent;
  box-sizing: border-box;
  min-height: 36px;
}

.facet-checkbox-item[data-facet="is_new"] .facet-content:before {
  background: linear-gradient(
    45deg,
    var(--white),
    var(--orange) 80%,
    var(--white) 100%
  );
}

.facet-checkbox-item[data-facet="in_stock"] .facet-content:before {
  background: linear-gradient(
    45deg,
    var(--white),
    var(--cyan) 80%,
    var(--white) 100%
  );
}

.facet-checkbox-item[data-facet-style="checkbox"] .facet-content:before {
  position: absolute;
  content: "";
  top: -1px;
  left: -1px;
  opacity: 1;
  height: calc(100% + 2px);
  width: calc(100% + 2px);
  border-radius: 6px;
  z-index: -1;
  filter: blur(0);
  transform: translate(-180deg);
  background-size: 200%;
  animation: animate 10s ease-in-out infinite;
}

.facet-checkbox-item[data-facet-style="checkbox"] .facet-content:active {
  background: none;
}

@keyframes animate {
  0% {
    background-position: 0 0;
  }

  25% {
    background-position: 0 0;
  }

  50% {
    background-position: 200% 0;
  }

  100% {
    background-position: 400% 0;
  }
}

/***********************************************************/
/* BOUTON AFFICHER PLUS / MOINS */
/***********************************************************/
.facet-item .facet-dropdown .toggle-cut-off:hover,
.facet-item .facet-dropdown .toggle-cut-off {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font-size: 14px;
  line-height: 14px;
  text-align: center;
  border-top: 1px solid #aab2bd;
  margin: 0 10px;
  min-height: 25px;
}

.toggle-cut-off span {
  position: relative;
  top: -7px;
  background-color: var(--purple);
  color: var(--white);
  border-radius: 0.625rem;
  padding: 0.15rem 0.55rem 0.35rem 0.55rem;
}

.toggle-cut-off .less {
  display: none;
}

.toggle-cut-off .more {
  display: inline;
}

.toggle-cut-off.active .less {
  display: inline;
}

.toggle-cut-off.active .more {
  display: none;
}

.facet-options.show-all {
  overflow-y: auto !important;
}

/***********************************************************/
/* STYLES POUR LE SELECT */
/***********************************************************/
#lvd_algolia_sortables.products-sort-order {
  position: relative;
  display: inline-block;
}

#lvd_algolia_sortables .select-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-radius: 6px;
  padding: 6px 0px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

#lvd_algolia_sortables button,
#lvd_algolia_sortables button:focus,
#lvd_algolia_sortables button:active,
#lvd_algolia_sortables button:focus-visible,
#lvd_algolia_sortables .select-title:focus-visible,
#lvd_algolia_sortables .select-title:focus-within,
#lvd_algolia_sortables .select-title:hover {
  border: none;
  outline: none !important;
  box-shadow: none !important;
}

#lvd_algolia_sortables .select-title[aria-expanded="true"] {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border: none;
}

#lvd_algolia_sortables .select-title[aria-expanded="true"] i {
  transform: rotate(180deg);
}

#lvd_algolia_sortables .select-title i {
  transition: transform 0.3s ease;
  margin-left: auto;
  padding-left: 12px;
}

#lvd_algolia_sortables .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: none;
  border-top: none;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 3;
  max-height: 400px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
}

#lvd_algolia_sortables .dropdown-item {
  display: block;
  width: 100%;
  padding: 0.25rem 1.5rem;
  clear: both;
  text-align: inherit;
  white-space: nowrap;
  background-color: #fff0;
  border: 0;
}

#lvd_algolia_sortables .dropdown-item:hover {
  background: var(--white);
}

#lvd_algolia_sortables .dropdown-item.current {
  background: var(--white);
}

@media (max-width: 768px) {
  #lvd_algolia_sortables .select-title {
    padding: 8px 12px;
    font-size: 13px;
  }

  #lvd_algolia_sortables .dropdown-item {
    padding: 10px 12px;
    font-size: 13px;
  }
}

#lvd_algolia_sortables .dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

#lvd_algolia_sortables .dropdown-menu::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

#lvd_algolia_sortables .dropdown-menu::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

#lvd_algolia_sortables .dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* ============================================
   LOADING STATES - États de chargement
   ============================================ */

/* État de chargement pour les produits et filtres */
.loading {
  position: relative;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10px;
  right: -10px;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 10;
  border-radius: 8px;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--lvd-purple-medium, #9985ae);
  border-radius: 50%;
  z-index: 11;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* État de chargement spécifique pour les facettes */
#lvd_algolia_facets.loading {
  min-height: 100px;
}

#lvd_algolia_facets.loading .facets-grid {
  filter: blur(2px);
}

/* État de chargement pour la liste de produits */
#js-product-list.loading,
.product-list.loading {
  min-height: 300px;
}

/* ============================================
   FILTRES ACTIFS 
   ============================================ */
/* Checkbox cochée */
.facet-checkbox:checked + .checkbox-box {
  background-color: #949494;
  border-color: #949494;
}

.facet-checkbox:checked + .checkbox-box::after {
  content: "✓";
  color: var(--black);
  font-size: 12px;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.no-product {
  padding: 80px 32px;
  margin: 0 auto;
  text-align: center;
  color: var(--dark);
}

.no-product h1 {
  font-size: 28px;
  margin-bottom: 12px;
  font-weight: 600;
}
