/* ===== BOUTIQUE - IDENTITÉ VITICOLE LUXUEUSE ===== */
/* Design inspiré d'un marché viticole premium avec une identité forte */

/* === VARIABLES SPÉCIFIQUES BOUTIQUE === */
:root {
  --boutique-wine-red: #8B0000;
  --boutique-wine-burgundy: #6B0F1A;
  --boutique-wine-rose: #C74B50;
  --boutique-gold: #D4AF37;
  --boutique-champagne: #F7E7CE;
  --boutique-oak: #6F4E37;
  --boutique-grape-purple: #6B46C1;
  --boutique-grape-green: #65A603;
  --boutique-cork: #C9A875;
  --boutique-barrel: #5C4033;
}

/* === CONTENEUR PRINCIPAL === */
.boutique-container-enhanced {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(139, 0, 0, 0.03) 0%, rgba(107, 15, 26, 0.05) 100%),
    repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(212, 175, 55, 0.02) 50px, rgba(212, 175, 55, 0.02) 52px);
  position: relative;
}

/* Texture de fond subtile */
.boutique-container-enhanced::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(107, 70, 193, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(139, 0, 0, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* === HEADER DE LA BOUTIQUE === */
.boutique-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: linear-gradient(135deg, #8B0000 0%, #6B0F1A 50%, #5C1010 100%);
  padding: var(--space-5) var(--space-6);
  border-bottom: 3px solid var(--boutique-gold);
  box-shadow:
    0 4px 20px rgba(139, 0, 0, 0.4),
    inset 0 1px 0 rgba(212, 175, 55, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  position: relative;
  overflow: hidden;
}

/* Effet de texture sur le header */
.boutique-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 3px,
      rgba(212, 175, 55, 0.05) 3px,
      rgba(212, 175, 55, 0.05) 6px
    );
  pointer-events: none;
}

.boutique-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-extrabold);
  background: linear-gradient(135deg, #FFD700 0%, #FFF8DC 50%, #D4AF37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  position: relative;
  z-index: 1;
  font-family: 'Georgia', 'Times New Roman', serif;
  text-transform: uppercase;
}

.boutique-controls {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  position: relative;
  z-index: 1;
}

