/* Premium Production Cart CSS - BodyzFuel - Mobile Optimized */

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

:root {
  /* Enhanced Color System */
  --primary-brand: #FF4D00;
  --primary-dark: #E6440D;
  --secondary-brand: #00D4FF;
  --accent-gold: #FFD700;
  --success-green: #10B981;
  --warning-orange: #F59E0B;
  --error-red: #EF4444;
  
  /* Neutral Palette */
  --white: #FFFFFF;
  --black: #000000;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  
  /* Modern Dark Theme */
  --bg-primary: #0A0B0F;
  --bg-secondary: #1A1B23;
  --bg-tertiary: #2A2B35;
  --surface-primary: rgba(255, 255, 255, 0.05);
  --surface-secondary: rgba(255, 255, 255, 0.08);
  --surface-elevated: rgba(255, 255, 255, 0.12);
  
  /* Typography */
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --text-tertiary: rgba(255, 255, 255, 0.6);
  --text-disabled: rgba(255, 255, 255, 0.38);
  
  /* Shadows & Effects */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 6px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.25);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;
}

/* ======================
Global Reset & Base Styles
====================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.5;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  padding-top: 120px;
  line-height: 1.6;
}

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

@keyframes backgroundPulse {
  0%, 100% { opacity: 0.03; }
  50% { opacity: 0.08; }
}

/* ======================
Container & Layout
====================== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ======================
MOBILE-OPTIMIZED Back Button
====================== */
.back-btn {
  position: fixed;
  top: 90px;
  left: 1rem;
  background: var(--surface-elevated);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 77, 0, 0.3);
  color: var(--primary-brand);
  padding: 0.8rem 1.2rem;
  text-decoration: none;
  border-radius: var(--radius-xl);
  font-weight: 600;
  transition: all var(--transition-normal);
  z-index: 100;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.back-btn:hover {
  background: rgba(255, 77, 0, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-brand);
  text-shadow: 0 0 10px var(--primary-brand);
}

.back-btn i {
  font-size: 1rem;
  transition: transform var(--transition-normal);
}

.back-btn:hover i {
  transform: translateX(-3px);
}

/* ======================
MOBILE-OPTIMIZED Cart Header
====================== */
.cart-header {
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out;
  position: relative;
  padding: 0 1rem;
}

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

.cart-header h1 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.8rem, 6vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, var(--primary-brand), var(--secondary-brand), var(--warning-orange));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease-in-out infinite;
  position: relative;
  line-height: 1.2;
}

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

.cart-header h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(80px, 30vw, 120px);
  height: 3px;
  background: linear-gradient(90deg, var(--primary-brand), var(--secondary-brand));
  border-radius: var(--radius-sm);
  animation: pulseGlow 2s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  from { box-shadow: 0 0 5px var(--primary-brand); }
  to { box-shadow: 0 0 15px var(--primary-brand), 0 0 20px var(--secondary-brand); }
}

.cart-header p {
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  animation: fadeIn 1s ease-out 0.5s backwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ======================
COMPLETELY REDESIGNED MOBILE-FIRST CART ITEMS
====================== */
.cart-items-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.cart-item {
  background: var(--surface-elevated);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 77, 0, 0.2);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  animation: slideInUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
  
  /* Mobile-first flexbox layout */
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.cart-item:nth-child(1) { animation-delay: 0.1s; }
.cart-item:nth-child(2) { animation-delay: 0.2s; }
.cart-item:nth-child(3) { animation-delay: 0.3s; }
.cart-item:nth-child(4) { animation-delay: 0.4s; }
.cart-item:nth-child(5) { animation-delay: 0.5s; }

.cart-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg,
    rgba(255, 77, 0, 0.05),
    rgba(0, 212, 255, 0.05));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.cart-item:hover::before {
  opacity: 1;
}

.cart-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 77, 0, 0.2);
  border-color: var(--primary-brand);
}

