/* ==========================================================================
   SHOPS2FOU - PREMIUM STYLESHEET
   Design Theme: Dark Glassmorphism & Cyber-Indigo
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Sleek Modern Dark/Black Theme */
  --bg-base: #090a0f;
  --bg-surface: #13151c;
  --bg-surface-glass: rgba(19, 21, 28, 0.95);
  --border-glass: #262935;
  --border-focus: #2563eb;

  --primary: #2563eb;
  --primary-hover: #3b82f6;
  --primary-glow: rgba(37, 99, 235, 0.25);

  --secondary: #3b82f6;
  --secondary-hover: #60a5fa;

  --accent: #2563eb;
  --accent-glow: rgba(37, 99, 235, 0.2);

  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-heading: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: #000000 !important;
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/space_earth_planets.png'), url('space_earth_planets.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  cursor: auto !important;
}

/* Restore normal cursor behavior on interactive elements */
a,
button,
label,
[role="button"],
.btn,
.card,
.product-card {
  cursor: pointer;
}

input,
textarea {
  cursor: text;
}

/* Ambient glow backgrounds */
body::before {
  content: '';
  position: absolute;
  top: -5%;
  left: 20%;
  width: 60%;
  height: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, rgba(168, 85, 247, 0) 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(120px);
}

body::after {
  content: '';
  position: absolute;
  bottom: 5%;
  right: 10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.25) 0%, rgba(236, 72, 153, 0) 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(140px);
}

/* Typography elements */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

input,
button,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ==========================================================================
   GLASSMORPHISM COMPONENT UTILITY
   ========================================================================== */
.glass {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

.glass-interactive {
  transition: var(--transition-normal);
}

.glass-interactive:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.1) inset;
  transform: translateY(-4px);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  background: rgba(9, 13, 22, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 65%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo i {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.8rem;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 20px;
}

.nav-links li {
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 20px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-links a:hover,
.nav-links li.active a {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Action Buttons */
.btn-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.btn-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  height: 20px;
  min-width: 20px;
  padding: 0 6px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-base);
  animation: pulse-badge 2s infinite;
}

.btn-setup {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #34d399;
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-setup:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.4) 0%, rgba(5, 150, 105, 0.4) 100%);
  border-color: #34d399;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero-section {
  margin-top: 110px;
  padding: 40px 4%;
  display: flex;
  justify-content: center;
}

.hero-banner {
  width: 100%;
  max-width: 1300px;
  min-height: 420px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  right: -5%;
  top: -10%;
  width: 50%;
  height: 120%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  z-index: 2;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(219, 39, 119, 0.15) 100%);
  border: 1px solid rgba(236, 72, 153, 0.35);
  border-radius: 20px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 550px;
  margin-bottom: 35px;
}

.hero-cta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  border-radius: 30px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 30px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-card {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  transform: rotate(6deg);
  animation: float 6s ease-in-out infinite;
}

.hero-card i {
  font-size: 6rem;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
}

.hero-card .percent {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}

/* ==========================================================================
   BROWSE & FILTERS
   ========================================================================== */
.catalog-section {
  padding: 40px 4% 80px 4%;
  max-width: 1400px;
  margin: 0 auto;
}

.controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  width: 100%;
  max-width: 450px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 30px;
  transition: var(--transition-normal);
}

.search-box:focus-within {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.search-box i {
  color: var(--text-muted);
}

.search-box input {
  width: 100%;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.filters-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
}

.filter-select {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 30px;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-normal);
}

.filter-select:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* Category Filter Tags */
.category-tags, .categories-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  overflow: visible !important;
  margin-bottom: 24px !important;
  padding-bottom: 0 !important;
}

.category-tags::-webkit-scrollbar {
  display: none !important;
}

.tag-btn {
  padding: 8px 16px !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #cffafe !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
}

.tag-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

.tag-btn.active {
  background: #0084ff !important;
  border-color: #0084ff !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(0, 132, 255, 0.6) !important;
}

/* ==========================================================================
   PRODUCT GRID & CARDS
   ========================================================================== */
.product-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  width: 100% !important;
}

.product-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: relative !important;
  overflow: hidden !important;
  padding: 18px 24px !important;
  width: 100% !important;
}

.discount-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, var(--accent) 0%, #db2777 100%);
  color: white;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 12px;
  box-shadow: 0 4px 10px var(--accent-glow);
  z-index: 2;
}

.stock-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  z-index: 2;
}

.stock-tag.in-stock {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.product-image-container {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: var(--border-radius-sm);
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03), transparent);
  position: relative;
}

.product-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-normal);
  padding: 15px;
}

.product-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-image-container i.prod-placeholder {
  font-size: 5rem;
  color: var(--text-muted);
  opacity: 0.45;
  transition: var(--transition-normal);
}

.product-card:hover .product-image-container i.prod-placeholder {
  transform: scale(1.1);
  opacity: 0.8;
  color: var(--primary);
}

