/* G2Own Enhanced Styles - Advanced Components & Modern UI */
/* Complementary styles for enhanced-main.js functionality */

/* ===== ENHANCED VARIABLES ===== */
:root {
  /* Enhanced Color System */
  --gradient-primary: linear-gradient(135deg, #8b0000, #660000);
  --gradient-secondary: linear-gradient(135deg, #1f2937, #374151);
  --gradient-accent: linear-gradient(135deg, #fbbf24, #f59e0b);
  --gradient-success: linear-gradient(135deg, #22c55e, #16a34a);
  --gradient-danger: linear-gradient(135deg, #8b0000, #660000);
  --gradient-warning: linear-gradient(135deg, #f59e0b, #d97706);
  --gradient-info: linear-gradient(135deg, #3b82f6, #2563eb);
  
  /* Enhanced Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 15px 35px rgba(0, 0, 0, 0.25);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.3);
  --shadow-glow-red: 0 0 30px rgba(239, 68, 68, 0.4);
  --shadow-glow-blue: 0 0 30px rgba(59, 130, 246, 0.4);
  --shadow-glow-green: 0 0 30px rgba(34, 197, 94, 0.4);
  
  /* Enhanced Timing Functions */
  --ease-in-out-back: cubic-bezier(0.68, -0.6, 0.32, 1.6);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Enhanced Layout */
  --sidebar-width: 400px;
  --mobile-menu-width: 320px;
  --notification-width: 380px;
  --modal-padding: 2rem;
  
  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-modal: 1100;
  --z-sidebar: 1200;
  --z-mobile-menu: 1300;
  --z-notification: 1400;
  --z-loading: 1500;
}

/* ===== LOADING SCREEN ENHANCEMENT ===== */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #000000, #1a1a1a);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: var(--z-loading);
  transition: opacity 0.5s ease;
}

.loading-content {
  text-align: center;
  color: var(--text-primary);
}

.loading-logo {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2rem;
  animation: pulse 2s ease-in-out infinite;
}

.loading-progress-container {
  width: 300px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin: 1rem 0;
}

#loading-progress {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  transition: width 0.3s ease;
  box-shadow: var(--shadow-glow-red);
}

#loading-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}

/* ===== ENHANCED NAVIGATION ===== */
#navbar.scrolled {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(239, 68, 68, 0.2);
  box-shadow: var(--shadow-lg);
}

.nav-link {
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary-red);
  transform: translateY(-2px);
}

/* ===== MOBILE MENU ENHANCEMENT ===== */
#mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: var(--mobile-menu-width);
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(239, 68, 68, 0.2);
  z-index: var(--z-mobile-menu);
  transition: right 0.4s var(--ease-in-out-back);
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

#mobile-menu.active {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: calc(var(--z-mobile-menu) - 1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#mobile-menu.active ~ .mobile-menu-overlay {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-link {
  display: block;
  color: var(--text-primary);
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  transform: translateX(-100%);
  opacity: 0;
}

.mobile-nav-link:hover {
  color: var(--primary-red);
  padding-left: 1rem;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#mobile-menu-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

#mobile-menu-btn:hover {
  color: var(--primary-red);
  transform: scale(1.1);
}

#mobile-menu-btn.active {
  transform: rotate(90deg);
}

/* ===== CART SIDEBAR ENHANCEMENT ===== */
#cart-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: var(--sidebar-width);
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(239, 68, 68, 0.2);
  z-index: var(--z-sidebar);
  transition: right 0.4s var(--ease-in-out-back);
  display: flex;
  flex-direction: column;
}

#cart-sidebar.active {
  right: 0;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: calc(var(--z-sidebar) - 1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

#cart-sidebar.active ~ .cart-overlay,
.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-header {
  padding: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-white) 50%, var(--primary-red) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 3s ease-in-out infinite;
  text-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
}

.cart-title .gaming-icon {
  color: #ff4444;
  font-size: 1.75rem;
  filter: drop-shadow(0 0 10px rgba(255, 68, 68, 0.5));
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { 
    background-position: 0% 50%; 
  }
  50% { 
    background-position: 100% 50%; 
  }
}

@keyframes pulse-glow {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(255, 68, 68, 0.5));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 15px rgba(255, 68, 68, 0.8));
    transform: scale(1.05);
  }
}

