/* ==========================================================================
   EUPHORYX LUXURY CYBER THEME - MASTER STYLESHEET
   ========================================================================== */

/* 1. Global Reset & Body */
body {
  background-color: #000000 !important;
  color: #ffffff !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  overflow-x: hidden !important;
}

#liquid-canvas {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 0 !important;
  pointer-events: none !important;
  opacity: 1 !important;
}

/* Suppression des contours et bordures par défaut sur tous les boutons */
button, .btn, .btn-buy-glass, .product-buy-btn, .qty-btn, .variant-pill, .topbar-nav-link {
  border: none !important;
  outline: none !important;
}

/* Animations 60fps fluides sur GPU */
button, .btn, .btn-buy-glass, .product-buy-btn, .qty-btn, .variant-pill {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              background 0.25s ease, 
              box-shadow 0.25s ease, 
              color 0.25s ease !important;
  will-change: transform, background, box-shadow !important;
}

/* 2. Topbar Navigation (Floating Sticky Glass) */
.topbar-glass {
  position: sticky !important;
  top: 18px !important;
  z-index: 50 !important;
  width: 100% !important;
  max-width: 1140px !important;
  margin: 0 auto 30px auto !important;
  padding: 10px 24px !important;
  background: rgba(10, 16, 26, 0.55) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 9999px !important;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  transition: transform 0.7s cubic-bezier(0.22, 1.45, 0.36, 1), 
              box-shadow 0.4s ease, 
              border-color 0.4s ease, 
              background 0.4s ease !important;
  will-change: transform, box-shadow !important;
}

.topbar-glass:hover {
  border-color: rgba(213, 106, 148, 0.22) !important;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8), 
              0 0 25px -5px rgba(213, 106, 148, 0.18), 
              inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.topbar-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: relative !important;
  width: 100% !important;
}

.topbar-logo-link {
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
}

.topbar-logo-img {
  height: 38px !important;
  width: auto !important;
  filter: drop-shadow(0 0 12px rgba(213, 106, 148, 0.6)) !important;
  transition: transform 0.3s ease !important;
}

.topbar-logo-img:hover {
  transform: scale(1.05) !important;
}

/* Topbar Navigation Centrée Mathématiquement */
.topbar-nav {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  display: inline-flex !important;
  align-items: center !important;
  background: rgba(14, 22, 34, 0.75) !important;
  border-radius: 9999px !important;
  padding: 3px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.nav-slider {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  background: rgba(213, 106, 148, 0.18) !important;
  border-radius: 9999px !important;
  border: none !important;
  box-shadow: 0 0 18px rgba(213, 106, 148, 0.4) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  pointer-events: none !important;
}

.topbar-nav-link {
  position: relative !important;
  z-index: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 20px !important;
  border-radius: 9999px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none !important;
  transition: color 0.25s ease !important;
  border: none !important;
  outline: none !important;
}

.topbar-nav-link:hover {
  color: #ffffff !important;
}

.topbar-nav-link.active {
  color: #D56A94 !important;
}

.nav-icon {
  width: 16px !important;
  height: 16px !important;
  color: inherit !important;
  transition: transform 0.25s ease, filter 0.25s ease !important;
}

.topbar-nav-link.active .nav-icon {
  filter: drop-shadow(0 0 8px rgba(213, 106, 148, 0.95)) !important;
  transform: scale(1.1) !important;
}

/* 3. Masquer le titre Products et les barres cyan par défaut */
#products h2,
.component h2,
h2.border-l-accent-500,
h2.border-l-4,
div:has(> h2.text-3xl) {
  display: none !important;
}

/* 4. Grille de Produits & Cartes Produits Compactes (Max 360px) */
.products-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 28px !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 1140px !important;
  margin: 0 auto !important;
}

.product-card-glass {
  position: relative !important;
  background: rgba(12, 18, 28, 0.55) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  width: 360px !important;
  max-width: 360px !important;
  flex: 0 1 360px !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.35s ease, 
              box-shadow 0.35s ease !important;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6) !important;
}

