/* Enhanced Production CSS for BodyzFuel Products */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

/* Reuse CSS variables from main.css with enhancements */
:root {
  /* Enhanced Color Palette */
  --primary-glow: #FF4D00;
  --secondary-glow: #00D4FF;
  --accent-glow: #7c3aed;
  --success-glow: #10b981;
  --error-glow: #ef4444;
  --warning-glow: #f59e0b;
  
  /* Dark Theme */
  --dark-bg: #0A0B0F;
  --card-bg: #1A1B23;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --surface-elevated: rgba(255, 255, 255, 0.12);
  
  /* Premium Colors */
  --neon-blue: #00f5ff;
  --neon-purple: #bf00ff;
  --neon-orange: #ff6b00;
  --gold-accent: #FFD700;
  
  /* Typography */
  --text-light: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --text-tertiary: rgba(255, 255, 255, 0.6);
  --text-disabled: rgba(255, 255, 255, 0.38);
  
  /* Spacing & Effects */
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  --box-shadow-hover: 0 32px 64px rgba(255, 77, 0, 0.25);
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, var(--dark-bg) 0%, #16213e 100%);
  color: var(--text-light);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Enhanced Background Animation */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, var(--primary-glow) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, var(--secondary-glow) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, var(--accent-glow) 0%, transparent 50%);
  opacity: 0.03;
  z-index: -1;
  animation: backgroundPulse 12s ease-in-out infinite;
}

@keyframes backgroundPulse {
  0%, 100% { opacity: 0.03; }
  33% { opacity: 0.08; }
  66% { opacity: 0.05; }
}

/* Navbar styles (keeping existing with enhancements) */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 11, 15, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 77, 0, 0.3);
  padding: 1rem 0;
  z-index: 1000;
  transition: all var(--transition-normal);
}

.nav-container {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  font-family: 'Orbitron', monospace;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-glow);
  text-shadow: 0 0 20px var(--primary-glow);
  animation: logoGlow 2s ease-in-out infinite alternate;
  text-decoration: none;
  gap: 10px;
}

.nav-logo img {
  width: 50px;
  height: 50px;
  animation: logoSpin 6s linear infinite;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

@keyframes logoGlow {
  from { text-shadow: 0 0 20px var(--primary-glow); }
  to { text-shadow: 0 0 30px var(--primary-glow), 0 0 40px var(--primary-glow); }
}

@keyframes logoSpin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
  transition: all var(--transition-normal);
}

.nav-menu a::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-glow), var(--neon-purple));
  transition: width var(--transition-normal);
}

.nav-menu a:hover {
  color: var(--primary-glow);
  text-shadow: 0 0 10px var(--primary-glow);
}

.nav-menu a:hover::before {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cart-icon {
  position: relative;
  color: var(--text-secondary);
  font-size: 1.4rem;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.cart-icon:hover {
  color: var(--neon-orange);
  text-shadow: 0 0 15px var(--neon-orange);
  transform: scale(1.1);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(45deg, var(--error-glow), var(--neon-orange));
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  animation: pulse 2s infinite;
}

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

.login-btn {
  background: linear-gradient(45deg, var(--primary-glow), var(--accent-glow));
  color: white;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all var(--transition-normal);
  box-shadow: 0 0 20px rgba(255, 77, 0, 0.3);
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 25px rgba(255, 77, 0, 0.5);
}

/* Enhanced Search Bar */
.search-section {
  position: relative;
  max-width: 800px;
  margin: 0 auto 3rem;
  width: 100%;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 77, 0, 0.3);
  border-radius: 50px;
  padding: 0.5rem;
  transition: all var(--transition-normal);
}

.search-container:focus-within {
  border-color: var(--primary-glow);
  box-shadow: 0 0 30px rgba(255, 77, 0, 0.4);
}

.search-container input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  background: transparent;
  color: var(--text-light);
  font-size: 1rem;
  outline: none;
}

.search-container input::placeholder {
  color: var(--text-tertiary);
}

.search-container i {
  color: var(--primary-glow);
  font-size: 1.2rem;
  padding: 0 1rem;
}