.rotation-timer {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: linear-gradient(135deg, #D4AF37 0%, #FFD700 50%, #D4AF37 100%);
  color: var(--boutique-wine-burgundy);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  box-shadow:
    0 4px 12px rgba(212, 175, 55, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.rotation-timer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

.boutique-header .btn-secondary {
  background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
  color: var(--boutique-wine-burgundy);
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-weight: var(--font-weight-bold);
  box-shadow:
    0 4px 12px rgba(212, 175, 55, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.boutique-header .btn-secondary:hover {
  background: linear-gradient(135deg, #FFD700 0%, #FFF8DC 100%);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

/* === NAVIGATION PAR ONGLETS === */
.shop-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  padding: var(--space-5) var(--space-6);
  background:
    linear-gradient(to bottom, rgba(247, 231, 206, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-bottom: 2px solid var(--boutique-gold);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

.shop-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-3);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(247, 231, 206, 0.6) 100%);
  border: 3px solid var(--boutique-cork);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  min-height: 100px;
  box-shadow:
    0 4px 8px rgba(92, 64, 51, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

/* Texture bois sur les onglets */
.shop-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(92, 64, 51, 0.03) 2px,
      rgba(92, 64, 51, 0.03) 4px
    );
  pointer-events: none;
}

.shop-tab:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 16px rgba(92, 64, 51, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
  border-color: var(--boutique-gold);
}

.shop-tab.active {
  background: linear-gradient(135deg, #8B0000 0%, #6B0F1A 100%);
  border-color: var(--boutique-gold);
  box-shadow:
    0 8px 20px rgba(139, 0, 0, 0.5),
    0 0 30px rgba(212, 175, 55, 0.3),
    inset 0 1px 2px rgba(255, 215, 0, 0.3);
  transform: translateY(-4px) scale(1.03);
}

.shop-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: var(--boutique-gold);
  box-shadow: 0 0 10px var(--boutique-gold);
}

.shop-tab.active .tab-emoji {
  transform: scale(1.3);
  filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.6));
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 100% { transform: scale(1.3) translateY(0); }
  50% { transform: scale(1.3) translateY(-8px); }
}

.shop-tab.active .tab-name,
.shop-tab.active .tab-count {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tab-emoji {
  font-size: var(--font-size-4xl);
  transition: all var(--transition-base);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.tab-name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--boutique-wine-burgundy);
  transition: color var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Georgia', serif;
}

.tab-count {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  min-width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
  color: var(--boutique-wine-burgundy);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-extrabold);
  padding: 0 var(--space-2);
  box-shadow:
    0 2px 8px rgba(212, 175, 55, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.shop-tab.active .tab-count {
  background: linear-gradient(135deg, #FFD700 0%, #FFF8DC 100%);
  color: var(--boutique-wine-burgundy);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* === CONTENU DE LA BOUTIQUE === */
.shop-content-enhanced {
  padding: var(--space-6);
  position: relative;
  z-index: 1;
}

.shop-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  animation: fadeInUp 0.5s ease;
}

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

/* === CARTES D'ARTICLES - STYLE ÉTIQUETTE DE VIN === */
.card {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 231, 206, 0.95) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow:
    0 8px 24px rgba(92, 64, 51, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
  transition: all var(--transition-base);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 380px;
  border: 3px solid var(--boutique-cork);
}

/* Bordure décorative style étiquette de vin */
.card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 2px solid var(--boutique-gold);
  border-radius: calc(var(--radius-xl) - 8px);
  pointer-events: none;
  opacity: 0.4;
  animation: none !important;
  transform: none !important;
}

/* Texture papier vintage */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(201, 168, 117, 0.02) 2px,
      rgba(201, 168, 117, 0.02) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(201, 168, 117, 0.02) 2px,
      rgba(201, 168, 117, 0.02) 4px
    );
  pointer-events: none;
  z-index: 0;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 12px 36px rgba(92, 64, 51, 0.25),
    0 4px 12px rgba(212, 175, 55, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
  border-color: var(--boutique-gold);
}

.card:hover::before {
  animation: none !important;
  transform: none !important;
}

/* Coin plié effet premium */
.card > *:not(.card-background-effects):not(.card-badges) {
  position: relative;
  z-index: 1;
}

/* Effets visuels de fond */
.card-background-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: var(--radius-xl);
  z-index: 0;
}

.rarity-glow {
  display: none !important;
  /* Effet complètement désactivé - force la priorité */
}

.card-shine {
  position: absolute;
  top: -50%;
  left: -100%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
  transform: skewX(-20deg);
}

.card:hover .card-shine {
  animation: shine 0.8s ease;
}

@keyframes shine {
  to { left: 200%; }
}

/* Badges */
.card-badges {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.badge-new,
.badge-popular,
.badge-stock-out {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-base);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-extrabold);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-family: 'Georgia', serif;
}

.badge-new {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.badge-popular {
  background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
  color: var(--boutique-wine-burgundy);
}

.badge-stock-out {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: white;
}

/* En-tête de carte */
.item-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
  padding: var(--space-4) 0;
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.item-name {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--boutique-wine-burgundy);
  margin: 0;
  line-height: var(--line-height-tight);
  min-height: 2.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: 'Georgia', serif;
  text-transform: capitalize;
  letter-spacing: 0.5px;
}

.item-emoji {
  font-size: 5rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
  /* Animation float supprimée */
}

/* Tarification - Style étiquette prix */
.item-pricing {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  padding: var(--space-4);
  background:
    linear-gradient(135deg, rgba(139, 0, 0, 0.08) 0%, rgba(107, 15, 26, 0.05) 100%);
  border-radius: var(--radius-md);
  border: 2px solid rgba(212, 175, 55, 0.3);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.price-grapes,
.price-gems {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-extrabold);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2);
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-base);
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-family: 'Georgia', serif;
}

.price-grapes {
  color: #6b21a8;
  background: linear-gradient(135deg, rgba(107, 33, 168, 0.1) 0%, rgba(147, 51, 234, 0.05) 100%);
}

.price-gems {
  color: #0891b2;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
}

.item-rarity {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  text-align: center;
  padding: var(--space-3);
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(255, 215, 0, 0.1) 100%);
  border-radius: var(--radius-base);
  border: 2px solid var(--boutique-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Georgia', serif;
}

.item-stock {
  font-size: var(--font-size-sm);
  color: var(--gray-700);
  text-align: center;
  font-weight: var(--font-weight-medium);
  font-family: 'Georgia', serif;
}

.stock-count {
  font-weight: var(--font-weight-extrabold);
  font-size: var(--font-size-lg);
}

.stock-count.good {
  color: #059669;
}

.stock-count.low {
  color: #d97706;
}

.stock-count.empty {
  color: #dc2626;
}