.product-card-glass:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(213, 106, 148, 0.35) !important;
  box-shadow: 
    0 25px 45px -12px rgba(0, 0, 0, 0.75),
    0 0 25px -4px rgba(213, 106, 148, 0.22) !important;
}

.product-card-image-wrap {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  background: rgba(5, 8, 15, 0.8) !important;
  overflow: hidden !important;
  display: block !important;
}

.product-card-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.4s ease !important;
}

.product-card-glass:hover .product-card-img {
  transform: scale(1.04) !important;
}

.product-card-body {
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}

.product-card-title {
  font-size: 17px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  margin: 0 !important;
  line-height: 1.35 !important;
}

.product-card-title a {
  color: inherit !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.product-card-title a:hover {
  color: #D56A94 !important;
}

.product-card-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 18px !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.product-price-box {
  display: flex !important;
  flex-direction: column !important;
}

.product-price-label {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.5) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.product-price-val {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #D56A94 !important;
  text-shadow: 0 0 10px rgba(213, 106, 148, 0.35) !important;
}

.product-buy-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 9px 18px !important;
  border-radius: 12px !important;
  background: rgba(213, 106, 148, 0.12) !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 0 15px -3px rgba(213, 106, 148, 0.2) !important;
  cursor: pointer !important;
}

.product-buy-btn:hover {
  background: #D56A94 !important;
  color: #000000 !important;
  box-shadow: 0 0 25px rgba(213, 106, 148, 0.55) !important;
  transform: translateY(-2px) !important;
}

/* 5. Interface d'Achat & Modale en Verre Dépoli (Product Page) */
.product-buy-glass-card {
  position: relative !important;
  background: rgba(10, 15, 25, 0.45) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 24px !important;
  padding: 24px !important;
  box-shadow: 
    0 20px 40px -15px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.18),
    0 0 25px -4px rgba(213, 106, 148, 0.15) !important;
}

.product-glass-img-container {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.7), 0 0 25px -4px rgba(213, 106, 148, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(0, 0, 0, 0.3) !important;
}

.product-glass-img,
.product-glass-img-container img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 18px !important;
}

.variant-pill {
  background: rgba(18, 26, 40, 0.7) !important;
  border: none !important;
  outline: none !important;
  border-radius: 14px !important;
  padding: 12px 18px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin-bottom: 10px !important;
  width: 100% !important;
}

.variant-pill:hover {
  background: rgba(22, 34, 52, 0.95) !important;
  box-shadow: 0 0 15px rgba(213, 106, 148, 0.25) !important;
}

.variant-pill.selected {
  background: rgba(213, 106, 148, 0.18) !important;
  box-shadow: 0 0 20px -3px rgba(213, 106, 148, 0.4) !important;
}