/* Products Section */
.products-section {
  padding: 8rem 0 4rem;
  min-height: 100vh;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-family: 'Orbitron', monospace;
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(45deg, var(--primary-glow), var(--secondary-glow), var(--accent-glow));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-glow), var(--secondary-glow));
  border-radius: 2px;
  animation: titleUnderlineGlow 2s ease-in-out infinite alternate;
}

@keyframes titleUnderlineGlow {
  from { box-shadow: 0 0 10px var(--primary-glow); }
  to { box-shadow: 0 0 20px var(--primary-glow), 0 0 30px var(--secondary-glow); }
}

/* Enhanced Category Filter */
.category-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.cat-btn {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 77, 0, 0.3);
  color: var(--text-light);
  padding: 1rem 2rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.cat-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-slow);
}

.cat-btn:hover::before {
  left: 100%;
}

.cat-btn:hover,
.cat-btn.active {
  background: linear-gradient(45deg, var(--primary-glow), var(--accent-glow));
  color: white;
  border-color: var(--primary-glow);
  box-shadow: 0 8px 25px rgba(255, 77, 0, 0.4);
  transform: translateY(-3px);
}

/* PREMIUM PRODUCT GRID - Big Brand Style */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  padding: 0;
  animation: fadeInGrid 0.8s ease-out;
}

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

/* PREMIUM PRODUCT CARD */
.product-card {
  background: var(--card-bg);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 77, 0, 0.2);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-slow);
  position: relative;
  cursor: pointer;
  group: hover;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
    rgba(255, 77, 0, 0.1) 0%,
    rgba(0, 212, 255, 0.1) 50%,
    rgba(124, 58, 237, 0.1) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 1;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--box-shadow-hover);
  border-color: var(--primary-glow);
}

/* Product Image Container */
.product-image-container {
  position: relative;
  overflow: hidden;
  height: 280px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  position: relative;
  z-index: 2;
}

.product-card:hover .product-image {
  transform: scale(1.08);
}

/* Product Badge */
.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(45deg, var(--error-glow), var(--neon-orange));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 3;
  animation: badgePulse 2s ease-in-out infinite;
}

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

/* Product Info */
.product-info {
  padding: 2rem;
  position: relative;
  z-index: 2;
  background: var(--card-bg);
}

.product-category {
  background: linear-gradient(45deg, var(--accent-glow), var(--neon-purple));
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.sale-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--success-glow);
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.mrp {
  text-decoration: line-through;
  color: var(--text-tertiary);
  font-size: 1rem;
  font-weight: 500;
}

.discount {
  background: linear-gradient(45deg, var(--error-glow), var(--warning-glow));
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 700;
  animation: discountShine 3s ease-in-out infinite;
}

@keyframes discountShine {
  0%, 100% { box-shadow: 0 0 5px rgba(239, 68, 68, 0.5); }
  50% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.8); }
}

/* Add to Cart Button */
.add-to-cart {
  width: 100%;
  background: linear-gradient(45deg, var(--primary-glow), var(--secondary-glow));
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.add-to-cart::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left var(--transition-slow);
}

.add-to-cart:hover::before {
  left: 100%;
}

.add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 77, 0, 0.5);
}

/* FLOATING MODAL - High-end Design */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 11, 15, 0.95);
  backdrop-filter: blur(20px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: modalFadeIn 0.4s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(20px);
  }
}

.modal-content {
  background: var(--card-bg);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 77, 0, 0.3);
  border-radius: var(--border-radius-lg);
  width: 95%;
  max-width: 1100px;
  max-height: 90vh;
  display: flex;
  gap: 3rem;
  padding: 3rem;
  color: var(--text-light);
  position: relative;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow-y: auto;
}

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

.modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 2rem;
  color: var(--primary-glow);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 77, 0, 0.1);
  transition: all var(--transition-normal);
}

.modal-close:hover {
  color: var(--neon-orange);
  background: rgba(255, 77, 0, 0.2);
  transform: rotate(90deg) scale(1.1);
}

/* Modal Images */
.modal-images {
  flex: 1.2;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-image-container {
  position: relative;
  height: 500px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(255, 77, 0, 0.3);
}

.modal-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.modal-images img:hover {
  transform: scale(1.05);
}

.thumbnail-list {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-normal);
  object-fit: cover;
}

