/**
 * Modern E-Commerce CSS Framework
 * Mobile-first approach inspired by AliExpress & Jumia
 * Design System with clean, modern aesthetics
 */

/* ==================== CSS VARIABLES & DESIGN TOKENS ==================== */
:root {
  /* Brand Colors - Ghana Flag-inspired Red, Yellow, Green palette */
  --brand-primary: #dc2626; /* Red */
  --brand-primary-light: #ef4444;
  --brand-primary-dark: #991b1b;
  --brand-secondary: #16a34a; /* Green */
  --brand-accent: #eab308; /* Yellow/Gold */
  --brand-danger: #dc2626;

  /* Neutral Colors */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;

  /* Semantic Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --bg-overlay: rgba(0, 0, 0, 0.5);

  /* Text Colors */
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-tertiary: #9ca3af;
  --text-inverse: #ffffff;

  /* Border & Divider */
  --border-color: #e5e7eb;
  --border-color-light: #f3f4f6;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  --border-radius-full: 9999px;

  /* Spacing Scale (Mobile-first) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Typography Scale */
  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem; /* 16px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.25rem; /* 20px */
  --font-size-2xl: 1.5rem; /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem; /* 36px */

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;

  /* Layout */
  --header-height-mobile: 56px;
  --header-height-desktop: 72px;
  --max-width-container: 1280px;
  --max-width-content: 1024px;
}

/* ==================== RESET & BASE STYLES ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

a {
  color: inherit;
  text-decoration: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* ==================== MODERN HEADER ==================== */
.modern-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  z-index: 1021;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .modern-header {
    left: 280px;
  }
}

.header-top {
  background: var(--brand-primary);
  color: var(--text-inverse);
  padding: var(--space-2) 0;
  font-size: var(--font-size-xs);
  text-align: center;
}

.header-main {
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--brand-primary);
  white-space: nowrap;
}

.header-search {
  flex: 1;
  max-width: 600px;
  position: relative;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-full);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.search-input-wrapper:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.search-input {
  flex: 1;
  padding: var(--space-2) var(--space-4);
  border: none;
  background: transparent;
  font-size: var(--font-size-sm);
}

