/* ===== BOUTIQUE ===== */
.nav-links a.active { color: var(--text); }
.basket-btn { position: relative; }
.basket-count {
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: #fff; color: #000;
  font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.basket-count[hidden] { display: none; }

/* ===== HERO ===== */
.store-hero {
  position: relative; overflow: hidden;
  padding: 160px 0 72px; text-align: center;
}
.store-hero-glow {
  position: absolute; inset: -40% 10% auto; height: 520px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.09), transparent 65%);
  pointer-events: none;
}
.store-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.03);
  color: var(--text-muted); font-size: 13px; font-weight: 500;
}
.store-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 10px #fff; animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }
.store-title {
  margin: 24px auto 16px; max-width: 820px;
  font-size: clamp(36px, 6vw, 64px); font-weight: 800;
  line-height: 1.05; letter-spacing: -0.04em;
}
.store-sub { color: var(--text-muted); font-size: 17px; max-width: 560px; margin: 0 auto; }
.store-perks {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-top: 40px;
}
.perk {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--silver); font-size: 13px; font-weight: 500;
}

/* ===== TOOLBAR ===== */
.store-main { padding-bottom: 96px; }
.store-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 28px;
}
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pill {
  padding: 9px 18px; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); font: 500 13px var(--font);
  cursor: pointer; transition: all .2s ease;
}
.cat-pill:hover { color: var(--text); border-color: var(--border-hover); }
.cat-pill.active { background: #fff; color: #000; border-color: #fff; font-weight: 600; }
.store-search {
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px; height: 40px; min-width: 240px;
  border-radius: 10px; background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-dim); transition: border-color .2s;
}
.store-search:focus-within { border-color: var(--border-hover); }
.store-search input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font: 14px var(--font);
}

/* ===== GRILLE PRODUITS ===== */
.product-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.product-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden; cursor: pointer;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.product-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,0.07), transparent 40%);
  opacity: 0; transition: opacity .3s; z-index: 1;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.product-card:hover::before { opacity: 1; }
