/* Aero Premium E-Commerce Design System & Stylesheet */

/* Custom Typography & Global Variables */
:root {
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 24px var(--accent-glow);

  /* Fonts */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Dark Mode Variables */
html[data-theme="dark"] {
  --bg-primary: #080b11;
  --bg-secondary: #0f1420;
  --bg-tertiary: #171f30;
  --bg-glass: rgba(15, 20, 32, 0.75);
  --border-color: rgba(255, 255, 255, 0.07);
  --border-color-hover: rgba(255, 255, 255, 0.15);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-color: #6366f1;
  --accent-secondary: #a855f7;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --accent-glow: rgba(99, 102, 241, 0.35);
  --star-color: #f59e0b;
  --toast-bg: rgba(23, 31, 48, 0.9);
  --card-hover-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Light Mode Variables */
html[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.8);
  --border-color: rgba(0, 0, 0, 0.07);
  --border-color-hover: rgba(0, 0, 0, 0.15);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent-color: #4f46e5;
  --accent-secondary: #7c3aed;
  --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --accent-glow: rgba(79, 70, 229, 0.15);
  --star-color: #d97706;
  --toast-bg: rgba(255, 255, 255, 0.95);
  --card-hover-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* Reset and Core Styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-sans);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Layout Utilities */
.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 0 28px rgba(99, 102, 241, 0.5);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.btn-tertiary {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: var(--border-color);
}
.btn-tertiary:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.icon-btn {
  position: relative;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}
.icon-btn:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--text-muted);
  transform: scale(1.05);
}
.icon-btn .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: var(--accent-color);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-secondary);
}

/* Header Navigation */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}
.logo-accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 2px;
  font-weight: 900;
}

.search-bar-wrapper {
  display: flex;
  align-items: center;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2px 6px;
  width: 480px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.search-bar-wrapper:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.search-icon {
  color: var(--text-muted);
  margin-left: 12px;
}
.search-bar-wrapper input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  padding: 10px 12px;
  font-size: 0.95rem;
  flex-grow: 1;
  width: 100%;
}
.search-bar-wrapper select {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  margin-right: 4px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* User Profile Avatar and Menu */
.profile-dropdown {
  position: relative;
}
.profile-trigger {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  border-radius: var(--radius-full);
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-color);
  transition: border-color var(--transition-fast);
  object-fit: cover;
}
.profile-trigger:hover .avatar {
  border-color: var(--accent-color);
}
.dropdown-menu {
  position: absolute;
  top: 50px;
  right: 0;
  width: 240px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  z-index: 100;
  animation: slideInDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.dropdown-menu.active {
  display: block;
}
.dropdown-header {
  padding: 12px 16px;
}
.user-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}
.user-email {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.dropdown-menu hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 6px 0;
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.dropdown-menu a:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}
.dropdown-menu a.logout-link:hover {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.08);
}

/* Category Sub-nav */
.sub-nav {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}
.sub-nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sub-nav-container::-webkit-scrollbar {
  display: none;
}
.category-pill {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}
.category-pill:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--text-muted);
}
.category-pill.active {
  background: var(--accent-gradient);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

/* Hero Section */
.hero-section {
  max-width: 1440px;
  margin: 24px auto;
  padding: 0 32px;
}
.hero-banner {
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  padding: 80px;
  min-height: 480px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}
.hero-content {
  max-width: 550px;
  z-index: 2;
  position: relative;
}
.hero-tag {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: inline-block;
  margin-bottom: 20px;
}
.hero-title {
  font-size: 3.2rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1.5px;
}
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 32px;
}
.hero-cta-group {
  display: flex;
  gap: 16px;
}
.hero-badge-container {
  position: absolute;
  right: 80px;
  bottom: 80px;
  z-index: 2;
}
.floating-badge {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-lg);
  animation: bounceSlow 3s infinite ease-in-out;
}
.floating-badge i {
  color: #fbbf24;
  font-size: 1.8rem;
}
.floating-badge strong {
  font-size: 0.95rem;
  color: var(--text-primary);
  display: block;
}
.floating-badge p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Features Bar */
.features-bar {
  max-width: 1440px;
  margin: 0 auto 40px auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.feature-item:hover {
  transform: translateY(-4px);
  border-color: var(--text-muted);
}
.feature-icon-wrapper {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-color);
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.feature-text h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.feature-text p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Catalog Container & Grid Layout */
.catalog-section {
  max-width: 1440px;
  margin: 0 auto 80px auto;
  padding: 0 32px;
}
.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}
.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 6px;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.catalog-controls {
  display: flex;
  align-items: center;
  gap: 24px;
}
.items-count {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.sort-dropdown-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}
.sort-dropdown-wrapper select {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

/* Catalog Sidebar + Grid Layout */
.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

/* Sidebar Filters */
.filters-sidebar {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 100px;
}
.sidebar-block {
  margin-bottom: 32px;
}
.sidebar-block:last-of-type {
  margin-bottom: 24px;
}
.filter-group-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* Price Range Slider Styling */
.price-slider-container input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg-tertiary);
  height: 6px;
  border-radius: var(--radius-full);
  outline: none;
  margin-bottom: 16px;
}
.price-slider-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
  transition: transform 0.1s ease;
}
.price-slider-container input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.price-slider-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}
.highlight-val {
  color: var(--text-primary);
  font-weight: 700;
}