.product-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.rating-container {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--warning);
}

.rating-container span {
  color: var(--text-secondary);
}

.price-container {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
  margin-bottom: 15px;
}

.current-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.original-price {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.btn-add-cart {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-normal);
}

.product-card:hover .btn-add-cart {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-add-cart:active {
  transform: scale(0.97);
}

/* ==========================================================================
   SLIDING CART DRAWER
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 100%;
  max-width: 450px;
  height: 100vh;
  z-index: 201;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
  transition: right var(--transition-normal) cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer.active {
  right: 0;
}

.drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-header h3 {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-header h3 i {
  color: var(--primary);
}

.drawer-close {
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.drawer-close:hover {
  color: var(--text-primary);
  transform: rotate(90deg);
}

.drawer-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.empty-cart-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  gap: 15px;
}

.empty-cart-state i {
  font-size: 4rem;
  opacity: 0.3;
}

/* Cart Item Row */
.cart-item {
  display: flex;
  gap: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-glass);
}

.cart-item-image {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
}

.cart-item-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.cart-item-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 15px;
  padding: 2px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.qty-val {
  padding: 0 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-remove-item {
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.btn-remove-item:hover {
  color: var(--error);
}

/* Drawer Footer */
.drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--border-glass);
  background: rgba(9, 13, 22, 0.5);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.summary-row.total {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 24px;
  border-top: 1px solid var(--border-glass);
  padding-top: 12px;
}

.btn-checkout {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  border-radius: 30px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 12px var(--primary-glow);
  transition: var(--transition-normal);
}

.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--primary-glow);
}

/* ==========================================================================
   CHECKOUT MODAL & MULTI-PAYMENT INTERFACE
   ========================================================================== */
.drawer-backdrop, #cart-backdrop {
  z-index: 99999 !important;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100000 !important;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1 !important;
  visibility: visible !important;
}

.modal-container {
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative !important;
  z-index: 100001 !important;
  pointer-events: auto !important;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 25px 60px rgba(0,0,0,0.95), 0 0 35px rgba(124, 58, 237, 0.4);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 24px 30px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close {
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.3rem;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 30px;
  flex-grow: 1;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.section-title {
  font-size: 1.1rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.section-title i {
  color: var(--primary);
}

/* Form Styles */
.form-group {
  margin-bottom: 15px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 6px;
}

.input-field {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.input-field:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.04);
}

/* Stripe Elements inputs styling */
.input-field-stripe {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
}

.input-field-stripe.StripeElement--focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.04);
}

#card-errors {
  color: var(--error);
  font-size: 0.8rem;
  margin-top: 8px;
  font-weight: 500;
}

/* Payment Method Selectors */
.payment-methods-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 25px;
}

.payment-tab {
  padding: 14px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-normal);
}

.payment-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.payment-tab.active {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

.payment-tab.active i {
  color: var(--primary);
}

.payment-tab i {
  font-size: 1.4rem;
}

/* Payment View Windows */
.payment-view {
  display: none;
  animation: fade-in 0.3s ease-in-out;
}

.payment-view.active {
  display: block;
}

/* Credit Card Form Elements */
.card-wrapper {
  background: rgba(255, 255, 255, 0.01);
  padding: 20px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-glass);
}

.secure-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--success);
  margin-top: 10px;
}

/* PayPal view */
.paypal-button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 24px;
  background: rgba(245, 158, 11, 0.03);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--border-radius-md);
}

.btn-paypal-checkout {
  width: 100%;
  max-width: 320px;
  background: #ffc439;
  color: #111;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-paypal-checkout:hover {
  background: #f2ba36;
  box-shadow: 0 4px 12px rgba(242, 186, 54, 0.4);
}

/* Apple Pay View */
.apple-pay-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
}

.btn-apple-pay {
  width: 100%;
  max-width: 320px;
  background: white;
  color: black;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-apple-pay:hover {
  background: #e2e8f0;
}

/* Order Totals in checkout */
.checkout-totals {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 20px;
  margin-bottom: 25px;
}

.checkout-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.checkout-row.grand-total {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 12px;
  border-top: 1px solid var(--border-glass);
  padding-top: 12px;
}

/* Submit Actions */
.btn-submit-payment {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  border-radius: 30px;
  color: white;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--primary-glow);
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit-payment:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--primary-glow);
}

