/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Skeleton Loader Animation */
.skeleton-loader {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.05) 25%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.05) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite ease-in-out;
  border-radius: var(--border-radius-md);
}

body.dark-mode .skeleton-loader {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.modal-skeleton {
  width: 100%;
  height: 400px;
}

/* Premium Image Styling */
.product-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 107, 53, 0.1), transparent 28%),
    radial-gradient(circle at 80% 16%, rgba(0, 212, 170, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.38));
}

.product-image::after {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.product-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-orientation: from-image;
  padding: 1.15rem;
  filter: drop-shadow(0 18px 30px rgba(15, 23, 42, 0.12));
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .product-image img {
  transform: scale(1.06) translateY(-2px);
}

.modal-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--white);
  position: relative;
  min-height: 400px;
}

.modal-image img {
  max-width: 100%;
  max-height: 450px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.modal-image img.hidden {
  opacity: 0;
  display: none;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item img,
.wishlist-item img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: contain;
  image-orientation: from-image;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42));
  padding: 0.35rem;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

:root {
  --primary-color: #ff6b35;
  --secondary-color: #004e89;
  --accent-color: #00d4aa;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.2);
  --shadow-glass: 0 8px 32px rgba(31, 38, 135, 0.15);
  --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ff8c42 100%);
  --gradient-secondary: linear-gradient(135deg, #004e89 0%, #0096c7 50%, #00b4d8 100%);
  --gradient-accent: linear-gradient(135deg, #00d4aa 0%, #00a8cc 50%, #0077b6 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  --border-radius-sm: 12px;
  --border-radius-md: 20px;
  --border-radius-lg: 30px;
  --border-radius-xl: 40px;
  --border-radius-full: 50px;
}

/* Dark Mode Variables */
body.dark-mode {
  --text-dark: #f8f9fa;
  --text-light: #cbd5e0;
  /* Brighter light text for dark mode */
  --bg-light: #0f172a;
  --white: #1e293b;
  --glass-bg: rgba(30, 41, 59, 0.8);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-glass: 0 10px 40px rgba(0, 0, 0, 0.5);
}

body.modal-open {
  overflow: hidden;
}

/* Dark Mode Text Color Fixes */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode .product-info h3,
body.dark-mode .modal-details h2 {
  color: #ffffff !important;
}

body.dark-mode p,
body.dark-mode .product-info p,
body.dark-mode .modal-details p,
body.dark-mode .spec-item span,
body.dark-mode .cart-item-info h4 {
  color: #e2e8f0 !important;
}

body.dark-mode .feature-card h3,
body.dark-mode .feature-card p {
  color: #ffffff;
}

body.dark-mode .old-price {
  color: #718096;
}

body.dark-mode .cart-total span:first-child {
  color: #ffffff;
}

body.dark-mode .empty-cart-view p {
  color: #a0aec0;
}

body.dark-mode .no-results h3 {
  color: #ffffff;
}

/* Dark Mode Specific Text Enhancements */
body.dark-mode .hero h1,
body.dark-mode .footer-section .logo span,
body.dark-mode .footer-section p {
  color: var(--primary-color) !important;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.dark-mode .floating-card span {
  color: var(--primary-color) !important;
  font-weight: 800;
}

body.dark-mode .products h2,
body.dark-mode .features h2,
body.dark-mode .footer-section h3 {
  color: var(--primary-color) !important;
}

body.dark-mode .hero p {
  color: #ffbd9b !important;
  /* Soft light orange for hero description */
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
  overflow-x: hidden;
  position: relative;
  transition: background 0.5s cubic-bezier(0.19, 1, 0.22, 1), color 0.5s ease;
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--white);
  border: 1px solid var(--glass-border);
  color: var(--primary-color);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
}

body.dark-mode::before {
  opacity: 0.05;
}

body.dark-mode .header {
  background: rgba(15, 23, 42, 0.9);
}

body.dark-mode .nav a {
  background: rgba(255, 255, 255, 0.03);
}

body.dark-mode .feature-card,
body.dark-mode .product-card,
body.dark-mode .testimonial-card,
body.dark-mode .shipping-tracker,
body.dark-mode .cart-item,
body.dark-mode .cart-sidebar-footer {
  background: #1e293b;
}

body.dark-mode .quantity-controls {
  background: #0f172a;
}

body.dark-mode .quantity-controls button {
  background: #1e293b;
}

body.dark-mode .hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

body.dark-mode .product-modal {
  background: rgba(15, 23, 42, 0.9);
}

body.dark-mode .spec-item {
  color: #e2e8f0;
}

body.dark-mode .cart-sidebar {
  background: rgba(15, 23, 42, 0.9);
}

body.dark-mode .cart-sidebar-header h3,
body.dark-mode .cart-total span:last-child {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 78, 137, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(0, 212, 170, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles & Animations */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-glass);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

/* Header Shrink on Scroll */
.header.scrolled {
  padding: 0.2rem 0;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 20px;
  transition: padding 0.4s ease;
}

.header.scrolled .container {
  padding: 0.5rem 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary-color);
  padding: 6px 12px;
  background: var(--gradient-glass);
  border-radius: var(--border-radius-full);
  border: 1px solid rgba(255, 107, 53, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px rgba(255, 107, 53, 0.1);
}

.logo:hover i {
  transform: rotate(15deg);
}

.logo i {
  font-size: 1.8rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.4s ease;
}

/* Premium Glassmorphism Navigation */
.nav ul {
  display: flex;
  list-style: none;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px;
  border-radius: var(--border-radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: var(--border-radius-full);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  background: transparent;
  border: 1px solid transparent;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

/* Specific Active/Focus effect for Glass style */
.nav a:active {
  transform: scale(0.95);
}

/* Dark Mode Navigation Enhancement */
body.dark-mode .nav ul {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .nav a {
  color: #e2e8f0;
}

body.dark-mode .nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--primary-color);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.theme-toggle,
.wishlist-btn,
.search-btn,
.cart-btn {
  background: var(--gradient-primary);
  border: none;
  color: var(--white);
  padding: 12px;
  border-radius: var(--border-radius-full);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  box-shadow: var(--shadow);
  border: 2px solid rgba(255, 255, 255, 0.2);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover,
.wishlist-btn:hover,
.search-btn:hover,
.cart-btn:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: var(--shadow-hover);
}

.theme-toggle:active,
.wishlist-btn:active,
.search-btn:active,
.cart-btn:active {
  transform: scale(0.9);
}

.wishlist-count,
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--gradient-accent);
  color: var(--white);
  border-radius: var(--border-radius-full);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
  box-shadow: var(--shadow);
  border: 2px solid var(--white);
  animation: pulseBounce 2s infinite;
}

@keyframes pulseBounce {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }
}

body.dark-mode .header {
  background: rgba(15, 23, 42, 0.9);
}

body.dark-mode .nav a {
  color: #e2e8f0;
}

body.dark-mode .nav a:hover {
  color: var(--primary-color);
}

/* Rest of the styles... */
color: var(--white);
border-radius: var(--border-radius-full);
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.8rem;
font-weight: bold;
box-shadow: var(--shadow);
border: 2px solid var(--white);
animation: pulse 2s infinite;
}

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

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

