/* ============================================================
   ELE SHOP — INDEX PAGE STYLES (FIXED v2)
   Hero buttons commented out, text shifted down
   ============================================================ */

/* ── HERO ────────────────────────────────────────────── */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 580px;
  max-height: 900px;
  overflow: hidden;
  margin-top: -68px; /* pull behind navbar */
}

.hero-slides { position: relative; width: 100%; height: 100%; }

.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}
.hero-slide.active { opacity: 1; visibility: visible; }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.82) 0%, rgba(15,23,42,0.45) 100%);
}

/* Hero content — CENTERED, shifted DOWN from navbar */
.hero-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: 100px 5% 0; /* 100px top padding pushes content down from nav */
}

.hero-slide.active .hero-content > * {
  animation: heroIn 0.8s cubic-bezier(0.25,0.46,0.45,0.94) both;
}
.hero-slide.active .hero-tag    { animation-delay: 0s; }
.hero-slide.active .hero-title  { animation-delay: 0.12s; }
.hero-slide.active .hero-sub    { animation-delay: 0.24s; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-tag {
  display: inline-block;
  background: rgba(14,165,233,0.2);
  border: 1px solid rgba(14,165,233,0.5);
  color: #7dd3fc;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  color: white;
  line-height: 1.12;
  margin-bottom: 1.5rem;
  max-width: 820px;
}
.hero-title span { color: var(--sky); }

.hero-sub {
  color: rgba(255,255,255,0.78);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.65;
  max-width: 540px;
  /* No margin-bottom — buttons are commented out */
}

/* Hero buttons — COMMENTED OUT (kept in HTML as comments)
.hero-actions { ... }
.hero-shop-btn { ... }
*/

/* Slider controls */
.hero-dots {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.hero-dot { width: 32px; height: 4px; background: rgba(255,255,255,0.4); border: none; border-radius: 2px; cursor: pointer; transition: all 0.4s ease; }
.hero-dot.active { background: var(--sky); width: 52px; }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: white; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.25s; backdrop-filter: blur(6px);
}
.hero-arrow:hover { background: rgba(14,165,233,0.3); border-color: var(--sky); }
.hero-arrow.prev  { left: 1.5rem; }
.hero-arrow.next  { right: 1.5rem; }

/* ── TRUST BAR ───────────────────────────────────────── */
.trust-bar { background: var(--navy); padding: 1rem 5%; }
.trust-inner { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.trust-item { display: flex; align-items: center; gap: 0.85rem; padding: 0.75rem; }
.trust-item i { width: 26px; height: 26px; color: var(--sky); flex-shrink: 0; }
.trust-item div { display: flex; flex-direction: column; }
.trust-item strong { color: white; font-size: 0.875rem; line-height: 1.2; }
.trust-item span   { color: rgba(255,255,255,0.55); font-size: 0.75rem; }

/* ── STATS ───────────────────────────────────────────── */
.stats-section { padding: 4rem 5%; background: var(--off-white); }
.stats-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.stat-card {
  background: white; border-radius: var(--radius-lg); padding: 2rem 1rem;
  text-align: center; border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm); transition: all var(--transition-slow);
  opacity: 0; transform: translateY(20px) scale(0.95);
}
.stat-card.revealed { opacity: 1; transform: translateY(0) scale(1); }
.stat-card:hover { border-color: var(--sky); box-shadow: var(--shadow-sky); transform: translateY(-4px) scale(1); }

.stat-num { font-family: var(--font-head); font-size: 2.8rem; font-weight: 700; color: var(--sky); line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.85rem; color: var(--slate); text-transform: uppercase; letter-spacing: 0.05em; }

/* ── SECTION HEADER ──────────────────────────────────── */
.section { padding: 5rem 5%; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.section-header.centered { flex-direction: column; align-items: center; text-align: center; }
.section-label { font-size: 0.78rem; font-weight: 600; color: var(--sky); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.3rem; }
.section-title { font-family: var(--font-head); font-size: 2rem; color: var(--navy); }
.section-title span { color: var(--sky); }
.view-all-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; font-weight: 600; color: var(--sky); transition: gap 0.25s; }
.view-all-link:hover { gap: 0.7rem; }

/* Filter row */
.products-filter-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.filter-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-chip { background: var(--gray-100); border: 1.5px solid var(--gray-200); border-radius: 50px; padding: 0.4rem 1rem; font-size: 0.83rem; font-weight: 500; cursor: pointer; transition: all var(--transition); color: var(--navy-light); }
.filter-chip:hover, .filter-chip.active { background: var(--sky-glow); border-color: var(--sky); color: var(--sky); }
.sort-select { background: var(--gray-100); border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); padding: 0.45rem 0.85rem; font-size: 0.83rem; cursor: pointer; outline: none; color: var(--navy); font-family: var(--font-body); }
.sort-select:focus { border-color: var(--sky); }

