/* ============================================
   DROPSHIP EMPIRE - Design System
   Premium E-commerce Dark Theme
   ============================================ */

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

/* ---- CSS Variables ---- */
:root {
  /* Colors - Premium Light Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-light: rgba(0, 0, 0, 0.03);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --accent-primary: #4f46e5;
  --accent-secondary: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 50%, #d946ef 100%);
  --accent-glow: rgba(79, 70, 229, 0.25);
  
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #2563eb;
  
  --border-color: rgba(15, 23, 42, 0.08);
  --border-glow: rgba(79, 70, 229, 0.2);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 50%;
  
  /* Shadows - Soft Light Theme Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 10px 30px rgba(79, 70, 229, 0.15);
  --shadow-glow-lg: 0 20px 50px rgba(79, 70, 229, 0.2);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Container */
  --container-max: 1280px;
  --container-narrow: 960px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol { list-style: none; }

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

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

/* ---- Utility Classes ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-4xl) 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: var(--space-3xl);
  max-width: 600px;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ---- Glassmorphism Card ---- */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

.btn--primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--accent-glow);
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn--secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-secondary);
}

.btn--outline {
  background: transparent;
  color: var(--accent-secondary);
  border: 2px solid var(--accent-primary);
}

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

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.btn--icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* ---- Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

.badge--hot {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #1a1a2e;
}

/* ---- Navigation ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: all var(--transition-normal);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-sm) 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.navbar__logo svg {
  width: 28px;
  height: 28px;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.navbar__link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: var(--space-xs) 0;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 1px;
  transition: width var(--transition-normal);
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--text-primary);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.navbar__cart {
  position: relative;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.navbar__cart:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.navbar__cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent-gradient);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-badge 2s infinite;
}

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

/* Mobile Menu Toggle */
.navbar__toggle {
  display: none;
  background: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  padding: var(--space-xs);
}

/* ---- Hero Section ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 50% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
  animation: hero-glow 10s ease-in-out infinite alternate;
}

@keyframes hero-glow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-5%, -5%) scale(1.1); }
}

.hero__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-secondary);
  border-radius: var(--radius-full);
  opacity: 0.3;
  animation: float-particle 15s infinite linear;
}

@keyframes float-particle {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.hero__content {
  max-width: 600px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-xl);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--accent-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.6s ease;
}

.hero__badge span {
  display: flex;
  align-items: center;
}

.hero__title {
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero__title span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero__stats {
  display: flex;
  gap: var(--space-3xl);
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero__stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInRight 0.8s ease 0.3s both;
}

.hero__image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__image-glow {
  position: absolute;
  width: 80%;
  height: 80%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  filter: blur(80px);
  opacity: 0.2;
  animation: glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  0% { opacity: 0.15; transform: scale(0.95); }
  100% { opacity: 0.25; transform: scale(1.05); }
}

.hero__floating-cards {
  position: absolute;
  width: 100%;
  height: 100%;
}

.hero__float-card {
  position: absolute;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  animation: float 6s ease-in-out infinite;
  box-shadow: var(--shadow-lg);
}

.hero__float-card:nth-child(1) {
  top: 10%;
  right: 0;
  animation-delay: 0s;
}

.hero__float-card:nth-child(2) {
  bottom: 20%;
  left: 0;
  animation-delay: -2s;
}

.hero__float-card:nth-child(3) {
  top: 50%;
  right: -10%;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.hero__float-card-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

.hero__float-card-value {
  font-weight: 700;
  font-size: 1.1rem;
}

.hero__float-card-label {
  color: var(--text-muted);
  font-size: 0.75rem;
}

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

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

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

/* ---- Features Section ---- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  padding: var(--space-2xl);
  text-align: center;
}

.feature-card__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 1.5rem;
  box-shadow: 0 8px 25px var(--accent-glow);
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

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

/* ---- Products Grid ---- */
.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.product-card {
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.product-card__image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--bg-secondary);
}

.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-card__badges {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  z-index: 2;
}

.product-card__actions {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  gap: var(--space-sm);
  opacity: 0;
  transition: all var(--transition-normal);
  z-index: 2;
}

.product-card:hover .product-card__actions {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.product-card__action-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.product-card__action-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.product-card__info {
  padding: var(--space-lg);
}

.product-card__category {
  color: var(--accent-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-xs);
}

.product-card__name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__price {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.product-card__price-current {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent-secondary);
}

.product-card__price-old {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
  color: var(--warning);
  font-size: 0.8rem;
}

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

/* ---- Testimonials ---- */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.testimonial-card {
  padding: var(--space-2xl);
}

.testimonial-card__stars {
  color: var(--warning);
  margin-bottom: var(--space-md);
  font-size: 1rem;
  letter-spacing: 2px;
}

.testimonial-card__text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-card__name {
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial-card__role {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ---- Newsletter ---- */
.newsletter {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-4xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
}

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

.newsletter__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.newsletter__desc {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.newsletter__form {
  display: flex;
  gap: var(--space-sm);
  max-width: 480px;
  margin: 0 auto;
}

.newsletter__input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
}

.newsletter__input::placeholder { color: var(--text-muted); }
.newsletter__input:focus { border-color: var(--accent-primary); }

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border-color);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: var(--space-md);
  line-height: 1.7;
}

.footer__title {
  font-weight: 600;
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
}

.footer__link {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.footer__link:hover { color: var(--accent-secondary); }

.footer__bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer__socials {
  display: flex;
  gap: var(--space-md);
}

.footer__social {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.footer__social:hover {
  border-color: var(--accent-primary);
  color: var(--accent-secondary);
  transform: translateY(-2px);
}

/* ---- Shop Page ---- */
.shop-hero {
  padding: 120px 0 var(--space-3xl);
  text-align: center;
  position: relative;
}

.shop-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center top, rgba(124, 58, 237, 0.1) 0%, transparent 60%);
}

.shop__layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-2xl);
}

