/* ===== DESIGN TOKENS ===== */
:root {
  /* Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(20, 20, 35, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);

  --accent-primary: #8b5cf6;
  --accent-primary-light: #a78bfa;
  --accent-secondary: #06b6d4;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-orange: #f59e0b;
  --accent-pink: #ec4899;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --gradient-primary: linear-gradient(135deg, #8b5cf6, #06b6d4);
  --gradient-hero: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.1));
  --gradient-card: linear-gradient(145deg, rgba(139, 92, 246, 0.08), rgba(6, 182, 212, 0.04));

  --border-color: rgba(139, 92, 246, 0.15);
  --border-glow: rgba(139, 92, 246, 0.3);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.2);
  --shadow-glow-cyan: 0 0 30px rgba(6, 182, 212, 0.2);

  /* Typography */
  --font-main: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* Spacing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) var(--bg-secondary);
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 800px 600px at 20% 10%, rgba(139, 92, 246, 0.06), transparent),
    radial-gradient(ellipse 600px 400px at 80% 80%, rgba(6, 182, 212, 0.04), transparent);
  pointer-events: none;
  z-index: 0;
}

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

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

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 4px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: var(--shadow-md);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo svg {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: var(--transition-normal);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-search {
  display: flex;
  align-items: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  padding: 8px 16px;
  gap: 8px;
  transition: var(--transition-fast);
}

.nav-search:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}

.nav-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  width: 180px;
  font-family: var(--font-main);
}

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

.nav-search svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.cart-btn {
  position: relative;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

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

.cart-btn svg {
  width: 20px;
  height: 20px;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-primary);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.mobile-menu-btn {
  display: none;
  background: none;
  color: var(--text-primary);
  padding: 8px;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 120px 2rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: blur(2px);
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 15, 0.6) 0%,
    rgba(10, 10, 15, 0.8) 60%,
    var(--bg-primary) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary-light);
  margin-bottom: 1.5rem;
  animation: pulse-glow 2s ease-in-out infinite;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: blink 1.5s ease-in-out infinite;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(139, 92, 246, 0.45);
}

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

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

.btn svg {
  width: 18px;
  height: 18px;
}

/* Hero Floating Cards */
.hero-floating {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.float-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  animation: floatCard 3s ease-in-out infinite;
  box-shadow: var(--shadow-md);
}

.float-card:nth-child(2) {
  animation-delay: -1s;
  margin-left: 2rem;
}

.float-card:nth-child(3) {
  animation-delay: -2s;
}

.float-card .stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.float-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 5rem 2rem;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* ===== CATEGORIES ===== */
.categories-grid {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.category-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.category-chip:hover,
.category-chip.active {
  background: rgba(139, 92, 246, 0.12);
  border-color: var(--accent-primary);
  color: var(--accent-primary-light);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

.category-chip svg {
  width: 18px;
  height: 18px;
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1300px;
  margin: 2rem auto 0;
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.product-card.out-of-stock {
  opacity: 0.65;
}

.product-card.out-of-stock .product-img::after {
  content: 'OUT OF STOCK';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  background: rgba(239, 68, 68, 0.9);
  color: white;
  font-weight: 800;
  font-size: 1rem;
  padding: 8px 24px;
  border-radius: var(--radius-sm);
  letter-spacing: 2px;
  z-index: 5;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.product-img {
  position: relative;
  height: 320px;
  overflow: hidden;
}

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

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

.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 3;
}

.badge {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-sale {
  background: rgba(239, 68, 68, 0.9);
  color: white;
}

.badge-new {
  background: rgba(16, 185, 129, 0.9);
  color: white;
}

.badge-featured {
  background: rgba(139, 92, 246, 0.9);
  color: white;
}

.badge-steam {
  background: rgba(6, 182, 212, 0.9);
  color: white;
}

.product-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  z-index: 3;
}

.product-wishlist:hover {
  color: var(--accent-pink);
  border-color: var(--accent-pink);
  background: rgba(236, 72, 153, 0.15);
}

.product-wishlist svg {
  width: 16px;
  height: 16px;
}

.product-info {
  padding: 1.2rem;
}

.product-platform {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.platform-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.platform-name {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
}

.product-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.stars {
  display: flex;
  gap: 2px;
  color: var(--accent-orange);
}

.stars svg {
  width: 14px;
  height: 14px;
}

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

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-current {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-green);
}

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

.add-to-cart-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition-fast);
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.25);
}