/* Pied de carte */
.item-footer {
  margin-top: auto;
}

.btn-shop {
  width: 100%;
  min-height: var(--touch-target-spacious);
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(135deg, #8B0000 0%, #6B0F1A 100%);
  color: white;
  border: 3px solid var(--boutique-gold);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-extrabold);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow:
    0 6px 16px rgba(139, 0, 0, 0.4),
    inset 0 1px 2px rgba(255, 215, 0, 0.3);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Georgia', serif;
}

.btn-shop::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(212, 175, 55, 0.3) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn-shop:hover::before {
  transform: translateX(100%);
}

.btn-shop:hover {
  background: linear-gradient(135deg, #8B0000 0%, #6B0F1A 100%);
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(139, 0, 0, 0.5),
    0 0 20px rgba(212, 175, 55, 0.4),
    inset 0 1px 2px rgba(255, 215, 0, 0.5);
  border-color: #FFD700;
}

.btn-shop:active {
  transform: translateY(0);
}

.btn-shop.disabled,
.btn-shop:disabled {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  border-color: #9ca3af;
  cursor: not-allowed;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  opacity: 0.7;
}

/* Carte épuisée */
.card.out-of-stock {
  opacity: 0.65;
  filter: grayscale(0.5);
}

.card.out-of-stock::after {
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 15px,
      rgba(0, 0, 0, 0.03) 15px,
      rgba(0, 0, 0, 0.03) 30px
    );
}

/* === CARTES PREMIUM === */
.card.premium-card {
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(255, 215, 0, 0.1) 50%, rgba(212, 175, 55, 0.15) 100%);
  border: 3px solid var(--boutique-gold);
  box-shadow:
    0 8px 32px rgba(212, 175, 55, 0.3),
    0 0 40px rgba(255, 215, 0, 0.2);
}

.card.premium-card::before {
  border-color: #FFD700;
  opacity: 0.8;
}

.premium-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-1);
  border-bottom: 2px solid var(--boutique-gold);
}

.premium-emoji {
  font-size: 3rem;
  filter: drop-shadow(0 4px 16px rgba(255, 215, 0, 0.5));
  animation: none;
  flex-shrink: 0;
}

.premium-info {
  flex: 1;
  min-width: 0;
}

.premium-name {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--boutique-wine-burgundy);
  margin: 0;
  font-family: 'Georgia', serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.premium-desc {
  font-size: var(--font-size-base);
  color: var(--gray-700);
  margin: 0;
  font-family: 'Georgia', serif;
  display: none;
}

.premium-badge {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  padding: 4px 10px;
  background: linear-gradient(135deg, #FFD700 0%, #FFF8DC 50%, #D4AF37 100%);
  color: var(--boutique-wine-burgundy);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: var(--font-weight-extrabold);
  text-transform: uppercase;
  box-shadow:
    0 4px 12px rgba(212, 175, 55, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.6);
  animation: none;
  letter-spacing: 0.5px;
  font-family: 'Georgia', serif;
  line-height: 1;
  white-space: nowrap;
  z-index: 1;
}

@keyframes shimmerBadge {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.05); }
}

.premium-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.premium-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(255, 215, 0, 0.15) 100%);
  border-radius: var(--radius-lg);
  border: 2px solid var(--boutique-gold);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.premium-item {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--boutique-wine-burgundy);
  font-family: 'Georgia', serif;
  padding-left: var(--space-3);
  position: relative;
  line-height: 1.5;
}

.premium-item::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--boutique-gold);
  font-size: 0.7em;
}

.premium-price {
  text-align: center;
  padding: var(--space-4);
  background: white;
  border: 3px solid var(--boutique-gold);
  border-radius: var(--radius-lg);
  box-shadow:
    0 4px 16px rgba(212, 175, 55, 0.3),
    inset 0 2px 4px rgba(255, 215, 0, 0.1);
}

.price-amount {
  font-size: 2.5rem;
  font-weight: var(--font-weight-extrabold);
  background: linear-gradient(135deg, #D4AF37 0%, #FFD700 50%, #D4AF37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Georgia', serif;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.4));
  line-height: 1;
}

/* === CARTES RÉGION === */
.region-card {
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.08) 100%);
  border: 3px solid #10b981;
}

.region-card::before {
  border-color: #059669;
}

.card-header-enhanced {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: var(--space-4);
  border-bottom: 2px solid rgba(16, 185, 129, 0.3);
}

.item-emoji-enhanced {
  font-size: 4rem;
  filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.4));
}

