/* ============================================
   ELECTROSHOP - Home Page Styles
   ============================================ */

/* ---- Hero Section ---- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: var(--bg-primary);
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 60% 40%, rgba(0, 212, 255, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(124, 58, 237, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 60%);
}

.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
  min-height: 100vh; padding: 120px 0 80px;
}

.hero-text { max-width: 580px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  padding: 6px 16px; border-radius: 100px; margin-bottom: 24px;
  animation: fadeInUp 0.5s ease forwards;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700; line-height: 1.05;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s 0.1s ease both;
}
.hero-title .line-accent {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem; color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 36px;
  animation: fadeInUp 0.6s 0.2s ease both;
}

.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  animation: fadeInUp 0.6s 0.3s ease both;
}

.hero-stats {
  display: flex; gap: 32px; margin-top: 48px;
  animation: fadeInUp 0.6s 0.4s ease both;
}
.stat-item {}
.stat-num {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 700;
  color: var(--text-primary);
}
.stat-num span { color: var(--accent); }
.stat-label { font-size: 0.8rem; color: var(--text-secondary); }

.hero-visual {
  position: relative; display: flex; align-items: center; justify-content: center;
  animation: fadeIn 1s 0.3s ease both;
}

.hero-device-card {
  position: relative; z-index: 2;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px; padding: 32px;
  box-shadow: var(--shadow), var(--shadow-accent);
  animation: float 6s ease-in-out infinite;
  max-width: 360px; width: 100%;
}
.hero-device-img {
  width: 100%; height: 240px;
  background: var(--bg-secondary); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; overflow: hidden;
}
.hero-device-icon { font-size: 80px; opacity: 0.15; color: var(--accent); }
.hero-device-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.hero-device-price { font-size: 1.5rem; font-weight: 700; color: var(--accent); font-family: var(--font-display); }
.hero-device-actions { display: flex; gap: 8px; margin-top: 16px; }

/* Floating elements */
.float-chip {
  position: absolute; z-index: 3;
  background: var(--bg-card); border: 1px solid var(--border-accent);
  border-radius: 12px; padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--text-primary);
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.float-chip.chip-1 { top: 10%; right: -10px; animation: float 5s 0.5s ease-in-out infinite; }
.float-chip.chip-2 { bottom: 20%; left: -20px; animation: float 7s 1s ease-in-out infinite; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; animation: pulse-glow 2s infinite; }
.chip-dot.green { background: var(--success); }
.chip-dot.blue { background: var(--accent); }

/* ---- Categories ---- */
.categories-section { padding: 48px 0; }
.categories-wrap { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.categories-wrap::-webkit-scrollbar { height: 0; }
.category-chip {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  padding: 10px 20px; border-radius: 100px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: var(--transition);
}
.category-chip:hover, .category-chip.active {
  background: var(--accent-glow); border-color: var(--border-accent); color: var(--accent);
}
.category-chip.active { font-weight: 600; }

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

.product-img-wrap {
  position: relative; background: var(--bg-secondary); aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.05); }

.product-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 3px 10px; border-radius: 100px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
}
.badge-bestseller { background: rgba(245, 158, 11, 0.2); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.4); }
.badge-new2 { background: rgba(34, 197, 94, 0.2); color: var(--success); border: 1px solid rgba(34, 197, 94, 0.4); }
.badge-sale2 { background: rgba(239, 68, 68, 0.2); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.4); }
.badge-popular { background: rgba(0, 212, 255, 0.2); color: var(--accent); border: 1px solid var(--border-accent); }
.badge-pro { background: rgba(124, 58, 237, 0.2); color: #a78bfa; border: 1px solid rgba(124, 58, 237, 0.4); }

.product-stock {
  position: absolute; top: 12px; right: 12px;
}
.out-of-stock-overlay {
  position: absolute; inset: 0;
  background: rgba(7, 7, 13, 0.6); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
}
.out-of-stock-overlay span {
  background: var(--danger); color: #fff;
  padding: 6px 16px; border-radius: 100px; font-size: 12px; font-weight: 700;
}

.product-icon-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: var(--text-muted);
}
.product-icon-placeholder .icon-inner {
  width: 80px; height: 80px; border-radius: 20px;
  background: var(--bg-card); display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: var(--accent); opacity: 0.5;
}
.product-icon-placeholder span { font-size: 13px; }

.product-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-category { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 600; margin-bottom: 6px; }
.product-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; line-height: 1.3; }
.product-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.product-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.product-actions { display: flex; gap: 8px; margin-top: auto; }

/* ---- Featured Section ---- */
.featured-section { background: var(--bg-secondary); }

/* ---- Why Choose ---- */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px; text-align: center;
  transition: var(--transition);
}
.feature-card:hover { border-color: var(--border-accent); transform: translateY(-4px); }
.feature-icon {
  width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 16px;
  background: var(--accent-glow); border: 1px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 24px;
}
.feature-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* ---- Banner ---- */
.promo-banner {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
  border: 1px solid var(--border-accent); border-radius: 24px; padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  position: relative; overflow: hidden;
}
.promo-banner::before {
  content: ''; position: absolute; top: -50%; right: -10%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.promo-text { position: relative; z-index: 1; }
.promo-text h2 { font-size: 2.2rem; margin-bottom: 8px; }
.promo-text p { color: var(--text-secondary); font-size: 1rem; }
.promo-actions { display: flex; gap: 12px; flex-shrink: 0; position: relative; z-index: 1; flex-wrap: wrap; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 32px; padding: 100px 0 60px; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .hero-stats { gap: 20px; }
  .promo-banner { flex-direction: column; padding: 36px 24px; text-align: center; }
  .promo-actions { justify-content: center; }
  .features-grid { grid-template-columns: 1fr; }
}