.add-to-cart-btn:hover {
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.45);
  transform: translateY(-1px);
}

.add-to-cart-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.add-to-cart-btn svg {
  width: 16px;
  height: 16px;
}

/* ===== FEATURED BANNER ===== */
.featured-banner {
  max-width: 1300px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
  position: relative;
}

.featured-info {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-info .badge {
  align-self: flex-start;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  padding: 6px 14px;
}

.featured-info h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.featured-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.featured-price-tag {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.featured-price-tag .price-current {
  font-size: 2rem;
}

.featured-price-tag .price-original {
  font-size: 1.1rem;
}

.featured-img {
  position: relative;
  overflow: hidden;
}

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

.featured-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg-primary) 0%, transparent 40%);
  z-index: 1;
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: var(--transition-normal);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  color: var(--accent-primary-light);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== NEWSLETTER ===== */
.newsletter {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  margin-top: 1.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.newsletter-form input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem;
  position: relative;
  z-index: 1;
}

.footer-content {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .nav-logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  max-width: 300px;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-social a:hover {
  color: var(--accent-primary-light);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent-primary-light);
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1300px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-payments {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-payments span {
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== CART SIDEBAR ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  z-index: 2001;
  transform: translateX(100%);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open {
  transform: translateX(0);
}

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

.cart-header h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.cart-close {
  background: none;
  color: var(--text-secondary);
  padding: 6px;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.cart-close:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.cart-close svg {
  width: 20px;
  height: 20px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 1rem;
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 10px;
  animation: slideInRight 0.3s ease-out;
}

.cart-item img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

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

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--accent-green);
  font-weight: 600;
}

.cart-item-remove {
  background: none;
  color: var(--text-muted);
  padding: 4px;
  align-self: flex-start;
  transition: var(--transition-fast);
}

.cart-item-remove:hover {
  color: var(--accent-red);
}

.cart-item-remove svg {
  width: 16px;
  height: 16px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  text-align: center;
  gap: 12px;
}

.cart-empty svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

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

.cart-total .total-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-green);
}

.checkout-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.checkout-btn:hover {
  box-shadow: 0 6px 30px rgba(139, 92, 246, 0.5);
  transform: translateY(-2px);
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3000;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateX(calc(100% + 3rem));
  transition: var(--transition-normal);
  font-size: 0.85rem;
  font-weight: 500;
}

.toast.show {
  transform: translateX(0);
}

.toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
}

.toast-icon svg {
  width: 14px;
  height: 14px;
}

/* ===== ADMIN PANEL ===== */
.admin-toggle {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 1500;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
  transition: var(--transition-fast);
}

.admin-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(139, 92, 246, 0.6);
}

.admin-toggle svg {
  width: 24px;
  height: 24px;
}

.admin-panel {
  position: fixed;
  bottom: 5.5rem;
  left: 2rem;
  width: 380px;
  max-width: calc(100vw - 4rem);
  max-height: 70vh;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  z-index: 1500;
  overflow: hidden;
  transform: scale(0.9) translateY(10px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.admin-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  visibility: visible;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--gradient-card);
}

.admin-header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-header h3 svg {
  width: 18px;
  height: 18px;
  color: var(--accent-primary-light);
}

.admin-body {
  padding: 1rem 1.2rem;
  overflow-y: auto;
  flex: 1;
}

.admin-product {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  margin-bottom: 8px;
  transition: var(--transition-fast);
}

.admin-product:hover {
  border-color: var(--border-glow);
}

.admin-product img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
}

.admin-product-info {
  flex: 1;
}

.admin-product-name {
  font-size: 0.8rem;
  font-weight: 600;
}