/* Loading Overlay for Payments */
.processing-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 13, 22, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-radius: var(--border-radius-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.processing-overlay.active {
  opacity: 1;
  visibility: visible;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.05);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.success-icon {
  font-size: 4rem;
  color: var(--success);
  animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================================================
   MERCHANT SETUP SIDE PANEL (GUIDE)
   ========================================================================== */
.merchant-panel {
  position: fixed;
  top: 0;
  left: -500px;
  width: 100%;
  max-width: 500px;
  height: 100vh;
  z-index: 201;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
  transition: left var(--transition-normal) cubic-bezier(0.16, 1, 0.3, 1);
}

.merchant-panel.active {
  left: 0;
}

.merchant-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 30px;
}

.step-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  margin-bottom: 20px;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.step-number {
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
}

.code-box {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-sm);
  padding: 12px;
  font-family: monospace;
  font-size: 0.75rem;
  color: #34d399;
  overflow-x: auto;
  white-space: pre;
  margin-top: 8px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  background: #060910;
  border-top: 1px solid var(--border-glass);
  padding: 60px 4% 30px 4%;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto 40px auto;
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-desc {
  margin-top: 15px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  margin-top: 15px;
  border: 1px solid var(--border-glass);
  border-radius: 30px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.02);
}

.newsletter-form input {
  padding: 8px 16px;
  flex-grow: 1;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.newsletter-form button {
  background: var(--primary);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.newsletter-form button:hover {
  background: var(--primary-hover);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 20px;
}

.payment-badges-row {
  display: flex;
  gap: 15px;
  font-size: 1.6rem;
  color: var(--text-muted);
}

.payment-badges-row i:hover {
  color: var(--text-secondary);
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes pop-in {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }

  80% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes float {

  0%,
  100% {
    transform: rotate(6deg) translateY(0);
  }

  50% {
    transform: rotate(4deg) translateY(-12px);
  }
}

@keyframes pulse-badge {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.7);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(236, 72, 153, 0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   SUPPORT TICKET & PRIVATE CHAT SYSTEM
   ========================================================================== */

/* Active pulsing style for ticket button if new messages */
#ticket-btn.pulse-alert {
  border-color: var(--accent);
  background: rgba(236, 72, 153, 0.1);
  color: var(--accent);
  animation: pulse-ticket-btn 2s infinite;
}

@keyframes pulse-ticket-btn {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(236, 72, 153, 0);
  }
}

.ticket-chat-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow-y: auto;
  flex-grow: 1;
  padding: 20px;
}

/* Order summary card inside chat */
.ticket-order-card {
  padding: 15px;
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  margin-bottom: 5px;
  flex-shrink: 0;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.status-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.75rem;
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary);
}

.status-badge.delivered {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.order-date {
  color: var(--text-muted);
}

.order-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}

.ticket-order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
}

.ticket-order-item-qty {
  font-weight: 600;
  color: var(--text-primary);
}

/* Messages container */
.chat-messages-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 5px;
}

.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  margin-bottom: 4px;
  animation: message-slide-up var(--transition-normal);
}

@keyframes message-slide-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-message.bot {
  align-self: flex-start;
}

.chat-message.user {
  align-self: flex-end;
}

.message-sender {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 3px;
  margin-left: 12px;
}

.chat-message.user .message-sender {
  text-align: right;
  margin-right: 12px;
  margin-left: 0;
}

.message-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: pre-line;
}

.chat-message.bot .message-bubble {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  border-top-left-radius: 4px;
}

.chat-message.user .message-bubble {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
  border-top-right-radius: 4px;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.message-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
  margin-left: 12px;
}

.chat-message.user .message-time {
  text-align: right;
  margin-right: 12px;
  margin-left: 0;
}

/* Chat Input Footer styles */
.chat-footer {
  padding: 15px 20px;
  background: rgba(9, 13, 22, 0.7);
  border-top: 1px solid var(--border-glass);
  flex-shrink: 0;
}

.chat-input-form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 30px;
  padding: 4px 4px 4px 16px;
  transition: var(--transition-normal);
}

.chat-input-form:focus-within {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

.chat-input-form input {
  flex-grow: 1;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.chat-input-form input::placeholder {
  color: var(--text-muted);
}

.btn-send-chat {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.btn-send-chat:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

/* Typing Indicator Animation */
.typing-indicator-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
  animation: fade-in 0.2s ease-in-out;
}

.typing-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.typing-bubbles {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 8px 12px;
  border-radius: 15px;
}

.typing-bubbles span {
  width: 6px;
  height: 6px;
  background-color: var(--text-secondary);
  border-radius: 50%;
  display: inline-block;
  animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-bubbles span:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-bubbles span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typing-bounce {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1.0);
  }
}

/* Link & Code styling inside chat bubbles */
.message-bubble code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.85em;
  color: #34d399;
  /* Green/accent color for codes */
}

.message-bubble a {
  color: var(--secondary);
  text-decoration: underline;
  font-weight: 600;
}

.message-bubble a:hover {
  color: var(--secondary-hover);
}

/* Service card select elements styling */
.service-selectors-container select.input-field {
  background-color: #0b0f19;
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  outline: none;
  font-family: var(--font-body);
  cursor: pointer;
  width: 100%;
  transition: var(--transition-fast);
}

.service-selectors-container select.input-field:hover {
  border-color: rgba(99, 102, 241, 0.4);
}