.thumb:hover,
.thumb.active {
  border-color: var(--primary-glow);
  box-shadow: 0 0 15px rgba(255, 77, 0, 0.5);
}

/* Modal Info */
.modal-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-category {
  background: linear-gradient(45deg, var(--accent-glow), var(--neon-purple));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-info h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-light);
  line-height: 1.2;
  margin: 0;
}

.modal-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  flex-grow: 1;
}

.modal-price {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 77, 0, 0.2);
  border-bottom: 1px solid rgba(255, 77, 0, 0.2);
}

.modal-price .sale-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--success-glow);
  text-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.modal-price .mrp {
  font-size: 1.3rem;
  color: var(--text-tertiary);
  text-decoration: line-through;
}

.modal-price .discount {
  background: linear-gradient(45deg, var(--error-glow), var(--warning-glow));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.modal-add-to-cart {
  flex: 1;
  background: linear-gradient(45deg, var(--primary-glow), var(--secondary-glow));
  color: white;
  border: none;
  padding: 1.2rem 2rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-add-to-cart::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left var(--transition-slow);
}

.modal-add-to-cart:hover::before {
  left: 100%;
}

.modal-add-to-cart:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 77, 0, 0.6);
}

/* Loading States */
.loading-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
}

.loading-card {
  height: 400px;
  background: var(--glass-bg);
  border-radius: var(--border-radius-lg);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { opacity: 0.5; }
  50% { opacity: 0.8; }
  100% { opacity: 0.5; }
}

/* No Results */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.no-results h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.no-results p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* RESPONSIVE DESIGN */

/* Desktop Large (5 products) */
@media (min-width: 1400px) {
  .product-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 2.5rem;
  }
}

/* Desktop Medium (4 products) */
@media (max-width: 1399px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablet (3 products) */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  
  .modal-content {
    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
  }
  
  .main-image-container {
    height: 350px;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
}

/* Mobile Large (2 products) */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* balance content inside card */
    max-height: 400px; /* prevents super tall cards */
    overflow: hidden;   /* hides extra content if too tall */
  }
  
  .product-info {
    padding: 1.5rem;
  }
  
  .modal-content {
    padding: 1.5rem;
    gap: 1.5rem;
    margin: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
}

/* Mobile Small (1 product) */
@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.5rem;
  }
  
  .modal-content {
    padding: 1rem;
    margin: 0.5rem;
  }
  
  .modal-info h2 {
    font-size: 1.8rem;
  }
  
  .main-image-container {
    height: 250px; /* shrink images for mobile */
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, var(--primary-glow), var(--secondary-glow));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, var(--secondary-glow), var(--primary-glow));
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
.product-card:focus,
.cat-btn:focus,
.add-to-cart:focus {
  outline: 2px solid var(--primary-glow);
  outline-offset: 2px;
}
/* Product Details Modal Styles */
.product-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 11, 15, 0.95);
    backdrop-filter: blur(20px);
}

.modal-container {
    position: relative;
    background: var(--card-bg);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 77, 0, 0.3);
    border-radius: var(--border-radius-lg);
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2001;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(20px);
    }
}

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

.modal-exiting {
    animation: modalFadeOut 0.3s ease-out forwards !important;
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid rgba(255, 77, 0, 0.2);
}

.modal-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-glow);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--primary-glow);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all var(--transition-normal);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 77, 0, 0.1);
    color: var(--neon-orange);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Product Images Section */
.product-images-section {
    position: sticky;
    top: 2rem;
}

.main-image-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 30px rgba(255, 77, 0, 0.3);
}

.main-product-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.thumbnail-gallery {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-normal);
    opacity: 0.7;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-glow);
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 77, 0, 0.5);
}

/* Product Info Section */
.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-breadcrumb {
    margin-bottom: 1rem;
}

.category-tag {
    background: linear-gradient(45deg, var(--accent-glow), var(--neon-purple));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-light);
    line-height: 1.2;
    margin: 0;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.stars {
    color: var(--warning-glow);
    font-size: 1.2rem;
}

.rating-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.price-section {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 77, 0, 0.2);
    border-bottom: 1px solid rgba(255, 77, 0, 0.2);
}

.current-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--success-glow);
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
    margin-bottom: 0.5rem;
}