/* ======================
MOBILE-OPTIMIZED Product Section
====================== */
.product-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.product-image-wrapper {
  flex-shrink: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-primary);
  padding: 0.25rem;
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 2px solid rgba(255, 77, 0, 0.3);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.cart-item:hover img {
  transform: scale(1.03);
  border-color: var(--primary-brand);
  box-shadow: 0 0 15px rgba(255, 77, 0, 0.4);
}

.product-info {
  flex: 1;
  min-width: 0; /* Prevent flex overflow */
}

.product-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-category {
  display: inline-block;
  background: linear-gradient(45deg, var(--secondary-brand), #7c3aed);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--success-green);
  margin-bottom: 0.3rem;
}

.shipping-info {
  font-size: 0.85rem;
  color: var(--warning-orange);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.shipping-info i {
  font-size: 0.8rem;
}

/* ======================
MOBILE-OPTIMIZED Quantity & Actions Section
====================== */
.quantity-actions-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 77, 0, 0.2);
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--surface-primary);
  padding: 0.3rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 77, 0, 0.3);
}

.quantity-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 0.3rem;
}

.qty-btn {
  width: 35px;
  height: 35px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary-brand), var(--secondary-brand));
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  touch-action: manipulation; /* Better mobile touch */
}

.qty-btn:hover, .qty-btn:active {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 77, 0, 0.4);
}

.quantity-display {
  font-size: 1.2rem;
  font-weight: 700;
  min-width: 40px;
  text-align: center;
  color: var(--text-primary);
  background: var(--surface-secondary);
  padding: 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 77, 0, 0.3);
}

/* ======================
MOBILE-OPTIMIZED Item Total & Remove
====================== */
.item-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.item-total {
  font-family: 'Orbitron', monospace;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--success-green);
  text-align: center;
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(255, 77, 0, 0.1));
  border-radius: var(--radius-lg);
  border: 2px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
  min-width: 100px;
}

.remove-btn {
  background: linear-gradient(45deg, var(--error-red), #ff6b6b);
  border: none;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.6rem;
  border-radius: 50%;
  transition: all var(--transition-normal);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  touch-action: manipulation;
}

.remove-btn:hover, .remove-btn:active {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 5px 20px rgba(239, 68, 68, 0.4);
}

/* ======================
MOBILE-OPTIMIZED Cart Summary
====================== */
.cart-summary {
  background: var(--surface-elevated);
  backdrop-filter: blur(30px);
  border: 2px solid rgba(255, 77, 0, 0.3);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  margin-top: 2rem;
  animation: fadeInUp 0.8s ease-out 0.3s backwards;
  box-shadow: var(--shadow-2xl);
  position: sticky;
  bottom: 1rem;
  z-index: 10;
}

.cart-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
    rgba(255, 77, 0, 0.05),
    rgba(0, 212, 255, 0.05));
  z-index: 0;
  border-radius: inherit;
}

.cart-summary > * {
  position: relative;
  z-index: 1;
}

.summary-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.summary-header h2 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  color: var(--primary-brand);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  transition: all var(--transition-normal);
}

.summary-row:hover {
  padding-left: 8px;
  border-bottom-color: var(--primary-brand);
  background: rgba(255, 77, 0, 0.02);
  border-radius: var(--radius-md);
}

.summary-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: clamp(1rem, 3vw, 1.1rem);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.summary-label i {
  font-size: 0.9rem;
  opacity: 0.8;
}

.summary-value {
  font-weight: 700;
  font-size: clamp(1.1rem, 3.5vw, 1.3rem);
  font-family: 'Orbitron', monospace;
}

.subtotal-value {
  color: var(--text-primary);
}

.shipping-value {
  color: var(--warning-orange);
}

.grand-total {
  background: linear-gradient(135deg, var(--primary-brand), var(--secondary-brand));
  color: white;
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  font-weight: 900;
  margin: 1.5rem 0;
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--radius-2xl);
  border: 3px solid rgba(255, 255, 255, 0.2);
  animation: totalGlow 3s ease-in-out infinite alternate;
  box-shadow: 0 15px 30px rgba(255, 77, 0, 0.4);
  line-height: 1;
}