/* Hero Section */
.hero {
  background: var(--gradient-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 20px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 2;
  position: relative;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: bold;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(45deg, #ffffff, #f0f0f0, #ffffff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease, shimmer 3s ease-in-out infinite 2s;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.2s both;
}

.cta-btn {
  background: var(--white);
  color: var(--primary-color);
  border: none;
  padding: 18px 36px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: var(--border-radius-full);
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease 0.4s both;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left 0.3s ease;
  z-index: -1;
}

.cta-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-hover);
  color: var(--white);
}

.cta-btn:hover::before {
  left: 0;
}

.hero-image {
  flex: 1;
  position: relative;
  height: 500px;
  animation: fadeInRight 1s ease 0.6s both;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-glass);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: float 3s ease-in-out infinite;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.floating-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: var(--shadow-hover);
  background: rgba(255, 255, 255, 1);
}

.floating-card i {
  font-size: 2.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 12px;
  background-color: rgba(255, 107, 53, 0.1);
  border-radius: var(--border-radius-md);
}

.floating-card span {
  font-weight: bold;
  color: var(--text-dark);
  font-size: 0.9rem;
  text-align: center;
}

.card-1 {
  top: 10%;
  right: 20%;
  animation-delay: 0s;
}

.card-2 {
  top: 50%;
  right: 10%;
  animation-delay: 1s;
}

.card-3 {
  top: 80%;
  right: 30%;
  animation-delay: 2s;
}

/* Features Section */
.features {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 107, 53, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(0, 78, 137, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 3rem;
  position: relative;
}

.features h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2.5rem;
  border-radius: var(--border-radius-xl);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glass);
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-glass);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.feature-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 107, 53, 0.3);
}

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

.feature-icon {
  width: 90px;
  height: 90px;
  background: var(--gradient-accent);
  border-radius: var(--border-radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card:hover .feature-icon::before {
  opacity: 1;
}

.feature-icon i {
  font-size: 2.2rem;
  color: var(--white);
  z-index: 1;
  position: relative;
}

.feature-card h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Products Section */
.products {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
  position: relative;
}

.products::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 212, 170, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.products h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 3rem;
  position: relative;
}

.products h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-secondary);
  border-radius: 2px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-glass);
  transition: all 0.4s ease;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 107, 53, 0.3);
}

.product-image {
  height: 200px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 107, 53, 0.1), transparent 28%),
    radial-gradient(circle at 80% 16%, rgba(0, 212, 170, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.38));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-image i {
  font-size: 4rem;
  color: var(--white);
}

.product-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gradient-accent);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--border-radius-full);
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: var(--shadow);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.product-badge.sale {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.product-info {
  padding: 1.5rem;
}

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.product-category-pill,
.product-stock-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.product-category-pill {
  background: rgba(255, 255, 255, 0.72);
  color: var(--secondary-color);
}

.product-stock-pill {
  background: rgba(16, 185, 129, 0.12);
  color: #0f766e;
}

.product-stock-pill.is-empty {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.product-info h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.35;
  min-height: 3.4rem;
}

.product-info p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

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

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.rating-value {
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 700;
}

.old-price {
  text-decoration: line-through;
  color: var(--text-light);
  margin-right: 10px;
}

.new-price {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary-color);
}

.add-to-cart {
  width: 100%;
  background: var(--gradient-secondary);
  color: var(--white);
  border: none;
  padding: 14px;
  border-radius: var(--border-radius-md);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.add-to-cart::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left 0.3s ease;
  z-index: -1;
}

.add-to-cart:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

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

/* About Section */
.about {
  padding: 80px 0;
  background: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
}

.stat-label {
  color: var(--text-light);
  font-size: 0.9rem;
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-placeholder {
  width: 320px;
  height: 320px;
  background: var(--gradient-accent);
  border-radius: var(--border-radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-hover);
  position: relative;
  overflow: hidden;
  animation: float 4s ease-in-out infinite;
}

.image-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0.3;
  border-radius: var(--border-radius-xl);
}

.image-placeholder i {
  font-size: 6rem;
  color: var(--white);
  z-index: 1;
  position: relative;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section .logo {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 255, 255, 0.3);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-light);
}

/* Smart Cart Sidebar Styles */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -480px;
  width: 480px;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  transition: right 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  display: flex;
  flex-direction: column;
  padding: 0;
  /* Changed to use inner containers for padding */
  border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg);
  border-left: 1px solid rgba(255, 255, 255, 0.4);
}

.cart-sidebar.open {
  right: 0;
}

.cart-sidebar-header {
  padding: 2.5rem 2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.cart-sidebar-header h3 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -1px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-btns {
  display: flex;
  align-items: center;
  gap: 15px;
}

.clear-cart-btn {
  background: rgba(231, 76, 60, 0.1);
  border: none;
  color: #e74c3c;
  font-size: 0.90rem;
  padding: 8px 12px;
  border-radius: var(--border-radius-full);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.clear-cart-btn:hover {
  background: #e74c3c;
  color: var(--white);
  transform: translateY(-2px);
}

.close-cart {
  background: var(--bg-light);
  border: none;
  color: var(--text-dark);
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-cart:hover {
  background: var(--gradient-primary);
  color: var(--white);
  transform: rotate(90deg);
}

/* Shipping Tracker Refinement */
.shipping-tracker {
  margin: 0 2rem 1.5rem;
  background: var(--white);
  padding: 1.2rem;
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.shipping-tracker p {
  font-size: 0.85rem;
  margin-bottom: 12px;
  text-align: center;
  color: var(--text-dark);
}

.shipping-tracker p span {
  font-weight: 800;
  color: var(--primary-color);
}

.progress-bar {
  height: 6px;
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  width: 0%;
  transition: width 1s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.4);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0 2rem;
  margin-bottom: 1rem;
}

.cart-items.is-clearing .cart-item {
  animation: cartItemFadeOut 0.36s ease forwards;
}

.cart-items.is-clearing .cart-item:nth-child(2) {
  animation-delay: 0.05s;
}

.cart-items.is-clearing .cart-item:nth-child(3) {
  animation-delay: 0.1s;
}

.cart-items.is-clearing .cart-item:nth-child(4) {
  animation-delay: 0.15s;
}

/* Custom Scrollbar */
.cart-items::-webkit-scrollbar {
  width: 5px;
}

.cart-items::-webkit-scrollbar-track {
  background: transparent;
}

.cart-items::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
  padding: 1.2rem;
  background: var(--white);
  border-radius: var(--border-radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.01);
  animation: slideInUp 0.4s ease forwards;
}

.cart-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-color: rgba(255, 107, 53, 0.1);
}

.cart-item i {
  font-size: 1.4rem;
  color: var(--primary-color);
  padding: 14px;
  border-radius: var(--border-radius-sm);
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.cart-item-info p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.8rem;
  width: fit-content;
  padding: 0.35rem 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.36));
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.quantity-controls button {
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.28s ease;
  color: var(--text-dark);
}

