/* ============================================
   SHOP.CSS — L'Âme Dissidente v2
   Cinématique · Violet/Rouge/Blanc · Sombre
   ============================================ */

/* ---- SHOP HERO ---- */
.shop-hero {
  padding: 10rem 0 4rem;
  text-align: center;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.shop-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 0%, rgba(232,25,44,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 20% 60%, rgba(139,47,201,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.shop-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.shop-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 1;
  margin: 0.5rem 0 1rem;
  color: var(--cream);
}
.shop-title em { color: var(--gold-light); }
.shop-subtitle { font-size: 1.1rem; color: var(--text-dim); font-style: italic; }
.shop-charity {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  background: rgba(139,47,201,0.07);
  border: 1px solid var(--border-soft);
  border-radius: 30px;
  padding: 0.6rem 1.5rem;
  display: table;
  margin: 0 auto 2rem;
}

/* ---- FILTRES ---- */
.shop-filters-section { padding: 1.5rem 0 0; position: relative; z-index: 1; }
.shop-filters { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
.filter-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: #c8c0d8;
  font-family: var(--font-ui);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.55rem 1.4rem; border-radius: 30px; cursor: pointer; transition: all 0.3s;
}
.filter-btn:hover { border-color: var(--gold-light); color: #ffffff; }
.filter-btn.active { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; box-shadow: 0 4px 16px rgba(232,25,44,0.3); }

/* ---- GRILLE PRODUITS ---- */
.shop-products-section { padding: 3rem 0 6rem; position: relative; z-index: 1; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.8rem; }
.shop-empty { grid-column: 1/-1; text-align: center; color: var(--text-dim); font-style: italic; padding: 4rem 0; }

/* ---- CARTE PRODUIT ---- */
.product-card {
  background: var(--bg2);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.4s;
  position: relative;
}
.product-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  transform: scaleX(0); transition: transform 0.4s;
}
.product-card:hover { border-color: var(--border-red); transform: translateY(-6px); box-shadow: 0 16px 40px rgba(232,25,44,0.1); background: var(--bg3); }
.product-card:hover::after { transform: scaleX(1); }
.product-img {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg3);
}
.product-img img { width: 100%; height: auto; display: block; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .product-img img { transform: scale(1.04); }
.product-overlay {
  position: absolute; inset: 0;
  background: rgba(4,3,6,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.product-overlay span { font-family: var(--font-ui); font-size: 0.8rem; letter-spacing: 0.2em; color: #fff; text-transform: uppercase; font-weight: 700; }
.product-card:hover .product-overlay { opacity: 1; }
.product-info { padding: 1.2rem; }
.product-cat {
  display: block; font-family: var(--font-ui); font-size: 0.6rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: 0.4rem;
}
.product-title, h2.product-title { font-size: 1rem; color: var(--cream); margin-bottom: 0.5rem; font-family: var(--font-display); font-weight: 400; letter-spacing: 0.04em; }
.product-price { font-family: var(--font-ui); font-size: 1.1rem; font-weight: 700; color: var(--cream); margin-bottom: 0.8rem; }
.product-buy {
  width: 100%; padding: 0.65rem; background: transparent;
  border: 1px solid rgba(255,255,255,0.25); color: #c8c0d8;
  font-family: var(--font-ui); font-size: 0.7rem; letter-spacing: 0.15em;
  text-transform: uppercase; border-radius: 30px; cursor: pointer; transition: all 0.3s;
}
.product-buy:hover { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 4px 16px rgba(232,25,44,0.3); }

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(4,3,6,0.88);
  backdrop-filter: blur(10px); z-index: 200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.4s; padding: 1.5rem;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 780px; width: 100%; max-height: 90vh; overflow-y: auto;
  position: relative; transform: translateY(20px); transition: transform 0.4s;
}
.modal-box::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold), transparent);
  border-radius: 12px 12px 0 0;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-close {
  position: absolute; top: 1rem; right: 1rem; background: none;
  border: 1px solid var(--border-soft); color: var(--text-dim);
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  font-size: 0.75rem; transition: all 0.3s; z-index: 10;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { border-color: var(--red); color: var(--red); }
.modal-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.modal-img { aspect-ratio: 1; overflow: hidden; border-radius: 12px 0 0 12px; }
.modal-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-details { padding: 2.5rem 2rem; }
.modal-details h2 { font-size: 1.5rem; margin: 0.5rem 0; color: var(--cream); }
.modal-price { font-size: 1.8rem; color: var(--cream); font-family: var(--font-ui); font-weight: 700; margin: 0.5rem 0 1rem; }
.modal-desc { font-size: 0.95rem; color: var(--text-dim); line-height: 1.8; margin-bottom: 1rem; }
.modal-stock { font-family: var(--font-ui); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 1.2rem; }
.modal-buy { width: 100%; }
.modal-buy:disabled { opacity: 0.4; cursor: not-allowed; }

@media (max-width: 600px) {
  .modal-inner { grid-template-columns: 1fr; }
  .modal-img { border-radius: 12px 12px 0 0; }
}

/* ---- NAV ACTIVE ---- */
.nav-active { color: var(--gold-light) !important; }

/* ---- CARROUSEL SHOP (index) ---- */
.shop-carousel-card {
  background: var(--bg2); border: 1px solid var(--border-soft); border-radius: 10px;
  overflow: hidden; flex-shrink: 0; transition: all 0.4s; display: flex; flex-direction: column;
  position: relative;
}
.shop-carousel-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  transform: scaleX(0); transition: transform 0.4s;
}
.shop-carousel-card:hover { border-color: var(--border-red); transform: translateY(-5px); box-shadow: 0 14px 36px rgba(232,25,44,0.1); background: var(--bg3); }
.shop-carousel-card:hover::after { transform: scaleX(1); }
.sc-img { overflow: hidden; background: var(--bg3); }
.sc-img img { width:100%; height:auto; display:block; transition: transform 0.5s; }
.shop-carousel-card:hover .sc-img img { transform: scale(1.04); }
.sc-img.no-img { aspect-ratio: 1; display:flex; align-items:center; justify-content:center; font-size:2rem; color:var(--red); opacity:0.3; }
.sc-body { padding: 1.2rem; display:flex; flex-direction:column; gap:0.4rem; flex:1; }
.sc-title { font-size:1rem; color:var(--cream); font-family:var(--font-display); font-weight:400; line-height:1.3; }
.sc-desc { font-size:0.83rem; color:var(--text-dim); line-height:1.7; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; flex:1; }
.sc-footer { display:flex; align-items:center; justify-content:space-between; margin-top:0.6rem; }
.sc-price { font-family:var(--font-ui); font-size:1rem; font-weight:700; color:var(--cream); }
.sc-preorder { font-family:var(--font-ui); font-size:0.6rem; letter-spacing:0.1em; color:var(--gold-light); }

/* ---- DON + ABONNEMENT SHOP ---- */
.shop-actions-section {
  padding: 2rem 0 5rem;
  position: relative;
  z-index: 1;
}
.shop-action-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.shop-action-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--bg2);
  text-decoration: none;
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
}
.shop-action-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  transform: scaleX(0); transition: transform 0.4s;
}
.sub-card-shop::before { background: linear-gradient(90deg, transparent, var(--gold-light), transparent); }
.don-card-shop::before { background: linear-gradient(90deg, transparent, var(--red), transparent); }
.shop-action-card:hover { transform: translateY(-4px); }
.sub-card-shop:hover { border-color: var(--border); box-shadow: 0 12px 32px rgba(139,47,201,0.1); }
.don-card-shop:hover { border-color: var(--border-red); box-shadow: 0 12px 32px rgba(232,25,44,0.1); }
.shop-action-card:hover::before { transform: scaleX(1); }
.sac-icon { font-size: 2rem; flex-shrink: 0; }
.sac-content { flex: 1; display: flex; flex-direction: column; gap: 0.2rem; }
.sac-content strong { font-family: var(--font-ui); font-size: 0.85rem; font-weight: 700; color: var(--cream); }
.sac-content span { font-family: var(--font-ui); font-size: 0.72rem; color: #b0a8c8; }
.sac-btn {
  font-family: var(--font-ui); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
  color: var(--text-dim); transition: color 0.3s;
}
.sub-card-shop:hover .sac-btn { color: var(--gold-light); }
.don-card-shop:hover .sac-btn { color: var(--red); }

@media (max-width: 600px) {
  .shop-action-cards { grid-template-columns: 1fr; }
}