.region-badge {
  padding: var(--space-2) var(--space-4);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-extrabold);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-family: 'Georgia', serif;
}

.card-content-enhanced {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.item-name-enhanced {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-extrabold);
  color: #065f46;
  margin: 0;
  font-family: 'Georgia', serif;
  text-transform: capitalize;
}

.item-description {
  font-size: var(--font-size-base);
  color: var(--gray-700);
  line-height: var(--line-height-relaxed);
  font-family: 'Georgia', serif;
  font-style: italic;
}

.price-section-enhanced {
  padding: var(--space-4);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid #10b981;
}

.price-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-extrabold);
  color: #6b21a8;
  font-family: 'Georgia', serif;
}

.card-footer-enhanced {
  margin-top: auto;
}

.card-glow-effect {
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  opacity: 0;
  z-index: -1;
  border-radius: var(--radius-xl);
  transition: opacity var(--transition-base);
  filter: blur(8px);
}

.region-card:hover .card-glow-effect {
  opacity: 0.3;
}

/* === MODAL AMÉLIORÉ === */
.modal-enhanced {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.modal-enhanced.open {
  display: flex;
  animation: fadeIn 0.3s ease;
}

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

.modal-backdrop-enhanced {
  position: absolute;
  inset: 0;
  background: rgba(107, 15, 26, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-container-enhanced {
  position: relative;
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 231, 206, 0.95) 100%);
  border-radius: var(--radius-xl);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(212, 175, 55, 0.3);
  overflow: hidden;
  animation: slideUpModal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  border: 4px solid var(--boutique-gold);
}

@keyframes slideUpModal {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header-enhanced {
  position: relative;
  padding: var(--space-8);
  background: linear-gradient(135deg, #8B0000 0%, #6B0F1A 50%, #5C1010 100%);
  color: white;
  border-bottom: 3px solid var(--boutique-gold);
}

.modal-header-enhanced::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 3px,
      rgba(212, 175, 55, 0.1) 3px,
      rgba(212, 175, 55, 0.1) 6px
    );
  pointer-events: none;
}

.modal-header-enhanced .btn-secondary {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
  color: var(--boutique-wine-burgundy);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-full);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.5);
  z-index: 10;
}

.modal-header-enhanced .btn-secondary:hover {
  background: linear-gradient(135deg, #FFD700 0%, #FFF8DC 100%);
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.7);
}

.modal-title-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.modal-item-emoji {
  font-size: 5rem;
  filter: drop-shadow(0 4px 20px rgba(255, 215, 0, 0.5));
  animation: floatModal 3s ease-in-out infinite;
}

@keyframes floatModal {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.05); }
}

.modal-item-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-extrabold);
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  font-family: 'Georgia', serif;
  text-transform: capitalize;
  letter-spacing: 0.5px;
}

.modal-rarity-info {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}

.rarity-badge-modal {
  padding: var(--space-2) var(--space-5);
  background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--font-weight-extrabold);
  color: var(--boutique-wine-burgundy);
  box-shadow:
    0 4px 12px rgba(212, 175, 55, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Georgia', serif;
}

.region-badge-modal {
  padding: var(--space-2) var(--space-5);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-extrabold);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Georgia', serif;
}

.modal-body-enhanced {
  flex: 1;
  padding: var(--space-6);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  background:
    linear-gradient(to bottom, rgba(247, 231, 206, 0.3) 0%, rgba(255, 255, 255, 0.5) 100%);
}

/* Scrollbar custom */
.modal-body-enhanced::-webkit-scrollbar {
  width: 8px;
}

.modal-body-enhanced::-webkit-scrollbar-track {
  background: rgba(201, 168, 117, 0.1);
  border-radius: var(--radius-base);
}

.modal-body-enhanced::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #D4AF37 0%, #C9A875 100%);
  border-radius: var(--radius-base);
}

.modal-body-enhanced::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
}

.modal-description {
  font-size: var(--font-size-base);
  color: var(--gray-800);
  line-height: var(--line-height-relaxed);
  text-align: center;
  padding: var(--space-5);
  background: white;
  border-radius: var(--radius-lg);
  border: 2px solid var(--boutique-gold);
  border-left-width: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-family: 'Georgia', serif;
  font-style: italic;
}

.modal-stats-section {
  padding: var(--space-5);
  background:
    linear-gradient(135deg, rgba(139, 0, 0, 0.05) 0%, rgba(107, 15, 26, 0.03) 100%);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(212, 175, 55, 0.3);
}