.qty-num {
  min-width: 34px;
  text-align: center;
  font-size: 1rem;
  font-weight: 900;
  color: var(--text-dark);
  user-select: none;
}

.remove-item {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 10px;
  transition: all 0.3s ease;
}

.remove-item:hover {
  color: #e74c3c;
  transform: scale(1.2);
}

body.dark-mode .quantity-controls button {
  color: white;
}

.quantity-controls {
  gap: 0.55rem;
  padding: 0.35rem 0.45rem;
}

.qty-btn {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.qty-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.18), rgba(0, 212, 170, 0.16));
  opacity: 0;
  transition: opacity 0.28s ease;
}

.qty-btn i {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
}

.qty-btn:hover {
  transform: translateY(-2px) scale(1.06);
  color: var(--primary-color);
  box-shadow: 0 14px 24px rgba(255, 107, 53, 0.14);
}

.qty-btn:hover::before {
  opacity: 1;
}

.qty-btn:active {
  transform: scale(0.92);
}

.qty-btn-plus {
  animation: quantityPulseIn 0.45s ease;
}

.qty-btn-minus {
  animation: quantityPulseOut 0.45s ease;
}

.cart-remove-btn {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.32));
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ef4444;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease, color 0.28s ease;
}

.cart-remove-btn i {
  padding: 0;
  font-size: 0.95rem;
  color: inherit;
}

.cart-remove-btn:hover {
  transform: translateY(-2px) scale(1.05);
  background: linear-gradient(135deg, rgba(254, 226, 226, 0.92), rgba(254, 202, 202, 0.58));
  box-shadow: 0 16px 28px rgba(239, 68, 68, 0.16);
  color: #dc2626;
}

.cart-remove-btn:active {
  transform: scale(0.93);
}

body.dark-mode .quantity-controls button {
  color: #a0aec0;
}

body.dark-mode .quantity-controls button:hover {
  color: var(--primary-color);
}

body.dark-mode .cart-remove-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 255, 255, 0.12);
  color: #fca5a5;
}

body.dark-mode .cart-remove-btn:hover {
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.42), rgba(153, 27, 27, 0.26));
  color: #fecaca;
}

.quantity-controls span {
  min-width: 34px;
}

/* Number change animation */
.quantity-bounce {
  animation: bounceSmall 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceSmall {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
    color: var(--primary-color);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes quantityPulseIn {
  0% {
    transform: scale(0.92);
  }

  55% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes quantityPulseOut {
  0% {
    transform: scale(0.92);
  }

  55% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.remove-item {
  color: #ddd;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  transition: all 0.3s ease;
}

.remove-item:hover {
  color: #e74c3c;
  transform: scale(1.2);
}

.cart-sidebar-footer {
  padding: 2.5rem 2rem;
  background: var(--white);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius-lg) 0 0 0;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 2rem;
  color: var(--text-dark);
  letter-spacing: -1px;
}

.cart-total span:last-child {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.checkout-btn {
  width: 100%;
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  padding: 1.2rem;
  border-radius: var(--border-radius-md);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.checkout-btn::after {
  content: '\f178';
  /* FontAwesome right arrow */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  transition: transform 0.3s ease;
}

.checkout-btn:hover::after {
  transform: translateX(8px);
}

.checkout-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(255, 107, 53, 0.3);
}

.empty-cart-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-light);
}

.empty-cart-view i {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.2;
}

@keyframes cartItemFadeOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  z-index: 1999;
  display: none;
  animation: fadeIn 0.4s ease;
}

.cart-overlay.open {
  display: block;
}

@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Premium Toast Notification */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-dark);
  padding: 16px 28px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-hover);
  display: flex;
  align-items: center;
  gap: 15px;
  animation: slideInRightToast 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
  border-left: 5px solid var(--primary-color);
  font-weight: 600;
}

.toast i {
  font-size: 1.4rem;
  color: var(--primary-color);
}

.toast.error {
  border-left-color: #e74c3c;
}

.toast.error i {
  color: #e74c3c;
}

.toast.info {
  border-left-color: var(--secondary-color);
}

.toast.info i {
  color: var(--secondary-color);
}

@keyframes slideInRightToast {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.fade-out {
  animation: fadeOutToast 0.4s ease forwards;
}

@keyframes fadeOutToast {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(50px);
    opacity: 0;
  }
}

/* Button Click Animation */
.add-to-cart {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.add-to-cart:active {
  transform: scale(0.9) translateY(2px);
}

.cart-count {
  animation: none;
  /* Reset if previously set */
}

@keyframes bounceNumber {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.4);
  }

  100% {
    transform: scale(1);
  }
}

/* Premium Quick View Modal Styles */
.product-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%) scale(0.95);
  width: 95%;
  max-width: 900px;
  max-height: 85vh; 
  background: rgba(255, 255, 255, 0.95); /* Increased opacity for clarity */
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  z-index: 3000;
  display: none;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden; /* Prevent modal itself from scrolling, inner content will scroll */
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.product-modal.open {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Inner Scrollable Area */
.checkout-step, .modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 2.5rem;
}

/* Smart Input Fields */
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
  font-family: inherit;
  font-weight: 600;
}

/* Default Invalid State (Reddish tint) */
.form-group input:not(:placeholder-shown):invalid {
  border-color: #e74c3c;
  background: rgba(231, 76, 60, 0.02);
}

/* Smart Input Fields & Validation */
.form-group input.valid, .form-group textarea.valid {
  border-color: #27ae60 !important;
  background: rgba(46, 204, 113, 0.08) !important;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1) !important;
  color: #27ae60 !important;
}