#cart-close {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
  border-radius: 50%;
}

#cart-close:hover {
  color: var(--primary-red);
  background: rgba(239, 68, 68, 0.1);
  transform: scale(1.1);
}

.cart-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 2rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.cart-item-details {
  flex: 1;
}

.cart-item-details h4 {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.cart-item-details p {
  color: var(--primary-red);
  font-weight: 600;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.cart-item-controls button {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--primary-red);
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cart-item-controls button:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: scale(1.1);
}

.cart-item-controls span {
  color: var(--text-primary);
  font-weight: 600;
  min-width: 32px;
  text-align: center;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
  border-radius: 50%;
}

.cart-item-remove:hover {
  color: var(--primary-red);
  background: rgba(239, 68, 68, 0.1);
  transform: scale(1.1);
}

.cart-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
  font-size: 1.1rem;
}

.cart-footer {
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-total-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

#cart-total {
  color: var(--primary-red);
}

.cart-checkout-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cart-checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-red);
}

.cart-checkout-btn:active {
  transform: translateY(0);
}

/* ===== CART BUTTON ENHANCEMENT ===== */
#cart-btn {
  position: relative;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.75rem;
  border-radius: 50%;
  color: var(--primary-red);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

#cart-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: scale(1.1);
  box-shadow: var(--shadow-glow-red);
}

#cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--gradient-primary);
  color: var(--text-primary);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  animation: pulse 2s infinite;
}

/* ===== NOTIFICATION SYSTEM ENHANCEMENT ===== */
#notification-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: var(--z-notification);
  max-width: var(--notification-width);
  pointer-events: none;
}

.notification {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-xl);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-spring);
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 300px;
}

.notification:not(.translate-x-full) {
  transform: translateX(0);
}

.notification-icon {
  font-size: 1.25rem;
  font-weight: 600;
  flex-shrink: 0;
}

.notification-message {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.4;
}

.notification-close {
  background: none;
  border: none;
  color: currentColor;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  opacity: 0.7;
  flex-shrink: 0;
}

.notification-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.notification-success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(22, 163, 74, 0.9));
  border-color: rgba(34, 197, 94, 0.3);
}

.notification-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
  border-color: rgba(239, 68, 68, 0.3);
}

.notification-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(217, 119, 6, 0.9));
  border-color: rgba(245, 158, 11, 0.3);
}

.notification-info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9));
  border-color: rgba(59, 130, 246, 0.3);
}

/* ===== SEARCH ENHANCEMENT ===== */
.search-container {
  position: relative;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.search-container.active {
  opacity: 1;
  visibility: visible;
}

#search-input {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 1rem;
  width: 300px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

#search-input:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: var(--shadow-glow-red);
  transform: scale(1.02);
}

#search-input::placeholder {
  color: var(--text-muted);
}

#search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--border-radius);
  margin-top: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
  z-index: var(--z-dropdown);
  box-shadow: var(--shadow-xl);
}

.search-result-item {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-result-item:hover {
  background: rgba(239, 68, 68, 0.1);
}

.search-result-item h4 {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.search-result-category {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.search-result-price {
  color: var(--primary-red);
  font-weight: 600;
  font-size: 0.875rem;
}

.search-no-results {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== ENHANCED BUTTONS ===== */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--gradient-primary);
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-red);
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--gradient-secondary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-red);
  color: var(--primary-red);
}

.btn-outline:hover {
  background: var(--primary-red);
  color: var(--text-primary);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ===== PROGRESS BARS ===== */
.progress-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  transition: width 0.3s ease;
  box-shadow: var(--shadow-glow-red);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-primary);
  z-index: var(--z-dropdown);
  transition: width 0.1s ease;
}

/* ===== ENHANCED CARDS ===== */
.game-card,
.category-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  transition: all 0.4s var(--ease-spring);
  overflow: hidden;
  position: relative;
}

.game-card:hover,
.category-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-2xl);
  border-color: rgba(239, 68, 68, 0.3);
}

.game-card::before,
.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.game-card:hover::before,
.category-card:hover::before {
  opacity: 1;
}

.add-to-cart-btn {
  background: var(--gradient-primary);
  border: none;
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
}

.add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-red);
}

