/* ═══════════════════════════════════════════════════════════════════════════
   ATRIX E-Commerce - Premium Design System
   Based on Modern Fashion E-commerce UI Patterns
   ═══════════════════════════════════════════════════════════════════════════ */

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

:root {
  /* Premium Color Palette */
  --primary: #1a1a2e;
  --primary-light: #16213e;
  --accent: #e94560;
  --accent-hover: #d63d56;
  --secondary: #0f3460;
  --gold: #c4a35a;
  --gold-light: #d4b76a;
  
  /* Neutral Colors */
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-gray: #f1f3f5;
  --medium-gray: #dee2e6;
  --dark-gray: #495057;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --text-muted: #adb5bd;
  
  /* Status Colors */
  --success: #2ecc71;
  --success-light: #d4edda;
  --warning: #f39c12;
  --warning-light: #fff3cd;
  --danger: #e74c3c;
  --danger-light: #f8d7da;
  --info: #3498db;
  --info-light: #d1ecf1;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-xl: 0 12px 48px rgba(0,0,0,0.16);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Base Styles
   ═══════════════════════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent);
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   Premium Navbar
   ═══════════════════════════════════════════════════════════════════════════ */

.navbar-premium {
  background: var(--white);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-normal);
}

.navbar-premium.scrolled {
  padding: 0.75rem 0;
  box-shadow: var(--shadow-md);
}

.navbar-premium .navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.navbar-premium .navbar-brand span {
  color: var(--accent);
}

.navbar-premium .nav-link {
  font-weight: 500;
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  position: relative;
  transition: color var(--transition-fast);
}

.navbar-premium .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-normal);
}

.navbar-premium .nav-link:hover::after,
.navbar-premium .nav-link.active::after {
  width: 80%;
}

.navbar-premium .nav-link:hover {
  color: var(--accent);
}

.nav-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-gray);
  color: var(--text-primary);
  position: relative;
  transition: all var(--transition-fast);
}

.nav-icon-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.nav-icon-btn .badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-box {
  position: relative;
}

.search-box input {
  width: 280px;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.1);
}

.search-box .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  margin-top: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1500; /* Below mega-menu but above content */
  display: none;
}

.search-suggestions.show {
  display: block;
}

.search-suggestion-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background var(--transition-fast);
  border-bottom: 1px solid var(--light-gray);
}

.search-suggestion-item:last-child {
  border-bottom: none;
}

.search-suggestion-item:hover,
.search-suggestion-item.active {
  background: var(--light-gray);
}

.search-suggestion-item strong {
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Mega Menu Dropdown
   ═══════════════════════════════════════════════════════════════════════════ */

.mega-dropdown {
  position: relative;
}

.mega-toggle {
  cursor: pointer;
  user-select: none;
}

.mega-chevron {
  transition: transform var(--transition-fast);
}

.mega-dropdown.active .mega-chevron {
  transform: rotate(180deg);
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.5rem;
  width: 90vw;
  max-width: 1200px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 2000; /* CRITICAL: Must be higher than filter-sidebar and any content */
  pointer-events: none;
}

.mega-menu.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mega-menu-content {
  display: flex;
  gap: 2rem;
  padding: 2rem;
}

.mega-menu-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.mega-menu-column {
  min-width: 0;
}

.mega-menu-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
  color: var(--primary);
}

.mega-menu-heading a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.mega-menu-heading a:hover {
  color: var(--accent);
}

.mega-menu-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-menu-links li {
  margin-bottom: 0.5rem;
}

.mega-menu-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  display: inline-block;
}

.mega-menu-links a:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.mega-menu-links .view-all-link {
  color: var(--accent);
  font-weight: 600;
  margin-top: 0.5rem;
}

.mega-menu-promo {
  width: 280px;
  flex-shrink: 0;
}

.promo-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.promo-card img {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 150px;
  height: 150px;
  object-fit: cover;
  opacity: 0.2;
  border-radius: var(--radius-lg);
}

.promo-content {
  position: relative;
  z-index: 1;
}

.promo-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.promo-card h5 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.promo-card p {
  margin-bottom: 1rem;
  opacity: 0.9;
}

