.backtotop {
  position: fixed;
  cursor: pointer;
  right: 40px;
}

.fs-11px {
  font-size: 11px !important
}

.chevron {
  position: relative;
  left: -8px;
  top: 7px;
  color: #006666;
  font-size: 12px
}

.checkbox-search {
  float: right;
}

.filter-title.color,
.filter-title.marque {
  max-height: 300px;
  overflow-y: scroll;
}

.rotate180 {
  -ms-transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg)
}

.arrow-main-cat {
  position: absolute;
  right: 32px;
  line-height: 25px !important;
  transition: .5s
}

.reductmore,
.showmore {
  font-weight: 700
}

input[type=radio],
input[type=checkbox] {
  margin: 3px 13px 0;
  margin-top: 1px\9;
  line-height: normal
}

.noUi-horizontal .noUi-handle {
  width: 20px;
  height: 20px;
  left: -17px;
  top: -2px
}

.product-a-block {
  display: block;
  height: 110px
}

.loader {
  margin: 2em auto auto;
  width: 200px;
  display: block
}

.activate-filter {
  padding-top: 10px;
  margin-bottom: 15px
}

.no-product {
  font-size: 1.2em;
  padding: 10px
}

.item-activate {
  padding: 5px 5px 5px 5px;
  margin-right: 10px;
  display: inline-block;
  border: 1px solid #006666;
}

.item {
  color: #000;
  display: block;
  margin-top: 7px;
  cursor: pointer
}

.item.activate {
  color: #006666;
}

.item.activatedn,
.valid_price {
  text-decoration: none;
  background: #006666;
  color: #ffff !important
}

.item.activatedn {
  display: none;
  border: 1px solid green !important;
  padding: 5px 15px 5px 5px
}

.price-filter {
  margin: 30px 0;
  flex-direction: column;
}
.price-filter .noUi-base {
  width: calc(100% - 12px);
  position: relative;
  right: -12px;
}

.valid_price {
  position: relative;
  right: 0;
  border: unset;
  display: inline-block;
  padding: 5px;
  float: right
}

.mgt10 {
  margin-top: 10px !important
}

.item-activate::before,
.item.activatedn::before {
  content: "\f00d";
  font: normal normal normal 14px/1 FontAwesome;
  padding: 5px
}

.filter-order p {
  cursor: pointer;
}

.list-item {
  margin-left: 15px !important
}

.dn {
  display: none
}

.title {
  padding-left: 12px
}

.filter-title {
  font-size: 14px;
  padding: 10px;
}

.filter-title span {
  text-transform: uppercase;
  font-size: 12px;
  padding: 0
}

ul.filter-title {
  padding-left: 10px
}

input[type=checkbox].filter-title {
  right: 20px
}

.item-color::before {
  font: normal normal normal 14px/1 FontAwesome;
  padding: 5px;
  width: 20px;
  height: 20px;
  content: '';
  color: RGBa (0, 0, 0, 1);
  position: relative;
  border-radius: 15px;
  display: inline-block;
  top: 5px;
  left: -5px
}

.bg-rouge::before {
  background-color: red
}

.bg-noir::before {
  background-color: #000
}

.bg-blanc::before {
  background-color: #fff;
  border: .5px solid #dcdcdc
}

.bg-jaune::before {
  background-color: #ff0
}

.bg-vert::before {
  background-color: green
}

.bg-bleu::before {
  background-color: #00f
}

.bg-violet::before {
  background-color: violet
}

.bg-marron::before {
  background-color: brown
}

.bg-rose::before {
  background-color: pink
}

.bg-gris::before {
  background-color: grey
}

.bg-or::before {
  background-color: gold
}

.bg-argent::before {
  background-color: silver
}

.bg-orange::before {
  background-color: orange
}

.bg-ecaille::before {
  background-image: url(/images/product-list/ecaille.png);
  border-radius: unset
}

.bg-multicolore::before {
  background-image: url(/images/product-list/multicolore.png);
  border-radius: unset
}