.next-btn.ready {
  background: #27ae60 !important;
  cursor: pointer !important;
  opacity: 1 !important;
  box-shadow: 0 10px 25px rgba(39, 174, 96, 0.3) !important;
  transform: translateY(-2px);
}

.next-btn.ready:hover {
  transform: translateY(-2px);
  background: #2ecc71;
}

.checkout-footer {
  padding: 1.5rem 2.5rem;
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* Order History Internal Scroll */
.order-history {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.34));
  border-radius: 24px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

#order-list {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 8px;
  display: grid;
  gap: 0.8rem;
}

#order-list::-webkit-scrollbar { width: 4px; }
#order-list::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 10px; }

.order-history-card {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.order-history-top,
.order-history-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.order-history-top {
  margin-bottom: 0.55rem;
}

.order-history-id {
  color: var(--text-dark);
}

.order-history-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.12);
  color: var(--primary-color);
  font-size: 0.78rem;
  font-weight: 800;
}

.order-history-meta {
  color: var(--text-light);
  font-size: 0.88rem;
}

.order-history-empty {
  padding: 1rem;
  text-align: center;
  border-radius: 18px;
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.48);
}

body.dark-mode .product-modal {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .order-history {
  background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .order-history-card,
body.dark-mode .order-history-empty {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .order-history-id {
  color: #f8fafc;
}

body.dark-mode .order-history-meta {
  color: #cbd5e1;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-light);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.close-modal:hover {
  background: var(--gradient-primary);
  color: var(--white);
  transform: rotate(90deg);
}

.modal-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  height: 100%;
}

.modal-content-product {
  gap: 2rem;
  padding: 2rem;
  align-items: start;
}

.modal-image-container {
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.18));
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), 0 18px 45px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  position: sticky;
  top: 0;
  align-self: start;
}

.modal-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
}

.modal-product-stage {
  min-height: 430px;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 107, 53, 0.12), transparent 30%),
    radial-gradient(circle at 80% 18%, rgba(0, 212, 170, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.28));
}

.modal-product-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 22px 32px rgba(15, 23, 42, 0.12));
}

.modal-image i {
  font-size: 8rem;
  color: var(--white);
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.2));
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-gallery {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  padding: 1.15rem 1.25rem 1.35rem;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow-x: auto;
}

.thumb-item {
  width: 78px;
  height: 78px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  flex: 0 0 auto;
  border: none;
  padding: 0;
}

.thumb-item i {
  font-size: 1.2rem;
  color: var(--white);
}

.thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.thumb-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.58);
}

.thumb-item.active {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(0, 212, 170, 0.3);
  box-shadow: 0 14px 28px rgba(0, 212, 170, 0.14);
}

.thumb-item.active i {
  color: var(--primary-color);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-details {
  padding: 0.5rem 0.25rem 0.5rem 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.modal-details h2 {
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 0;
  color: var(--text-dark);
  letter-spacing: -1.6px;
}

.modal-details p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.modal-product-topline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.modal-category-badge,
.modal-stock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.modal-category-badge {
  color: var(--primary-color);
  background: rgba(255, 255, 255, 0.62);
}

.modal-stock-badge {
  color: #0f766e;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.16);
}

.modal-stock-badge.is-empty {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.18);
}

.modal-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
}

.modal-badge-pill,
.modal-delivery-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 38px;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.modal-badge-pill {
  color: #b45309;
  background: rgba(251, 191, 36, 0.16);
  border-color: rgba(251, 191, 36, 0.22);
}

.modal-delivery-pill {
  color: var(--text-dark);
}

.modal-delivery-pill i {
  color: var(--primary-color);
}

.modal-rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.85rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.06);
  white-space: nowrap;
  font-weight: 800;
  color: var(--text-dark);
}

.modal-rating-chip i {
  color: #f59e0b;
}

.modal-description {
  margin-bottom: 1.6rem !important;
  font-size: 1rem !important;
}

.modal-specs-grid {
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.product-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 600;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.spec-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.modal-price-action {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.4rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.modal-price-stack {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.modal-price-values {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.modal-purchase-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.9rem;
  min-width: 290px;
}

.modal-quantity-control {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.modal-qty-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-dark);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: all 0.25s ease;
}

.modal-qty-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  color: var(--primary-color);
}

.modal-qty-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.modal-qty-value {
  min-width: 36px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-dark);
}

.modal-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.modal-price-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}

.modal-price-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-color);
  letter-spacing: -0.06em;
}

.modal-old-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: line-through;
}

.modal-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-dark);
}

.modal-details .checkout-btn {
  width: auto;
  padding: 1.2rem 3rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-details .add-to-cart {
  width: 100%;
  min-width: 0;
}

.modal-details .add-to-cart.is-disabled,
.modal-details .add-to-cart:disabled {
  background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  opacity: 0.95;
}

.modal-details .add-to-cart.is-disabled::before,
.modal-details .add-to-cart:disabled::before {
  display: none;
}

.modal-buy-now-btn {
  width: 100%;
  padding: 1rem 1.25rem;
}

.modal-buy-now-btn.is-disabled,
.modal-buy-now-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.modal-reviews-section {
  margin-top: 2rem;
  padding-top: 1.25rem;
}

.modal-reviews-header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.modal-reviews-header h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
}

.modal-reviews-subtitle {
  font-size: 0.88rem;
  color: var(--text-light);
}

.review-form-panel {
  padding: 1rem;
  margin-bottom: 1.35rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.06);
}

.review-comment-box {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.62);
  margin-bottom: 0.9rem;
  resize: vertical;
  min-height: 94px;
  font-family: inherit;
}

.review-submit-btn {
  width: 100%;
}

.review-login-note {
  padding: 1rem;
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.06);
}

.review-login-note a {
  color: var(--primary-color);
  font-weight: 800;
}

.modal-review-list {
  display: grid;
  gap: 0.9rem;
}

.modal-review-empty {
  text-align: center;
  padding: 1.4rem;
  border-radius: 20px;
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.48);
}

.modal-details .checkout-btn.success {
  background: var(--accent-color);
  box-shadow: 0 10px 25px rgba(0, 212, 170, 0.3);
  transform: scale(1.05);
}

.modal-details .checkout-btn i {
  transition: transform 0.5s ease;
}

.modal-details .checkout-btn.success i {
  transform: rotate(360deg);
}