@keyframes totalGlow {
  from {
    box-shadow: 0 15px 30px rgba(255, 77, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
  }
  to {
    box-shadow: 0 20px 40px rgba(255, 77, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
  }
}

/* ======================
MOBILE-OPTIMIZED Checkout Button
====================== */
.checkout-btn, .btn-checkout {
  background: linear-gradient(45deg, var(--warning-orange), var(--error-red));
  color: white;
  padding: 1.2rem 2rem;
  border: none;
  border-radius: var(--radius-full);
  font-size: clamp(1rem, 4vw, 1.3rem);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s ease;
  margin-top: 1rem;
  display: block;
  width: 100%;
  box-shadow: 0 10px 25px rgba(255, 107, 0, 0.4);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Orbitron', monospace;
  touch-action: manipulation;
  line-height: 1;
}

.checkout-btn::before, .btn-checkout::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.7s ease;
}

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

.checkout-btn:hover, .btn-checkout:hover,
.checkout-btn:active, .btn-checkout:active {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(255, 107, 0, 0.6);
}

/* ======================
MOBILE-OPTIMIZED Payment Methods
====================== */
.payment-methods {
  margin: 2rem 0;
  animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.payment-method {
  text-align: center;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--surface-elevated);
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.payment-method::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg,
    rgba(0, 212, 255, 0.05),
    rgba(124, 58, 237, 0.05));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.payment-method:hover::before {
  opacity: 1;
}

.payment-method:hover {
  transform: translateY(-3px);
  border-color: var(--secondary-brand);
  box-shadow: 0 15px 35px rgba(0, 212, 255, 0.3);
}

.payment-method p {
  font-size: clamp(1rem, 3vw, 1.2rem);
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
  font-weight: 500;
}

.qr-code {
  max-width: clamp(150px, 50vw, 200px);
  width: 100%;
  border: 3px solid var(--secondary-brand);
  border-radius: var(--radius-xl);
  padding: 1rem;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4);
  transition: all var(--transition-normal);
  position: relative;
  z-index: 1;
}

.qr-code:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 35px rgba(0, 212, 255, 0.6);
}

/* ======================
MOBILE-OPTIMIZED Checkout Form
====================== */
#checkout-form {
  margin-top: 2rem;
  background: var(--surface-elevated);
  padding: 1.5rem;
  border-radius: var(--radius-2xl);
  border: 2px solid rgba(255, 77, 0, 0.3);
  box-shadow: var(--shadow-2xl);
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
  position: relative;
  overflow: hidden;
}

#checkout-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
    rgba(255, 77, 0, 0.03),
    rgba(0, 212, 255, 0.03));
  z-index: 0;
  border-radius: inherit;
}

#checkout-form > * {
  position: relative;
  z-index: 1;
}

#checkout-form h2 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  color: var(--primary-brand);
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.2;
}

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

#checkout-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--text-secondary);
  font-size: clamp(1rem, 3vw, 1.1rem);
}

#checkout-form input,
#checkout-form textarea {
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(255, 77, 0, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: clamp(1rem, 3vw, 1.1rem);
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
  font-family: inherit;
  touch-action: manipulation;
}

#checkout-form input:focus,
#checkout-form textarea:focus {
  outline: none;
  border-color: var(--primary-brand);
  box-shadow: 0 0 15px rgba(255, 77, 0, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

#checkout-form textarea {
  min-height: 100px;
  resize: vertical;
}

/* ======================
MOBILE-OPTIMIZED File Upload
====================== */
.file-upload {
  margin: 1.5rem 0;
}

.file-upload-label {
  display: block;
  padding: 2rem 1rem;
  border: 2px dashed rgba(255, 77, 0, 0.4);
  border-radius: var(--radius-xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  background: rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  font-size: clamp(0.9rem, 3vw, 1rem);
}

.file-upload-label::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg,
    rgba(255, 77, 0, 0.05),
    rgba(0, 212, 255, 0.05));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.file-upload-label:hover::before {
  opacity: 1;
}