.service-selectors-container select.input-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.service-selectors-container select.input-field option {
  background-color: #121826;
  color: var(--text-primary);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE CONFIG)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-banner {
    grid-template-columns: 1fr;
    padding: 40px;
    gap: 30px;
    min-height: auto;
  }

  .hero-visual {
    display: none;
    /* Hide rotation card on smaller screens */
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    /* Can add dropdown logic if needed, but for simplicity hide links */
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .controls-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    max-width: 100%;
  }

  .filters-wrapper {
    justify-content: space-between;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* User Auth Styling */
.error-msg-box {
  margin-top: 5px;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  font-size: 0.85rem;
  padding: 10px 15px;
  border-radius: 6px;
  display: none;
}

#verify-code::placeholder {
  letter-spacing: 0;
  font-size: 1rem;
}

/* Toast Notification System */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  width: 100%;
}

.toast {
  background: rgba(18, 24, 38, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), 0 0 15px rgba(99, 102, 241, 0.15);
  border-radius: 12px;
  padding: 16px 20px;
  color: #f8fafc;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  position: relative;
  overflow: hidden;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
  opacity: 0;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-icon {
  font-size: 1.25rem;
  margin-top: 2px;
}

/* Color theme icons/borders */
.toast.info {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), 0 0 15px rgba(6, 182, 212, 0.15);
}

.toast.info .toast-icon {
  color: var(--secondary);
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), 0 0 15px rgba(16, 185, 129, 0.15);
}

.toast.success .toast-icon {
  color: var(--success);
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), 0 0 15px rgba(239, 68, 68, 0.15);
}

.toast.error .toast-icon {
  color: var(--error);
}

.toast-content {
  flex-grow: 1;
}

.toast-message {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}

.toast-action {
  margin-top: 10px;
}

.toast-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.toast-btn:hover {
  background: var(--primary-hover);
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  margin-left: 10px;
}

.toast-close:hover {
  color: #fff;
}

/* Dynamic glowing line at the bottom */
.toast::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  animation: toast-progress 4s linear forwards;
}

@keyframes toast-progress {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}

/* If toast does not auto-dismiss or has action, don't show dynamic bar */
.toast.no-timeout::after {
  display: none;
}

/* ==========================================================================
   STYLE FUTURISTIC GLASSMORPHISM — FOND SPATIAL TERRE & CARTES HMI
   ========================================================================== */

:root {
  --bg-base: #000000 !important;
  --bg-surface: rgba(13, 17, 23, 0.7) !important;
  --bg-surface-glass: rgba(13, 17, 23, 0.7) !important;
  --border-glass: rgba(103, 232, 249, 0.15) !important;
  --border-focus: #06b6d4 !important;
  
  --primary: #2563eb !important;
  --primary-hover: #3b82f6 !important;
  --primary-glow: rgba(6, 182, 212, 0.5) !important;
  
  --secondary: #06b6d4 !important;
  --secondary-hover: #38bdf8 !important;
  
  --accent: #06b6d4 !important;
  --accent-glow: rgba(6, 182, 212, 0.4) !important;
  
  --text-primary: #ffffff !important;
  --text-secondary: #cffafe !important;
  --text-muted: #94a3b8 !important;
}

/* 1. FOND DE PAGE SPATIAL (TERRE À GAUCHE & PLANÈTE À DROITE — MASQUE SOMBRE DE LISIBILITÉ) */
html, body {
  background-color: #000000 !important;
  background-image: linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.78)), url('images/space_earth_planets.png'), url('space_earth_planets.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
  color: #ffffff !important;
  font-family: 'Outfit', 'Inter', sans-serif !important;
  min-height: 100vh !important;
}

/* 2. STYLE DES CARTES PRODUIT GLASSMORPHISM */
.hero-banner, .hero-section, .search-box, .controls-bar, .glass, .product-card, .modal-container, .drawer, .cart-item, .seller-card, .step-card {
  background: rgba(13, 17, 23, 0.7) !important;
  border: 1px solid rgba(103, 232, 249, 0.15) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
  position: relative !important;
}

.product-card:hover, .seller-card:hover {
  border-color: rgba(6, 182, 212, 0.45) !important;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.25) !important;
  transform: translateY(-3px) !important;
}

/* 3. STYLE DE LA ZONE D'IMAGE PRODUIT (PARCHEMIN NUMÉRIQUE & NÉON CRUCIAL) */
.product-image-container.hmi-digital-card {
  border: 2px solid rgba(6, 182, 212, 0.7) !important;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.5) !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(15, 23, 42, 0.95)) !important;
  padding: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  position: relative !important;
  min-height: 190px !important;
  overflow: hidden !important;
}