@media (max-width: 768px) {
  .modal-content {
    grid-template-columns: 1fr;
  }

  .modal-content-product {
    gap: 1.25rem;
    padding: 1.1rem;
  }

  .modal-image-container {
    position: static;
  }

  .modal-image {
    padding: 3rem;
  }

  .modal-image i {
    font-size: 6rem;
  }

  .modal-details {
    padding: 0 0.1rem 0.5rem;
  }

  .modal-details h2 {
    font-size: 1.8rem;
  }

  .modal-title-row,
  .modal-price-action {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-purchase-panel,
  .modal-action-buttons {
    width: 100%;
  }

  .modal-purchase-panel {
    min-width: 0;
  }

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

  .product-specs {
    grid-template-columns: 1fr;
  }
}

/* Search Box Refinement */
.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: var(--border-radius-full);
  padding: 4px 8px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.search-box:focus-within {
  background: var(--white);
  box-shadow: var(--shadow);
  border-color: var(--primary-color);
  transform: scale(1.02);
}

#search-input {
  width: 0;
  border: none;
  background: none;
  padding: 0;
  outline: none;
  font-family: inherit;
  font-weight: 600;
  transition: width 0.4s ease, padding 0.4s ease;
}

.search-box.active #search-input {
  width: 200px;
  padding: 0 12px;
}

.search-btn {
  background: none !important;
  box-shadow: none !important;
  color: var(--primary-color) !important;
  padding: 10px !important;
  border: none !important;
}

/* Empty Search Results */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-light);
}

.no-results i {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.2;
}

.no-results h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

/* Enhanced Product Interactions */
.product-card {
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Testimonials Slider Styles */
.testimonials {
  padding: 100px 0;
  background: var(--bg-light);
  overflow: hidden;
}

.testimonials h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.testimonial-card {
  min-width: 100%;
  padding: 3rem;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-glass);
  text-align: center;
  opacity: 0.3;
  transform: scale(0.9);
  transition: all 0.6s ease;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.testimonial-card.active {
  opacity: 1;
  transform: scale(1);
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.user-info i {
  font-size: 4rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.user-info h4 {
  font-size: 1.4rem;
  font-weight: 800;
}

.testimonial-card p {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 2rem;
}

.stars {
  color: #f1c40f;
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 3rem;
}

.dot {
  width: 12px;
  height: 12px;
  background: #ddd;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  width: 30px;
  background: var(--primary-color);
  border-radius: 10px;
}

/* Premium Checkout Modal Styles */
.checkout-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  width: 95%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  z-index: 3000;
  display: none;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.checkout-modal.open {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translate(-50%, -50%);
}

.checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.checkout-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.close-checkout {
  background: var(--bg-light);
  border: none;
  width: 36px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Step Indicator */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 32px;
  height: 32px;
  background: #eee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.step.active .step-num {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.step.completed .step-num {
  background: var(--accent-color);
  color: var(--white);
}

.step-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
}

.step.active .step-text {
  color: var(--primary-color);
}

.step-line {
  flex: 1;
  height: 2px;
  background: #eee;
  margin: 0 10px;
  margin-bottom: 20px;
}

/* Forms */
.checkout-step {
  display: none;
  animation: fadeInStep 0.4s ease forwards;
}

.checkout-step.active {
  display: block;
}

@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.03);
  border: 2px solid transparent;
  border-radius: var(--border-radius-md);
  outline: none;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
  background: var(--white);
  border-color: var(--primary-color);
  box-shadow: 0 10px 20px rgba(255, 107, 53, 0.05);
}

/* Validation States */
.form-group.has-error input,
.form-group.has-error textarea {
  border-color: #e74c3c;
  background: rgba(231, 76, 60, 0.02);
}

.form-group.has-error label {
  color: #e74c3c;
}

.form-group.is-valid input,
.form-group.is-valid textarea {
  border-color: var(--accent-color);
}

.error-msg {
  color: #e74c3c;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 6px;
  display: none;
  animation: slideInUp 0.3s ease;
}

.form-group.has-error .error-msg {
  display: block;
}

.next-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(1);
}

/* Payment Options */
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.payment-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--white);
  border: 2px solid #eee;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.payment-card input {
  display: none;
}

.payment-card i:first-of-type {
  font-size: 2rem;
  color: var(--primary-color);
}

.payment-card.active {
  border-color: var(--primary-color);
  background: rgba(255, 107, 53, 0.02);
}

.check-icon {
  margin-left: auto;
  color: var(--accent-color);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
}

.payment-card.active .check-icon {
  opacity: 1;
  transform: scale(1);
}

/* Summary Box */
.order-summary-box {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--border-radius-md);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 500;
}

.summary-item.total {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px dashed #ddd;
  font-size: 1.4rem;
  font-weight: 800;
}

.delivery-info-preview {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ddd;
  font-size: 0.9rem;
  color: var(--text-light);
}

.delivery-info-preview p {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Success View */
.checkout-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 0;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--accent-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 25px rgba(0, 212, 170, 0.3);
  animation: scaleSuccess 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleSuccess {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

.order-id {
  margin: 1.5rem 0 2rem;
  font-weight: bold;
  color: var(--text-light);
}

/* Footer Buttons */
.checkout-footer {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
}

.next-btn,
.prev-btn {
  flex: 1;
  padding: 1.2rem;
  border-radius: var(--border-radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.next-btn {
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  box-shadow: var(--shadow);
}

.prev-btn {
  background: var(--bg-light);
  color: var(--text-dark);
  border: 1px solid #ddd;
}

.next-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Dark Mode Support for Checkout */
body.dark-mode .checkout-modal {
  background: rgba(15, 23, 42, 0.9);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .payment-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
}

/* Checkout Premium Override */
.checkout-modal {
  max-width: 760px;
  max-height: 88vh;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 107, 53, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(0, 212, 170, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.22);
}

.checkout-eyebrow {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-color);
}

.checkout-header {
  padding: 2rem 2rem 1.25rem;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.18));
}

.checkout-header h2 {
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.checkout-modal .close-checkout {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
}

.checkout-modal .step-indicator {
  margin: 0;
  padding: 1.3rem 2rem 1.4rem;
  background: rgba(255, 255, 255, 0.26);
  border-bottom: 1px solid rgba(255, 255, 255, 0.48);
}

.checkout-modal .step-num {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.06);
}

.checkout-modal .step.active .step-num {
  box-shadow: 0 14px 30px rgba(255, 107, 53, 0.22);
}

.checkout-modal .step-line {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 107, 53, 0.12), rgba(0, 212, 170, 0.12));
}

.checkout-modal .checkout-step {
  padding: 1.8rem 2rem 0.5rem;
}

.checkout-section-head {
  margin-bottom: 1.4rem;
}