.shop__sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.filter-group {
  margin-bottom: var(--space-xl);
}

.filter-group__title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.filter-group__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.filter-group__item:hover,
.filter-group__item.active { color: var(--accent-secondary); }

.filter-group__checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.filter-group__item.active .filter-group__checkbox {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.filter-group__count {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.shop__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-color);
}

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

.shop__sort select {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.shop__products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* ---- Product Page ---- */
.product-page {
  padding: 120px 0 var(--space-4xl);
}

.product-page__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

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

.product-page__main-image {
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-secondary);
  margin-bottom: var(--space-md);
}

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

.product-page__thumbnails {
  display: flex;
  gap: var(--space-sm);
}

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

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

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

.product-page__category {
  color: var(--accent-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
}

.product-page__title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.product-page__rating {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  color: var(--warning);
}

.product-page__rating span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.product-page__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.product-page__price-current {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-page__price-old {
  font-size: 1.3rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-page__desc {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  font-size: 0.95rem;
}

.product-page__variants {
  margin-bottom: var(--space-xl);
}

.product-page__variant-label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

.product-page__variant-options {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.product-page__variant-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.product-page__variant-btn:hover,
.product-page__variant-btn.active {
  border-color: var(--accent-primary);
  background: rgba(124, 58, 237, 0.1);
}

.product-page__quantity {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.product-page__qty-control {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.product-page__qty-btn {
  width: 44px;
  height: 44px;
  background: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background var(--transition-fast);
}

.product-page__qty-btn:hover { background: var(--bg-card); }

.product-page__qty-value {
  width: 50px;
  text-align: center;
  font-weight: 600;
  background: none;
  color: var(--text-primary);
}

.product-page__add-to-cart {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.product-page__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.product-page__feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.product-page__feature-icon {
  color: var(--success);
  font-size: 1.1rem;
}

/* ---- Cart Page ---- */
.cart-page {
  padding: 120px 0 var(--space-4xl);
}

.cart-page__layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-3xl);
  align-items: start;
}

.cart-page__items { display: flex; flex-direction: column; gap: var(--space-md); }

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-lg);
}

.cart-item__image {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-secondary);
}

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

.cart-item__name {
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.cart-item__variant {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.cart-item__price {
  font-weight: 600;
  color: var(--accent-secondary);
  font-size: 1.1rem;
}

.cart-item__remove {
  background: none;
  color: var(--text-muted);
  padding: var(--space-sm);
  transition: color var(--transition-fast);
}

.cart-item__remove:hover { color: var(--danger); }

.cart-summary {
  position: sticky;
  top: 100px;
  padding: var(--space-2xl);
}

.cart-summary__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-xl);
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.cart-summary__total {
  display: flex;
  justify-content: space-between;
  padding: var(--space-md) 0;
  margin-top: var(--space-md);
  border-top: 1px solid var(--border-color);
  font-weight: 700;
  font-size: 1.2rem;
}

.cart-summary__total span:last-child {
  color: var(--accent-secondary);
}

.cart-summary__checkout {
  width: 100%;
  margin-top: var(--space-xl);
}

.cart-empty {
  text-align: center;
  padding: var(--space-4xl);
}

.cart-empty__icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  opacity: 0.5;
}

.cart-empty__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.cart-empty__desc {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

/* ---- Search Bar ---- */
.search-bar {
  position: relative;
  max-width: 500px;
  margin: 0 auto var(--space-3xl);
}

.search-bar__input {
  width: 100%;
  padding: 1rem 1.5rem 1rem 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.search-bar__input::placeholder { color: var(--text-muted); }

.search-bar__input:focus {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

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

/* ---- Toast Notifications ---- */
.toast-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-width: 300px;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.4s var(--transition-spring);
  backdrop-filter: blur(20px);
}

.toast--success { border-left: 3px solid var(--success); }
.toast--error { border-left: 3px solid var(--danger); }
.toast--info { border-left: 3px solid var(--info); }

.toast__icon { font-size: 1.2rem; }
.toast__message { flex: 1; font-size: 0.9rem; }

.toast__close {
  background: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  padding: 4px;
}

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

/* ---- Scroll to Top ---- */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px var(--accent-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover { transform: translateY(-3px); }

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

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

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero__content { max-width: 100%; }
  .hero__visual { display: none; }
  .hero__stats { justify-content: center; }
  .hero__actions { justify-content: center; }
  .products__grid { grid-template-columns: repeat(3, 1fr); }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .shop__layout { grid-template-columns: 1fr; }
  .shop__sidebar { display: none; }
  .shop__products { grid-template-columns: repeat(3, 1fr); }
  .product-page__layout { grid-template-columns: 1fr; }
  .product-page__gallery { position: static; }
}

@media (max-width: 768px) {
  :root { font-size: 15px; }
  .hero__title { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .features__grid { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .cart-page__layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .shop__products { grid-template-columns: repeat(2, 1fr); }
  .product-page__features { grid-template-columns: 1fr; }
  .navbar__links { display: none; }
  .navbar__toggle { display: block; }
  
  .navbar__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    padding: var(--space-xl);
    border-bottom: 1px solid var(--border-color);
  }
  
  .newsletter {
    padding: var(--space-2xl);
  }
  
  .newsletter__form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2rem; }
  .hero__stats { flex-direction: column; gap: var(--space-md); }
  .products__grid { grid-template-columns: 1fr; }
  .shop__products { grid-template-columns: 1fr; }
  .product-page__add-to-cart { flex-direction: column; }
  .cart-item { grid-template-columns: 80px 1fr auto; }
}