.search-button {
  padding: var(--space-2) var(--space-4);
  background: var(--brand-primary);
  color: var(--text-inverse);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-button:hover {
  background: var(--brand-primary-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header-action-btn {
  position: relative;
  background: transparent;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
  color: var(--text-secondary);
  font-size: var(--font-size-lg);
  transition: color var(--transition-fast);
}

.header-action-btn:hover {
  color: var(--brand-primary);
}

.action-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--brand-danger);
  color: var(--text-inverse);
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  padding: 2px 6px;
  border-radius: var(--border-radius-full);
  min-width: 18px;
  text-align: center;
}

.header-bottom {
  display: block;
  padding: var(--space-2) var(--space-4);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

@media (max-width: 767px) {
  .header-bottom {
    display: none;
  }
}

.header-categories {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.header-categories::-webkit-scrollbar {
  display: none;
}

.category-link {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  white-space: nowrap;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
  font-weight: var(--font-weight-medium);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.category-link:hover {
  background: var(--bg-primary);
  color: var(--brand-primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: block;
  background: transparent;
  border: none;
  padding: var(--space-2);
  font-size: var(--font-size-xl);
  color: var(--text-secondary);
}

/* ==================== MODERN NAVIGATION/SIDEBAR ==================== */
.modern-sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: var(--bg-primary);
  box-shadow: var(--shadow-xl);
  z-index: 1020;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.modern-sidebar.active {
  left: 0;
}

/* Desktop: Always show sidebar */
@media (min-width: 768px) {
  .modern-sidebar {
    left: 0;
    z-index: var(--z-sticky);
  }
}

/* Sidebar overlay removed - not needed for mobile sidebar */

.sidebar-header {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-close {
  background: transparent;
  border: none;
  font-size: var(--font-size-xl);
  color: var(--text-secondary);
  padding: var(--space-2);
}

.sidebar-content {
  padding: var(--space-4);
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 2rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  min-height: 0;
  overscroll-behavior: contain;
}

/* Improve touch scrolling on mobile */
@media (max-width: 767px) {
  .sidebar-content {
    padding: var(--space-3);
  }
}

.sidebar-section {
  margin-bottom: var(--space-6);
}

.sidebar-footer {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: var(--space-4);
  margin-top: auto;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.05);
}

.sidebar-section-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

.sidebar-menu {
  list-style: none;
}

.sidebar-menu-item {
  margin-bottom: var(--space-1);
}

.sidebar-menu-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--border-radius-md);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.sidebar-menu-link:hover {
  background: var(--bg-secondary);
  color: var(--brand-primary);
}

.sidebar-menu-link.active {
  background: var(--brand-primary);
  color: var(--text-inverse);
}

.sidebar-menu-icon {
  font-size: var(--font-size-lg);
  width: 24px;
  text-align: center;
}

/* ==================== MODERN HERO/BANNER ==================== */
.modern-hero {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-6);
}

.hero-slider {
  position: relative;
  height: 240px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding: var(--space-6);
  background: linear-gradient(135deg, #dc2626 0%, #eab308 50%, #16a34a 100%);
}

.hero-text {
  color: var(--text-inverse);
  max-width: 70%;
}

.hero-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
  line-height: var(--line-height-tight);
}

.hero-subtitle {
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-4);
  opacity: 0.95;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--bg-primary);
  color: var(--brand-primary);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--border-radius-full);
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero-dots {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
  z-index: 2;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--border-radius-full);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-dot.active {
  width: 24px;
  background: var(--bg-primary);
}

/* ==================== CATEGORY CARDS ==================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.category-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  padding: var(--space-4);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-color);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}

.category-icon {
  font-size: 2rem;
  color: var(--brand-primary);
  margin-bottom: var(--space-2);
}

.category-name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
}

/* ==================== SECTION HEADERS ==================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding: 0 var(--space-4);
}

.section-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.section-icon {
  font-size: var(--font-size-xl);
  color: var(--brand-primary);
}

.section-link {
  font-size: var(--font-size-sm);
  color: var(--brand-primary);
  font-weight: var(--font-weight-medium);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  transition: gap var(--transition-fast);
}

.section-link:hover {
  gap: var(--space-2);
}

/* ==================== PRODUCT CARDS (MODERN) ==================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  padding: 0 var(--space-4);
  margin-bottom: var(--space-6);
}

.product-card-modern {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.product-card-modern:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--brand-primary);
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: var(--bg-secondary);
  overflow: hidden;
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.product-badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  padding: var(--space-1) var(--space-2);
  background: var(--brand-danger);
  color: var(--text-inverse);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--border-radius-sm);
}

.product-wishlist {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 32px;
  height: 32px;
  background: var(--bg-primary);
  border: none;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.product-wishlist:hover,
.product-wishlist.active {
  color: var(--brand-danger);
  transform: scale(1.1);
}

.product-info {
  padding: var(--space-3);
}

.product-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: #111827 !important;
  margin-bottom: var(--space-2);
  line-height: var(--line-height-tight);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
  font-size: var(--font-size-xs);
}

.product-stars {
  color: var(--brand-accent);
}

.product-rating-count {
  color: #9ca3af !important;
}

.product-price-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.product-price {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: #dc2626 !important;
}

.product-price-old {
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
  text-decoration: line-through;
}

.product-discount {
  font-size: var(--font-size-xs);
  color: var(--brand-danger);
  font-weight: var(--font-weight-semibold);
}

.product-actions {
  display: flex;
  gap: var(--space-2);
}

.btn-add-cart {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  background: var(--brand-primary);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-add-cart:hover {
  background: var(--brand-primary-dark);
  transform: translateY(-1px);
}

/* Horizontal Scroll for Flash Sales, Featured, etc */
.products-scroll {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding: 0 var(--space-4) var(--space-4);
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.products-scroll::-webkit-scrollbar {
  display: none;
}

.products-scroll .product-card-modern {
  flex: 0 0 160px;
  width: 160px;
}

/* ==================== MODERN FOOTER ==================== */
.modern-footer {
  background: var(--color-gray-900);
  color: var(--color-gray-300);
  padding: var(--space-12) 0 var(--space-4);
  margin-top: var(--space-16);
}

@media (min-width: 768px) {
  .modern-footer {
    margin-left: 280px;
  }
}

.footer-content {
  max-width: var(--max-width-container);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.footer-section-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-inverse);
  margin-bottom: var(--space-3);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-link {
  font-size: var(--font-size-sm);
  color: var(--color-gray-400);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--brand-primary-light);
}

.footer-bottom {
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-gray-800);
  text-align: center;
  font-size: var(--font-size-xs);
  color: var(--color-gray-500);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-800);
  border-radius: var(--border-radius-full);
  color: var(--color-gray-400);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--brand-primary);
  color: var(--text-inverse);
}