.btn-buy-glass {
  background: #D56A94 !important;
  color: #000000 !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  border: none !important;
  outline: none !important;
  border-radius: 14px !important;
  padding: 14px 24px !important;
  width: 100% !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  box-shadow: 0 0 25px rgba(213, 106, 148, 0.45) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-buy-glass:hover {
  box-shadow: 0 0 35px rgba(213, 106, 148, 0.7) !important;
  transform: translateY(-2px) !important;
}

.qty-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  background: rgba(18, 26, 40, 0.7) !important;
  border: none !important;
  outline: none !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.qty-btn:hover {
  background: rgba(213, 106, 148, 0.2) !important;
  color: #D56A94 !important;
}

/* 6. Section Showcase des Fonctionnalités */
.features-showcase-section {
  width: 100% !important;
  margin-top: 40px !important;
  padding-top: 30px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.feature-glass-card {
  position: relative !important;
  background: rgba(12, 18, 28, 0.6) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 20px !important;
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.feature-glass-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(213, 106, 148, 0.35) !important;
  box-shadow: 
    0 18px 40px -10px rgba(0, 0, 0, 0.7),
    0 0 25px -4px rgba(213, 106, 148, 0.2) !important;
}

.feature-card-header {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 18px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.feature-icon-badge {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  border-radius: 12px !important;
  background: rgba(213, 106, 148, 0.12) !important;
  border: 1px solid rgba(213, 106, 148, 0.3) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #D56A94 !important;
  font-size: 18px !important;
  box-shadow: 0 0 15px rgba(213, 106, 148, 0.25) !important;
}

.feature-card-title {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 !important;
}

.feature-card-tag {
  font-size: 11.5px !important;
  color: rgba(213, 106, 148, 0.8) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  font-weight: 600 !important;
}

.feature-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.feature-list li {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.72) !important;
  line-height: 1.45 !important;
  position: relative !important;
  padding-left: 18px !important;
}

.feature-list li::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 7px !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #D56A94 !important;
  box-shadow: 0 0 6px #D56A94 !important;
}

.feature-list li strong {
  color: #ffffff !important;
  font-weight: 600 !important;
}

/* 7. Bouton Retour */
.back-btn-glass {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 16px !important;
  border-radius: 12px !important;
  background: rgba(12, 18, 28, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  margin-bottom: 20px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.back-btn-glass:hover {
  background: rgba(213, 106, 148, 0.15) !important;
  border-color: rgba(213, 106, 148, 0.4) !important;
  color: #D56A94 !important;
  transform: translateX(-4px) !important;
  box-shadow: 0 0 15px rgba(213, 106, 148, 0.25) !important;
}

/* ==========================================================================
   8. Onglets Accueil : Home (Présentation) vs Products (Catalogue)
   ========================================================================== */

/* Structure & carte de présentation */
.home-presentation-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0 40px 0;
}

.home-presentation-card {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 52px 36px;
  background: rgba(10, 16, 26, 0.65) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  border: 1px solid rgba(213, 106, 148, 0.22) !important;
  border-radius: 24px !important;
  box-shadow: 0 0 50px rgba(213, 106, 148, 0.08), inset 0 0 30px rgba(213, 106, 148, 0.04) !important;
  text-align: center;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-presentation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #D56A94, transparent);
  box-shadow: 0 0 15px #D56A94;
}

/* Badge cyber */
.presentation-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(213, 106, 148, 0.1) !important;
  border: 1px solid rgba(213, 106, 148, 0.3) !important;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #D56A94 !important;
  text-transform: uppercase;
  margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(213, 106, 148, 0.15);
}

.presentation-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D56A94;
  box-shadow: 0 0 8px #D56A94;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

/* Titre principal */
.presentation-title {
  font-size: 42px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff !important;
  margin-bottom: 16px;
}

.presentation-title .highlight {
  background: linear-gradient(135deg, #ffffff 30%, #D56A94 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 35px rgba(213, 106, 148, 0.35);
}

@media (max-width: 640px) {
  .presentation-title { font-size: 28px; }
  .home-presentation-card { padding: 36px 20px; }
}

/* Paragraphe */
.presentation-desc {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72) !important;
  max-width: 620px;
  margin: 0 auto 36px auto;
}

/* Presentation Stats (Happy Customers, Reviews, Products Sold) */
.presentation-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px auto 38px auto;
  max-width: 680px;
  width: 100%;
}

@media (max-width: 768px) {
  .presentation-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.presentation-stat-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.presentation-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #D56A94, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.presentation-stat-card:hover {
  border-color: rgba(213, 106, 148, 0.45);
  background: rgba(213, 106, 148, 0.06);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(213, 106, 148, 0.16);
}

.presentation-stat-card:hover::before {
  opacity: 1;
}

.presentation-stat-icon {
  font-size: 22px;
  color: #D56A94;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 10px rgba(213, 106, 148, 0.5));
}

.presentation-stat-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #ffffff 40%, #E885AD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.presentation-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Boutons d'action */
.presentation-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-go-products {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 34px;
  background: linear-gradient(135deg, #D56A94 0%, #B84F7B 100%) !important;
  color: #000000 !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(213, 106, 148, 0.55), 0 4px 15px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
}

.btn-go-products:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 45px rgba(213, 106, 148, 0.85), 0 6px 20px rgba(0, 0, 0, 0.45) !important;
  background: linear-gradient(135deg, #E885AD 0%, #D56A94 100%) !important;
}

.btn-go-products i {
  transition: transform 0.28s ease;
}

.btn-go-products:hover i {
  transform: translateX(5px);
}

.btn-presentation-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 600;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.btn-presentation-secondary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(213, 106, 148, 0.45) !important;
  color: #D56A94 !important;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(213, 106, 148, 0.2) !important;
}