/* Motif circuit imprimé */
.hmi-circuit-pattern {
  position: absolute !important;
  inset: 0 !important;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 4px, rgba(6, 182, 212, 0.05) 4px, rgba(6, 182, 212, 0.05) 8px),
    radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 60%) !important;
  pointer-events: none !important;
}

.hmi-top-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 0.7rem !important;
  z-index: 2 !important;
}

.hmi-badge-lifetime {
  background: rgba(6, 182, 212, 0.2) !important;
  border: 1px solid rgba(6, 182, 212, 0.5) !important;
  color: #67e8f9 !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
}

.hmi-tech-code {
  color: #94a3b8 !important;
  font-family: monospace !important;
}

.hmi-center-body {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 10px 0 !important;
  z-index: 2 !important;
}

.hmi-side-gauge {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
  color: #06b6d4 !important;
  font-size: 0.9rem !important;
}

.neon-bar-stack {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.neon-bar-stack .bar {
  width: 14px !important;
  height: 3px !important;
  background: #06b6d4 !important;
  border-radius: 2px !important;
  box-shadow: 0 0 5px #06b6d4 !important;
}

.neon-bar-stack .bar.b1 { opacity: 1; }
.neon-bar-stack .bar.b2 { opacity: 0.6; }
.neon-bar-stack .bar.b3 { opacity: 0.3; }

.hmi-main-visual {
  text-align: center !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.hmi-img {
  max-height: 48px !important;
  max-width: 48px !important;
  object-fit: contain !important;
  margin-bottom: 6px !important;
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.6)) !important;
}

.hmi-icon {
  font-size: 2.2rem !important;
  color: #06b6d4 !important;
  margin-bottom: 6px !important;
  text-shadow: 0 0 12px rgba(6, 182, 212, 0.8) !important;
}

.hmi-title-main {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: 0.5px !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5) !important;
}

.hmi-tech-subtitle {
  font-size: 0.62rem !important;
  color: #67e8f9 !important;
  letter-spacing: 0.8px !important;
  margin-top: 2px !important;
  font-weight: 600 !important;
}

.hmi-bottom-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 0.68rem !important;
  color: #94a3b8 !important;
  border-top: 1px solid rgba(6, 182, 212, 0.2) !important;
  padding-top: 6px !important;
  z-index: 2 !important;
}

.hmi-bottom-row i {
  color: #06b6d4 !important;
}

.hmi-bottom-tag {
  color: #2563eb !important;
  font-weight: 700 !important;
}

/* 4. BADGE 'EN STOCK' EN HAUT À DROITE */
.stock-tag {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 10 !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
}

.stock-tag.in-stock {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2) !important;
}

/* 5. TITRES ET PRIX (BLANC PUR) */
.product-title, .current-price, h1, h2, h3, h4, h5, h6 {
  color: #ffffff !important;
}

/* 6. BOUTON 'AJOUTER AU PANIER' BLEU VIF NÉON */
.btn-add-cart, .btn-primary, .btn-submit-payment, #btn-show-register, .btn-checkout {
  background: #2563eb !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px 20px !important;
  font-weight: 700 !important;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

/* ==========================================================================
   CARTES HORIZONTALES LARGEUR UNIFIÉE (HORS EBOOKS)
   ========================================================================== */

/* Layout Grille de Catalogue */
.products-grid, .product-grid, #product-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  width: 100% !important;
}

/* Force chaque carte produit à s'organiser en ligne */
.product-card, .product-card-horizontal, .horizontal-banner-card {
  display: flex !important;
  flex-direction: row !important; /* Aligne les éléments de gauche à droite */
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  background: rgba(13, 17, 23, 0.85) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
  gap: 24px !important;
  position: relative !important;
}

/* Crée un bloc pour regrouper l'icône et le texte à gauche */
.product-card > .left-content, .product-left, .left-content {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 20px !important;
  flex: 1 !important;
}

/* Crée un bloc pour regrouper le prix, le stock et le bouton à droite */
.product-card > .right-content, .product-right, .right-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 10px !important;
  text-align: right !important;
  flex-shrink: 0 !important;
  min-width: 210px !important;
}

.product-card.horizontal-banner-card:hover {
  border-color: rgba(99, 102, 241, 0.45) !important;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.25) !important;
  transform: translateY(-2px) !important;
}

/* Zone Visuel 3D Néon (À Gauche) */
.banner-card-left {
  flex-shrink: 0 !important;
}

.brand-badge-wrapper {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.brand-3d-badge-container {
  width: 104px !important;
  height: 104px !important;
  border-radius: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  overflow: visible !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.brand-3d-badge-container.redbull-badge {
  overflow: visible !important;
}

.brand-3d-glow-effect {
  position: absolute !important;
  inset: -14px !important;
  filter: blur(18px) !important;
  opacity: 0.6 !important;
  pointer-events: none !important;
  border-radius: 26px !important;
}

.card-logo {
  width: 65% !important;
  height: auto !important;
  max-height: 65% !important;
  object-fit: contain !important;
  margin: auto !important;
  display: block !important;
  z-index: 3 !important;
}

.brand-3d-img {
  width: 65% !important;
  height: auto !important;
  max-height: 65% !important;
  margin: auto !important;
  display: block !important;
  object-fit: contain !important;
  z-index: 3 !important;
  box-sizing: border-box !important;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4)) !important;
}

