:root{
  --cream:#fbf7f1;
  --white:#ffffff;
  --coffee:#9b7448;
  --coffee-light:#c8a06a;
  --dark:#2d1f16;
  --soft:#eadfd6;
  --danger:#b3261e;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family:'Questrial', sans-serif;
  color:var(--dark);
  background:#fffdf8;
}

/* TOP BAR */
.top-bar{
  height:76px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 36px;
  background:rgba(255,255,250,0.96);
  border-bottom:1px solid var(--soft);
  position:sticky;
  top:0;
  z-index:50;
}

.menu-btn{
  border:none;
  background:transparent;
  font-size:1rem;
  color:var(--dark);
  cursor:pointer;
}

.page-title{
  letter-spacing:7px;
  text-transform:uppercase;
  font-size:0.85rem;
  color:#6b4a34;
}

.cart-icon-btn{
  position:relative;
  border:none;
  background:#fffaf6;
  color:var(--coffee);
  border:1px solid var(--soft);
  width:50px;
  height:50px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
}

.cart-icon-btn span{
  position:absolute;
  top:-6px;
  right:-6px;
  background:var(--coffee);
  color:white;
  width:22px;
  height:22px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* HERO */
.hero{
  height:500px;
  background:
    linear-gradient(rgba(0,0,0,0.28), rgba(0,0,0,0.28)),
    url("landscape-photo.jpg") center/cover no-repeat;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.hero-content{ max-width:760px; color:white; }

.brand-name{ font-size:3rem; }

.hero-text{ font-size:0.95rem; line-height:1.7; }

/* PRODUCTS */
.products-area{
  padding:55px 7% 80px;
}

.products{
  max-width:1180px;
  margin:auto;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:32px;
}

/* CARD */
.product-card{
  position:relative;
  background:white;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 8px 25px rgba(80,50,30,0.08);
  transition:0.3s;
}

.product-card:hover{
  transform:translateY(-4px);
}

/* IMAGE FIX */
.product-card img{
  width:100%;
  height:300px;
  object-fit:contain;
  object-position:center;
  display:block;
  background:white;
  padding:18px;
}

/* CONTENT */
.product-content{ padding:22px; }

.product-content h3{
  font-size:1.2rem;
  margin-bottom:12px;
}

.description{
  font-size:0.9rem;
  line-height:1.7;
}

.product-info{
  display:flex;
  justify-content:space-between;
  margin-top:18px;
}

.price{
  color:var(--coffee);
  font-weight:bold;
}

/* STOCK */
.out-stock{
  margin-top:12px;
  background:var(--danger);
  color:white;
  padding:6px 12px;
  border-radius:20px;
  font-size:0.75rem;
}

/* QTY */
.qty-box{
  display:flex;
  justify-content:center;
  gap:18px;
  margin-top:20px;
}

.qty-box button{
  width:36px;
  height:36px;
  border:none;
  border-radius:50%;
  background:var(--coffee);
  color:white;
}

/* DRAWERS */
.drawer-bg{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.35);
  opacity:0;
  visibility:hidden;
}

.drawer-bg.active{
  opacity:1;
  visibility:visible;
}

.side-menu,
.cart-drawer{
  position:fixed;
  top:0;
  height:100vh;
  background:#fffaf6;
  padding:28px;
  transition:0.3s;
}

.side-menu{
  left:-360px;
  width:340px;
}

.side-menu.active{ left:0; }

.cart-drawer{
  right:-470px;
  width:470px;
}

.cart-drawer.active{ right:0; }

/* BADGES */
.badge-out{
  position:absolute;
  top:15px;
  left:15px;
  background:#2d1f16;
  color:white;
  padding:6px 12px;
  border-radius:20px;
  display:none;
}

.badge-product{
  position:absolute;
  top:15px;
  right:15px;
  color:white;
  padding:6px 12px;
  border-radius:20px;
  animation:badgeSoft 3s infinite;
}

.badge-best{ background:#9b7448; }
.badge-new{ background:#c8a06a; }

@keyframes badgeSoft{
  0%{transform:translateY(0);}
  50%{transform:translateY(-3px);}
  100%{transform:translateY(0);}
}

/* BEST SELLERS */
.best-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
}

.best-card{
  position:relative;
  background:white;
  border-radius:18px;
  padding:18px;
  box-shadow:0 8px 25px rgba(80,50,30,0.08);
}

.best-card img{
  width:100%;
  height:300px;
  object-fit:contain;
  background:white;
  padding:18px;
}

/* CATEGORY HERO */
.category-hero{
  display:none;
  min-height:420px;
  background:
    linear-gradient(rgba(45,31,22,0.35), rgba(45,31,22,0.35)),
    url("eclatcocolandscape.jpg") center/cover no-repeat;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:white;
  padding:60px 7%;
}

.category-hero.active{
  display:flex;
}

/* FOOTER */
footer{
  padding:35px;
  text-align:center;
  background:#2d1f16;
  color:white;
}

/* RESPONSIVE */
@media(max-width:700px){
  .products{ grid-template-columns:1fr; }
  .best-grid{ grid-template-columns:1fr; }
}
/* ===== FIX SUPER IMPORTANT ===== */

/* overlay derrière tout */
.drawer-bg{
  z-index:1000;
  transition:0.3s;
}

/* menu + panier AU-DESSUS */
.side-menu{
  z-index:1100;
  box-shadow:18px 0 45px rgba(45,31,22,0.25);
}

.cart-drawer{
  z-index:1100;
  box-shadow:-18px 0 45px rgba(45,31,22,0.25);
}

/* scroll dans menu */
.side-menu,
.cart-drawer{
  overflow-y:auto;
}

/* éviter que les produits passent au-dessus */
.products-area,
.hero{
  position:relative;
  z-index:1;
}
/* ===== MENU CATÉGORIES PREMIUM ===== */
.side-menu{
  background:#fffaf6;
  padding:32px 28px;
}

.drawer-header h2{
  font-family:Georgia, serif;
  font-size:2.1rem;
  font-weight:400;
  color:#5a3a25;
  margin:0;
}

.menu-list{
  margin-top:22px;
}

.menu-list button{
  width:100%;
  display:block;
  border:none;
  background:transparent;
  color:#5f4633;
  padding:15px 14px;
  text-align:left;
  border-bottom:1px solid #eadfd6;
  font-family:'Questrial', sans-serif;
  font-size:0.95rem;
  cursor:pointer;
  border-radius:0;
}

.menu-list button.active,
.menu-list button:hover{
  background:#ead7c5;
  color:#5a3a25;
  border-radius:16px;
  border-bottom:1px solid transparent;
}

.close-btn{
  border:none;
  background:transparent;
  font-size:1.8rem;
  color:#5a3a25;
  cursor:pointer;
}

.about-title{
  color:#9b7448;
  font-size:1rem;
  letter-spacing:2px;
  text-transform:uppercase;
  margin-top:30px;
}

.about-text{
  font-size:0.95rem;
  line-height:1.75;
  color:#5f4633;
}
/* ===== PANIER LUXE ===== */

.cart-drawer{
  background:#fff8f2;
  border-left:1px solid #eadfd6;
  padding:30px 25px;
}

/* TITRE */
.cart-drawer h2{
  font-family:Georgia, serif;
  font-size:2rem;
  font-weight:400;
  color:#5a3a25;
  margin-bottom:10px;
  letter-spacing:1px;
}

/* SECTIONS */
.cart-drawer h3{
  font-size:0.9rem;
  letter-spacing:2px;
  text-transform:uppercase;
  color:#9b7448;
  margin-top:25px;
}

/* INPUTS */
.cart-drawer input,
.cart-drawer textarea{
  width:100%;
  border:none;
  border-bottom:1px solid #eadfd6;
  background:transparent;
  padding:12px 5px;
  margin-bottom:12px;
  font-family:'Questrial', sans-serif;
  font-size:0.9rem;
}

.cart-drawer input:focus,
.cart-drawer textarea:focus{
  outline:none;
  border-bottom:1px solid #9b7448;
}

/* PRODUITS */
#cartItems{
  margin-top:15px;
}

.cart-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:18px;
  border-bottom:1px solid #f1e5dc;
  padding-bottom:12px;
}