/* Radio Ratings Filter */
.rating-filter-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rating-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.rating-label input[type="radio"] {
  accent-color: var(--accent-color);
  width: 16px;
  height: 16px;
}
.stars-gold {
  color: var(--star-color);
  font-weight: 600;
}

/* Checkbox Custom Styling */
.checkbox-container {
  display: block;
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  transition: all var(--transition-fast);
}
.checkbox-container:hover input ~ .checkmark {
  border-color: var(--text-muted);
}
.checkbox-container input:checked ~ .checkmark {
  background-image: var(--accent-gradient);
  border-color: transparent;
}
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}
.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}
.checkbox-container .checkmark:after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Products Grid Container */
.products-grid-container {
  width: 100%;
}
.active-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.filter-tag {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-tag button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  font-size: 0.9rem;
}
.filter-tag button:hover {
  color: var(--text-primary);
}

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

/* Product Cards */
.product-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-medium), border-color var(--transition-medium), box-shadow var(--transition-medium);
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-color-hover);
  box-shadow: var(--card-hover-shadow);
}

/* Wishlist Heart Icon overlay */
.wishlist-heart-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  background-color: var(--bg-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.wishlist-heart-btn:hover {
  transform: scale(1.1);
  color: #ef4444;
}
.wishlist-heart-btn.liked {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.25);
}

/* Product Badge Overlay */
.product-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  background: var(--accent-gradient);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Zoom On Hover Product Image Container */
.product-img-container {
  position: relative;
  aspect-ratio: 1;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.03);
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}
html[data-theme="dark"] .product-img-container {
  background-color: rgba(255, 255, 255, 0.01);
}
.product-card-img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  transition: transform var(--transition-slow);
}
.product-card:hover .product-card-img {
  transform: scale(1.08);
}

/* Slide in Quick View Trigger */
.quick-view-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 16px;
  background: linear-gradient(to top, rgba(8, 11, 17, 0.9) 0%, rgba(8, 11, 17, 0) 100%);
  display: flex;
  justify-content: center;
  transform: translateY(100%);
  transition: transform var(--transition-medium);
  z-index: 8;
}
.product-card:hover .quick-view-overlay {
  transform: translateY(0);
}

/* Product Details Text */
.product-card-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-card-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 6px;
}
.product-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.3;
}
.product-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.rating-stars {
  color: var(--star-color);
}
.review-count {
  color: var(--text-muted);
}

/* Product Pricing & Cart Row */
.product-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-price-block {
  display: flex;
  flex-direction: column;
}
.original-price-strike {
  font-size: 0.85rem;
  text-decoration: line-through;
  color: var(--text-muted);
}
.current-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}
.add-to-cart-card-btn {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition-fast);
}
.add-to-cart-card-btn:hover {
  background: var(--accent-gradient);
  color: white;
  border-color: transparent;
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

/* Empty State Styling */
.empty-state {
  text-align: center;
  padding: 60px 40px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.empty-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.empty-state p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 24px;
  max-width: 380px;
}

/* Shopping Cart Drawer Overlay */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(8, 11, 17, 0.6);
  backdrop-filter: blur(4px);
  z-index: 990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Shopping Cart Drawer Layout */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 480px;
  max-width: 100vw;
  background-color: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-medium);
  box-shadow: var(--shadow-lg);
}
.cart-drawer.active {
  transform: translateX(0);
}
.cart-drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-drawer-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
}
.close-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}
.close-btn:hover {
  background-color: var(--bg-tertiary);
}