.original-price {
    font-size: 1.4rem;
    color: var(--text-tertiary);
    text-decoration: line-through;
    margin-bottom: 0.5rem;
}

.save-amount {
    font-size: 1.1rem;
    color: var(--error-glow);
    font-weight: 600;
}

.product-description h3,
.product-features h3 {
    color: var(--primary-glow);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.product-description p {
    line-height: 1.7;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.product-features ul {
    list-style: none;
    padding: 0;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.product-features li i {
    color: var(--success-glow);
    width: 16px;
}

.quantity-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.quantity-section label {
    font-weight: 600;
    color: var(--text-light);
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 77, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background: var(--surface-elevated);
    border: none;
    color: var(--text-light);
    padding: 0.8rem 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all var(--transition-normal);
}

.qty-btn:hover {
    background: var(--primary-glow);
    color: white;
}

#modal-quantity {
    background: transparent;
    border: none;
    color: var(--text-light);
    text-align: center;
    width: 60px;
    padding: 0.8rem 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.btn-add-to-cart,
.btn-buy-now {
    flex: 1;
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-add-to-cart.primary {
    background: linear-gradient(45deg, var(--primary-glow), var(--secondary-glow));
    color: white;
}

.btn-buy-now.secondary {
    background: linear-gradient(45deg, var(--warning-glow), var(--error-glow));
    color: white;
}

.btn-add-to-cart:hover,
.btn-buy-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 77, 0, 0.6);
}

.shipping-info {
    background: rgba(255, 77, 0, 0.05);
    border: 1px solid rgba(255, 77, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.shipping-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.shipping-item:last-child {
    margin-bottom: 0;
}

.shipping-item i {
    color: var(--success-glow);
    width: 20px;
    text-align: center;
}

/* Responsive Design for Modal */
@media (max-width: 1024px) {
    .product-details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-images-section {
        position: static;
    }
    
    .main-product-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .modal-container {
        width: 98%;
        margin: 1rem;
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }
    
    .product-name {
        font-size: 2rem;
    }
    
    .current-price {
        font-size: 2rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .main-product-image {
        height: 300px;
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(45deg, var(--success-glow), var(--primary-glow));
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    z-index: 3000;
    animation: slideInNotification 0.5s ease-out;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.notification.error {
    background: linear-gradient(45deg, var(--error-glow), var(--warning-glow));
}

@keyframes slideInNotification {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
/* Loading Modal Styles */
.loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
}

.loading-container {
    background: var(--card-bg);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 77, 0, 0.3);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    text-align: center;
    z-index: 2001;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.loading-container .spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 77, 0, 0.3);
    border-top: 3px solid var(--primary-glow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.loading-container p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Enhanced Image Slider Container */
.image-slider-container {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
}

.main-image-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 77, 0, 0.3);
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

/* Slider Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 77, 0, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

.slider-btn:hover {
    background: rgba(255, 77, 0, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 77, 0, 0.6);
}

.slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Image Counter */
.image-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Enhanced Thumbnail Gallery */
.thumbnail-gallery {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
    position: relative;
    overflow: hidden;
}

.thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 77, 0, 0.2), rgba(0, 212, 255, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05) translateY(-2px);
    border-color: var(--secondary-glow);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.thumbnail:hover::before {
    opacity: 1;
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--primary-glow);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 77, 0, 0.6);
}

.thumbnail.active::before {
    background: linear-gradient(45deg, rgba(255, 77, 0, 0.1), rgba(255, 77, 0, 0.1));
    opacity: 1;
}

/* Loading Modal Styles */
.loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
}

.loading-container {
    background: var(--card-bg);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 77, 0, 0.3);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    text-align: center;
    z-index: 2001;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.loading-container .spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 77, 0, 0.3);
    border-top: 3px solid var(--primary-glow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.loading-container p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-image-wrapper {
        height: 350px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .thumbnail-gallery {
        gap: 0.5rem;
    }
    
    .image-counter {
        bottom: 10px;
        right: 10px;
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
}

/* Smooth animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.modal-entering .product-images-section {
    animation: slideIn 0.5s ease-out;
}
/* Smooth fade for main product image */
#modal-main-image {
  transition: opacity 0.4s ease-in-out;
}
#modal-main-image.fade-out {
  opacity: 0;
}