/* ==================== UTILITIES ==================== */
.container {
  max-width: var(--max-width-container);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.content-container {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.page-padding {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.section-spacing {
  margin-bottom: var(--space-8);
}

.text-truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-truncate-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==================== RESPONSIVE - TABLET ==================== */
@media (min-width: 768px) {
  :root {
    --header-height-mobile: 72px;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .header-main {
    padding: var(--space-4) var(--space-6);
  }

  .header-bottom {
    display: block;
  }

  .hero-slider {
    height: 320px;
  }

  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .category-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-4);
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    padding: 0 var(--space-6);
  }

  .products-scroll .product-card-modern {
    flex: 0 0 200px;
    width: 200px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==================== RESPONSIVE - DESKTOP ==================== */
@media (min-width: 1024px) {
  .header-main {
    padding: var(--space-5) var(--space-8);
  }

  .hero-slider {
    height: 400px;
  }

  .hero-title {
    font-size: var(--font-size-4xl);
  }

  .category-grid {
    grid-template-columns: repeat(8, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
  }

  .products-scroll .product-card-modern {
    flex: 0 0 220px;
    width: 220px;
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==================== RESPONSIVE - LARGE DESKTOP ==================== */
@media (min-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .products-scroll .product-card-modern {
    flex: 0 0 240px;
    width: 240px;
  }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn var(--transition-base);
}

.slide-up {
  animation: slideUp var(--transition-base);
}

.slide-in-left {
  animation: slideInLeft var(--transition-base);
}

/* ==================== DESKTOP HEADER BAR ==================== */
.desktop-header-bar {
  display: none;
}

@media (min-width: 768px) {
  .desktop-header-bar {
    display: block !important;
  }
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-slide {
  position: relative;
  width: 100%;
  min-height: 400px;
  padding: var(--space-8) var(--space-4);
  display: none;
  align-items: center;
  overflow: hidden;
}

.hero-slide.active {
  display: flex;
}

@media (min-width: 768px) {
  .hero-slide {
    min-height: 500px;
    padding: var(--space-12) var(--space-8);
  }
}

@media (min-width: 1024px) {
  .hero-slide {
    min-height: 600px;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  animation: slideInLeft 0.8s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-full);
  color: var(--text-inverse);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-inverse);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4rem;
  }
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-8);
  line-height: var(--line-height-relaxed);
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: var(--font-size-xl);
  }
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.btn-hero-primary,
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--border-radius-xl);
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-hero-primary {
  background: var(--color-white);
  color: var(--brand-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-inverse);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-features {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.95);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.hero-feature i {
  font-size: var(--font-size-lg);
}

.hero-image {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-image {
    display: flex;
  }
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
}

.hero-shape-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  right: 10%;
  animation: float 6s ease-in-out infinite;
}

.hero-shape-2 {
  width: 200px;
  height: 200px;
  top: 50%;
  right: 30%;
  animation: float 8s ease-in-out infinite reverse;
}

.hero-shape-3 {
  width: 150px;
  height: 150px;
  bottom: 15%;
  right: 15%;
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

/* ==================== RESPONSIVE VISIBILITY ==================== */
@media (min-width: 768px) {
  .header-bottom {
    display: block !important;
  }

  .desktop-header-extension {
    display: block !important;
  }

  .mobile-menu-toggle {
    display: none !important;
  }

  main {
    padding-top: 0 !important;
    margin-left: 280px;
  }

  .main-content {
    margin-left: 280px;
  }
}

/* ==================== MAIN CONTENT LAYOUT ==================== */
.main-content {
  min-height: 100vh;
  padding-top: 80px; /* Adjusted for mobile header height */
}

@media (min-width: 768px) {
  .main-content {
    padding-top: 180px; /* Increased for desktop header + search bar spacing */
  }
}

/* ==================== CHECKOUT ENHANCEMENTS ==================== */
.progress-step {
  position: relative;
  transition: all 0.3s ease;
}

.progress-step::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -4rem;
  width: 4rem;
  height: 2px;
  background: var(--gray-200);
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.progress-step:first-child::before {
  display: none;
}

.progress-step.active::before {
  background: linear-gradient(to right, var(--primary-600), var(--primary-500));
}

.progress-step.active .w-8 {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
  transform: scale(1.1);
  transition: all 0.3s ease;
}

.progress-step.completed .w-8 {
  background: linear-gradient(
    135deg,
    var(--secondary-600),
    var(--secondary-500)
  );
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.progress-step.completed .w-8::after {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Cart Item Cards Enhancement */
.cart-item-card {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-4);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-100);
}

.cart-item-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.cart-item-image {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-xl);
  object-fit: cover;
  border: 2px solid var(--gray-100);
  transition: all 0.3s ease;
}

.cart-item-card:hover .cart-item-image {
  border-color: var(--primary-300);
  transform: scale(1.05);
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  padding: var(--space-1);
  border: 1px solid var(--gray-200);
}

.quantity-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: none;
  color: var(--primary-600);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: bold;
}

.quantity-btn:hover {
  background: var(--primary-600);
  color: white;
  transform: scale(1.1);
}

.quantity-btn:active {
  transform: scale(0.95);
}

.quantity-value {
  min-width: 40px;
  text-align: center;
  font-weight: var(--font-weight-semibold);
  color: var(--gray-900);
}

/* Price Breakdown Enhancement */
.price-breakdown {
  background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--gray-100);
  position: sticky;
  top: 80px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--gray-100);
  transition: all 0.2s ease;
}

.price-row:hover {
  background: var(--gray-50);
  margin: 0 calc(var(--space-3) * -1);
  padding-left: var(--space-3);
  padding-right: var(--space-3);
  border-radius: var(--radius-lg);
}

.price-row:last-child {
  border-bottom: none;
}

.price-row.total {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--primary-600);
  padding-top: var(--space-4);
  margin-top: var(--space-2);
  border-top: 2px solid var(--primary-600);
}