/* Cart Items Scroll Container */
.cart-drawer-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cart-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}
.cart-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.cart-item-img-container {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}
.cart-item-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.cart-item-info {
  flex-grow: 1;
}
.cart-item-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.cart-item-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-color-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  display: inline-block;
  border: 1px solid var(--border-color);
}
.cart-item-price {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quantity-modifier {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.quantity-modifier button {
  background: none;
  border: none;
  color: var(--text-primary);
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: background var(--transition-fast);
}
.quantity-modifier button:hover {
  background-color: var(--border-color);
}
.quantity-modifier span {
  font-size: 0.85rem;
  font-weight: 700;
  width: 28px;
  text-align: center;
}
.delete-cart-item-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.05rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.delete-cart-item-btn:hover {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.08);
}

/* Cart Drawer Footer Summary */
.cart-drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}
.promo-code-section {
  margin-bottom: 20px;
}
.promo-input-group {
  display: flex;
  gap: 8px;
}
.promo-input-group input {
  flex-grow: 1;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.88rem;
  outline: none;
}
.promo-input-group input:focus {
  border-color: var(--accent-color);
}
.promo-feedback {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 6px;
  padding-left: 4px;
}
.promo-feedback.success { color: #10b981; }
.promo-feedback.error { color: #ef4444; }

.cart-summary-totals {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.discount-row {
  color: #10b981;
}
.summary-hr {
  border: none;
  border-top: 1px solid var(--border-color);
}
.total-row {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}
.checkout-btn {
  padding: 16px 24px;
  font-size: 1.05rem;
}

/* Standard Modals Structure */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(8, 11, 17, 0.6);
  backdrop-filter: blur(6px);
  z-index: 1010;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}
.modal-close:hover {
  transform: scale(1.08);
  border-color: var(--text-secondary);
}

/* Product Detail Modal Content styling */
.product-modal {
  position: relative;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.product-modal-content {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 480px;
}
.modal-product-left {
  background-color: rgba(0, 0, 0, 0.02);
  border-right: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}
html[data-theme="dark"] .modal-product-left {
  background-color: rgba(255, 255, 255, 0.005);
}
.modal-product-left img {
  max-width: 90%;
  max-height: 380px;
  object-fit: contain;
}
.modal-product-right {
  padding: 40px;
}
.modal-product-badge {
  background: var(--accent-gradient);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 16px;
}
.modal-product-title {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}
.modal-product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.modal-product-price-block {
  margin-bottom: 24px;
}
.modal-price-strike {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-right: 8px;
}
.modal-price-current {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
}
.modal-product-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Modal Specs List */
.modal-product-specs {
  margin-bottom: 24px;
}
.specs-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.8px;
}
.specs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  list-style: none;
}
.specs-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.specs-list li i {
  color: #10b981;
  font-size: 0.85rem;
}

/* Colors Selection inside modal */
.modal-product-colors {
  margin-bottom: 28px;
}
.color-picker-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.8px;
}
.color-picker-options {
  display: flex;
  gap: 12px;
}
.color-swatch-label {
  cursor: pointer;
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
}
.color-swatch-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.color-swatch-dot {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-fast);
}
.color-swatch-label input:checked ~ .color-swatch-dot {
  transform: scale(1.18);
  box-shadow: 0 0 0 2px var(--bg-secondary), 0 0 0 4px var(--accent-color);
}

/* Quantity & CTA Row in Modal */
.modal-product-cta-row {
  display: flex;
  gap: 16px;
}
.modal-qty-container {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-tertiary);
  overflow: hidden;
}
.modal-qty-container button {
  background: none;
  border: none;
  color: var(--text-primary);
  width: 44px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background var(--transition-fast);
}
.modal-qty-container button:hover {
  background-color: var(--border-color);
}
.modal-qty-container span {
  font-size: 1rem;
  font-weight: 700;
  width: 40px;
  text-align: center;
}

/* Checkout Wizard Dialog */
.checkout-modal {
  position: relative;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 40px;
  animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Stepper Stepper Header */
.checkout-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}
.step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}
.step-indicator.active .step-num {
  background: var(--accent-gradient);
  border-color: transparent;
  color: white;
  box-shadow: var(--shadow-glow);
}
.step-indicator.active .step-label {
  color: var(--text-primary);
}
.step-indicator.completed .step-num {
  background-color: #10b981;
  border-color: transparent;
  color: white;
}
.step-indicator.completed .step-label {
  color: #10b981;
}
.step-line {
  flex-grow: 1;
  height: 2px;
  background-color: var(--border-color);
  margin-top: -24px;
  position: relative;
  z-index: 1;
}
.step-line.completed {
  background-color: #10b981;
}

