/* === Base catalogue (collections & produits) === */

:root{
  --gold:#d4af37;
  --gold-soft:#f8e39a;
  --card-bg:#ffffff;
  --bg-soft:#f6f5f2;
  --text-main:#111827;
  --text-muted:#6b7280;
  --border-soft:#e5e7eb;
}

/* Fond très clair pour la page catalogue */
body.catalog-page{
  background:#f8f7f4;
}

/* Fond légèrement plus “vitrine” pour la page produit */
body.product-detail-page{
  background:linear-gradient(180deg,#f3f4f6,#e5e7eb);
  color:var(--text-main);
}

/* Containers */
.catalog-main{
  padding:40px 0 70px;
}

.product-detail-main{
  min-height:100vh;
  padding:40px 16px 48px;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Titre / sous-titre */
.catalog-hero,
.product-hero{
  padding:32px 0 12px;
}

.catalog-hero h1,
.product-hero h1{
  font-size:2rem;
  margin-bottom:6px;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.catalog-hero .section-sub,
.product-hero .section-sub{
  color:var(--text-muted);
  max-width:640px;
  font-size:.95rem;
}

/* Grille produits (listing) */
.catalog-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:26px;
}

/* === Cartes produits (listing) === */

.product-card{
  position:relative;
  background:var(--card-bg);
  border-radius:18px;
  padding:14px 14px 16px;
  border:1px solid var(--border-soft);
  box-shadow:0 14px 32px rgba(15,23,42,.05);
  display:flex;
  flex-direction:column;
  align-items:stretch;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background .18s ease;
}

/* plus de truc noir / gradient derrière 👍 */

/* Wrapper visuel */
.product-card-media-wrapper{
  position:relative;
  border-radius:14px;
  background:#f9fafb;
  padding:10px 10px 6px;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Badge collection / type */
.product-card-badge{
  position:absolute;
  top:10px;
  left:10px;
  padding:4px 10px;
  font-size:.72rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  border-radius:999px;
  background:rgba(255,255,255,.96);
  color:var(--text-muted);
  border:1px solid rgba(148,163,184,.5);
}

/* Image produit */
.product-card-media{
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:210px;
}

.product-card-media img{
  max-height:230px;
  width:auto;
  max-width:100%;
  object-fit:contain;
}

/* Texte sous l’image */
.product-card-body{
  margin-top:12px;
  text-align:left;
}

.product-card-title{
  font-size:1.02rem;
  font-weight:600;
  color:var(--text-main);
  text-decoration:none;
  display:inline-block;
  margin-bottom:4px;
  border-bottom:1px solid transparent;
  transition:border-color .18s ease;
}

.product-card-title:hover{
  border-bottom-color:rgba(15,23,42,.7);
}

.product-card-meta{
  font-size:.8rem;
  color:var(--text-muted);
  text-transform:uppercase;
  letter-spacing:.14em;
  margin-bottom:4px;
}

.product-card-excerpt{
  font-size:.9rem;
  color:var(--text-main);
  line-height:1.5;
  max-height:3.2em; /* ~2 lignes */
  overflow:hidden;
}

/* Hover doux */
@media (hover:hover){
  .product-card:hover{
    transform:translateY(-3px);
    background:#ffffff;
    box-shadow:0 22px 50px rgba(15,23,42,.12);
    border-color:rgba(148,163,184,.7);
  }
}

/* === Carte détail produit (product.php) === */

.product-detail-layout{
  max-width:880px;
  width:100%;
  background:#f9fafb;
  border-radius:22px;
  padding:22px 22px 24px;
  border:1px solid rgba(148,163,184,.6);
  box-shadow:0 26px 72px rgba(15,23,42,.35);
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,1.1fr);
  gap:32px;
  align-items:flex-start;
}

/* Bloc image dans la carte */
.product-detail-media{
  background:#ffffff;
  border-radius:18px;
  padding:18px;
  box-shadow:0 18px 46px rgba(15,23,42,.08);
  border:1px solid rgba(209,213,219,.9);
  display:flex;
  justify-content:center;
  align-items:center;
}

.product-detail-media img{
  max-width:100%;
  max-height:420px;
  object-fit:contain;
}

/* Colonne texte */
.product-detail-info{
  display:flex;
  flex-direction:column;
  gap:14px;
  color:var(--text-main);
}

/* Tags (collection / type / famille) */
.product-detail-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  font-size:.8rem;
}

.product-tag{
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.5);
  background:#ffffff;
  color:var(--text-muted);
}

.product-tag.gold{
  border-color:rgba(212,175,55,.7);
  background:rgba(248,227,154,.18);
  color:#7c5c0c;
}

/* Titre / sous-titre */
.product-detail-title{
  font-size:1.8rem;
  margin:4px 0;
  letter-spacing:.03em;
}