.checkout-section-head h3 {
  font-size: 1.28rem;
  margin-bottom: 0.35rem;
  color: var(--text-dark);
}

.checkout-section-head p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

.checkout-modal .form-group label {
  font-weight: 700;
}

.checkout-modal .form-group input,
.checkout-modal .form-group textarea {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.checkout-modal .form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.checkout-modal .form-group input:focus,
.checkout-modal .form-group textarea:focus {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 28px rgba(255, 107, 53, 0.08);
}

.payment-options {
  gap: 1rem;
}

.payment-card {
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.payment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.payment-card.active {
  border-color: rgba(255, 107, 53, 0.35);
  background: linear-gradient(135deg, rgba(255, 244, 240, 0.94), rgba(255, 255, 255, 0.54));
}

.payment-card-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.payment-card-copy h4 {
  margin-bottom: 0.2rem;
  color: var(--text-dark);
}

.payment-card-copy p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

.payment-detail-panel {
  display: none;
  margin-top: 1.1rem;
  padding: 1.15rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
}

.payment-detail-panel.active {
  display: block;
}

.payment-note,
.payment-security-note {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.payment-note i,
.payment-security-note i {
  margin-top: 0.15rem;
  color: var(--primary-color);
}

.payment-note p,
.payment-security-note span {
  margin: 0.2rem 0 0;
  color: var(--text-light);
}

.payment-form-grid {
  margin-bottom: 1rem;
}

.payment-preview-card {
  margin-bottom: 1rem;
  padding: 1.2rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.36), transparent 26%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.92));
  color: #f8fafc;
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.18);
}

.payment-preview-top,
.payment-preview-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.payment-preview-chip,
.payment-brand-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-brand-badge {
  background: rgba(255, 107, 53, 0.2);
  color: #fff7ed;
}

.payment-preview-number {
  display: block;
  margin: 1.6rem 0;
  font-size: 1.45rem;
  letter-spacing: 0.12em;
}

.payment-preview-bottom span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.68);
}

.payment-preview-bottom strong {
  font-size: 0.95rem;
}

.order-summary-box {
  padding: 1.3rem;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.summary-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.summary-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}

.summary-topline strong {
  font-size: 2rem;
  color: var(--primary-color);
  letter-spacing: -0.05em;
}

.summary-payment-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-weight: 800;
  color: var(--text-dark);
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.summary-card {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.summary-card strong {
  display: block;
  color: var(--text-dark);
}

.summary-card p {
  margin: 0.35rem 0 0;
  color: var(--text-light);
  line-height: 1.5;
}

.order-summary-items {
  display: grid;
  gap: 0.8rem;
}

.summary-item-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.54);
}

.summary-item-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 16px;
}

.summary-item-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.summary-item-copy strong {
  color: var(--text-dark);
}

.summary-item-copy span {
  color: var(--text-light);
  font-size: 0.9rem;
}

.summary-item-price {
  color: var(--text-dark);
}

.checkout-footer {
  margin-top: 0;
  padding: 1.3rem 2rem 2rem;
  background: rgba(255, 255, 255, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.48);
}

.next-btn,
.prev-btn {
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
}

.prev-btn {
  background: rgba(255, 255, 255, 0.72);
}

.checkout-success {
  padding: 3rem 2rem;
}

.checkout-processing {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  min-height: 360px;
}

.checkout-processing-card,
.checkout-success-card {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.38));
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.processing-orb,
.success-badge {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.processing-orb {
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(255, 107, 53, 0.28));
  box-shadow: 0 0 0 18px rgba(255, 107, 53, 0.08);
  animation: processingPulse 1.8s ease-in-out infinite;
}

.processing-rings {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}

.processing-rings span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-color);
  animation: processingDots 1.1s ease-in-out infinite;
}

.processing-rings span:nth-child(2) {
  animation-delay: 0.15s;
}

.processing-rings span:nth-child(3) {
  animation-delay: 0.3s;
}

.checkout-processing-card h3,
.checkout-success-card h2 {
  color: var(--text-dark);
}

.checkout-processing-card p,
.checkout-success-card p {
  margin: 0.5rem 0 0;
  color: var(--text-light);
  line-height: 1.7;
}

.success-badge {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.95), rgba(21, 128, 61, 0.88));
  color: white;
  box-shadow: 0 22px 40px rgba(0, 212, 170, 0.24);
}

.success-badge i {
  font-size: 2rem;
}

.checkout-success-eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-color);
}

.checkout-success-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.success-meta-item {
  padding: 1rem;
  text-align: left;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.success-meta-item span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}

.success-meta-item strong {
  color: var(--text-dark);
}

.checkout-success-btn {
  margin-top: 1.5rem;
  width: 100%;
}

.auth-modal {
  max-width: 560px;
  max-height: 88vh;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at top left, rgba(255, 107, 53, 0.14), transparent 26%),
    radial-gradient(circle at top right, rgba(0, 212, 170, 0.1), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88));
}

.auth-modal::-webkit-scrollbar {
  width: 6px;
}

.auth-modal::-webkit-scrollbar-thumb {
  background: rgba(255, 107, 53, 0.28);
  border-radius: 999px;
}

.auth-modal-header {
  padding: 2.8rem 2.8rem 1.3rem;
  text-align: center;
}

.auth-modal-eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-color);
}

.auth-modal-header h2 {
  font-size: 2rem;
  margin-bottom: 0.55rem;
  color: var(--text-dark);
  letter-spacing: -0.05em;
}

.auth-modal-header p {
  color: var(--text-light);
  line-height: 1.7;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0 2.8rem 1.35rem;
}

.auth-tab {
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--text-light);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.28s ease;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.auth-tab.active {
  color: var(--text-dark);
  background: linear-gradient(135deg, rgba(255, 244, 240, 0.96), rgba(255, 255, 255, 0.62));
  border-color: rgba(255, 107, 53, 0.28);
  transform: translateY(-1px);
}

.auth-form,
.auth-profile-view {
  padding: 0 2.8rem 2.8rem;
}

.auth-form .form-group label {
  font-weight: 700;
}

.auth-form .form-group input {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.auth-form .form-group input:focus {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 28px rgba(255, 107, 53, 0.08);
}

.auth-submit-btn {
  width: 100%;
}

.auth-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.auth-secondary-btn {
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--text-dark);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.06);
  transition: all 0.28s ease;
}

.auth-secondary-btn:hover {
  transform: translateY(-2px);
  color: var(--primary-color);
}

.auth-profile-actions {
  margin-top: 1rem;
}

.auth-profile-card {
  padding: 1.2rem;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.08);
}

