/* ---------------------------------------
              GLOBAL 
--------------------------------------- */

.woocommerce-shop .woocommerce.columns-3 {
  padding-inline: 2rem;
  padding-bottom: 30px;
}

.woocommerce .products.columns-3 div.product {
  min-width: 125px;
  border-radius: 10px;
  overflow: hidden;
}

.woocommerce .products.columns-3 div.product {
  flex: 0 0 calc(33.33% - 10px); /* 1/3 de la largeur du conteneur */
  position: relative;
  height: auto;
}

.woocommerce .products.columns-3 div.product::before {
  content: '';
  display: block;
  padding-top: 130%; /* DÃƒÂ©finit le ratio hauteur/largeur */
}

.woocommerce .products.columns-3 img, .woocommerce-page .woocommerce .products.columns-3 img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: cover;
  background-position: center;
}

.woocommerce-shop .no-product {
  width: 100%;
  padding: 65px 24px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.woocommerce-shop .no-product.active {
  display: flex;
}

.woocommerce-shop .no-product button {
  padding: 9px 12px 6px;
  background-color: transparent;
  border-radius: 3px;
  border: 1px #000 solid;
  color: #000;
  cursor: pointer;
}

.woocommerce-shop .no-product button:is(:hover, :focus) {
  background-color: #000;
  color: #fff;
}

.shop-filters {
  padding-inline: 2rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 30px;
}

@media screen and (max-width: 1024px) {
  .shop-filters {
    flex-direction: column;
  }
}

.shop-filters #shop-genre-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

:is(.shop-filters #shop-genre-filters, .filters-fieldset--genre) label {
  padding: 9px 12px 6px;
  text-transform: uppercase;
  font-size: 27px;
  border-radius: 4px;
  border: none;
  background-color: transparent;
  color: #000;
  cursor: pointer;
}

:is(.shop-filters #shop-genre-filters, .filters-fieldset--genre) input {
  display: none;
}

:is(.shop-filters #shop-genre-filters, .filters-fieldset--genre)
input:checked
+ label {
  text-decoration:underline;
}

:is(.shop-filters #shop-genre-filters, .filters-fieldset--genre)
input:hover
+ label {
  text-decoration:underline;
}

.shop-filters #open_shop_filters {
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  right: 2rem;
  z-index: 5;
  bottom: -155px;
  background: #fff;
  color: #000;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 768px) {
  .shop-filters,
  .woocommerce-shop .woocommerce.columns-3 {
    padding-inline: 12px;
  }
  .shop-filters #open_shop_filters {
    bottom: -53px;
    border: 1px solid #000000;
  }

  .shop-filters #shop-genre-filters {
    gap: 12px;
  }

  :is(.shop-filters #shop-genre-filters, .filters-fieldset--genre) label {
    font-size: 18px;
  }
}

.shop-filters #open_shop_filters path {
  stroke: #000;
}

.shop-filters #open_shop_filters:hover {
  background: #000;
  color: #fff;
}

.shop-filters #open_shop_filters:hover path {
  stroke: #fff;
}

/* ---------------------------------------
         GLOBAL FILTERS MODAL
--------------------------------------- */

#global_shop_filters {
  width: max(33%, 320px);
  height: calc(100vh - 130px);
  display: grid;
  align-content: start;
  grid-template-areas:
    'header'
    'genre'
    'color';
  position: fixed;
  top: 80px;
  z-index: 9;
  right: min(-35%, -350px);
  transition: right 0.5s ease-in-out;
  background-color: #fff;
  overflow-y: auto;
  -webkit-transition: top 0.3s ease-in-out;
  -moz-transition: top 0.3s ease-in-out;
  -ms-transition: top 0.3s ease-in-out;
  -o-transition: top 0.3s ease-in-out;
  transition: top 0.3s ease-in-out;

}

html[data-scroll="0"] #global_shop_filters {
  top:130px;

}

.global_shop_filters-inner {
  height: 100%;
  overflow-y: auto;
}

@media (max-width: 768px) {
  #global_shop_filters {
    width: 100%;
    right: -105%;
  }
}

#global_shop_filters.active {
  right: 0;
}

#global_shop_filters .modal-shop-filters__header {
  padding: 2rem 1rem;
  grid-area: header;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#global_shop_filters .modal-shop-filters__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

#global_shop_filters .modal-shop-filters__reset {
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
}

#global_shop_filters .modal-shop-filters__reset:hover {
  text-decoration: underline;
}

#global_shop_filters #close_shop_filters {
  cursor: pointer;
}

#global_shop_filters h2 {
  margin-bottom: 22px;
}

#global_shop_filters .filters-fieldset {
  padding: 36px 1rem;
  border: none;
  border-top: #000 1px solid;
}

#global_shop_filters .filters-fieldset label {
  cursor: pointer;
}

#global_shop_filters .filters-fieldset--genre {
  grid-area: genre;
}

#global_shop_filters .filters-fieldset--genre label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 8px 9px 5px;
  font-size: 21px;
  white-space: nowrap;
}

#global_shop_filters .filters-fieldset--color {
  grid-area: color;
}

#global_shop_filters .filters-fieldset input {
  display: none;
}

#global_shop_filters .filters-fieldset--color label {
  width: 36px;
  height: 36px;
  margin-right: 8px;
  display: inline-block;
  position: relative;
  border-radius: 4px;
  border: none;
}

#global_shop_filters .filters-fieldset--color input:checked + label {
  outline: 2px solid #000;
  outline-offset: 2px;
}

#global_shop_filters .filters-fieldset .filters-fieldset-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#global_shop_filters .filters-fieldset .filters-fieldset-choices label {
  padding: 16px 35px;
  border-radius: 4px;
  border: 1px solid #000;
  background-color: transparent;
  color: #000;
}

#global_shop_filters
.filters-fieldset
.filters-fieldset-choices
input:checked
+ label {
  background-color: #000;
  color: #fff;
}

#global_shop_filters input[type='submit'] {
  padding: 26px;
  border: none;
  background-color: #eaeaea;
  text-transform: uppercase;
  cursor: pointer;
  background: #000000;
  color: #FFFFFF;
  font-size: 20px;
}

.product-images-infos .tns-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  justify-content: center;
  display: flex;
  padding-bottom: 30px;
}

.products.loading {
  opacity: 0.5;
  pointer-events: none;
  animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
  0% {
    opacity: 0.7;
  }
  50% {
    opacity: 0.35;
  }
  100% {
    opacity: 0.7;
  }
}
