/* =========================================
    BACKGROUND LAYERS
    Positionnement des décorations d'arrière-plan
========================================= */

/* Conteneur global des arrière-plans */
.bg-layer-wrapper {
  position: relative;
  width: 100%;
  height: 0;
}

/* Images décoratives placées en absolu à différents niveaux de la page */
.bg-layer-wrapper > .bg-shape:nth-of-type(1) {
  position: absolute;
  top: -200px;
  width: 100%;
  object-fit: cover;
  z-index: -1;
}

.bg-layer-wrapper > .bg-shape:nth-of-type(2) {
  position: absolute;
  top: 900px;
  width: 100%;
  object-fit: cover;
  z-index: -1;
}

/* =========================================
    SHOP HEADER SECTION
========================================= */

/* Image de bannière principale */
.shop-header-section img {
    max-width: 1400px;
    width: 100%;
    height: auto;
    display: flex;
    margin: 0 auto;
    margin-top: 15px;
    margin-bottom: 15px;
    border-radius: 7px;
    box-shadow: var(--shadow-drop);
}

/* =========================================
    SHOP MAIN LAYOUT
========================================= */

/* Conteneur principal centré */
.shop-main-container {
  max-width: 1400px;
  margin: 0 auto;
  margin-bottom: 120px;
}

/* Barre de contrôle supérieure */
.shop-controls-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

/* Style du bouton "Trier par" */
.btn-sort {
  border: none;
  outline: none;
  cursor: pointer;
  padding: 16px 10px;
  background-color: var(--primary-1);
  color: #04201b;
  font-family: var(--font-lato);
  font-size: 13px;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Layout Grille */
.shop-content-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
}

/* Sidebar des filtres (Gauche) */
.filters-sidebar {
  padding: 50px 16px;
  background-color: var(--bg-shop);
  box-shadow: var(--shadow-drop);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-height: fit-content;
  border-radius: 7px;
  gap: 20px;
}

/* Barre de séparation dans les filtres */
.divider-line {
  width: 100%;
  height: 2px;
  background-color: #46484A;
  margin: 8px 0;
  box-shadow: var(--shadow-drop);
}

/* Option de filtre individuelle */
.filter-option {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  color: var(--text-white);
  font-family: var(--font-lato);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  cursor: pointer;
  text-shadow: var(--shadow-drop);
}

/* Symbole "+" dans les filtres */
.filter-option span {
  font-size: 24px;
  font-weight: var(--weight-bold);
  text-shadow: var(--shadow-drop);
}

/* Conteneur Grille des produits */
.products-grid-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 30px 20px;
  background-color: var(--bg-shop);
  border-radius: 7px;
  box-shadow: var(--shadow-drop);
}

/* =========================================
    PRODUCT CARD COMPONENT
========================================= */

/* Carte produit individuelle */
.product-card {
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  width: 330px;
  position: relative;
  overflow: hidden;
}

/* Overlay dégradé sur la carte */
.product-card::after {
    content: "";
    position: absolute;
    top: 25%;
    left: 0;
    width: 100%;
    height: 75%;
    background: linear-gradient(
    to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 25%,
        rgba(0, 0, 0, 1) 100%
    );
    pointer-events: none;
    z-index: 2;
}

/* Conteneur image produit */
.product-img-wrapper {
  width: 100%;
  height: 334px;
  overflow: hidden;
  border-radius: 7px 7px 0 0;
}

/* Image à l'intérieur du conteneur */
.product-img-wrapper a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bloc détails du produit */
.product-details {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: var(--text-black);
  z-index: 3;
}

/* Section Notation*/
.product-details .rating-stars {
  display: flex;
  align-items: center;
  gap: 0px;
}

/* Icône étoile */
.product-details .rating-stars .icon-star {
  height: 29px;
  width: 30px;
}

/* Compteur de votes */
.product-details .rating-stars p {
  font-family: var(--font-lato);
  font-size: 22.74px;
  font-weight: var(--weight-bold);
  color: var(--text-white);
  margin-left: 7px;
}

/* Bloc Métadonnées */
.product-meta {
  display: flex;
  flex-direction: column;
}

.product-meta > div {
  display: flex;
  justify-content: space-between;
}

/* Typographie unifiée Infos Produit */
.product-title, .product-model, .product-price {
  font-family: var(--font-lato);
  font-size: 22.74px;
  font-weight: var(--weight-bold);
  color: var(--text-white);
}

/* =========================================
    PAGINATION
========================================= */

/* Barre de pagination en bas de grille */
.pagination-bar {
  grid-column: 1 / -1;
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* Bouton de page individuel */
.btn-page {
  min-width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background-color: var(--primary-3);
  color: #e5f5ff;
  font-family: var(--font-lato);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-drop);
}

/* État actif du bouton de page */
.btn-page.active {
  background-color: #00c893;
  color: #02120d;
}