.auth-profile-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.auth-profile-avatar {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.16), rgba(0, 212, 170, 0.16));
  color: var(--primary-color);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
}

.auth-profile-avatar i {
  font-size: 1.35rem;
}

.auth-profile-card h3 {
  color: var(--text-dark);
}

.auth-profile-card p {
  color: var(--text-light);
}

.auth-profile-card .order-history {
  margin-top: 0;
}

.auth-logout-btn {
  margin-top: 1rem;
}

@keyframes processingPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 18px rgba(255, 107, 53, 0.08);
  }

  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 26px rgba(255, 107, 53, 0.05);
  }
}

@keyframes processingDots {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }

  50% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

body.dark-mode .checkout-modal {
  background:
    radial-gradient(circle at top left, rgba(255, 107, 53, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(0, 212, 170, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.88));
}

body.dark-mode .checkout-header,
body.dark-mode .checkout-modal .step-indicator,
body.dark-mode .checkout-footer {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .checkout-section-head h3,
body.dark-mode .payment-card-copy h4,
body.dark-mode .summary-card strong,
body.dark-mode .summary-item-copy strong,
body.dark-mode .summary-item-price,
body.dark-mode .summary-payment-chip {
  color: #f8fafc;
}

body.dark-mode .checkout-section-head p,
body.dark-mode .payment-card-copy p,
body.dark-mode .payment-note p,
body.dark-mode .payment-security-note span,
body.dark-mode .summary-card p,
body.dark-mode .summary-item-copy span,
body.dark-mode .summary-label {
  color: #cbd5e1;
}

body.dark-mode .payment-card,
body.dark-mode .payment-detail-panel,
body.dark-mode .order-summary-box,
body.dark-mode .summary-card,
body.dark-mode .summary-item-row,
body.dark-mode .checkout-modal .form-group input,
body.dark-mode .checkout-modal .form-group textarea,
body.dark-mode .payment-card-icon,
body.dark-mode .summary-payment-chip,
body.dark-mode .checkout-modal .close-checkout,
body.dark-mode .checkout-modal .step-num,
body.dark-mode .prev-btn,
body.dark-mode .checkout-processing-card,
body.dark-mode .checkout-success-card,
body.dark-mode .success-meta-item {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .payment-preview-card {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 26%),
    linear-gradient(135deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.94));
}

body.dark-mode .checkout-processing-card h3,
body.dark-mode .checkout-success-card h2,
body.dark-mode .success-meta-item strong {
  color: #f8fafc;
}

body.dark-mode .checkout-processing-card p,
body.dark-mode .checkout-success-card p,
body.dark-mode .success-meta-item span {
  color: #cbd5e1;
}

body.dark-mode .auth-modal {
  background:
    radial-gradient(circle at top left, rgba(255, 107, 53, 0.14), transparent 26%),
    radial-gradient(circle at top right, rgba(0, 212, 170, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.88));
}

body.dark-mode .auth-modal-header h2,
body.dark-mode .auth-tab.active,
body.dark-mode .auth-profile-card h3 {
  color: #f8fafc;
}

body.dark-mode .auth-modal-header p,
body.dark-mode .auth-tab,
body.dark-mode .auth-profile-card p {
  color: #cbd5e1;
}

body.dark-mode .auth-tab,
body.dark-mode .auth-form .form-group input,
body.dark-mode .auth-profile-card,
body.dark-mode .auth-profile-avatar,
body.dark-mode .auth-secondary-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 768px) {
  .checkout-modal {
    width: 96%;
    max-height: 90vh;
  }

  .checkout-header,
  .checkout-modal .step-indicator,
  .checkout-modal .checkout-step,
  .checkout-footer {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .checkout-header h2 {
    font-size: 1.55rem;
  }

  .auth-modal-header,
  .auth-tabs,
  .auth-form,
  .auth-profile-view {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .auth-modal-header {
    padding-top: 2.4rem;
  }

  .auth-modal {
    max-height: 90vh;
  }

  .auth-action-row {
    grid-template-columns: 1fr;
  }

  .summary-grid,
  .form-grid,
  .checkout-success-meta {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: auto;
  }

  .summary-topline,
  .summary-item-row {
    grid-template-columns: 1fr;
  }

  .summary-item-thumb {
    width: 100%;
    height: 160px;
  }
}

body.dark-mode .order-summary-box {
  background: #0f172a;
}

/* Wishlist Styles */
.wishlist-btn {
  background: var(--white);
  border: 1px solid var(--glass-border);
  color: #e74c3c;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
}

.wishlist-btn:hover {
  transform: scale(1.1);
  color: #c0392b;
}

.wishlist-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #e74c3c;
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  border: 2px solid var(--white);
}

/* Wishlist Sidebar */
.wishlist-sidebar {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.68) 100%);
  backdrop-filter: blur(34px) saturate(180%);
  -webkit-backdrop-filter: blur(34px) saturate(180%);
  box-shadow: -16px 0 45px rgba(15, 23, 42, 0.12), var(--shadow-glass);
  z-index: 2000;
  transition: right 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  display: flex;
  flex-direction: column;
  padding: 2.5rem;
  border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg);
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.wishlist-sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 107, 53, 0.16), transparent 35%),
    radial-gradient(circle at 80% 15%, rgba(0, 212, 170, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02));
  pointer-events: none;
  opacity: 0.95;
}

.wishlist-sidebar.open {
  right: 0;
}

.wishlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.wishlist-header h3 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 45%, #00b894 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.close-wishlist {
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.55);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s ease;
}

.close-wishlist:hover {
  transform: translateY(-2px) scale(1.04);
  background: rgba(255, 255, 255, 0.5);
}

.wishlist-items {
  flex: 1;
  overflow-y: auto;
  position: relative;
  z-index: 1;
  padding-right: 6px;
}

.wishlist-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 1rem 1.1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.34);
  border-radius: 24px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  animation: slideInUp 0.4s ease forwards;
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}

.wishlist-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.wishlist-thumb-wrap {
  width: 78px;
  height: 78px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.wishlist-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wishlist-item .wishlist-thumb {
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
}

.wishlist-item-info {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.wishlist-item-info h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--text-dark);
  line-height: 1.35;
}

.wishlist-item-meta {
  font-size: 0.8rem;
  text-transform: capitalize;
  letter-spacing: 0.04em;
  color: var(--text-light);
  margin-bottom: 0.7rem;
}

.wishlist-item-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.wishlist-item-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-color);
}

.wishlist-item-stock {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0f766e;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.18);
}

.wishlist-item-stock.is-empty {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.18);
}