.promo-btn {
  display: inline-block;
  background: var(--white);
  color: var(--primary);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.promo-btn:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive mega menu */
@media (max-width: 991px) {
  .mega-menu {
    width: 95vw;
  }
  
  .mega-menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .mega-menu-promo {
    display: none;
  }
}

@media (max-width: 576px) {
  .mega-menu-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Hero Section
   ═══════════════════════════════════════════════════════════════════════════ */

.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://images.unsplash.com/photo-1441986300917-64674bd600d8?w=1920&q=80') center/cover;
  opacity: 0.15;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title span {
  color: var(--gold);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.85);
  max-width: 500px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════════════════════════════════════ */

.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary-premium {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary-premium:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-premium {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-premium:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-dark-premium {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-dark-premium:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-gold {
  background: var(--gold);
  color: var(--primary);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Section Styles
   ═══════════════════════════════════════════════════════════════════════════ */

.section {
  padding: 5rem 0;
}

.section-light {
  background: var(--off-white);
}

.section-dark {
  background: var(--primary);
  color: var(--white);
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Category Cards
   ═══════════════════════════════════════════════════════════════════════════ */

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: background var(--transition-normal);
}

.category-card:hover .category-card-overlay {
  background: linear-gradient(to top, rgba(233,69,96,0.9) 0%, rgba(0,0,0,0.3) 100%);
}

.category-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--white);
  margin: 0;
}

.category-card-count {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Product Cards
   ═══════════════════════════════════════════════════════════════════════════ */

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.product-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--light-gray);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-sale {
  background: var(--accent);
  color: var(--white);
}

.badge-new {
  background: var(--success);
  color: var(--white);
}

.badge-hot {
  background: var(--warning);
  color: var(--primary);
}

.product-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transform: translateX(20px);
  transition: all var(--transition-normal);
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateX(0);
}

.product-action-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.product-action-btn:hover {
  background: var(--accent);
  color: var(--white);
  transform: scale(1.1);
}

.product-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.product-title {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card:hover .product-title {
  color: var(--accent);
}

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

.product-rating .stars {
  color: var(--gold);
}

.product-rating .count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.product-price {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.price-current {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.price-original {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.add-to-cart-btn {
  width: 100%;
  padding: 0.875rem;
  margin-top: 1rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.add-to-cart-btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Features Section
   ═══════════════════════════════════════════════════════════════════════════ */

.feature-card {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
}

.feature-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   Shop Page
   ═══════════════════════════════════════════════════════════════════════════ */

.shop-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 4rem 0;
  text-align: center;
}

.shop-header h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.shop-header .breadcrumb {
  justify-content: center;
}

.shop-header .breadcrumb-item,
.shop-header .breadcrumb-item a {
  color: rgba(255,255,255,0.8);
}

.shop-header .breadcrumb-item.active {
  color: var(--gold);
}

.filter-sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  /* Keep z-index low to stay below navbar and mega-menu */
  position: relative;
  z-index: 1;
}

.filter-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--light-gray);
}

.filter-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-label {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Product Detail Page
   ═══════════════════════════════════════════════════════════════════════════ */

.product-gallery {
  position: sticky;
  top: 100px;
}

.product-main-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
}

.product-thumbnails {
  display: flex;
  gap: 0.75rem;
}

.product-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition-fast);
}

.product-thumbnail.active,
.product-thumbnail:hover {
  border-color: var(--accent);
}

.product-info h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.product-info .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.product-info .description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.qty-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 2px solid var(--medium-gray);
  background: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.qty-input {
  width: 60px;
  height: 44px;
  text-align: center;
  border: 2px solid var(--medium-gray);
  border-radius: var(--radius-md);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Cart & Checkout
   ═══════════════════════════════════════════════════════════════════════════ */

.cart-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.cart-item-image {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.cart-item-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.cart-item-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.order-summary {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
}

.order-summary h3 {
  margin-bottom: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--light-gray);
}

.summary-row.total {
  font-size: 1.25rem;
  font-weight: 700;
  border-bottom: none;
  padding-top: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════════════════════ */

.footer-premium {
  background: var(--primary);
  color: rgba(255,255,255,0.9);
  padding: 5rem 0 2rem;
  margin-top: auto;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-brand span {
  color: var(--gold);
}

.footer-text {
  color: rgba(255,255,255,0.7);
  max-width: 300px;
  margin-bottom: 1.5rem;
}

.footer-title {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold);
}

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

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   Alerts & Notifications
   ═══════════════════════════════════════════════════════════════════════════ */

.alert-premium {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.alert-success-premium {
  background: var(--success-light);
  border-left: 4px solid var(--success);
  color: #155724;
}

.alert-error-premium {
  background: var(--danger-light);
  border-left: 4px solid var(--danger);
  color: #721c24;
}

.alert-warning-premium {
  background: var(--warning-light);
  border-left: 4px solid var(--warning);
  color: #856404;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Form Styles
   ═══════════════════════════════════════════════════════════════════════════ */

.form-premium {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.form-label-premium {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-control-premium {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-control-premium:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Quantity Selector
   ═══════════════════════════════════════════════════════════════════════════ */

.quantity-selector {
  display: inline-flex;
  align-items: center;
  background: var(--light-gray);
  border-radius: var(--radius-full);
  padding: 4px;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--white);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.qty-input {
  width: 50px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.qty-input:focus {
  outline: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Product Detail Page
   ═══════════════════════════════════════════════════════════════════════════ */

.product-category {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: var(--light-gray);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-gallery {
  position: sticky;
  top: 100px;
}

.product-thumbnail {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.product-thumbnail.active,
.product-thumbnail:hover {
  border-color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Animations
   ═══════════════════════════════════════════════════════════════════════════ */

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

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

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

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

.animate-slide-up {
  animation: slideUp 0.6s ease forwards;
}

.animate-scale-in {
  animation: scaleIn 0.3s ease forwards;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Responsive Design
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 70vh;
    padding: 3rem 0;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .search-box input {
    width: 200px;
  }
  
  .product-info h1 {
    font-size: 1.75rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .btn-premium {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
  
  .search-box {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Utility Classes
   ═══════════════════════════════════════════════════════════════════════════ */

.text-accent { color: var(--accent) !important; }
.text-gold { color: var(--gold) !important; }
.bg-accent { background-color: var(--accent) !important; }
.bg-primary-dark { background-color: var(--primary) !important; }

.shadow-premium { box-shadow: var(--shadow-lg) !important; }
.radius-premium { border-radius: var(--radius-lg) !important; }

.hover-scale {
  transition: transform var(--transition-normal);
}
.hover-scale:hover {
  transform: scale(1.05);
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   Premium Global Enhancements (Final Polish)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Smooth Page Transitions */
.page-transition {
  animation: fadeInPage 0.4s ease-out;
}

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

/* Premium Focus States */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Better Form Inputs */
.form-control, .form-select {
  border-radius: var(--radius-lg);
  border: 2px solid var(--medium-gray);
  padding: 0.75rem 1rem;
  transition: all var(--transition-normal);
}

.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.15);
}

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

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--medium-gray);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--dark-gray);
}

/* Loading States */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-md);
}

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

/* Premium Selection */
::selection {
  background: var(--accent);
  color: white;
}

/* Improved Badge Styles */
.badge-premium {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Animated Gradient Border */
.gradient-border {
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--accent), var(--gold), var(--secondary));
  border-radius: inherit;
  z-index: -1;
  animation: gradient-rotate 3s linear infinite;
}

@keyframes gradient-rotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* Premium Hover Cards */
.hover-lift {
  transition: all var(--transition-normal);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

/* Notification Dot */
.notification-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  top: 0;
  right: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

/* Premium Empty States */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state-icon {
  font-size: 4rem;
  color: var(--medium-gray);
  margin-bottom: 1.5rem;
}

/* Better Table Styles */
.table-premium {
  border-collapse: separate;
  border-spacing: 0;
}

.table-premium thead th {
  background: var(--light-gray);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  padding: 1rem;
  border: none;
}

.table-premium tbody td {
  padding: 1rem;
  border-bottom: 1px solid var(--light-gray);
  vertical-align: middle;
}

.table-premium tbody tr:hover {
  background: var(--off-white);
}

/* Glassmorphism Effect */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Print Styles */
@media print {
  .navbar, .footer, .btn, button {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}