.product-detail-sub{
  font-size:.95rem;
  color:var(--text-muted);
}

/* Description */
.product-detail-description{
  margin-top:8px;
  font-size:.95rem;
  line-height:1.7;
}

/* Formats (volumes) */
.product-formats{
  margin-top:8px;
  font-size:.9rem;
}

.product-formats strong{
  font-weight:600;
}

.product-formats-list{
  margin-top:4px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.product-format-pill{
  padding:4px 9px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.5);
  background:#ffffff;
  font-size:.84rem;
}

/* Bouton WhatsApp */
.whatsapp-btn{
  margin-top:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 18px;
  border-radius:999px;
  border:none;
  background:#22c55e;
  color:#f9fafb;
  font-weight:600;
  font-size:.95rem;
  text-decoration:none;
  box-shadow:0 16px 34px rgba(22,163,74,.55);
  cursor:pointer;
}

.whatsapp-btn svg{
  width:18px;
  height:18px;
}

@media (hover:hover){
  .whatsapp-btn:hover{
    transform:translateY(-1px);
    box-shadow:0 22px 44px rgba(22,163,74,.7);
  }
}

/* === Responsive === */
@media (max-width:900px){
  .product-detail-main{
    display:block;
    padding:20px 10px 32px;
  }

  .product-detail-layout{
    grid-template-columns:1fr;
    padding:18px 14px 20px;
    box-shadow:0 18px 50px rgba(15,23,42,.18);
  }

  .product-detail-media{
    max-width:420px;
    margin:0 auto;
  }
}
/* === Bouton de fermeture sur la carte produit (product.php) === */

/* On permet de positionner la croix à l'intérieur de la carte */
.product-detail-layout{
  position: relative; /* à ajouter en plus de ce que tu as déjà */
}

/* Bouton croix */
.product-close-btn{
  position:absolute;
  top:14px;
  right:14px;
  width:32px;
  height:32px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.1rem;
  font-weight:600;
  color:#555;
  background:rgba(255,255,255,0.85);
  border:1px solid rgba(212,175,55,0.4);
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  text-decoration:none;
  cursor:pointer;
  transition:
    background .22s ease,
    color .22s ease,
    border-color .22s ease,
    box-shadow .22s ease,
    transform .22s ease;
}

/* Hover desktop */
@media (hover:hover){
  .product-close-btn:hover{
    background:#ffffff;
    color:#b8860b;
    border-color:rgba(212,175,55,0.85);
    transform:scale(1.05);
    box-shadow:0 6px 18px rgba(0,0,0,0.14);
  }
}

/* Ajustements mobile */
@media (max-width:600px){
  .product-close-btn{
    top:10px;
    right:10px;
    width:28px;
    height:28px;
    font-size:1rem;
    box-shadow:0 4px 14px rgba(0,0,0,0.12);
  }
}
/* === Modifications dans collection.php et product.php === */
/* === Adaptation collection.php vers le style catalogue === */

/* Le hero de collection utilise déjà hero-collection */
.hero-collection.catalog-hero{
  padding:40px 0 18px;
}

/* Les grilles de collection utilisent maintenant catalog-grid */
.collection-grid.catalog-grid{
  /* rien de plus à faire, la règle .catalog-grid s'applique déjà */
}

/* On mappe la structure existante sur le design product-card */
.product-card .card-media{
  /* correspond à .product-card-media-wrapper + .product-card-media */
  position:relative;
  border-radius:14px;
  background:#f9fafb;
  padding:10px 10px 6px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:210px;
}

.product-card .card-media img{
  max-height:230px;
  width:auto;
  max-width:100%;
  object-fit:contain;
}

/* le petit badge olfactive_family devient notre "badge type" */
.product-card .chip.pill{
  position:absolute;
  top:10px;
  left:10px;
  padding:4px 10px;
  font-size:.72rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  border-radius:999px;
  background:rgba(255,255,255,.96);
  color:#6b7280;
  border:1px solid rgba(148,163,184,.5);
}

/* Texte sous l’image dans ta structure */
.product-card .card-body{
  margin-top:12px;
  text-align:left;
}

.product-card .card-body h3{
  font-size:1.02rem;
  font-weight:600;
  color:var(--text-main);
  margin:0 0 4px;
}

.product-card .card-body .notes{
  font-size:.9rem;
  color:var(--text-main);
  line-height:1.5;
  margin:0 0 8px;
}

/* Liste des formats déjà présente */
.product-card .formats-list{
  list-style:none;
  padding:0;
  margin:6px 0 0;
  font-size:.86rem;
  color:var(--text-muted);
}

.product-card .formats-list li{
  margin-bottom:2px;
}