/* Product grids on homepage */
#all-products-grid, #featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

/* ── PROMO STRIP ─────────────────────────────────────── */
.promo-strip { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); padding: 4rem 5%; position: relative; overflow: hidden; }
.promo-strip::before { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(14,165,233,0.2), transparent 70%); pointer-events: none; }
.promo-inner { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; }
.promo-tag { display: block; width: fit-content; background: rgba(14,165,233,0.15); border: 1px solid rgba(14,165,233,0.3); color: var(--sky); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3rem 0.85rem; border-radius: 50px; margin-bottom: 1rem; }
.promo-text h2 { font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.8rem); color: white; line-height: 1.2; margin-bottom: 1rem; }
.promo-text h2 span { color: var(--sky); }
.promo-text p { color: rgba(255,255,255,0.65); margin-bottom: 1.75rem; max-width: 480px; }
.promo-circle { width: 155px; height: 155px; border-radius: 50%; background: rgba(14,165,233,0.15); border: 2px solid rgba(14,165,233,0.3); display: flex; align-items: center; justify-content: center; animation: spin-slow 12s linear infinite; }
.promo-circle span { font-family: var(--font-head); font-size: 1.1rem; color: var(--sky); text-align: center; line-height: 1.2; font-weight: 700; }
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ── CATEGORIES GRID ─────────────────────────────────── */
.categories-section { background: var(--off-white); }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 1.25rem; }

.cat-card {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1;
  position: relative; cursor: pointer; display: block;
  box-shadow: var(--shadow-sm); transition: all var(--transition-slow);
  opacity: 0; transform: translateY(20px);
}
.cat-card.revealed { opacity: 1; transform: translateY(0); }
.cat-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-md); }
.cat-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform var(--transition-slow); }
.cat-card:hover .cat-bg { transform: scale(1.08); }
.cat-overlay-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,0.78) 0%, rgba(15,23,42,0.1) 60%); }
.cat-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 0.75rem; color: white; font-weight: 600; font-size: 0.9rem; text-align: center; }

/* ── WHY US ──────────────────────────────────────────── */
.why-us-section { background: white; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.why-card {
  padding: 2rem; border-radius: var(--radius-lg);
  background: var(--gray-50); border: 1.5px solid var(--gray-200);
  transition: all var(--transition);
  opacity: 0; transform: translateY(16px);
}
.why-card.revealed { opacity: 1; transform: translateY(0); }
.why-card:hover { border-color: var(--sky); box-shadow: var(--shadow-sky); background: white; transform: translateY(-4px); }
.why-icon { width: 52px; height: 52px; border-radius: var(--radius); background: var(--sky-glow); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; color: var(--sky); }
.why-icon i { width: 24px; height: 24px; }
.why-card h3 { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; }
.why-card p  { font-size: 0.875rem; color: var(--slate); line-height: 1.65; }

/* ── PAGINATION ──────────────────────────────────────── */
.pagination-wrap { display: flex; justify-content: center; margin-top: 3rem; }
.pagination { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.page-btn { min-width: 40px; height: 40px; padding: 0 10px; background: white; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 500; color: var(--navy); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.page-btn:hover { border-color: var(--sky); color: var(--sky); }
.page-btn.active { background: var(--sky); border-color: var(--sky); color: white; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-dots { color: var(--slate); padding: 0 4px; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
  .why-grid    { grid-template-columns: repeat(2, 1fr); }
  #all-products-grid, #featured-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (max-width: 768px) {
  .hero-section { height: 65vh; min-height: 450px; max-height: 680px; }
  .hero-content { padding: 80px 5% 0; }
  .hero-title   { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .hero-arrow   { display: none; }
  .promo-inner  { grid-template-columns: 1fr; }
  .promo-badge, .promo-circle { display: none; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  /* 1 product per row on mobile */
  #all-products-grid, #featured-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

@media (max-width: 480px) {
  .hero-section { height: 55vh; min-height: 400px; }
  .hero-content { padding: 70px 5% 0; }
  .trust-inner  { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .trust-item   { padding: 0.5rem; gap: 0.5rem; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid    { grid-template-columns: 1fr; }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  #all-products-grid, #featured-grid { grid-template-columns: 1fr !important; gap: 0.85rem !important; }
}