/* ==========================================================================
   Règles de masquage / affichage Home vs Products
   ========================================================================== */

/* Animation keyframes */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroFadeOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-20px) scale(0.97);
  }
}

@keyframes productsFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes productsFadeOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
}

/* 1. PAR DÉFAUT & SUR L'ONGLET PRODUCTS : Présentation STRICTEMENT MASQUÉE */
#home-presentation,
.home-presentation-wrap,
body.tab-products #home-presentation,
body.tab-products .home-presentation-wrap,
body:not(.tab-home) #home-presentation,
body:not(.tab-home) .home-presentation-wrap {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 2. UNIQUEMENT SUR L'ONGLET HOME : Afficher la présentation */
body.tab-home #home-presentation,
body.tab-home .home-presentation-wrap {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 10px 0 40px 0 !important;
  margin: 0 auto !important;
  animation: heroFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

/* 3. SUR L'ONGLET HOME : Masquer le catalogue de produits */
body.tab-home #store-products-wrap,
body.tab-home main .components,
body.tab-home section.component,
body.tab-home [data-component-id],
body.tab-home .products-grid {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 4. SUR L'ONGLET PRODUCTS (ou hors Home) : Afficher le catalogue */
body.tab-products #store-products-wrap,
body.tab-products main .components,
body.tab-products section.component,
body.tab-products [data-component-id],
body.tab-products .products-grid,
body:not(.tab-home) #store-products-wrap,
body:not(.tab-home) main .components,
body:not(.tab-home) section.component,
body:not(.tab-home) [data-component-id] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  animation: productsFadeIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

/* Animations de transition */
body.is-switching-to-products #home-presentation {
  animation: heroFadeOut 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  pointer-events: none !important;
}

body.is-switching-to-home #store-products-wrap,
body.is-switching-to-home main .components,
body.is-switching-to-home section.component,
body.is-switching-to-home [data-component-id],
body.is-switching-to-home .products-grid {
  animation: productsFadeOut 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  pointer-events: none !important;
}

/* Bouton retour Products sur la page produit */
.product-back-wrapper {
  display: flex !important;
  align-items: center !important;
  margin-bottom: 20px !important;
  width: 100% !important;
}

.product-back-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 20px !important;
  border-radius: 9999px !important;
  background: rgba(12, 18, 28, 0.7) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  width: auto !important;
  max-width: fit-content !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

.product-back-btn:hover {
  background: rgba(213, 106, 148, 0.15) !important;
  border-color: rgba(213, 106, 148, 0.45) !important;
  color: #D56A94 !important;
  transform: translateX(-4px) !important;
  box-shadow: 0 0 20px rgba(213, 106, 148, 0.3) !important;
}

.product-back-icon {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
  stroke: currentColor !important;
  stroke-width: 2.2 !important;
  transition: transform 0.25s ease !important;
}

.product-back-btn:hover .product-back-icon {
  transform: translateX(-3px) !important;
}

/* Fix Splide carousel arrows */
.splide__arrow {
  width: 36px !important;
  height: 36px !important;
  background: rgba(10, 16, 26, 0.75) !important;
  border: 1px solid rgba(213, 106, 148, 0.35) !important;
  border-radius: 50% !important;
  backdrop-filter: blur(10px) !important;
  opacity: 0.8 !important;
  transition: all 0.2s ease !important;
}

.splide__arrow:hover {
  opacity: 1 !important;
  background: rgba(213, 106, 148, 0.2) !important;
  border-color: #D56A94 !important;
  box-shadow: 0 0 12px rgba(213, 106, 148, 0.4) !important;
}

.splide__arrow svg {
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  fill: #D56A94 !important;
}