.stats-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--boutique-wine-burgundy);
  margin-bottom: var(--space-4);
  font-family: 'Georgia', serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--boutique-gold);
  padding-bottom: var(--space-2);
}

.stats-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--gray-700);
  font-weight: var(--font-weight-semibold);
  font-family: 'Georgia', serif;
}

.stat-bar {
  flex: 1;
  height: 12px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.stat-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.stat-value {
  font-weight: var(--font-weight-extrabold);
  color: var(--boutique-wine-burgundy);
  font-family: 'Georgia', serif;
}

.bonus-value {
  color: #059669;
  font-size: var(--font-size-lg);
}

.steps-value {
  color: var(--boutique-wine-red);
  font-size: var(--font-size-sm);
  font-style: italic;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.stat-row:last-child {
  border-bottom: none;
}

.bonus-highlight {
  color: #059669;
  font-weight: var(--font-weight-extrabold);
  font-size: var(--font-size-lg);
}

.steps-highlight {
  color: var(--boutique-wine-red);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  font-style: italic;
}

.modal-info-grid {
  display: flex;
  gap: var(--space-4);
  align-items: stretch;
}

.info-card {
  flex: 1;
  padding: var(--space-5);
  background: white;
  border: 3px solid var(--boutique-cork);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  box-shadow: 0 2px 8px rgba(92, 64, 51, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-card:hover {
  border-color: var(--boutique-gold);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
}

.info-card.out-of-stock {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.05);
}

.info-label {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-2);
  font-family: 'Georgia', serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-content {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--boutique-wine-burgundy);
  font-family: 'Georgia', serif;
}

.price-options-modal {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.price-option {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
}

.price-divider {
  color: var(--boutique-gold);
  font-weight: var(--font-weight-bold);
  font-style: italic;
}

.stock-number {
  color: #059669;
  font-size: var(--font-size-2xl);
}

.stock-number.empty {
  color: #dc2626;
}

.price-single {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-extrabold);
  color: #6b21a8;
}

.modal-footer-enhanced {
  padding: var(--space-6);
  background:
    linear-gradient(to top, rgba(139, 0, 0, 0.05) 0%, rgba(247, 231, 206, 0.3) 100%);
  border-top: 3px solid var(--boutique-gold);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.modal-actions-enhanced {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.modal-actions-enhanced .btn {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  min-height: 72px;
  font-family: 'Georgia', serif;
}

.modal-actions-enhanced .btn-primary {
  background: linear-gradient(135deg, #6b21a8 0%, #9333ea 100%);
  border: 3px solid #a855f7;
}

.modal-actions-enhanced .btn-primary:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  box-shadow: 0 6px 24px rgba(107, 33, 168, 0.4);
}

.modal-actions-enhanced .btn-secondary {
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
  border: 3px solid #22d3ee;
  color: white;
}

.modal-actions-enhanced .btn-secondary:hover {
  background: linear-gradient(135deg, #0e7490 0%, #0891b2 100%);
  box-shadow: 0 6px 24px rgba(8, 145, 178, 0.4);
}

.btn-icon {
  font-size: var(--font-size-3xl);
}

.btn-text {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-footer-enhanced > .btn-secondary {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: white;
  border: 3px solid #9ca3af;
}

.modal-footer-enhanced > .btn-secondary:hover {
  background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
}

/* === ÉTAT VIDE === */
.empty-state-enhanced {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  padding: var(--space-16) var(--space-6);
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.empty-icon {
  font-size: 8rem;
  opacity: 0.2;
  filter: grayscale(1);
}

.empty-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--boutique-wine-burgundy);
  font-family: 'Georgia', serif;
}

.empty-subtitle {
  font-size: var(--font-size-lg);
  color: var(--gray-600);
  max-width: 500px;
  font-family: 'Georgia', serif;
  font-style: italic;
}

/* === ANIMATIONS === */
.shop-refresh-animation {
  animation: refreshPulse 0.6s ease;
}

@keyframes refreshPulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.98); }
  100% { opacity: 1; transform: scale(1); }
}

/* Animation d'achat réussi */
.purchase-success-effect {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: var(--z-toast);
  padding: var(--space-8) var(--space-12);
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: white;
  border-radius: var(--radius-xl);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-extrabold);
  box-shadow:
    0 20px 60px rgba(16, 185, 129, 0.5),
    0 0 40px rgba(16, 185, 129, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.5);
  animation: successPop 2s ease forwards;
  font-family: 'Georgia', serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes successPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) rotate(-10deg);
  }
  10% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15) rotate(5deg);
  }
  20% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  80% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8) rotate(5deg);
  }
}