.admin-product-status {
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.admin-product-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.admin-product-status .dot.green { background: var(--accent-green); }
.admin-product-status .dot.red { background: var(--accent-red); }

.stock-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 100px;
  background: var(--accent-red);
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
}

.stock-toggle.in-stock {
  background: var(--accent-green);
}

.stock-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  transition: var(--transition-fast);
}

.stock-toggle.in-stock::after {
  left: calc(100% - 19px);
}

/* ===== ADMIN EXPANDED ===== */
.admin-add-btn {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.08);
  border: 1px dashed var(--accent-primary);
  color: var(--accent-primary-light);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.admin-add-btn:hover {
  background: rgba(139, 92, 246, 0.15);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

.admin-add-btn svg {
  width: 18px;
  height: 18px;
}

.admin-product-price {
  font-size: 0.75rem;
  color: var(--accent-green);
  font-weight: 600;
}

.admin-product-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.admin-icon-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-glow);
}

.admin-icon-btn.edit:hover {
  color: var(--accent-primary-light);
  border-color: var(--accent-primary);
}

.admin-icon-btn.delete:hover {
  color: var(--accent-red);
  border-color: var(--accent-red);
}

.admin-icon-btn svg {
  width: 14px;
  height: 14px;
}

/* ===== EDIT MODAL ===== */
.edit-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 520px;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
}

.edit-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--gradient-card);
}

.edit-modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.edit-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.edit-modal-footer {
  display: flex;
  gap: 10px;
  padding: 1.2rem 1.5rem;
  border-top: 1px solid var(--border-color);
  justify-content: flex-end;
}

.edit-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.edit-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.edit-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.edit-field input,
.edit-field select {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition-fast);
  letter-spacing: 0;
  text-align: left;
}

.edit-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 32px;
}

.edit-field select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.edit-field input:focus,
.edit-field select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.15);
}

.edit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Image editor */
.edit-image-options {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.edit-image-preview {
  width: 90px;
  height: 110px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.edit-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edit-image-inputs {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.edit-image-inputs input {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-fast);
}

.edit-image-inputs input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.15);
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  align-self: flex-start;
}

.upload-btn:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--accent-secondary);
}

/* Badges */
.edit-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-check {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-secondary);
}

.badge-check:has(input:checked) {
  background: rgba(139, 92, 246, 0.12);
  border-color: var(--accent-primary);
  color: var(--accent-primary-light);
}

.badge-check input {
  display: none;
}

/* Stock buttons */
.edit-stock-row {
  display: flex;
  gap: 8px;
}

.stock-status-btn {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.stock-status-btn.active-green {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.stock-status-btn.active-red {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--accent-red);
  color: var(--accent-red);
}

@media (max-width: 480px) {
  .edit-row {
    grid-template-columns: 1fr;
  }
  .edit-image-options {
    flex-direction: column;
  }
}

/* ===== PASSWORD MODAL ===== */
.password-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 0.3s ease-out;
}

.password-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 380px;
  max-width: 90vw;
  text-align: center;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.password-modal h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.password-modal p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.password-modal input {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  outline: none;
  text-align: center;
  letter-spacing: 4px;
  transition: var(--transition-fast);
  margin-bottom: 0.5rem;
}

.password-modal input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.password-error {
  font-size: 0.8rem;
  color: var(--accent-red);
  min-height: 1.5rem;
  margin-bottom: 0.5rem;
}

.password-actions {
  display: flex;
  gap: 10px;
}

.password-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 12px;
}

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

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(139, 92, 246, 0); }
  50% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.15); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

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

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-floating {
    display: none;
  }
  .featured-banner {
    grid-template-columns: 1fr;
  }
  .featured-img {
    height: 300px;
    order: -1;
  }
  .featured-img::before {
    background: linear-gradient(to top, var(--bg-primary) 0%, transparent 50%);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .nav-search input {
    width: 120px;
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0 1rem;
  }
  .section {
    padding: 3rem 1rem;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .featured-info {
    padding: 2rem;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
}