/* Form Enhancement */
.form-input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-input.error {
  border-color: var(--danger-500);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input.success {
  border-color: var(--secondary-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Empty Cart State Enhancement */
.empty-cart-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-6);
  background: linear-gradient(135deg, var(--primary-100), var(--primary-50));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-gentle 2s ease-in-out infinite;
}

@keyframes pulse-gentle {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 20px rgba(220, 38, 38, 0);
  }
}

.empty-cart-icon i {
  font-size: 3rem;
  color: var(--primary-600);
}

/* Loading States */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--gray-200) 25%,
    var(--gray-100) 50%,
    var(--gray-200) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-lg);
}

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

/* Mobile Sticky Actions */
.mobile-sticky-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: var(--space-4);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 40;
  border-top: 1px solid var(--gray-200);
  transform: translateY(100%);
  animation: slide-up 0.3s ease forwards;
}

@keyframes slide-up {
  to {
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .mobile-sticky-actions {
    display: none;
  }
}

/* ==================== ORDER CARDS ENHANCEMENT ==================== */
.order-card {
  background: white;
  border-radius: var(--radius-2xl);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: var(--space-4);
}

.order-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
  border-color: var(--primary-300);
}

.order-card-header {
  background: linear-gradient(135deg, var(--gray-50), white);
  padding: var(--space-4);
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.order-id {
  font-weight: var(--font-weight-bold);
  color: var(--gray-900);
  font-size: var(--font-size-base);
}

.order-date {
  color: var(--gray-600);
  font-size: var(--font-size-sm);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.order-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: fade-in 0.3s ease;
}

.order-status.pending {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  box-shadow: 0 2px 10px rgba(251, 191, 36, 0.3);
}

.order-status.processing {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.order-status.shipped {
  background: linear-gradient(135deg, #ddd6fe, #c4b5fd);
  color: #5b21b6;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
}

.order-status.delivered {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.order-status.cancelled {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
}

.order-status i {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.order-items {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.order-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-3);
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  transition: all 0.2s ease;
}

.order-item:hover {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.order-item-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.order-item-details {
  flex: 1;
  min-width: 0;
}

.order-item-name {
  font-weight: var(--font-weight-semibold);
  color: var(--gray-900);
  margin-bottom: var(--space-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-item-meta {
  color: var(--gray-600);
  font-size: var(--font-size-sm);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.order-item-price {
  font-weight: var(--font-weight-bold);
  color: var(--primary-600);
  font-size: var(--font-size-lg);
}

.order-card-footer {
  background: var(--gray-50);
  padding: var(--space-4);
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.order-total {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--gray-900);
}

.order-total-label {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  font-weight: var(--font-weight-normal);
  margin-right: var(--space-2);
}

.order-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.order-action-btn {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.order-action-btn.primary {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  color: white;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.order-action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.order-action-btn.secondary {
  background: white;
  color: var(--primary-600);
  border-color: var(--primary-600);
}

.order-action-btn.secondary:hover {
  background: var(--primary-50);
  transform: translateY(-2px);
}

.order-action-btn.danger {
  background: white;
  color: var(--danger-600);
  border-color: var(--danger-600);
}

.order-action-btn.danger:hover {
  background: var(--danger-50);
  transform: translateY(-2px);
}

/* Order Filters */
.order-filters {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: white;
  border-radius: var(--radius-2xl);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.order-filter-btn {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--gray-100);
  color: var(--gray-700);
  border: 2px solid transparent;
}

.order-filter-btn:hover {
  background: var(--gray-200);
  transform: translateY(-1px);
}

.order-filter-btn.active {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  color: white;
  border-color: var(--primary-700);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

/* Empty Orders State */
.empty-orders {
  text-align: center;
  padding: var(--space-12) var(--space-4);
}

.empty-orders-icon {
  width: 150px;
  height: 150px;
  margin: 0 auto var(--space-6);
  background: linear-gradient(135deg, var(--gray-100), var(--gray-50));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-gentle 2s ease-in-out infinite;
}

.empty-orders-icon i {
  font-size: 4rem;
  color: var(--gray-400);
}

.empty-orders-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--gray-900);
  margin-bottom: var(--space-2);
}

.empty-orders-text {
  font-size: var(--font-size-base);
  color: var(--gray-600);
  margin-bottom: var(--space-6);
}

/* Order Timeline */
.order-timeline {
  position: relative;
  padding: var(--space-4);
  margin: var(--space-4) 0;
}

.order-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: var(--gray-200);
}

.timeline-item {
  position: relative;
  padding-left: var(--space-12);
  margin-bottom: var(--space-6);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gray-300);
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-item.active::before {
  background: var(--primary-600);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.2);
  animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.2);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
  }
}

.timeline-item.completed::before {
  background: var(--secondary-600);
}

.timeline-title {
  font-weight: var(--font-weight-semibold);
  color: var(--gray-900);
  margin-bottom: var(--space-1);
}

.timeline-description {
  color: var(--gray-600);
  font-size: var(--font-size-sm);
}

.timeline-date {
  color: var(--gray-500);
  font-size: var(--font-size-xs);
  margin-top: var(--space-1);
}

/* ==================== PRODUCT DETAIL ENHANCEMENTS ==================== */
.product-image-gallery {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.product-main-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

.product-main-image:hover {
  transform: scale(1.05);
}

.product-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.product-thumbnail {
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.2s ease;
  position: relative;
}

.product-thumbnail::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: all 0.2s ease;
}

.product-thumbnail:hover::after {
  background: rgba(0, 0, 0, 0.1);
}

.product-thumbnail.active {
  border-color: var(--primary-600);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badges {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  z-index: 10;
}

.product-badge {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.product-badge.sale {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.product-badge.new {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.product-badge.featured {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.product-badge.verified {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}

/* Product Info Section */
.product-info-section {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--gray-100);
}

.product-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--gray-900);
  margin-bottom: var(--space-4);
  line-height: 1.3;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--gray-100);
}

.rating-stars {
  display: flex;
  gap: var(--space-1);
}

.rating-stars i {
  color: #fcd34d;
  font-size: var(--font-size-lg);
  transition: transform 0.2s ease;
}

.rating-stars i:hover {
  transform: scale(1.2);
}

.rating-value {
  font-weight: var(--font-weight-semibold);
  color: var(--gray-900);
  font-size: var(--font-size-base);
}

.rating-count {
  color: var(--gray-600);
  font-size: var(--font-size-sm);
}

.product-price-section {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.product-price {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--primary-600);
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-original-price {
  font-size: var(--font-size-xl);
  color: var(--gray-500);
  text-decoration: line-through;
}

.product-discount {
  padding: var(--space-1) var(--space-3);
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
}

.product-stock {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-6);
}

.product-stock.in-stock {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
}

.product-stock.low-stock {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
}

.product-stock.out-of-stock {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
}

/* Product Options */
.product-option {
  margin-bottom: var(--space-6);
}

.product-option-label {
  font-weight: var(--font-weight-semibold);
  color: var(--gray-900);
  margin-bottom: var(--space-3);
  display: block;
}

.product-variants {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.product-variant {
  padding: var(--space-2) var(--space-4);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  background: white;
}

.product-variant:hover {
  border-color: var(--primary-400);
  background: var(--primary-50);
  transform: translateY(-2px);
}

.product-variant.active {
  border-color: var(--primary-600);
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  color: white;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.product-variant.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Product Action Buttons */
.product-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

.product-action-btn {
  flex: 1;
  min-width: 150px;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.product-action-btn.add-to-cart {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  color: white;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

.product-action-btn.add-to-cart:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(220, 38, 38, 0.5);
}

.product-action-btn.add-to-cart:active {
  transform: translateY(-1px);
}

.product-action-btn.buy-now {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.product-action-btn.buy-now:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
}

.product-action-btn.wishlist {
  background: white;
  color: var(--danger-600);
  border-color: var(--danger-600);
  flex: 0 0 auto;
  min-width: auto;
  width: 56px;
  height: 56px;
  padding: 0;
}

.product-action-btn.wishlist:hover {
  background: var(--danger-50);
  transform: scale(1.1);
}

.product-action-btn.wishlist.active {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border-color: transparent;
}

/* Product Tabs */
.product-tabs {
  margin-top: var(--space-8);
}

.product-tab-buttons {
  display: flex;
  gap: var(--space-2);
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.product-tab-btn {
  padding: var(--space-3) var(--space-6);
  background: transparent;
  border: none;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.product-tab-btn:hover {
  color: var(--primary-600);
  background: var(--primary-50);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.product-tab-btn.active {
  color: var(--primary-600);
  font-weight: var(--font-weight-bold);
  border-bottom-color: var(--primary-600);
}

.product-tab-content {
  display: none;
  animation: fade-in 0.3s ease;
}

.product-tab-content.active {
  display: block;
}

/* Product Specifications */
.product-specs {
  display: grid;
  gap: var(--space-3);
}

.product-spec {
  display: flex;
  padding: var(--space-3);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}

.product-spec:hover {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-spec-label {
  font-weight: var(--font-weight-semibold);
  color: var(--gray-700);
  flex: 0 0 150px;
}

.product-spec-value {
  color: var(--gray-900);
  flex: 1;
}

/* Product Reviews */
.product-reviews {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.product-review {
  padding: var(--space-4);
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  transition: all 0.2s ease;
}

.product-review:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transform: translateX(4px);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.review-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
}

.review-author-info {
  display: flex;
  flex-direction: column;
}

.review-author-name {
  font-weight: var(--font-weight-semibold);
  color: var(--gray-900);
}

.review-date {
  font-size: var(--font-size-xs);
  color: var(--gray-600);
}

.review-rating {
  display: flex;
  gap: var(--space-1);
}

.review-text {
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.review-helpful {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--gray-600);
}

.review-helpful-btn {
  padding: var(--space-1) var(--space-3);
  background: var(--gray-100);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.review-helpful-btn:hover {
  background: var(--primary-100);
  color: var(--primary-600);
  transform: translateY(-1px);
}

/* Related Products */
.related-products {
  margin-top: var(--space-12);
}

.related-products-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--gray-900);
  margin-bottom: var(--space-6);
  text-align: center;
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-6);
}

/* ==================== PROFILE PAGE ENHANCEMENTS ==================== */
.profile-header {
  background: linear-gradient(135deg, #dc2626 0%, #eab308 50%, #16a34a 100%);
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-2xl);
  color: white;
  margin-bottom: var(--space-6);
  box-shadow: 0 8px 30px rgba(220, 38, 38, 0.3);
  position: relative;
  overflow: hidden;
}

.profile-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary-400), var(--primary-200));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  font-weight: var(--font-weight-bold);
}

.profile-avatar-upload {
  position: relative;
}

.profile-avatar-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.profile-avatar-overlay:hover {
  transform: scale(1.1);
  background: var(--primary-600);
  color: white;
}

.profile-avatar-overlay i {
  color: var(--primary-600);
}

.profile-avatar-overlay:hover i {
  color: white;
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
}

.profile-email {
  font-size: var(--font-size-base);
  opacity: 0.9;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.profile-stats {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

.profile-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.profile-stat-value {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
}

.profile-stat-label {
  font-size: var(--font-size-sm);
  opacity: 0.9;
}

/* Profile Sections */
.profile-section {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--gray-100);
}

.profile-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--gray-100);
}

.profile-section-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.profile-section-title i {
  color: var(--primary-600);
}

.profile-edit-btn {
  padding: var(--space-2) var(--space-4);
  background: white;
  border: 2px solid var(--primary-600);
  color: var(--primary-600);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.profile-edit-btn:hover {
  background: var(--primary-600);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

/* Profile Form */
.profile-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-4);
}

.profile-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.profile-form-label {
  font-weight: var(--font-weight-semibold);
  color: var(--gray-700);
  font-size: var(--font-size-sm);
}

.profile-form-input {
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-base);
  transition: all 0.2s ease;
  background: white;
}

.profile-form-input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.profile-form-input:disabled {
  background: var(--gray-100);
  cursor: not-allowed;
  opacity: 0.7;
}

/* Address Cards */
.address-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.address-card {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  transition: all 0.2s ease;
  position: relative;
}

.address-card:hover {
  background: white;
  border-color: var(--primary-300);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.address-card.default {
  border-color: var(--primary-600);
  background: linear-gradient(135deg, var(--primary-50), white);
}

.address-card-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  padding: var(--space-1) var(--space-3);
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
}

.address-card-title {
  font-weight: var(--font-weight-bold);
  color: var(--gray-900);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.address-card-content {
  color: var(--gray-700);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.address-card-actions {
  display: flex;
  gap: var(--space-2);
}

.address-card-btn {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  border: 2px solid var(--gray-300);
  background: white;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
}

.address-card-btn:hover {
  border-color: var(--primary-600);
  color: var(--primary-600);
  transform: translateY(-1px);
}

.address-card-btn.delete:hover {
  border-color: var(--danger-600);
  color: var(--danger-600);
  background: var(--danger-50);
}

/* Settings Toggle */
.settings-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-3);
  transition: all 0.2s ease;
}

.settings-toggle:hover {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.settings-toggle-info {
  flex: 1;
}

.settings-toggle-title {
  font-weight: var(--font-weight-semibold);
  color: var(--gray-900);
  margin-bottom: var(--space-1);
}

.settings-toggle-description {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
}

.toggle-switch {
  position: relative;
  width: 56px;
  height: 32px;
  background: var(--gray-300);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-switch.active {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active::after {
  transform: translateX(24px);
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */
@media (max-width: 767px) {
  .product-thumbnails {
    grid-template-columns: repeat(4, 1fr);
  }

  .product-title {
    font-size: var(--font-size-2xl);
  }

  .product-price {
    font-size: var(--font-size-3xl);
  }

  .product-actions {
    flex-direction: column;
  }

  .product-action-btn {
    width: 100%;
    min-width: auto;
  }

  .product-action-btn.wishlist {
    width: 100%;
  }

  .order-card-header,
  .order-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-actions {
    width: 100%;
  }

  .order-action-btn {
    flex: 1;
  }

  .profile-avatar-section {
    flex-direction: column;
    text-align: center;
  }

  .profile-stats {
    justify-content: center;
  }

  .profile-form {
    grid-template-columns: 1fr;
  }

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

  .progress-step span {
    display: none;
  }

  .progress-step::before {
    width: 2rem;
    left: -2rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .product-thumbnails {
    grid-template-columns: repeat(5, 1fr);
  }

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

@media (min-width: 1024px) {
  .product-thumbnails {
    grid-template-columns: repeat(6, 1fr);
  }

  .related-products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
