@import "global.css";
/* --- Vyra Global Text Selection (#ffbe8e) --- */
::selection {
  background-color: #ffbe8e !important;
  color: #0d0d14 !important;
}
::-moz-selection {
  background-color: #ffbe8e !important;
  color: #0d0d14 !important;
}

/* ==========================================================================
   VYRA STORE — EXTENSION DU DESIGN SYSTEM DU DASHBOARD VYRA
   Complète `dashboard.css` pour les composants spécifiques au Store :
   - Cartes de produits avec images, prix, badges, et actions
   - Grille des 8 catégories
   - Filtres à pilules et tri
   - Tiroir panier AJAX slide-over
   - Fiche produit détaillée & avis clients
   - Dashboard créateur & administration
   ========================================================================== */

/* Variables spécifiques au store alignées sur le Dashboard */
:root {
  --store-accent: var(--accent, #ffbe8e);
  --store-accent-hover: var(--accent-strong, #e08a49);
  --store-accent-light: var(--accent-tint, rgba(255, 190, 142, 0.15));
  --store-accent-border: rgba(255, 190, 142, 0.35);
  
  --store-bg: var(--bg-page, #F7F6F4);
  --store-surface: var(--bg-surface, #FFFFFF);
  --store-border: var(--border-soft, rgba(20, 20, 26, 0.09));
  --store-border-hover: var(--border-strong, rgba(20, 20, 26, 0.16));
  
  --store-text: var(--text-primary, #14141a);
  --store-text-muted: var(--text-secondary, rgba(20, 20, 26, 0.62));
  --store-text-subtle: var(--text-muted, rgba(20, 20, 26, 0.42));
  
  --store-radius-sm: var(--radius-sm, 8px);
  --store-radius-md: var(--radius-md, 12px);
  --store-radius-lg: var(--radius-lg, 18px);
  --store-radius-pill: 9999px;
  
  --store-shadow-sm: 0 2px 8px rgba(20, 20, 26, 0.04);
  --store-shadow-md: var(--shadow-card, 0 6px 20px rgba(20, 20, 26, 0.06));
  --store-shadow-hover: 0 12px 28px rgba(20, 20, 26, 0.09);
  --store-transition: all 0.2s var(--ease, cubic-bezier(0.4, 0, 0.2, 1));
}

html.dark-mode {
  --store-bg: var(--bg-page, #0D0D14);
  --store-surface: var(--bg-surface, #15151f);
  --store-border: var(--border-soft, rgba(255, 255, 255, 0.09));
  --store-border-hover: var(--border-strong, rgba(255, 255, 255, 0.16));
  --store-text: var(--text-primary, #F5F5F7);
  --store-text-muted: var(--text-secondary, rgba(245, 245, 247, 0.62));
  --store-text-subtle: var(--text-muted, rgba(245, 245, 247, 0.42));
  --store-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --store-shadow-md: var(--shadow-card, 0 10px 30px rgba(0, 0, 0, 0.3));
  --store-shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   HERO DU STORE (HARMONISÉ AVEC LE DASHBOARD)
   ========================================================================== */
.store-hero-banner {
  background: var(--store-surface);
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-lg);
  padding: 36px 32px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--store-shadow-sm);
}

.store-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: var(--store-accent-light);
  border: 1px solid var(--store-accent-border);
  border-radius: var(--store-radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: #9c4d12;
  margin-bottom: 14px;
}

html.dark-mode .store-hero-badge {
  color: #ffbe8e;
}

.store-hero-badge span.dot {
  width: 7px;
  height: 7px;
  background: var(--store-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--store-accent-light);
}

.store-hero-title {
  font-family: var(--font-heading, 'NewTitle', 'Sora', sans-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--store-text);
  margin-bottom: 10px;
}

.store-hero-title .highlight {
  position: relative;
  display: inline-block;
  color: var(--store-text);
}

.store-hero-title .highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 10px;
  background: var(--store-accent);
  opacity: 0.35;
  z-index: -1;
  border-radius: 4px;
}

.store-hero-sub {
  font-size: 1rem;
  color: var(--store-text-muted);
  max-width: 680px;
  line-height: 1.6;
  margin-bottom: 22px;
}

.store-hero-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   BOUTONS DU STORE
   ========================================================================== */
.store-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--store-radius-pill);
  background: #14141a;
  color: #FFFFFF;
  text-decoration: none;
  border: 1px solid #14141a;
  cursor: pointer;
  transition: var(--store-transition);
}

html.dark-mode .store-btn-primary {
  background: #FFFFFF;
  color: #14141a;
  border-color: #FFFFFF;
}

.store-btn-primary:hover {
  background: #000000;
  transform: translateY(-1px);
  box-shadow: var(--store-shadow-sm);
}

html.dark-mode .store-btn-primary:hover {
  background: #E5E5EA;
}

.store-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--store-radius-pill);
  background: var(--store-surface);
  color: var(--store-text);
  text-decoration: none;
  border: 1px solid var(--store-border);
  cursor: pointer;
  transition: var(--store-transition);
}

.store-btn-secondary:hover {
  border-color: var(--store-border-hover);
  background: rgba(20, 20, 26, 0.04);
  transform: translateY(-1px);
}

html.dark-mode .store-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   GRILLE DES 8 CATÉGORIES
   ========================================================================== */
.store-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.store-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 10px;
  background: var(--store-surface);
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-md);
  text-decoration: none;
  color: var(--store-text);
  text-align: center;
  transition: var(--store-transition);
  cursor: pointer;
}