.file-upload-label:hover {
  border-color: var(--primary-brand);
  background: rgba(255, 77, 0, 0.05);
  transform: translateY(-2px);
}

.file-upload-input {
  display: none;
}

/* ======================
MOBILE-OPTIMIZED Empty Cart
====================== */
.empty-cart {
  text-align: center;
  padding: 4rem 2rem;
  animation: fadeInUp 0.8s ease;
  background: var(--surface-elevated);
  border-radius: var(--radius-2xl);
  border: 2px solid rgba(255, 77, 0, 0.3);
  box-shadow: var(--shadow-2xl);
}

.empty-cart i {
  font-size: clamp(3rem, 10vw, 4rem);
  color: var(--primary-brand);
  margin-bottom: 2rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.empty-cart h2 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-family: 'Orbitron', monospace;
  line-height: 1.2;
}

.empty-cart p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: clamp(1rem, 3vw, 1.1rem);
  line-height: 1.6;
}

.shop-now-btn {
  background: linear-gradient(45deg, var(--primary-brand), var(--secondary-brand));
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: var(--radius-full);
  font-weight: 700;
  transition: all var(--transition-normal);
  display: inline-block;
  font-size: clamp(1rem, 3vw, 1.2rem);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  touch-action: manipulation;
}

.shop-now-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

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

.shop-now-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 77, 0, 0.5);
}