/* ===== ENHANCED STATS ===== */
.stat-item {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(139, 0, 0, 0.1);
  border-color: rgba(139, 0, 0, 0.3);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
  opacity: 1;
  transform: scale(1.1);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== STATS SECTION BACKGROUND MATCH ===== */
.stats-section {
  padding: 5rem 0;
  
  /* EXACT SAME BACKGROUND AS FEATURED GAMES AND CATEGORIES SECTIONS */
  background-color: #000000;
  background-image: 
    /* Grid pattern - same as other sections */
    linear-gradient(rgba(139, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 0, 0, 0.05) 1px, transparent 1px),
    /* Faded circles - same as other sections */
    radial-gradient(circle at 20% 30%, rgba(139, 0, 0, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 0, 0, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(139, 0, 0, 0.025) 0%, transparent 40%);
  background-size: 
    80px 80px,
    80px 80px,
    800px 800px,
    600px 600px,
    700px 700px;
  background-position:
    0 0,
    0 0,
    0 0,
    100% 0,
    50% 100%;
  
  position: relative;
  overflow: hidden;
}

/* Add the same animated background elements as other sections */
.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(139, 0, 0, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(139, 0, 0, 0.015) 0%, transparent 50%);
  animation: statsBackgroundFloat 20s ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
}

.stats-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 60% 40%, rgba(139, 0, 0, 0.018) 0%, transparent 45%),
    radial-gradient(circle at 30% 70%, rgba(139, 0, 0, 0.012) 0%, transparent 40%);
  animation: statsBackgroundFloat 25s ease-in-out infinite alternate-reverse;
  z-index: 1;
  pointer-events: none;
}

@keyframes statsBackgroundFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-10px, -10px) scale(1.02); }
}

/* Container and grid need proper z-index */
.stats-section .container,
.stats-section .stats-grid {
  position: relative;
  z-index: 10;
}

/* Stats grid styling */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  :root {
    --sidebar-width: 100vw;
    --mobile-menu-width: 100vw;
    --notification-width: calc(100vw - 2rem);
  }
  
  #cart-sidebar,
  #mobile-menu {
    width: 100vw;
  }
  
  .cart-content,
  .mobile-menu-content {
    padding: 1rem;
  }
  
  .cart-header,
  .mobile-menu-header {
    padding: 1rem;
  }
  
  #search-input {
    width: 100%;
  }
  
  .notification {
    margin: 0 1rem 1rem 1rem;
    min-width: auto;
  }
  
  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .trust-badge {
    flex-direction: column;
    text-align: center;
    padding: 1rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .loading-logo {
    font-size: 2rem;
  }
  
  .loading-progress-container {
    width: 250px;
  }
  
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .cart-item-image {
    align-self: center;
  }
  
  .cart-item-details {
    text-align: center;
    width: 100%;
  }
  
  .cart-item-controls {
    justify-content: center;
  }
}

/* ===== UTILITY CLASSES ===== */
.magnetic { transition: transform 0.3s ease; }
.glow-on-hover { transition: box-shadow 0.3s ease; }
.parallax-element { will-change: transform; }
.floating-element { animation: float 6s ease-in-out infinite; }
.no-scroll { overflow: hidden; }
.blur-bg { backdrop-filter: blur(20px); }
.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== TOOLTIP ENHANCEMENT ===== */
.tooltip {
  position: fixed;
  background: rgba(0, 0, 0, 0.9);
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: calc(var(--z-notification) + 1);
  pointer-events: none;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(239, 68, 68, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(239, 68, 68, 0.7);
}

/* ===== MODAL ENHANCEMENT ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--border-radius-lg);
  padding: var(--modal-padding);
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: scale(1);
}

/* ===== DROPDOWN ENHANCEMENT ===== */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--border-radius);
  min-width: 200px;
  z-index: var(--z-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-xl);
}

.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--primary-red);
}

.dropdown-item:last-child {
  border-bottom: none;
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.will-change-transform { will-change: transform; }
.will-change-opacity { will-change: opacity; }
.gpu-accelerated { transform: translateZ(0); }

/* ===== PRINT STYLES ===== */
@media print {
  #loading-screen,
  #mobile-menu,
  #cart-sidebar,
  #notification-container,
  .modal {
    display: none !important;
  }
}

/* Left Sidebar Preview Icon Size Override */
.preview-icon {
    width: 54px !important;
    height: 54px !important;
    font-size: 21px !important;
}