.store-cat-card:hover, .store-cat-card.is-active {
  border-color: var(--store-accent);
  box-shadow: var(--store-shadow-md);
  transform: translateY(-2px);
}

.store-cat-card.is-active {
  border-width: 2px;
}

.store-cat-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: var(--store-radius-sm);
  background: var(--store-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: var(--store-transition);
}

.store-cat-card:hover .store-cat-icon-wrapper {
  background: var(--store-accent);
  transform: scale(1.05);
}

.store-cat-icon-wrapper svg {
  width: 20px;
  height: 20px;
  color: #14141a;
}

.store-cat-name {
  font-family: var(--font-heading, 'NewTitle', 'Sora', sans-serif);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.store-cat-count {
  font-size: 0.72rem;
  color: var(--store-text-muted);
}

/* ==========================================================================
   BARRE DE RECHERCHE, FILTRES & TRI
   ========================================================================== */
.store-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  background: var(--store-surface);
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-md);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.store-filter-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.store-filter-tag {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--store-radius-pill);
  border: 1px solid var(--store-border);
  background: rgba(20, 20, 26, 0.03);
  color: var(--store-text-muted);
  cursor: pointer;
  transition: var(--store-transition);
  text-decoration: none;
}

html.dark-mode .store-filter-tag {
  background: rgba(255, 255, 255, 0.04);
}

.store-filter-tag:hover {
  color: var(--store-text);
  background: rgba(20, 20, 26, 0.06);
}

.store-filter-tag.is-active {
  background: #14141a;
  color: #FFFFFF;
  border-color: #14141a;
}

html.dark-mode .store-filter-tag.is-active {
  background: #FFFFFF;
  color: #14141a;
  border-color: #FFFFFF;
}

.store-filter-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.store-select {
  padding: 7px 12px;
  font-size: 0.82rem;
  font-family: var(--font-body, 'Inter', sans-serif);
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-sm);
  background: var(--store-surface);
  color: var(--store-text);
  cursor: pointer;
  outline: none;
  transition: var(--store-transition);
}

.store-select:focus {
  border-color: var(--store-accent);
}

/* ==========================================================================
   GRILLES ET CARTES DE PRODUITS
   ========================================================================== */
.store-section {
  margin-bottom: 36px;
}

.store-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}

.store-section-title {
  font-family: var(--font-heading, 'NewTitle', 'Sora', sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--store-text);
}

.store-section-desc {
  font-size: 0.84rem;
  color: var(--store-text-muted);
  margin-top: 2px;
}

.store-section-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--store-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--store-transition);
}

.store-section-link:hover {
  color: var(--store-accent-hover);
  transform: translateX(2px);
}

.store-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.store-card {
  background: var(--store-surface);
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--store-transition);
  position: relative;
  box-shadow: var(--store-shadow-sm);
}

.store-card:hover {
  border-color: var(--store-border-hover);
  box-shadow: var(--store-shadow-hover);
  transform: translateY(-3px);
}

.store-card-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 200px;
  background-color: #09090b;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  overflow: hidden;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.store-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.store-card:hover .store-card-img {
  transform: scale(1.04);
}

.store-card-live-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #09090b;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-card-live-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.store-card:hover .store-card-live-iframe {
  transform: scale(1.02);
}