.cart-item img{
  width:50px;
  height:50px;
  object-fit:contain;
  margin-right:10px;
}

.cart-item-name{
  flex:1;
  font-size:0.9rem;
  color:#5f4633;
}

.cart-item-price{
  color:#9b7448;
  font-size:0.9rem;
}

/* QTY */
.cart-item-qty{
  display:flex;
  align-items:center;
  gap:8px;
}

.cart-item-qty button{
  width:28px;
  height:28px;
  border-radius:50%;
  border:1px solid #eadfd6;
  background:transparent;
  cursor:pointer;
}

/* TOTAL */
.total{
  margin-top:20px;
  font-size:1rem;
  font-weight:500;
  color:#5a3a25;
}

/* BOUTON */
.confirm-btn{
  width:100%;
  margin-top:20px;
  padding:14px;
  border:none;
  border-radius:30px;
  background:linear-gradient(90deg,#e6b8a2,#dba48c);
  color:white;
  font-size:0.95rem;
  letter-spacing:1px;
  cursor:pointer;
  transition:0.3s;
}

.confirm-btn:hover{
  opacity:0.9;
}

/* NOTE */
.note{
  font-size:0.8rem;
  color:#7a5c47;
  margin-top:15px;
  line-height:1.5;
}

/* THANK YOU */
.cart-thankyou{
  margin-top:20px;
  background:#fff1e8;
  padding:15px;
  border-radius:12px;
  font-size:0.85rem;
  color:#5a3a25;
}
/* ===== FIX PANIER MOBILE ===== */
@media(max-width:700px){
  .top-bar{
    padding:0 16px;
  }

  .page-title{
    font-size:0.65rem;
    letter-spacing:3px;
  }

  .cart-drawer{
    width:100%;
    max-width:100%;
    right:-100%;
    padding:28px 20px;
  }

  .cart-drawer.active{
    right:0;
  }

  .cart-drawer *{
    max-width:100%;
    word-wrap:break-word;
  }

  .cart-item{
    grid-template-columns:1fr 30px;
  }

  input,
  textarea{
    font-size:16px;
  }
}
.mask-hero{
  min-height:550px;

  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:60px 7%;

  background:
    linear-gradient(rgba(45,31,22,0.45), rgba(45,31,22,0.45)),
    url("masquecapi.jpg") center 45% / cover no-repeat;
} 
.category-hero{
  display:none;
}

.category-hero.active{
  display:flex;
}

/* HERO BEURRE CORPOREL */
.butter-hero{
  min-height:550px;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:60px 7%;

  background:
    linear-gradient(rgba(45,31,22,0.45), rgba(45,31,22,0.45)),
    url("bodybutterme.jpg") center 40% / cover no-repeat;
}

/* CONTENU TEXTE */
.category-hero-content{
  max-width:700px;
  margin:auto;
  color:white;
}

/* TITRE */
.butter-hero h2{
  font-size:2rem;
  letter-spacing:4px;
  font-weight:400;
  margin-bottom:15px;
}

/* SOUS-TITRE */
.butter-hero .category-subtitle{
  font-size:0.85rem;
  letter-spacing:3px;
  text-transform:uppercase;
  margin-bottom:18px;
  opacity:0.9;
}

/* TEXTE PRINCIPAL */
.butter-hero .category-text{
  font-size:0.95rem;
  line-height:1.8;
  margin-bottom:20px;
  opacity:0.95;
}

/* POINTS */
.butter-hero .category-points{
  font-size:0.8rem;
  letter-spacing:2px;
  margin-bottom:20px;
  opacity:0.85;
}

/* SIGNATURE */
.butter-hero .category-signature{
  font-size:0.9rem;
  letter-spacing:3px;
  opacity:0.9;
}

/* RESPONSIVE MOBILE */
@media(max-width:700px){
  .butter-hero{
    min-height:420px;
    padding:40px 20px;
    background-position:center 50%;
  }

  .butter-hero h2{
    font-size:1.5rem;
  }

  .butter-hero .category-text{
    font-size:0.85rem;
  }
}
/* ANIMATION HERO LUXE */
.category-hero.active{
  animation: heroFade 1s ease forwards;
}

.category-hero-content{
  animation: textLuxury 1.2s ease forwards;
}

@keyframes heroFade{
  from{
    opacity:0;
    transform:scale(1.03);
  }
  to{
    opacity:1;
    transform:scale(1);
  }
}

@keyframes textLuxury{
  from{
    opacity:0;
    transform:translateY(18px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* FIX FINAL PRODUITS - 3 PAR LIGNE */
.products{
  max-width:1180px !important;
  margin:auto !important;
  display:grid !important;
  grid-template-columns:repeat(3, 1fr) !important;
  gap:32px !important;
}

/* IMAGE PRODUIT EN CARRÉ PROPRE */
.product-card img{
  width:100% !important;
  height:260px !important;
  object-fit:contain !important;
  object-position:center !important;
  background:white !important;
  padding:18px !important;
  display:block !important;
}

/* TABLETTE */
@media(max-width:900px){
  .products{
    grid-template-columns:repeat(2, 1fr) !important;
  }
}

/* TÉLÉPHONE */
@media(max-width:520px){
  .products{
    grid-template-columns:1fr !important;
  }
}
footer{
  padding:40px 20px;
  text-align:center;
  background:#2d1f16;
  color:white;
  font-size:0.8rem;
  letter-spacing:1px;
  opacity:0.95;
}
/* SECTION VALEURS AVANT FOOTER */
.brand-values{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:80px;
  padding:55px 20px;
  background:#fffaf6;
  text-align:center;
}

.value{
  min-width:180px;
}

.value-icon{
  width:48px;
  height:48px;
  margin:0 auto 14px;
  border:1px solid #c8a06a;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#9b7448;
  font-size:1.2rem;
}

.value p{
  margin:0;
  font-size:0.75rem;
  letter-spacing:2px;
  text-transform:uppercase;
  color:#7a5c47;
}

@media(max-width:700px){
  .brand-values{
    flex-direction:column;
    gap:28px;
  }
}
/* FIX FINAL — PRODUITS MÊME STYLE QUE LOTIONS */
.products{
  max-width:1180px !important;
  margin:auto !important;
  display:grid !important;
  grid-template-columns:repeat(3, 1fr) !important;
  gap:32px !important;
}

.product-card{
  width:auto !important;
  background:white !important;
  border-radius:18px !important;
  overflow:hidden !important;
  box-shadow:0 8px 25px rgba(80,50,30,0.08) !important;
}

.product-card img{
  width:100% !important;
  height:260px !important;
  object-fit:contain !important;
  object-position:center !important;
  background:white !important;
  padding:18px !important;
  display:block !important;
}

@media(max-width:900px){
  .products{
    grid-template-columns:repeat(3, 1fr) !important;
  }
}

@media(max-width:600px){
  .products{
    grid-template-columns:1fr !important;
  }
}
.value img{
  width:80px;
  height:80px;
  object-fit:contain;
  margin-bottom:18px;
}
/* FIX ALIGNEMENT - 0 + */
.qty-box{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:18px !important;
}

.qty-box span{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  height:36px !important;
  min-width:24px !important;
  line-height:36px !important;
  font-size:1rem !important;
}

.qty-box button{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}