.brand-3d-img.redbull-can-float,
.card-logo.redbull-can-float {
  width: 80% !important;
  height: auto !important;
  margin: auto !important;
  display: block !important;
  object-fit: contain !important;
  max-width: 84px !important;
  max-height: 104px !important;
  transform: scale(1.18) translateY(-2px) !important;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 14px rgba(37, 99, 235, 0.7)) !important;
}

.brand-name-under {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  font-family: 'Outfit', 'Inter', sans-serif !important;
  letter-spacing: 0.3px !important;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.5) !important;
  text-align: center !important;
  margin-top: 4px !important;
}

/* Zone Contenu (Au Centre) */
.banner-card-center {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 8px !important;
}

.banner-title {
  font-size: 1.3rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 !important;
  letter-spacing: 0.3px !important;
  line-height: 1.3 !important;
  font-family: 'Outfit', 'Inter', sans-serif !important;
}

.banner-category-badge-container {
  margin: 2px 0 !important;
}

.banner-category-badge {
  font-size: 0.72rem !important;
  padding: 3px 14px !important;
  border-radius: 14px !important;
  background: rgba(30, 41, 69, 0.85) !important;
  border: 1px solid rgba(59, 130, 246, 0.35) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px !important;
  display: inline-block !important;
}

.banner-description {
  font-size: 0.92rem !important;
  color: #cbd5e1 !important;
  font-weight: 400 !important;
  margin: 0 !important;
}

.card-sparkle {
  position: absolute !important;
  bottom: 16px !important;
  right: 20px !important;
  color: #94a3b8 !important;
  font-size: 1.1rem !important;
  opacity: 0.5 !important;
  pointer-events: none !important;
}

/* Zone Action & Prix (À Droite) */
.banner-card-right {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
  min-width: 210px !important;
}

.banner-stock-discount-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

.banner-stock-discount-row .stock-tag {
  position: static !important;
  top: auto !important;
  right: auto !important;
  display: inline-block !important;
}

.banner-price-container {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
}

.banner-price {
  font-size: 1.45rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3) !important;
}

/* Bouton d'action Dégradé Violet/Bleu Lumineux (Hors Ebooks) */
.banner-buy-btn, .product-card:not(.category-ebook) .btn-add-cart {
  background: linear-gradient(135deg, #6366f1 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 12px 22px !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.4) !important;
  transition: all 0.3s ease !important;
  white-space: nowrap !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.banner-buy-btn:hover, .product-card:not(.category-ebook) .btn-add-cart:hover {
  background: linear-gradient(135deg, #818cf8 0%, #3b82f6 100%) !important;
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.75) !important;
  transform: translateY(-2px) !important;
}

/* EXCLUSION STRICTE: CONSERVER LE STYLE PARCHEMIN NUMÉRIQUE POUR LES EBOOKS */
.product-card.category-ebook {
  display: flex !important;
  flex-direction: column !important;
  width: auto !important;
  max-width: 380px !important;
  padding: 16px !important;
}

/* ==========================================================================
   1. REGLES PC & DESKTOP (ECRANS > 768px) - LAYOUT CENTRÉ ET ALIGNÉ
   ========================================================================== */
@media (min-width: 769px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  /* Header PC en ligne (flex-direction: row) */
  .main-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 80px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 4% !important;
    z-index: 1000 !important;
  }

  .nav-links {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px !important;
    align-items: center !important;
  }

  .header-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
  }

  /* Conteneur principal centré sur PC (margin: 0 auto; max-width: 1200px) */
  main, .container, .main-container, .hero-section, .catalog-section, .footer-content {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  .hero-section {
    padding-top: 110px !important;
  }

  .hero-banner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 45px 50px !important;
    margin: 0 auto !important;
  }

  .hero-content {
    max-width: 650px !important;
  }

  /* Boutons PC en ligne */
  .hero-buttons, .hero-cta, .btn-group {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px !important;
    align-items: center !important;
  }

  .btn-primary, .btn-secondary, .btn-setup, .btn-outline {
    width: auto !important;
    display: inline-flex !important;
  }
}

