/*
 * Styles spécifiques à la page produit.
 * Ce fichier regroupe tous les styles relatifs à l’affichage d’un produit individuel,
 * séparés du fichier principal pour faciliter la maintenance.
 */

/* Conteneur regroupant l’image et les informations du produit */
.product-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-around;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
}

/* Taille et dimensionnement de l’image du produit */
.product-image {
  flex: 1 1 300px;
  max-width: 400px;
}

.product-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

/* Colonne d’information à droite de l’image */
.product-info {
  flex: 1 1 300px;
  max-width: 500px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-info h2 {
  margin-bottom: 0.5rem;
  font-size: 2rem;
  color: var(--primary-color);
  line-height: 1.2;
}

.product-info p {
  margin-bottom: 0.5rem;
  line-height: 1.5;
  font-size: 1.05rem;
  color: #333333;
  font-weight : 500;
}

.product-price {
  font-size: 1.3rem;
  color: var(--primary-color);
  font-weight: 600;
}

/* product.css */
.product-info .product-price{
  color: #981d39;            
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.2;
}


/* Liste de spécifications et styles associés */
.spec-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.spec-list li {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.spec-title {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1rem;
}

.spec-value {
  color: var(--text-color);
  margin-left: 0.2rem;
  font-size: 1.05rem;
  font-weight : 500;
}

/* Bouton de retour à la catégorie dans la page produit */
.btn-return {
  font-size: 0.85rem;
  padding: 8px 16px;
  align-self: center;
}

/*
 * Bouton de lien vers le site Leister sur la page produit.
 * Inspiré du style général .btn mais légèrement plus large pour être bien visible.
 */
.btn-leister {
  font-size: 1rem;
  padding: 12px 24px;
  align-self: flex-start;
margin-left: 25px;
  margin-top: 1rem;
}

/* Bloc de détails (spécifications, description, catégorie et retour) */
.product-details-block {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-weight : 500;
}

.product-details-block h4 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.product-details-block p {
  font-size: 1.05rem;
  line-height: 1.6;
}

.product-details-block ul {
  list-style: none;
  padding-left: 0;
}

.product-details-block li {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}