/* Forms layout */
.checkout-step-form {
  display: none;
}
.checkout-step-form.active {
  display: block;
}
.checkout-step-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.col-12 { grid-column: span 12; }
.col-6 { grid-column: span 6; }
.col-3 { grid-column: span 3; }

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.form-group input {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}
.form-group input:focus {
  border-color: var(--accent-color);
}

.checkout-footer-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
}

/* Credit Card Input Styling */
.card-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.card-input-wrapper input {
  padding-right: 48px;
  width: 100%;
}
.card-brand-icon {
  position: absolute;
  right: 16px;
  font-size: 1.5rem;
  color: var(--text-muted);
}

/* Payment Selector Pill */
.payment-method-selectors {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.payment-selector {
  flex-grow: 1;
  border: 1px solid var(--border-color);
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition-fast);
}
.payment-selector input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.payment-selector:hover {
  border-color: var(--text-muted);
}
.payment-selector.active {
  border-color: var(--accent-color);
  background-color: rgba(99, 102, 241, 0.05);
}

/* Review step grid */
.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  text-align: left;
}
.review-col h3 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.review-col p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}
.border-left-desktop {
  border-left: 1px solid var(--border-color);
  padding-left: 32px;
}
.review-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 16px;
  padding-right: 8px;
}
.review-item-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}
.compact-item-title {
  font-weight: 600;
  color: var(--text-primary);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compact-item-qty {
  color: var(--text-muted);
}
.compact-item-price {
  font-weight: 700;
  color: var(--text-primary);
}

.checkout-pay-btn {
  background: var(--accent-gradient);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.4);
}

/* Success Screen Styling */
.success-screen {
  text-align: center;
  padding: 40px 20px;
}
.success-icon-wrapper {
  color: #10b981;
  font-size: 4.5rem;
  margin-bottom: 20px;
}
.success-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 12px auto 32px auto;
  line-height: 1.6;
}
.success-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Toast System Stack */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  width: 100%;
}
.toast {
  background-color: var(--toast-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  opacity: 0;
  animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.toast-success i { color: #10b981; }
.toast-info i { color: var(--accent-color); }
.toast-icon {
  font-size: 1.25rem;
}
.toast-content {
  flex-grow: 1;
}
.toast-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.toast-message {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
}
.toast-close:hover {
  color: var(--text-primary);
}

/* Confetti Canvas overlays */
#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1200;
  pointer-events: none;
  display: none;
}

/* Footer Styling */
.app-footer-bar {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 64px 32px 32px 32px;
  margin-top: auto;
}
.footer-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-color);
}
.footer-logo {
  margin-bottom: 16px;
  display: inline-block;
}
.about-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 320px;
}
.social-links {
  display: flex;
  gap: 12px;
}
.social-links a {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.social-links a:hover {
  background-color: var(--accent-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.footer-col-links h3, .footer-col-newsletter h3 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-primary);
  letter-spacing: 0.8px;
  margin-bottom: 20px;
}
.footer-col-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}
.footer-col-links a:hover {
  color: var(--accent-color);
}

.footer-col-newsletter p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.newsletter-form {
  display: flex;
  gap: 8px;
}
.newsletter-form input {
  flex-grow: 1;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.88rem;
  outline: none;
}
.newsletter-form input:focus {
  border-color: var(--accent-color);
}

.footer-bottom {
  max-width: 1440px;
  margin: 32px auto 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-bottom-links {
  display: flex;
  gap: 12px;
}
.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-bottom-links a:hover {
  color: var(--text-primary);
}

/* Keyframe Animations */
@keyframes bounceSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

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

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

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulseBorder {
  0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(99, 102, 241, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-banner {
    padding: 60px;
    min-height: 420px;
  }
  .hero-title {
    font-size: 2.6rem;
  }
  .catalog-layout {
    grid-template-columns: 240px 1fr;
  }
  .product-modal-content {
    grid-template-columns: 1fr;
  }
  .modal-product-left {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
  }
  .modal-product-right {
    padding: 24px;
  }
  .review-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .border-left-desktop {
    border-left: none;
    padding-left: 0;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 16px;
  }
  .search-bar-wrapper {
    display: none; /* Hide main search bar on mobile, could toggled dynamically */
  }
  .hero-banner {
    padding: 40px 24px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .hero-badge-container {
    display: none;
  }
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .filters-sidebar {
    display: none; /* Hide filter sidebar, could implement collapsible slider drawer */
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cart-drawer {
    width: 100%;
  }
  .checkout-stepper {
    margin-bottom: 24px;
  }
  .col-6 { grid-column: span 12; }
  .col-3 { grid-column: span 6; }
}
