/* =========================================
    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 {
  position: absolute;
  top: 200px;
  width: 100%;
  object-fit: cover;
  z-index: -1;
}

/* =========================================
    PRODUCT FOCUS SECTION (Main Details)
========================================= */

/* Conteneur principal de la page produit */
.product-detail-section {
  max-width: 1400px;
  margin: 0 auto;
  margin-top: 200px;
  padding-left: 60px;
}

/* Grille principale */
.product-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}

/* --- Colonne Galerie --- */
.gallery-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Grille des images principales */
.main-images-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* Wrapper pour une image principale */
.main-image-wrapper {
  border-radius: 7px;
  overflow: hidden;
  box-shadow: var(--shadow-drop);
}

.main-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Grille des miniatures */
.thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

/* Wrapper pour une miniature */
.thumbnail-wrapper {
  border-radius: 7px;
  overflow: hidden;
  box-shadow: var(--shadow-drop);
  cursor: pointer;
  max-height: 180px;
}

.thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Colonne Informations --- */
.product-info-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Titre du produit */
.product-title {
  font-family: var(--font-rugen);
  font-size: var(--text-h2);
  text-transform: uppercase;
  color: var(--text-white);
  font-weight: var(--weight-expanded);
}

/* Prix */
.product-price-large {
  font-family: var(--font-lato);
  font-size: var(--text-h2);
  font-weight: var(--weight-bold);
  color: var(--text-gray);
  text-shadow: var(--shadow-drop);
}

/* --- Bloc Sélection de taille --- */
.product-meta-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 8px;
}

/* Ligne label */
.size-label-row {
  display: flex;
  gap: 8px;
  font-family: var(--font-lato);
  font-size: var(--text-base);
  text-transform: uppercase;
  color: var(--text-white);
  font-weight: var(--weight-light);
}

/* Ligne des boutons de taille */
.size-selector-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

/* Bouton Taille */
.btn-size {
  min-width: 40px;
  padding: 8px 10px;
  background-color: var(--primary-3);
  font-family: var(--font-lato);
  font-size: var(--text-base);
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: var(--shadow-drop);
  color: var(--text-black);
  border: none;
  height: 50px;
  width: 50px;
}

/* État actif du bouton taille */
.btn-size.active {
  background-color: var(--primary-2);
}

/* --- Bloc Quantité & Partage --- */
.qty-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
}

.qty-label-row {
  display: flex;
  gap: 8px;
  font-family: var(--font-lato);
  font-size: var(--text-base);
  text-transform: uppercase;
  color: var(--text-white);
  font-weight: var(--weight-light);
}

.controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

/* Contrôleur (+/-) */
.qty-controls {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  background-color: #373434;
  padding: 6px 9px;
  border-radius: 7px;
  box-shadow: var(--shadow-drop);
}

/* Boutons +/- */
.btn-qty-left,
.btn-qty-right {
  width: 32px;
  height: 32px;
  border: none;
  background-color: var(--primary-3);
  font-family: var(--font-lato);
  color: var(--text-white);
  cursor: pointer;
  font-size: var(--text-base);
  box-shadow: var(--shadow-drop);
}

.btn-qty-left {
  border-radius: 7px 0 0 7px;
}

.btn-qty-right {
  border-radius: 0 7px 7px 0;
}

/* Affichage du nombre */
.qty-display {
  width: 70px;
  height: 30px;
  padding: 5px;
  text-align: center;
  font-family: var(--font-lato);
  color: var(--text-black);
  font-size: 22px;
  background-color: #D9D9D9;
  border: none;
  outline: none;
}

/* Bouton Partager */
.btn-share {
  border-radius: 7px;
  border: none;
  background: #D9D9D9;
  color: var(--text-black);
  font-family: var(--font-lato);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  padding: 12px 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-drop);
}

/* --- Boutons d'Action --- */
.action-buttons-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.btn-add-cart,
.btn-buy-now {
  border: none;
  padding: 14px 18px;
  font-family: var(--font-lato);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-drop);
  color: var(--text-white);
}

.btn-add-cart {
  background: linear-gradient(var(--primary-2) 0%, var(--primary-3) 100%);
}

.btn-buy-now {
  background: linear-gradient(var(--bg-button) 0%, #E7902A 100%);
}

.btn-icon {
  height: 22px;
  width: 22px;
}

/* --- Accordéon Détails --- */
.details-accordion {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion-divider {
  border-top: 2px solid #46484A;
  margin-top: 10px;
  box-shadow: var(--shadow-drop);
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  background: transparent;
  color: var(--text-white);
  font-family: var(--font-lato);
  font-size: 22px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 16px 0;
}

.accordion-toggle {
  font-size: 32px;
}

.accordion-item {
  margin-top: 8px;
  margin-bottom: 16px;
}

.accordion-body p {
  font-family: var(--font-lato);
  font-size: var(--text-base);
  color: var(--text-white);
  font-weight: var(--weight-light);
}

/* =========================================
    RELATED PRODUCTS SECTION
========================================= */

/* Conteneur de la section "Produits similaires" */
.related-products-section {
  display: flex;
  max-width: 1400px;
  flex-direction: column;
  margin: 0 auto;
  margin-top: 50px;
}

/* Grille des produits */
.products-grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

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

.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;
}

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

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-details {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: var(--text-black);
  z-index: 3;
}

.rating-stars {
  display: flex;
  align-items: center;
  gap: 0px;
}

.rating-stars .icon-star {
  height: 29px;
  width: 30px;
}

.rating-stars p {
  font-family: var(--font-lato);
  font-size: 22.74px;
  font-weight: var(--weight-bold);
  color: var(--text-white);
  margin-left: 7px;
}

.product-meta {
  display: flex;
  flex-direction: column;
}

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

.product-title-sm,
.product-model,
.product-price {
  font-family: var(--font-lato);
  font-size: 22.74px;
  font-weight: var(--weight-bold);
  color: var(--text-white);
}

/* =========================================
    CTA BANNER SECTION
========================================= */

/* Bannière de bas de page */
.cta-banner-section {
  background-image: url('../assets/background/background-cta-items.png');
  background-size: cover;
  background-position: center left;
  background-repeat: no-repeat;
  position: relative;
  height: 525px;
  max-width: 1400px;
  margin: 50px auto 50px auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  box-shadow: var(--shadow-drop);
}

.cta-content {
  position: relative;
  padding-right: 5%;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.cta-content h2 {
  font-family: var(--font-rugen);
  font-size: var(--text-h2);
  color: var(--text-white);
  text-transform: uppercase;
  font-weight: var(--weight-bold);
  margin: 0;
  text-shadow: var(--shadow-drop);
}

.btn-cta {
  background-color: var(--bg-button);
  color: var(--text-black);
  font-family: var(--font-lato);
  font-size: 36px;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 40px;
  border-radius: 7px; 
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-drop);
}