.product-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0c0c0c; }
.product-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.product-card:hover .product-media img { transform: scale(1.06); }
.product-media::after {
  content: ""; position: absolute; inset: auto 0 0; height: 50%;
  background: linear-gradient(0deg, var(--bg-card), transparent);
}
.product-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 5px 10px; border-radius: 8px;
  background: rgba(8,8,8,.75); border: 1px solid rgba(255,255,255,.12);
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.product-badge.sale { background: #fff; color: #000; }
.product-badge.video { left: auto; right: 12px; display: inline-flex; align-items: center; gap: 5px; }
.luma-icon { width: 1.25em; height: 1.25em; vertical-align: -0.28em; margin-right: 2px; filter: drop-shadow(0 0 6px rgba(255,255,255,.35)); }

/* bouton lecture vidéo */
.play-btn {
  position: absolute; inset: 0; z-index: 2; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(circle at center, rgba(0,0,0,.25), rgba(0,0,0,.55));
  border: none; cursor: pointer; color: #fff;
  font: 600 14px var(--font); letter-spacing: .02em;
  transition: background .3s;
}
.play-btn span {
  width: 76px; height: 76px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding-left: 4px;
  background: #fff; color: #080808;
  box-shadow: 0 0 0 10px rgba(255,255,255,.12), 0 12px 40px rgba(0,0,0,.6);
  transition: transform .25s ease, box-shadow .25s ease;
}
.play-btn:hover { background: radial-gradient(circle at center, rgba(0,0,0,.1), rgba(0,0,0,.45)); }
.play-btn:hover span { transform: scale(1.08); box-shadow: 0 0 0 16px rgba(255,255,255,.1), 0 12px 40px rgba(0,0,0,.6); }
.product-body { position: relative; z-index: 2; padding: 4px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-cat { color: var(--text-dim); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.product-name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.product-excerpt {
  color: var(--text-muted); font-size: 14px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-price { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.product-price s { color: var(--text-dim); font-size: 14px; font-weight: 500; margin-right: 6px; }
.product-card .btn { padding: 10px 18px; }

.product-card.skeleton { min-height: 360px; cursor: default; }
.product-card.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.04), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.product-card.soon { cursor: default; border-style: dashed; }
.product-card.soon:hover { transform: none; box-shadow: none; }
.soon-inner {
  flex: 1; min-height: 360px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px;
  color: var(--text-dim);
}
.soon-inner strong { color: var(--text-muted); font-size: 16px; }
.store-empty { text-align: center; color: var(--text-muted); padding: 48px 0; }

/* ===== FAQ ===== */
.store-faq { max-width: 760px; padding-bottom: 120px; }
.faq-title { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; text-align: center; margin-bottom: 32px; }
.faq-item {
  border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card);
  margin-bottom: 10px; transition: border-color .2s;
}
.faq-item[open] { border-color: var(--border-hover); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--text-muted); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 20px; color: var(--text-muted); line-height: 1.65; font-size: 15px; }
.faq-item a, .footer-copy a { color: var(--text); }

/* ===== MODALE ===== */
.modal, .drawer { position: fixed; inset: 0; z-index: 200; }
.modal[hidden], .drawer[hidden], .toast[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.75);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0; } }
.modal-panel {
  position: relative; margin: 6vh auto; width: min(1040px, calc(100% - 32px));
  height: min(620px, 88vh);
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto;
  background: #0d0d0d; border: 1px solid var(--border); border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,.8);
  animation: pop .25s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(8,8,8,.7); border: 1px solid var(--border);
  color: var(--text); font-size: 22px; line-height: 1; cursor: pointer;
}
.modal-close:hover { border-color: var(--border-hover); }
.modal-media { grid-row: 1 / 3; position: relative; background: #000; overflow: hidden; }
.modal-media img, .modal-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.modal-body { overflow-y: auto; }
.modal-body { padding: 28px 32px 8px; }
.modal-cat { color: var(--text-dim); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.modal-title { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 16px; }
.modal-desc { color: var(--text-muted); line-height: 1.7; font-size: 15px; }
.modal-desc h1, .modal-desc h2, .modal-desc h3 { color: var(--text); margin: 20px 0 8px; font-size: 18px; }
.modal-desc p { margin-bottom: 10px; }
.modal-desc ul { padding-left: 20px; margin-bottom: 10px; }
.modal-desc li { margin-bottom: 6px; }
.modal-desc li p { margin: 0; }
.modal-desc h1 { font-size: 15px; letter-spacing: .06em; margin-top: 0; }
.modal-desc hr { border: none; border-top: 1px solid var(--border); margin: 18px 0; }
.modal-desc strong { color: var(--text); }
.modal-desc a { color: var(--text); }
.modal-desc img { max-width: 100%; border-radius: 12px; }
.modal-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 32px; background: rgba(13,13,13,.95); border-top: 1px solid var(--border);
}
.modal-price { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.modal-price s { color: var(--text-dim); font-size: 16px; font-weight: 500; margin-right: 8px; }

/* ===== PANIER ===== */
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  display: flex; flex-direction: column;
  background: #0d0d0d; border-left: 1px solid var(--border);
  animation: slide .3s cubic-bezier(.2,.9,.3,1);
}
@keyframes slide { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { font-size: 18px; font-weight: 700; }
.drawer-head .modal-close { position: static; }
.drawer-user { padding: 12px 24px; font-size: 13px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.drawer-user strong { color: var(--text); }
.drawer-items { flex: 1; overflow-y: auto; padding: 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.drawer-empty { color: var(--text-dim); text-align: center; margin-top: 40px; }
.drawer-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--border);
}
.drawer-item img { width: 72px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.drawer-item-info { flex: 1; min-width: 0; }
.drawer-item-info strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-item-info span { color: var(--text-muted); font-size: 13px; }
.drawer-remove { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 18px; padding: 4px 8px; }
.drawer-remove:hover { color: #fff; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--text-muted); }
.drawer-total strong { font-size: 24px; color: var(--text); }
.drawer-foot .btn { justify-content: center; width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.drawer-note { text-align: center; font-size: 12px; color: var(--text-dim); }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 300;
  padding: 12px 20px; border-radius: 12px;
  background: #fff; color: #000; font-weight: 600; font-size: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  animation: toastIn .3s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ===== MOBILE ===== */
@media (max-width: 720px) {
  .store-hero { padding: 120px 0 48px; }
  .store-search { width: 100%; min-width: 0; }
  .product-grid { grid-template-columns: 1fr; }
  .modal-panel { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; height: 90vh; margin: 5vh auto; }
  .modal-media { grid-row: auto; aspect-ratio: 16 / 9; }
  .modal-body { padding: 22px 20px 4px; }
  .modal-footer { padding: 16px 20px; }
  .modal-title { font-size: 26px; }
  .basket-btn span:not(.basket-count) { display: none; }
}
