/* ========== Variables globales ========== */
:root{
  --primary:#7A4AF7;
  --primary-dark:#5c2fd1;
  --accent:#FF7A59;
  --text:#111;
  --muted:#6b7280;
  --surface:#fff;
  --radius:16px;
  --shadow:0 8px 24px rgba(0,0,0,.08);
  --font:'Inter',system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial,sans-serif;
}
body{ font-family:var(--font); color:var(--text); background:#f9fafb; margin:0; }

/* ========== Header ========== */
.site-header{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 20px; background:#fff; border-bottom:1px solid #eee;
  position:sticky; top:0; z-index:40;
}
.brand{ display:flex; align-items:center; gap:.6rem; text-decoration:none; color:inherit; }
.logo-wedasha{ height:40px; border-radius:8px; }
.brand-name{ font-weight:700; }
.main-nav{ display:flex; align-items:center; gap:14px; }
.main-nav a{ text-decoration:none; color:#374151; font-weight:600; }
.main-nav a:hover{ color:var(--primary); }
.cart-pill{ border:0; background:var(--primary); color:#fff; padding:.4rem .8rem; border-radius:999px; cursor:pointer; }

/* ========== Hero ========== */
.hero{ min-height:50vh; display:grid; place-items:center; text-align:center; }
.hero-erina{
  background:linear-gradient(to bottom,rgba(255,255,255,.7),rgba(255,255,255,.9)),
             url('assets/images/erina-soft-cream.jpg') center/cover no-repeat;
}
.hero-inner h1{ font-size:2.5rem; margin:0; }
.hero-inner p{ margin:.5rem 0 1rem; color:var(--muted); }
.btn.cta{ background:var(--accent); border:0; padding:.6rem 1rem; border-radius:12px; font-weight:700; cursor:pointer; }

/* ========== Sections produits ========== */
.container{ max-width:1100px; margin:0 auto; padding:0 16px; }
.section-title{ font-size:1.4rem; margin:32px 0 16px; border-bottom:2px solid var(--primary); padding-bottom:4px; }

/* ========== Cartes produits ========== */
.grid.product-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:18px; }
.card.product{ background:var(--surface); border:1px solid #eee; border-radius:var(--radius); box-shadow:var(--shadow); padding:14px; transition:.2s; }
.card.product:hover{ transform:translateY(-2px); box-shadow:0 12px 32px rgba(0,0,0,.12); }
.product-img{ width:100%; height:180px; object-fit:cover; border-radius:12px; }
.product-title{ font-size:1rem; margin:.5rem 0 .25rem; }
.product-price{ font-weight:700; margin:0; }
.product-desc{ color:var(--muted); font-size:.9rem; margin:.25rem 0 .75rem; }
.actions{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.btn{ border-radius:12px; padding:.5rem .7rem; border:0; cursor:pointer; }
.btn.add-to-cart,.btn.buy-now{ background:var(--primary); color:#fff; }
.btn.add-to-cart:hover,.btn.buy-now:hover{ background:var(--primary-dark); }
.btn.link{ background:transparent; color:var(--primary); text-decoration:underline; padding:0; }
.btn.small{ font-size:.8rem; padding:.3rem .6rem; }

/* ========== Modale Détails ========== */
.modal[hidden]{ display:none; }
.modal{ position:fixed; inset:0; z-index:50; }
.modal-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.45); }
.modal-card{ position:relative; width:min(640px,92vw); margin:8vh auto; background:#fff; border-radius:20px; padding:18px; box-shadow:var(--shadow); }
.modal-close{ position:absolute; right:12px; top:12px; border:0; background:#f3f4f6; border-radius:999px; width:36px; height:36px; font-size:20px; cursor:pointer; }
.modal-img{ width:100%; height:280px; object-fit:cover; border-radius:14px; }
.modal-title{ margin:.75rem 0 .25rem; font-size:1.2rem; font-weight:700; }
.modal-price{ font-weight:700; margin:.25rem 0 .5rem; }
.modal-desc{ color:var(--muted); margin-bottom:.75rem; }
.modal-actions{ display:flex; gap:8px; margin-top:12px; }

/* ========== Stars ========== */
.stars{ display:flex; gap:4px; margin:8px 0; }
.star{ font-size:1.4rem; cursor:pointer; color:#d1d5db; }
.star.active{ color:#fbbf24; }

/* ========== Likes & Comments ========== */
.modal-social{ display:flex; gap:12px; margin:8px 0; }
.comments{ margin:12px 0; display:flex; flex-direction:column; gap:6px; max-height:160px; overflow:auto; border:1px solid #eee; border-radius:8px; padding:8px; background:#fafafa; }
.comments p{ margin:0; font-size:.9rem; padding:4px 6px; background:#fff; border-radius:6px; }
#modal-comment-input{ width:100%; padding:8px; border-radius:8px; border:1px solid #ddd; margin-bottom:6px; }

/* ========== Panier ========== */
.cart-panel[hidden]{ display:none; }
.cart-panel{ position:fixed; right:0; top:0; height:100vh; width:min(380px,92vw); background:#fff; border-left:1px solid #eee; box-shadow:-8px 0 24px rgba(0,0,0,.08); z-index:60; padding:12px; display:flex; flex-direction:column; }
.cart-header{ display:flex; justify-content:space-between; align-items:center; padding:8px; }
.cart-items{ list-style:none; padding:8px; margin:0; display:flex; flex-direction:column; gap:10px; overflow:auto; }
.cart-item{ display:grid; grid-template-columns:56px 1fr auto; gap:10px; align-items:center; padding:8px; border:1px solid #eee; border-radius:12px; }
.cart-item img{ width:56px; height:56px; object-fit:cover; border-radius:8px; }
.cart-item .title{ font-weight:600; }
.cart-item .price{ color:var(--muted); }
.cart-item .remove{ border:0; background:#fee2e2; color:#b91c1c; border-radius:10px; padding:.4rem .6rem; cursor:pointer; }
.cart-footer{ margin-top:auto; padding:8px; display:flex; flex-direction:column; gap:10px; }
.cart-total{ font-weight:700; }
.cart-actions{ display:flex; gap:8px; }

/* ========== Footer ========== */
.footer-qr{ margin-top:40px; padding:24px 0; border-top:1px solid #eee; background:#fff; }
.footer-qr .qr-grid{ display:flex; gap:20px; flex-wrap:wrap; }
.footer-qr figure{ text-align:center; }
.footer-qr figcaption{ color:var(--muted); margin-top:8px; }
.site-footer{ background:#fff; border-top:1px solid #eee; padding:16px 0; text-align:center; }
.muted{ color:var(--muted); }

/* Responsive */
@media (max-width:640px){
  .actions{ grid-template-columns:1fr; }
}

/* ========== Payment Methods ========== */
.payment-methods{
  margin-top:40px;
  padding:24px 0;
  background:#fff;
  border-top:1px solid #eee;
  text-align:center;
}
.payment-methods h2{ margin-bottom:8px; }
.payment-methods .pay-grid{
  display:flex; flex-wrap:wrap;
  justify-content:center; gap:24px;
  margin-top:16px;
}
.payment-methods figure{ margin:0; text-align:center; }
.payment-methods figcaption{ font-size:.85rem; color:var(--muted); margin-top:6px; }
.payment-methods img{ object-fit:contain; }