.store-card-live-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  cursor: pointer;
}

.store-card-badge {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: var(--store-radius-pill);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: #14141a;
  box-shadow: var(--store-shadow-sm);
}

.store-card-wish-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--store-text-muted);
  cursor: pointer;
  transition: var(--store-transition);
  box-shadow: var(--store-shadow-sm);
}

.store-card-wish-btn:hover, .store-card-wish-btn.is-active {
  color: #EF4444;
  transform: scale(1.1);
}

.store-card-wish-btn.is-active svg {
  fill: #EF4444;
}

.store-card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.store-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.store-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #924d1a;
}

html.dark-mode .store-card-cat {
  color: #ffbe8e;
}

.store-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--store-text);
}

.store-card-rating svg {
  width: 13px;
  height: 13px;
  color: #F59E0B;
  fill: #F59E0B;
}

.store-card-title {
  font-family: var(--font-heading, 'NewTitle', 'Sora', sans-serif);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--store-text);
  line-height: 1.35;
  margin-bottom: 6px;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-card-title:hover {
  color: var(--store-accent-hover);
}

.store-card-desc {
  font-size: 0.8rem;
  color: var(--store-text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.store-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--store-border);
  margin-top: auto;
}

.store-card-price-block {
  display: flex;
  flex-direction: column;
}

.store-card-price {
  font-family: var(--font-heading, 'NewTitle', 'Sora', sans-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--store-text);
}

.store-card-old-price {
  font-size: 0.75rem;
  color: var(--store-text-subtle);
  text-decoration: line-through;
}

.store-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.store-btn-cart {
  width: 34px;
  height: 34px;
  border-radius: var(--store-radius-pill);
  background: rgba(20, 20, 26, 0.04);
  border: 1px solid var(--store-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--store-text);
  cursor: pointer;
  transition: var(--store-transition);
}

html.dark-mode .store-btn-cart {
  background: rgba(255, 255, 255, 0.05);
}

.store-btn-cart:hover {
  background: var(--store-accent);
  border-color: var(--store-accent);
  color: #14141a;
  transform: scale(1.05);
}

.store-btn-buy {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--store-radius-pill);
  background: #14141a;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  transition: var(--store-transition);
  text-decoration: none;
}

html.dark-mode .store-btn-buy {
  background: #FFFFFF;
  color: #14141a;
}

.store-btn-buy:hover {
  background: #000000;
  transform: translateY(-1px);
}

/* ==========================================================================
   BADGE COUNT & TIROIR PANIER
   ========================================================================== */
.store-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  color: #14141a;
  background: var(--store-accent);
  border-radius: var(--store-radius-pill);
  box-shadow: 0 2px 6px rgba(255, 190, 142, 0.5);
}

.store-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 26, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--store-transition);
}

.store-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.store-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: var(--store-surface);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease, cubic-bezier(0.4, 0, 0.2, 1));
  display: flex;
  flex-direction: column;
}

.store-drawer.is-open {
  transform: translateX(0);
}

.store-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--store-border);
}

.store-drawer-title {
  font-family: var(--font-heading, 'NewTitle', 'Sora', sans-serif);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.store-drawer-close {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--store-text-muted);
  cursor: pointer;
  transition: var(--store-transition);
}

.store-drawer-close:hover {
  background: rgba(20, 20, 26, 0.05);
  color: var(--store-text);
}

.store-drawer-body {
  padding: 18px 22px;
  overflow-y: auto;
  flex: 1;
}

.store-cart-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.store-cart-item {
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--store-border);
}

.store-cart-item-img {
  width: 68px;
  height: 48px;
  border-radius: var(--store-radius-sm);
  object-fit: cover;
  background: rgba(20, 20, 26, 0.05);
}

.store-cart-item-info {
  flex: 1;
}

.store-cart-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--store-text);
  line-height: 1.3;
  margin-bottom: 3px;
}

.store-cart-item-cat {
  font-size: 0.72rem;
  color: var(--store-text-muted);
  margin-bottom: 6px;
}

.store-cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.store-cart-item-price {
  font-family: var(--font-heading, 'NewTitle', 'Sora', sans-serif);
  font-weight: 700;
  font-size: 0.9rem;
}

.store-cart-remove-btn {
  background: none;
  border: none;
  color: #EF4444;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
}

.store-cart-remove-btn:hover {
  text-decoration: underline;
}

.store-drawer-footer {
  padding: 18px 22px;
  border-top: 1px solid var(--store-border);
  background: var(--store-surface);
}