/* ======================
Enhanced Loading & Notification
====================== */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: clamp(50px, 10vw, 70px);
  height: clamp(50px, 10vw, 70px);
  border: 3px solid rgba(255, 77, 0, 0.3);
  border-top: 3px solid var(--primary-brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.notification {
  position: fixed;
  top: 100px;
  right: 1rem;
  left: 1rem;
  background: linear-gradient(45deg, var(--success-green), var(--primary-brand));
  color: white;
  padding: 1rem;
  border-radius: var(--radius-xl);
  z-index: 1001;
  animation: slideInDown 0.5s ease-out;
  box-shadow: var(--shadow-2xl);
  font-weight: 600;
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  text-align: center;
}

@keyframes slideInDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ======================
COMPREHENSIVE RESPONSIVE DESIGN
====================== */

/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .cart-item {
    padding: 1.5rem;
  }
  
  .cart-item img {
    width: 90px;
    height: 90px;
  }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
  body {
    padding-top: 100px;
  }
  
  .back-btn {
    top: 80px;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }
  
  .cart-header {
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }
  
  .cart-item {
    padding: 1.25rem;
  }
  
  .cart-item img {
    width: 75px;
    height: 75px;
  }
  
  .product-title {
    font-size: 1rem;
  }
  
  .quantity-actions-section {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .item-actions {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .cart-summary {
    padding: 1.5rem;
    margin-top: 1.5rem;
  }
  
  #checkout-form {
    padding: 1.25rem;
  }
  
  .payment-method {
    padding: 1.25rem;
  }
}

/* Mobile Large (480px and below) */
@media (max-width: 480px) {
  body {
    padding-top: 90px;
  }
  
  .container {
    padding: 0 0.75rem;
  }
  
  .back-btn {
    top: 70px;
    left: 0.75rem;
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .cart-header {
    margin-bottom: 1rem;
    padding: 0 0.25rem;
  }
  
  .cart-item {
    padding: 1rem;
    gap: 0.8rem;
  }
  
  .product-section {
    gap: 0.8rem;
  }
  
  .cart-item img {
    width: 65px;
    height: 65px;
  }
  
  .product-title {
    font-size: 0.95rem;
    line-height: 1.2;
  }
  
  .product-category {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
  }
  
  .quantity-controls {
    gap: 0.6rem;
  }
  
  .qty-btn {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  
  .quantity-display {
    font-size: 1.1rem;
    padding: 0.4rem;
    min-width: 35px;
  }
  
  .item-total {
    font-size: 1.1rem;
    padding: 0.6rem 0.8rem;
    min-width: 85px;
  }
  
  .remove-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .cart-summary {
    padding: 1.25rem;
    margin-top: 1rem;
  }
  
  .summary-row {
    margin-bottom: 0.8rem;
    padding: 0.6rem 0;
  }
  
  .grand-total {
    padding: 1.25rem;
    margin: 1.25rem 0;
  }
  
  .checkout-btn, .btn-checkout {
    padding: 1rem;
  }
  
  #checkout-form {
    padding: 1rem;
  }
  
  .form-group {
    margin-bottom: 1.25rem;
  }
  
  #checkout-form input,
  #checkout-form textarea {
    padding: 0.8rem;
  }
  
  .payment-method {
    padding: 1rem;
  }
  
  .file-upload-label {
    padding: 1.5rem 0.8rem;
  }
  
  .empty-cart {
    padding: 3rem 1.5rem;
  }
  
  .notification {
    top: 80px;
    right: 0.75rem;
    left: 0.75rem;
    padding: 0.8rem;
  }
}

/* Mobile Small (360px and below) */
@media (max-width: 360px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .cart-item {
    padding: 0.8rem;
  }
  
  .product-section {
    gap: 0.6rem;
  }
  
  .cart-item img {
    width: 55px;
    height: 55px;
  }
  
  .product-title {
    font-size: 0.9rem;
  }
  
  .quantity-actions-section {
    padding: 0.8rem;
  }
  
  .qty-btn {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }
  
  .quantity-display {
    font-size: 1rem;
    padding: 0.3rem;
    min-width: 30px;
  }
  
  .item-total {
    font-size: 1rem;
    padding: 0.5rem 0.6rem;
    min-width: 75px;
  }
  
  .remove-btn {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
  
  .cart-summary {
    padding: 1rem;
  }
  
  #checkout-form {
    padding: 0.8rem;
  }
  
  .payment-method {
    padding: 0.8rem;
  }
}

/* ======================
Utility Classes
====================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.hidden { display: none !important; }
.visible { display: block !important; }

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
  animation: slideInUp 0.5s ease-out;
}

.bounce-in {
  animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ======================
Touch & Accessibility Improvements
====================== */
@media (hover: none) and (pointer: coarse) {
  .qty-btn:hover,
  .remove-btn:hover,
  .checkout-btn:hover,
  .shop-now-btn:hover {
    transform: none;
  }
  
  .qty-btn:active,
  .remove-btn:active,
  .checkout-btn:active,
  .shop-now-btn:active {
    transform: scale(0.95);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .cart-item,
  .cart-summary,
  #checkout-form {
    border-width: 3px;
  }
  
  .qty-btn,
  .remove-btn,
  .checkout-btn {
    border: 2px solid white;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* Enhanced Cart CSS - To be used with the enhanced cart.js */

/* Cart Item Base Styles */
.cart-item {
    border: 2px solid rgba(255, 77, 0, 0.2);
    margin: 25px 0;
    padding: 30px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cart-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 77, 0, 0.2);
}

/* Gradient Overlay for Cart Items */
.cart-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #FF4D00, #00D4FF, #FF4D00);
    opacity: 0.8;
}

/* Product Info Section */
.product-info-section {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
}

.product-image-container {
    position: relative;
}

.cart-item img {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid #FF4D00;
    box-shadow: 0 8px 20px rgba(255, 77, 0, 0.3);
}

.product-number-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #FF4D00;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.product-details {
    flex: 1;
}