.wishlist-item-actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.wishlist-action-btn {
  appearance: none;
  border: none;
  min-height: 44px;
  border-radius: var(--border-radius-md);
  padding: 0 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.83rem;
  letter-spacing: 0.01em;
  color: var(--white);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.wishlist-action-btn i {
  font-size: 0.95rem;
}

.wishlist-action-btn:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-hover);
}

.wishlist-action-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--shadow);
}

.wishlist-cart-btn {
  background: var(--gradient-secondary);
}

.wishlist-remove-btn {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.promo-code-box {
  background: rgba(255, 255, 255, 0.42) !important;
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.promo-code-box input {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.promo-code-box button {
  box-shadow: 0 12px 24px rgba(0, 78, 137, 0.18);
}

#login-to-review {
  background: rgba(255, 255, 255, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.46);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.remove-from-wishlist:hover {
  background: #e74c3c !important;
  color: white !important;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

body.dark-mode .wishlist-actions button {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Floating Heart on Product Card */
.wishlist-toggle {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s ease;
  color: #ddd;
}

.wishlist-toggle.active {
  color: #e74c3c;
  background: white;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
}

.wishlist-toggle:hover {
  transform: scale(1.1);
}

.empty-wishlist-view {
  text-align: center;
  padding-top: 4rem;
  color: var(--text-light);
}

.empty-wishlist-view i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.2;
}

/* Dark Mode Adjustments */
body.dark-mode .wishlist-sidebar {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.72));
}

body.dark-mode .wishlist-item {
  background: rgba(30, 41, 59, 0.72);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .close-wishlist,
body.dark-mode .promo-code-box,
body.dark-mode #login-to-review,
body.dark-mode .wishlist-thumb-wrap {
  background: rgba(30, 41, 59, 0.62);
  border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .wishlist-item-meta {
  color: rgba(226, 232, 240, 0.72);
}

body.dark-mode .wishlist-toggle {
  background: rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
  }

  50% {
    box-shadow: 0 0 40px rgba(255, 107, 53, 0.6);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav ul {
    display: none;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 100px 20px 60px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-image {
    height: 300px;
    margin-top: 2rem;
  }

  .floating-card {
    position: relative;
    margin: 10px;
  }

  .card-1,
  .card-2,
  .card-3 {
    position: relative;
    top: auto;
    right: auto;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .features h2,
  .products h2,
  .about-text h2 {
    font-size: 2rem;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* --- Search Box Styles --- */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 0;
  border-radius: 25px;
  border: 1px solid var(--glass-border);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 40px;
  height: 40px;
  overflow: hidden;
}

.search-box.active {
  width: 250px;
  background: var(--white);
  padding: 0 15px;
  justify-content: flex-start;
}

#search-input {
  border: none;
  background: transparent;
  outline: none;
  width: 0;
  font-family: inherit;
  transition: width 0.4s ease;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.search-box.active #search-input {
  width: 180px;
  margin-left: 10px;
}

.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
}

body.dark-mode .search-btn { color: white; }
body.dark-mode #search-input { color: white; }
body.dark-mode .search-box.active { background: rgba(30, 41, 59, 0.9); }

/* --- Premium Smart Badge System --- */
.categories-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.tab-btn {
  padding: 10px 22px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Category Specific Glowing Colors */
.tab-btn[data-category="all"].active { background: rgba(52, 152, 219, 0.15); border-color: #3498db; color: #2980b9; box-shadow: 0 0 15px rgba(52, 152, 219, 0.3); }
.tab-btn[data-category="phones"].active { background: rgba(46, 204, 113, 0.15); border-color: #2ecc71; color: #27ae60; box-shadow: 0 0 15px rgba(46, 204, 113, 0.3); }
.tab-btn[data-category="laptops"].active { background: rgba(155, 89, 182, 0.15); border-color: #9b59b6; color: #8e44ad; box-shadow: 0 0 15px rgba(155, 89, 182, 0.3); }
.tab-btn[data-category="accessories"].active { background: rgba(241, 196, 15, 0.15); border-color: #f1c40f; color: #f39c12; box-shadow: 0 0 15px rgba(241, 196, 15, 0.3); }
.tab-btn[data-category="tablets"].active { background: rgba(231, 76, 60, 0.15); border-color: #e74c3c; color: #c0392b; box-shadow: 0 0 15px rgba(231, 76, 60, 0.3); }

.tab-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  border-color: var(--primary-color);
}

/* Smart Sort Badge */
.sort-wrapper {
  padding: 4px 12px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
}

.sort-wrapper.status-default { border-color: #3498db; background: rgba(52, 152, 219, 0.1); box-shadow: 0 4px 15px rgba(52, 152, 219, 0.1); }
.sort-wrapper.status-price-asc { border-color: #2ecc71; background: rgba(46, 204, 113, 0.1); box-shadow: 0 4px 15px rgba(46, 204, 113, 0.1); }
.sort-wrapper.status-price-desc { border-color: #e74c3c; background: rgba(231, 76, 60, 0.1); box-shadow: 0 4px 15px rgba(231, 76, 60, 0.1); }
.sort-wrapper.status-newest { border-color: #9b59b6; background: rgba(155, 89, 182, 0.1); box-shadow: 0 4px 15px rgba(155, 89, 182, 0.1); }

.sort-select {
  background: transparent;
  border: none;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 6px 25px 6px 8px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 5px center;
  background-size: 12px;
}

body.dark-mode .tab-btn { color: #e2e8f0; }
body.dark-mode .tab-btn.active { color: white; }
body.dark-mode .sort-select { 
  color: white; 
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* --- Star Rating System --- */
.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

.stars {
  color: #f1c40f;
  font-size: 0.85rem;
}

.rating-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light);
}

.star-rating-input {
  display: flex;
  flex-direction: row-reverse; /* For CSS hover effect */
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 1rem;
}

.star-rating-input i {
  font-size: 1.5rem;
  color: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.star-rating-input i:hover,
.star-rating-input i:hover ~ i,
.star-rating-input i.active,
.star-rating-input i.active ~ i {
  color: #f1c40f;
  transform: scale(1.2);
  text-shadow: 0 0 10px rgba(241, 196, 15, 0.4);
}

.modal-reviews-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.review-card {
  padding: 1.15rem 1.2rem;
  border-radius: 20px;
  margin-bottom: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.24));
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.review-user {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 8px;
}

.review-user strong {
  font-size: 0.95rem;
  color: var(--text-dark);
}

.review-content {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-light);
}

body.dark-mode .review-card {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

body.dark-mode .modal-reviews-section {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.product-card {
  animation: fadeInScale 0.5s ease forwards;
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