/* ==========================================================================
   2. REGLES MOBILE STRICTEMENT ISOLEES (@media max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  /* Header / Navigation Bar Mobile */
  .main-header {
    position: relative !important;
    height: auto !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 15px !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .logo, #header-logo {
    font-size: 1.4rem !important;
    margin-bottom: 2px !important;
  }

  .nav-links {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .nav-links li a {
    padding: 6px 14px !important;
    font-size: 0.85rem !important;
  }

  .header-actions {
    width: 100% !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  /* Masquer l'adresse email sur téléphone */
  #user-profile-email {
    display: none !important;
  }

  #auth-nav-container, #auth-logged-out, #auth-logged-in {
    width: 100% !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  /* Conteneurs et Hero Section Mobile */
  .hero-section, .hero-banner, .container, .main-container, .catalog-section, .footer-content {
    width: 94% !important;
    max-width: 100% !important;
    padding: 20px 15px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  .hero-title, h1 {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
    text-align: center !important;
  }

  .hero-subtitle, p {
    font-size: 0.95rem !important;
    text-align: center !important;
  }

  /* Empiler les boutons sur téléphone */
  .hero-buttons, .hero-cta, .btn-group, .hero-content .btn-primary, .hero-content .btn-secondary {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .hero-banner button, .hero-banner .btn, .btn-setup, .btn-primary, .btn-secondary {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* Adaptations des grilles */
  .products-grid, .product-grid, #product-grid, .sellers-grid, .catalog-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
  }

  /* Modales et Tiroirs sur mobile */
  .modal-container {
    width: 94% !important;
    max-width: 100% !important;
    padding: 16px !important;
  }
}

/* ==========================================================================
   FIXED SLIDING CART DRAWER (FLOATING RIGHT PANEL)
   ========================================================================== */
.drawer-backdrop,
#cart-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 9998 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.drawer-backdrop.active,
.drawer-backdrop.is-open,
.drawer-backdrop.open,
#cart-backdrop.active,
#cart-backdrop.is-open,
#cart-backdrop.open {
  opacity: 1 !important;
  visibility: visible !important;
}

.drawer,
#cart-drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  width: 420px !important;
  max-width: 92vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  background: rgba(13, 17, 23, 0.96) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  border-left: 1px solid rgba(103, 232, 249, 0.25) !important;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.85), 0 0 35px rgba(6, 182, 212, 0.2) !important;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: column !important;
  transform: translateX(100%) !important;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow: hidden !important;
}

.drawer.active,
.drawer.is-open,
.drawer.open,
#cart-drawer.active,
#cart-drawer.is-open,
#cart-drawer.open {
  transform: translateX(0) !important;
}

.drawer-header {
  padding: 20px 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(20, 26, 36, 0.85) !important;
}

.drawer-header h3 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.drawer-header h3 i {
  color: #06b6d4 !important;
}

.drawer-close {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.drawer-close:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
  color: #ef4444 !important;
  transform: rotate(90deg) !important;
}

.drawer-content {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 20px 24px !important;
}

.empty-cart-state {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 60px 20px !important;
  color: #94a3b8 !important;
}

.empty-cart-state i {
  font-size: 3.5rem !important;
  color: rgba(255, 255, 255, 0.15) !important;
  margin-bottom: 16px !important;
}

.cart-items {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.cart-item {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 14px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  transition: all 0.2s ease !important;
}

.cart-item:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(6, 182, 212, 0.3) !important;
}

.cart-item-img {
  width: 50px !important;
  height: 50px !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  background: rgba(0, 0, 0, 0.3) !important;
  padding: 4px !important;
}

.cart-item-details {
  flex: 1 !important;
}

.cart-item-title {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  margin-bottom: 4px !important;
}

.cart-item-price {
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: #06b6d4 !important;
}

.drawer-footer {
  padding: 20px 24px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(20, 26, 36, 0.95) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.summary-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 0.95rem !important;
  color: #94a3b8 !important;
}

.summary-row.total {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  padding-top: 8px !important;
  border-top: 1px dashed rgba(255, 255, 255, 0.1) !important;
}

.btn-checkout {
  width: 100% !important;
  padding: 14px !important;
  background: linear-gradient(135deg, #06b6d4, #3b82f6) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  border: none !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4) !important;
  transition: all 0.2s ease !important;
}

.btn-checkout:hover:not(:disabled) {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 25px rgba(6, 182, 212, 0.6) !important;
}

.btn-checkout:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

#search-input:focus {
  border-color: rgba(6, 182, 212, 0.6) !important;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.25) !important;
}

#sort-select:focus {
  border-color: rgba(6, 182, 212, 0.6) !important;
}

#products-page {
  padding-top: 105px !important;
}

.redbull-badge {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 58, 138, 0.8)) !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.6) !important;
}

.redbull-can-float {
  max-height: 80% !important;
  object-fit: contain !important;
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.8));
  animation: floatRedbull 3s ease-in-out infinite;
}

@keyframes floatRedbull {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ==========================================================================
   FORCER TOUTES LES CARTES (Y COMPRIS EBOOK) À 100% LARGEUR EN BANNIÈRE HORIZONTALE
   ========================================================================== */
#product-grid, .product-grid, .products-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  width: 100% !important;
}