.product-category-badge {
    background: linear-gradient(45deg, #FF4D00, #00D4FF);
    padding: 5px 15px;
    border-radius: 20px;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 10px;
}

.product-title {
    margin: 0 0 10px 0;
    font-size: 1.6rem;
    color: #333;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

.product-unit-price {
    margin: 0;
    color: #666;
    font-size: 1.2rem;
    font-weight: 600;
}

.shipping-info {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #00D4FF;
    font-size: 0.95rem;
}

/* Pricing Breakdown Section */
.pricing-breakdown {
    background: rgba(0, 0, 0, 0.05);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    border-left: 5px solid #FF4D00;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    text-align: center;
}

.pricing-item {
    display: flex;
    flex-direction: column;
}

.pricing-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.pricing-value {
    font-weight: bold;
    color: #333;
}

.pricing-value.product-cost {
    font-size: 1.2rem;
}

.pricing-value.shipping-cost {
    font-size: 1.2rem;
    color: #00D4FF;
}

.pricing-value.item-total {
    font-size: 1.3rem;
    color: #FF4D00;
    font-family: 'Orbitron', monospace;
}

/* Quantity Controls Section */
.quantity-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.8);
    padding: 15px 25px;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quantity-label {
    font-weight: bold;
    font-size: 1.2rem;
    color: #333;
    font-family: 'Orbitron', monospace;
}

.qty-btn {
    border: none;
    padding: 12px 18px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 50%;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.qty-btn.decrease {
    background: linear-gradient(45deg, #ff4757, #ff3742);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.qty-btn.decrease:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.6);
}

.qty-btn.increase {
    background: linear-gradient(45deg, #5f27cd, #341f97);
    color: white;
    box-shadow: 0 4px 15px rgba(95, 39, 205, 0.4);
}

.qty-btn.increase:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(95, 39, 205, 0.6);
}

.quantity-display {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 15px;
    min-width: 70px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    font-family: 'Orbitron', monospace;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

/* Remove Button */
.remove-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.remove-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
}

/* Empty Cart Styles */
.empty-cart {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.empty-cart i {
    font-size: 4rem;
    color: #FF4D00;
    margin-bottom: 25px;
    animation: bounce 2s infinite;
}

.empty-cart h2 {
    color: #333;
    margin-bottom: 15px;
    font-family: 'Orbitron', monospace;
}

.empty-cart p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.shop-now-btn {
    background: linear-gradient(45deg, #FF4D00, #E6440D);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    display: inline-block;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(255, 77, 0, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shop-now-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 77, 0, 0.6);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    color: white;
    padding: 15px 25px;
    border-radius: 15px;
    z-index: 10000;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.4s ease-out;
    font-weight: 600;
    font-size: 1rem;
    max-width: 350px;
    min-width: 250px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification-success {
    background: linear-gradient(45deg, #10B981, #059669);
}

.notification-error {
    background: linear-gradient(45deg, #EF4444, #DC2626);
}

.notification-warning {
    background: linear-gradient(45deg, #F59E0B, #D97706);
}

.notification-info {
    background: linear-gradient(45deg, #3B82F6, #2563EB);
}

.notification i {
    font-size: 1.2rem;
}

/* Enhanced Checkout Form Styles */
#checkout-form button[type="submit"] {
    transition: all 0.3s ease;
}

#checkout-form button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cart-item {
        padding: 20px;
        margin: 15px 0;
    }
    
    .product-info-section {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cart-item img {
        width: 100px;
        height: 100px;
    }
    
    .product-title {
        font-size: 1.3rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .quantity-actions-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .quantity-controls {
        gap: 15px;
        padding: 12px 20px;
    }
    
    .qty-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .quantity-display {
        font-size: 1.5rem;
        padding: 12px 20px;
        min-width: 60px;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .cart-item {
        padding: 15px;
        margin: 10px 0;
    }
    
    .cart-item img {
        width: 80px;
        height: 80px;
    }
    
    .product-title {
        font-size: 1.1rem;
    }
    
    .quantity-controls {
        gap: 10px;
        padding: 10px 15px;
    }
    
    .qty-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .quantity-display {
        font-size: 1.3rem;
        padding: 10px 15px;
        min-width: 50px;
    }
    
    .remove-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .empty-cart {
        padding: 40px 20px;
    }
    
    .empty-cart i {
        font-size: 3rem;
    }
}