.store-drawer-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--store-text-muted);
  margin-bottom: 6px;
}

.store-drawer-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading, 'NewTitle', 'Sora', sans-serif);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--store-text);
  margin-bottom: 14px;
}

.store-drawer-checkout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--store-radius-pill);
  background: #14141a;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  transition: var(--store-transition);
}

html.dark-mode .store-drawer-checkout-btn {
  background: #FFFFFF;
  color: #14141a;
}

.store-drawer-checkout-btn:hover {
  background: #000000;
  transform: translateY(-1px);
}

.store-drawer-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--store-text-subtle);
  margin-top: 10px;
}

/* ==========================================================================
   TOASTS
   ========================================================================== */
.store-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.store-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #14141a;
  color: #FFFFFF;
  border-radius: var(--store-radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-size: 0.88rem;
  font-weight: 500;
  animation: slideInUp 0.25s ease forwards;
  max-width: 360px;
}

html.dark-mode .store-toast {
  background: #20202C;
  border: 1px solid var(--store-border);
}

.store-toast.toast-success svg { color: #10B981; }
.store-toast.toast-error svg { color: #EF4444; }

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

/* ==========================================================================
   TABS DE CLASSEMENT & POPULARITÉ (TOP SEMAINE, AIMÉS, TÉLÉCHARGÉS)
   ========================================================================== */
.store-ranking-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 14px 2px;
  margin-bottom: 8px;
  scrollbar-width: none;
}
.store-ranking-tabs::-webkit-scrollbar {
  display: none;
}

.store-rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--store-radius-pill);
  border: 1px solid var(--store-border);
  background: var(--store-surface);
  color: var(--store-text-muted);
  cursor: pointer;
  transition: var(--store-transition);
  white-space: nowrap;
}

.store-rank-pill:hover {
  border-color: var(--store-accent);
  color: var(--store-text);
  transform: translateY(-1px);
}

.store-rank-pill.is-active {
  background: #14141a;
  color: #FFFFFF;
  border-color: #14141a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

html.dark-mode .store-rank-pill.is-active {
  background: #FFFFFF;
  color: #14141a;
  border-color: #FFFFFF;
}

.store-rank-pill .pill-badge {
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 190, 142, 0.25);
  color: #ffbe8e;
  font-weight: 700;
}

/* BOUTONS LIKE ET APERÇU DIRECT SUR LES CARTES */
.store-card-like-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--store-radius-pill);
  background: rgba(20, 20, 26, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--store-transition);
  z-index: 4;
}

.store-card-like-btn:hover {
  transform: scale(1.06);
  background: rgba(239, 68, 68, 0.9);
  border-color: #EF4444;
}

.store-card-like-btn.is-active {
  background: #EF4444;
  border-color: #EF4444;
  color: #FFFFFF;
}

.store-card-preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--store-radius-pill);
  border: 1px solid var(--store-border);
  background: var(--store-surface);
  color: var(--store-text);
  cursor: pointer;
  transition: var(--store-transition);
  text-decoration: none;
}

.store-card-preview-btn:hover {
  border-color: var(--store-accent);
  background: var(--store-accent-light);
  color: var(--store-text);
  transform: translateY(-1px);
}

/* ==========================================================================
   MODAL DE PRÉVISUALISATION DIRECTE DES SECTIONS (LIVE PREVIEW)
   ========================================================================== */
.store-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(12px);
  animation: fadeIn 0.2s ease;
}

.store-preview-dialog {
  width: 95vw;
  max-width: 1400px;
  height: 90vh;
  background: var(--store-surface);
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.store-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--store-border);
  background: var(--store-surface);
  gap: 16px;
  flex-wrap: wrap;
}

.store-preview-title-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.store-preview-viewport-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--store-bg);
  padding: 4px;
  border-radius: var(--store-radius-pill);
  border: 1px solid var(--store-border);
}

.store-preview-vp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--store-radius-pill);
  border: none;
  background: transparent;
  color: var(--store-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--store-transition);
}

.store-preview-vp-btn:hover {
  color: var(--store-text);
}

.store-preview-vp-btn.is-active {
  background: var(--store-surface);
  color: var(--store-text);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.store-preview-frame-container {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0B0B0E;
  overflow: hidden;
  padding: 16px;
  position: relative;
}

.store-preview-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #000000;
  border-radius: 8px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