.product-card,
.product-card-horizontal,
.horizontal-banner-card,
.category-ebook,
.product-card.category-ebook {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  padding: 20px 24px !important;
  box-sizing: border-box !important;
  background: rgba(13, 17, 23, 0.85) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
  gap: 24px !important;
  position: relative !important;
}

.left-content,
.product-left,
.category-ebook .left-content,
.category-ebook .product-left {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 20px !important;
  flex: 1 !important;
}

.right-content,
.product-right,
.category-ebook .right-content,
.category-ebook .product-right {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 10px !important;
  text-align: right !important;
  flex-shrink: 0 !important;
  min-width: 210px !important;
}

/* Whop / Sellix Modal Mobile Adjustments & Mobile Responsive Anti-Crash */
@media (max-width: 768px) {
  /* Anti-Crash iOS Safari: Désactivation des filtres GPU lourds (backdrop-filter: blur) sur mobile */
  *, *::before, *::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body::before, body::after {
    display: none !important;
    filter: none !important;
    -webkit-filter: none !important;
  }

  .glass, .glass-interactive, .main-header, .sellix-modal-container, .modal-container, .modal-backdrop {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(13, 17, 23, 0.97) !important;
  }

  body {
    cursor: auto !important;
    overflow-x: hidden !important;
    background-attachment: scroll !important;
  }

  a, button, input, select, textarea, label, [role="button"], .btn, .card, .product-card {
    cursor: auto !important;
  }

  .main-header {
    padding: 12px 14px !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: space-between !important;
  }

  .hero-section {
    margin-top: 75px !important;
    padding: 16px 10px !important;
  }

  .hero-banner {
    grid-template-columns: 1fr !important;
    padding: 24px 16px !important;
    min-height: auto !important;
    text-align: center !important;
  }

  .hero-title {
    font-size: 2.1rem !important;
  }

  .hero-subtitle {
    font-size: 0.95rem !important;
    margin-bottom: 20px !important;
  }

  .hero-cta {
    justify-content: center !important;
  }

  .hero-visual {
    display: none !important;
  }

  .catalog-section {
    padding: 16px 10px 60px 10px !important;
  }

  .controls-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .search-box {
    max-width: 100% !important;
  }

  /* CARTES PRODUITS PASSAGE EN 1 COLONNE VERTICALE SANS DÉBORDEMENT */
  .product-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .product-card,
  .category-ebook .product-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 20px 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    gap: 16px !important;
  }

  .left-content,
  .product-left,
  .category-ebook .left-content,
  .category-ebook .product-left {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    gap: 12px !important;
  }

  .right-content,
  .product-right,
  .category-ebook .right-content,
  .category-ebook .product-right {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 10px !important;
  }

  .product-info {
    width: 100% !important;
    align-items: center !important;
    text-align: center !important;
  }

  .product-title {
    font-size: 1.05rem !important;
    text-align: center !important;
    margin-bottom: 6px !important;
  }

  .product-category {
    text-align: center !important;
  }

  .price-container {
    justify-content: center !important;
    margin-bottom: 8px !important;
  }

  .rating-container {
    justify-content: center !important;
  }

  .product-actions, 
  .product-card button,
  .right-content button {
    width: 100% !important;
    justify-content: center !important;
  }

  /* MODAL PRODUIT RESPONSIVE MOBILE - FORCE SCROLL TACTILE */
  #product-modal,
  #product-detail-modal,
  .modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    z-index: 100000 !important;
  }

  .sellix-modal-container,
  .product-modal-container,
  .product-modal-content,
  .modal-container,
  .modal-body,
  #product-detail-modal .modal-container {
    width: 94% !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    box-sizing: border-box !important;
  }

  #product-extras-container {
    margin-top: 15px !important;
    border-top: 1px solid var(--border-glass) !important;
    padding-top: 15px !important;
    display: block !important;
  }

  .sellix-modal-grid {
    grid-template-columns: 1fr !important;
    max-height: 75vh !important;
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .sellix-left-col {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    max-height: none !important;
    padding: 16px !important;
  }

  .sellix-right-col {
    padding: 16px !important;
  }

  #live-soutien-btn, #custom-support-btn, .support-widget-btn {
    position: fixed !important;
    bottom: 25px !important;
    left: 15px !important;
    right: auto !important;
    z-index: 9999 !important;
    padding: 9px 14px !important;
    font-size: 0.8rem !important;
  }
}

/* ==========================================================================
   LIVE CHAT PRIVÉ ADMINISTRATEUR STYLES
   ========================================================================== */
#live-chat-window {
  z-index: 999999 !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(124, 58, 237, 0.35) !important;
}

/* Positionnement fixe en bas à gauche pour le bouton Soutien */
#live-soutien-btn, #custom-support-btn, .support-widget-btn {
  position: fixed !important;
  bottom: 25px !important;
  left: 20px !important;
  right: auto !important;
  z-index: 9999 !important;
}