/* === NOTIFICATIONS === */
.notification {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  min-width: 320px;
  max-width: 500px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(212, 175, 55, 0.2);
  border: 3px solid var(--boutique-gold);
  opacity: 0;
  transform: translateX(400px);
  transition: all var(--transition-base);
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-5);
}

.notification-text {
  flex: 1;
  font-size: var(--font-size-base);
  color: var(--boutique-wine-burgundy);
  font-weight: var(--font-weight-semibold);
  font-family: 'Georgia', serif;
}

.notification-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--font-size-2xl);
  color: var(--gray-500);
  padding: var(--space-2);
  line-height: 1;
  transition: all var(--transition-fast);
  border-radius: var(--radius-full);
}

.notification-close:hover {
  color: var(--boutique-wine-burgundy);
  background: rgba(0, 0, 0, 0.05);
}

.notification-success {
  border-left: 6px solid #059669;
}

.notification-warning {
  border-left: 6px solid #d97706;
}

.notification-info {
  border-left: 6px solid #0891b2;
}

.notification-error {
  border-left: 6px solid #dc2626;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .boutique-header {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 4px !important;
    gap: 8px;
  }

  .boutique-title {
    font-size: var(--font-size-2xl);
    text-align: center;
  }

  .boutique-controls {
    justify-content: center;
  }

  .shop-tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 4px !important;
  }

  .shop-tab {
    min-height: 70px;
    padding: 8px 4px;
  }

  .tab-emoji {
    font-size: var(--font-size-3xl);
  }

  .tab-name {
    font-size: var(--font-size-xs);
  }

  .shop-content-enhanced {
    padding: 4px !important;
  }

  .shop-grid-enhanced {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px !important;
  }

  .card {
    min-height: auto;
    padding: 6px !important;
  }

  .item-emoji {
    font-size: 2.5rem;
  }

  .item-name {
    font-size: var(--font-size-sm);
    margin: var(--space-1) 0;
  }

  .item-pricing {
    padding: var(--space-2);
    margin: var(--space-2) 0;
  }

  .price-row {
    font-size: var(--font-size-sm);
    gap: var(--space-2);
  }

  .item-rarity {
    font-size: var(--font-size-xs);
    margin-top: var(--space-1);
  }

  .item-stock {
    padding: var(--space-2);
    font-size: var(--font-size-xs);
  }

  .btn-shop {
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-xs);
  }

  .premium-emoji {
    font-size: 2rem;
  }

  .premium-badge {
    font-size: 8px;
    padding: 2px 6px;
    top: 4px;
    right: 4px;
  }

  .premium-name {
    font-size: var(--font-size-sm);
  }

  .premium-header {
    padding-bottom: var(--space-2);
    margin-bottom: var(--space-1);
  }

  .premium-items {
    padding: var(--space-2);
    gap: var(--space-1);
  }

  .premium-item {
    font-size: 11px;
    line-height: 1.4;
  }

  .premium-price {
    padding: var(--space-2);
  }

  .price-amount {
    font-size: 1.5rem;
  }

  .premium-content .btn-primary {
    padding: var(--space-2);
    font-size: var(--font-size-xs);
  }

  .modal-container-enhanced {
    max-height: 95vh;
    margin: var(--space-2);
  }

  .modal-header-enhanced,
  .modal-body-enhanced,
  .modal-footer-enhanced {
    padding: var(--space-5);
  }

  .modal-item-emoji {
    font-size: 4rem;
  }

  .modal-item-title {
    font-size: var(--font-size-2xl);
  }

  .modal-info-grid {
    grid-template-columns: 1fr;
  }

  .modal-actions-enhanced {
    grid-template-columns: 1fr;
  }

  .notification {
    top: var(--space-4);
    right: var(--space-4);
    left: var(--space-4);
    min-width: auto;
  }

  .purchase-success-effect {
    font-size: var(--font-size-xl);
    padding: var(--space-6) var(--space-8);
  }
}

/* === OPTIMISATIONS PERFORMANCE === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* === TOUCHES FINALES === */
.btn-primary,
.btn-secondary,
.btn-shop {
  position: relative;
  overflow: hidden;
}

.btn-primary::after,
.btn-secondary::after,
.btn-shop::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:active::after,
.btn-secondary:active::after,
.btn-shop:active::after {
  width: 300px;
  height: 300px;
}