.bg-translucide::before {
  background-color: #f1f1f1;
  border: .5px solid #dcdcdc
}

.qr {
  position: fixed;
  float: right;
  left: 90%;
  color: grey;
  font-size: 10px;
}

.qr img {
  width: 120px;
}

@media (max-width: 1359px) {
  .qr {
    display: none
  }
}

hr {
  margin: 0 auto !important;
  background-color: #333 !important;
  height: 1px
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 160px;
  padding: 12px 16px;
  z-index: 1;
  border: 1px solid #9999
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-w310 {
  width: 310px !important;
}

.dropdown-w300 {
  width: 300px !important;
}

.dropdown-w250 {
  width: 250px !important;
}

.dropdown-w275 {
  width: 275px !important;
}

.dropdown-w205 {
  width: 205px !important;
}


.loader {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.loader:after {
  content: " ";
  display: block;
  border-radius: 50%;
  width: 0;
  height: 0;
  margin: 8px;
  box-sizing: border-box;
  border: 32px solid #d12127;
  border-color: #d12127 transparent #d12127 transparent;
  animation: loader 2.8s infinite;
}

@keyframes loader {
  0% {
    transform: rotate(0);
    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  }

  50% {
    transform: rotate(900deg);
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  100% {
    transform: rotate(1800deg);
  }
}

/* ================================================
   NOUVEAU DESIGN PRODUCT LIST - 2 COLONNES
   ================================================ */

/* Container principal */
.product-listing-container {
  margin: 0 auto;
  padding: 20px 10px;
}

@media (min-width: 1520px){
  .product-listing-container {
    max-width: 1500px;
    padding: 20px 0px;
  }
}

/* ================================================
   FILTRES ACTIFS (barre en haut)
   ================================================ */
.active-filters-bar {
  background: #f8f9fa;
  padding: 15px 20px;
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
}

.active-filters-title {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.active-filters-title .count {
  color: #006666;
  font-weight: 700;
}

.filters-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
    background: #006666;
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.filter-tag .remove-filter {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-tag .remove-filter:hover {
  background: rgba(255, 255, 255, 0.3);
}

.clear-all-filters {
  background: #6c757d;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.clear-all-filters:hover {
  background: #5a6268;
}

/* ================================================
   LAYOUT 2 COLONNES
   ================================================ */
.listing-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 15px;
  align-items: start;
}

/* ================================================
   SIDEBAR FILTRES (colonne gauche)
   ================================================ */
.filters-sidebar {
  position: sticky;
  top: 20px;
  background: white;

}

.filters-sidebar-title{
    color: #000;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    margin: 20px 0px;
    display: block;
}

.filters-sidebar-content{
  border: 1px solid #e0e0e0;
  max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.filters-header {
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filters-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #333;
}

.close-filters-mobile {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  line-height: 1;
}

.filters-content {
  padding: 0;
}

/* Bloc de filtre individuel */


.filter-title {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  transition: background 0.2s;
  border:0px;
  background: #f8f9fa;
}

.filter-title:hover {
  background: #DFE0E1;
}

.toggle-icon {
  color: #999;
  font-size: 12px;
  transition: transform 0.2s;
}

.filter-content {
  padding: 15px 20px 15px 20px;
}

/* Recherche dans filtre */
.filter-search {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 10px;
}

.filter-search:focus {
  outline: none;
  border-color: #006666;
}

/* Liste des options */
.filter-options,
.filter-options-boolean {
  list-style: none;
  padding: 0;
  margin: 0;
}

.filter-option-item {
  margin-bottom: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 5px 0;
  transition: color 0.2s;
}

.checkbox-label:hover {
  color: #006666;
}

.checkbox-label input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
  margin: 0;
}

.checkbox-label.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.option-label {
  flex: 1;
  font-size: 14px;
}

.option-count {
  color: #999;
  font-size: 13px;
}

/* Items cachés (voir plus) */
.filter-option-item.hidden-item {
  display: none;
}

/* Bouton Voir plus */
.show-more-btn {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #006666;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.show-more-btn:hover {
  background: #e9ecef;
  border-color: #006666;
}

.show-more-btn:active {
  transform: scale(0.98);
}

.show-more-btn .show-more-text,
.show-more-btn .show-less-text {
  display: inline-block;
}

.show-more-btn.expanded .show-more-text {
  display: none;
}

.show-more-btn.expanded .show-less-text {
  display: inline-block !important;
}

/* Filtre prix */
.price-filter {
  margin: 0;
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.price-input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.price-separator {
  color: #999;
}

.valid_price {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}

.valid_price:hover {
  opacity: 0.9;
}

/* Filtres de recherche (taille, nom du verre) */
.search-filter {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.search-filter-input {
  flex: 1;
  padding: 8px 12px;
  border: none;
  font-size: 14px;
  outline: none;
  width:100%;
}

.search-filter-input:focus {
  outline: none;
  background: #f8f9fa;
}

.search-filter-btn {
  padding: 8px 16px;
  background: #006666;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width:50px;
}

.search-filter-btn:hover {
  background: #a81015;
}

.search-filter-btn:active {
  transform: scale(0.95);
}

.search-filter-btn i {
  font-size: 14px;
}

/* Sous-sections dans les facettes */
.filter-section-separator {
  height: 1px;
  background: #e0e0e0;
  margin: 15px 0;
}

.filter-subsection {
  margin-top: 10px;
}

.filter-subsection-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  margin-bottom: 8px;
}

/* Bouton mobile pour ouvrir filtres */
.open-filters-mobile {
  display: flex;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background: #006666;
  color: white;
  border: none;
  padding: 15px 25px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.open-filters-mobile .badge {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}

/* Overlay mobile */
.filters-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.filters-overlay.active {
  display: block;
}

/* ================================================
   COLONNE RÉSULTATS (droite)
   ================================================ */
.products-results {
  min-height: 500px;
}

/* Header résultats */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px 20px;
  background: white;
  border: 1px solid #e0e0e0;
  margin: 0px 10px 10px 10px;
}

.results-count {
  margin: 0;
  font-size: 16px;
  color: #666;
}

.results-count strong {
  color: #333;
  font-weight: 700;
}

.results-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.results-sort label {
  font-size: 14px;
  color: #666;
}

.sort-select {
  padding: 8px 32px 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* Grille produits */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 30px;
  position: relative;
  min-height: 400px;
}

@media (min-width: 602px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media(min-width:769px) {
  .open-filters-mobile {
    display: none;
  }
}
@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1360px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1500px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
.products-grid .item-product .product-2k20{
  max-width:initial;
}

/* Message aucun produit */
.no-product {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.no-product p {
  font-size: 18px;
  color: #666;
  margin-bottom: 20px;
}

/* Loader infinite scroll */
.loading-more {
  text-align: center;
  padding: 40px;
}

.loading-more p {
  margin-top: 10px;
  color: #999;
  font-size: 14px;
}

/* Overlay de chargement AJAX */
.ajax-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  min-height: 400px;
}

.ajax-loader {
  text-align: center;
}

.ajax-loader p {
  margin-top: 20px;
  color: #666;
  font-size: 16px;
  font-weight: 600;
}

/* Pagination SEO (cachée visuellement mais accessible aux crawlers) */
.pagination-seo {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ================================================
   RESPONSIVE MOBILE
   ================================================ */
@media (max-width: 768px) {
  .listing-layout {
    grid-template-columns: 1fr;
  }
  .filters-sidebar-title {
    margin: 20px;
  }

  .filters-sidebar {
    position: fixed;
    top: 99px;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: calc(100vh - 99px);
    max-height: calc(100vh - 99px);
    z-index: 1000;
    transition: left 0.3s ease-in-out;
    border-radius: 0;
  }

  .filters-sidebar.open {
    left: 0;
  }

  .close-filters-mobile {
    display: block;
  }


  .results-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }

  .results-sort {
    justify-content: space-between;
  }


  .active-filters-bar {
    padding: 10px 15px;
  }

  .filter-tag {
    font-size: 12px;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .product-listing-container {
    padding: 10px;
  }
}


/**
 * 💰 Styles pour le filtre de prix avec slider noUiSlider
 * Style moderne inspiré de Boulanger
 */

/* Conteneur principal du filtre prix */
.price-filter {
  padding: 15px 0;
}

/* Inputs de prix */
.price-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.price-input-wrapper {
  position: relative;
  flex: 1;
}

.price-input {
  width: 100%;
  padding: 10px 30px 10px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.price-input:focus {
  outline: none;
  border-color: #0066cc;
}

.price-currency {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 14px;
  pointer-events: none;
}

.price-separator {
  color: #999;
  font-weight: bold;
}

/* Slider noUiSlider */
.price-slider {
  margin: 20px 5px 25px;
}

/* Styles de base noUiSlider */
.noUi-target {
  background: #e6e6e6;
  border-radius: 4px;
  border: none;
  box-shadow: none;
  height: 6px;
}

.noUi-horizontal {
  height: 6px;
}

.noUi-horizontal .noUi-handle {
  width: 20px;
  height: 20px;
  right: -10px;
  top: -7px;
}

.noUi-handle {
  border: 2px solid #0066cc;
  background: #fff;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
}

.noUi-handle:hover,
.noUi-handle:focus {
  border-color: #0052a3;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.noUi-handle:before,
.noUi-handle:after {
  display: none;
}

.noUi-connect {
  background: #0066cc;
  background: linear-gradient(90deg, #0066cc 0%, #0052a3 100%);
}

.noUi-horizontal .noUi-tooltip {
  display: none;
}

/* États actifs */
.noUi-active {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transform: scale(1.1);
}

.noUi-state-tap .noUi-connect,
.noUi-state-tap .noUi-origin {
  transition: transform 0.3s;
}

/* Conteneur des boutons d'action prix */
.price-filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

/* Bouton de validation */
.price-validate-btn {
  padding: 12px 20px;
  background: #0066cc;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-left: auto;
}

/* Si le bouton Valider est seul (pas de bouton Réinitialiser) */
.price-filter-actions:not(:has(.price-reset-btn)) .price-validate-btn {
  width: 100%;
}

.price-validate-btn:hover {
  background: #0052a3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.price-validate-btn:active {
  transform: translateY(0);
}

.price-validate-btn i {
  font-size: 14px;
}

/* Bouton de réinitialisation (style lien) */
.price-reset-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 14px;
  font-weight: normal;
  cursor: pointer;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 0;
  text-decoration: underline;
}

.price-reset-btn:hover {
  color: #333;
  text-decoration: none;
}

.price-reset-btn i {
  font-size: 13px;
}

/* Animation d'apparition du bouton */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.price-validate-btn[style*="display: block"] {
  animation: slideDown 0.3s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  .price-inputs {
    gap: 8px;
  }

  .price-input {
    padding: 8px 25px 8px 8px;
    font-size: 13px;
  }

  .price-filter-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
  }

  .price-validate-btn {
    padding: 10px 16px;
    font-size: 13px;
    width: 100%;
    margin-left: 0;
  }
  
  .price-reset-btn {
    font-size: 13px;
    text-align: center;
    justify-content: center;
  }
}

/* ================================================
   STYLES SPÉCIFIQUES À LA RECHERCHE
   ================================================ */

/* Suggestions de recherche (quand aucun résultat) */
.no-product .search-suggestions {
  margin-top: 2rem;
  font-weight: bold;
  color: #333;
  font-size: 16px;
}

.no-product .search-suggestions-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  text-align: left;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.no-product .search-suggestions-list li {
  padding: 0.5rem 0;
  color: #666;
  font-size: 14px;
}

.no-product .search-suggestions-list li:before {
  content: "→ ";
  color: var(--main-color-activate);
  font-weight: bold;
  margin-right: 8px;
}
