/* store-home/index.css — Wave 5c composition. Mobile-first. */

/* ─── Atoms ────────────────────────────────────────────────────────── */
@import url('../../_components/atoms/page-shell/page-shell.css');
@import url('../../_components/atoms/sales-badge/sales-badge.css');
@import url('../../_components/atoms/btn-primary/btn-primary.css');

/* ─── Molecules ────────────────────────────────────────────────────── */
@import url('../../_components/molecules/card-product/card-product.css');

/* ─── Sections ─────────────────────────────────────────────────────── */
@import url('../../_components/sections/header-full/header-full.css');
@import url('../../_components/sections/footer-full/footer-full.css');
@import url('../../_components/sections/mobile-menu/mobile-menu.css');
@import url('../../_components/sections/age-gate-modal/age-gate-modal.css');
@import url('../../_components/sections/page-glow/page-glow.css');
@import url('../../_components/sections/hero-card/hero-card.css');
@import url('../../_components/sections/category-scroller/category-scroller.css');
@import url('../../_components/sections/vip-banner/vip-banner.css');

/* ─── Page-scoped overrides ────────────────────────────────────────── */

.page-store-home .store-main {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.page-store-home .store-container {
  width: 100%;
  max-width: 1232px;
  margin: 0 auto;
  padding: 24px 16px 80px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: stretch;
}

/* ── Section row (heading + chevron + arrows) — page-level pattern ── */
.page-store-home .section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 0;
}

.page-store-home .section-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: 'Nationale', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 28px;
  letter-spacing: -0.44px;
  color: rgb(var(--color-lead));
}
.page-store-home .section-heading__chevron {
  font-size: 16px;
  color: rgb(var(--color-subs));
}

/* Section arrows + dots — desktop only */
.page-store-home .section-arrows {
  display: none;
  align-items: center;
  gap: 16px;
}
.page-store-home .section-arrows__dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.page-store-home .section-arrows__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(var(--color-text));
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease;
}
.page-store-home .section-arrows__dot.is-active {
  background: rgb(var(--color-lead));
}
.page-store-home .section-arrows__btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgb(var(--color-soft));
  border: 1px solid rgb(var(--color-line));
  border-radius: 9999px;
  color: rgb(var(--color-subs));
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.page-store-home .section-arrows__btn:hover {
  background: rgb(var(--color-line));
  color: rgb(var(--color-lead));
}
.page-store-home .section-arrows__btn:focus-visible {
  outline: 2px solid rgb(var(--color-main));
  outline-offset: 2px;
}
.page-store-home .section-arrows__btn-icon {
  font-size: 16px;
}
.page-store-home .section-arrows__btn--prev .section-arrows__btn-icon {
  transform: scaleX(-1);
}

/* ── Inline search bar — page-level (NOT extracted; this is the pill variant
      that lives only on store-home, distinct from molecules/search-bar-input which
      is mute-bg rectangular for /search/) ── */
.page-store-home .store-search {
  position: relative;
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  background: rgba(8, 9, 14, 0.5);
  border: 1px solid rgb(var(--color-line));
  border-radius: 32px;
  box-sizing: border-box;
}
.page-store-home .store-search__icon {
  font-size: 20px;
  color: rgb(var(--color-text));
  flex-shrink: 0;
}
.page-store-home .store-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-family: 'Nationale', sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: rgb(var(--color-lead));
}
.page-store-home .store-search__input::placeholder {
  color: rgb(var(--color-text));
}
:root:not(.dark) .page-store-home .store-search,
.light .page-store-home .store-search {
  background: rgba(248, 250, 252, 0.5);
}

/* ── Embla carousel (product rails) ── */
.page-store-home .embla {
  position: relative;
  width: 100%;
  overflow: visible;
}
.page-store-home .embla__viewport {
  overflow: hidden;
}
.page-store-home .embla__container {
  display: flex;
  gap: 16px;
  padding-top: 8px; /* room for floating sales-badge -8px */
  padding-bottom: 4px;
}
.page-store-home .embla__slide {
  flex: 0 0 268px;
  min-width: 0;
}

/* ── Snap-service banner (Group 72, inline page-level — single-use) ──
   Figma: 1200×580 group. Card is 1200×532 (Rectangle 44):
     - fill: #08090E base + linear-gradient(180deg, #08090E 80%, #1B1F31 100%)
     - 1px stroke #242A43
     - border-radius 12px
   Plus a soft bottom glow (Group 46 / Ellipse 8): #353D61 ellipse blurred 160px @ 20%
   rendered as SVG asset (snap-bottom-glow.svg) — NO CSS filter:blur, NO radial-gradient,
   per project codified rule (feedback_figma_blur_use_svg_not_css). */
.page-store-home .snap-banner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #08090E 80%, #1B1F31 100%),
    #08090E; /* always-dark island, hardcoded hex per Figma fill */
  border: 1px solid #242A43;
  padding: 48px 24px;
  text-align: center;
  isolation: isolate;
}
/* Top accent line — Rectangle 77 (1px slim white gradient, 0→1→0) */
.page-store-home .snap-banner::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 10%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 90%);
  z-index: 2;
  pointer-events: none;
}
/* Bottom radial glow — Group 46 / Ellipse 8 as inline SVG asset
   SVG canvas: 1520×704 with 80px blur bleed margins; the visible
   ellipse is approx 1200×384 centered, color #353D61 @ 20% opacity.
   Positioned bottom-aligned within the card. */
.page-store-home .snap-banner::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -80px; /* bleed beyond bottom edge for glow spread */
  transform: translateX(-50%);
  width: 1520px;
  height: 704px;
  max-width: none;
  background-image: url('../../_shared/assets/store-home/snap-bottom-glow.svg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  z-index: 0;
  pointer-events: none;
}
.page-store-home .snap-banner__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.page-store-home .snap-banner__eyebrow {
  margin: 0;
  font-family: 'Nationale', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 1.4px; /* Figma: 10% of 14px */
  text-transform: uppercase;
  color: #FBBF24; /* warn — gold (always-dark island) */
}
.page-store-home .snap-banner__title {
  margin: 0;
  font-family: 'Nationale', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.64px;
  color: #ffffff;
}
.page-store-home .snap-banner__stars {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.page-store-home .snap-banner__stars .icon-star-01-solid {
  color: #fbbf24;
  font-size: 14px;
}
.page-store-home .snap-banner__review-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.page-store-home .snap-banner__review-count {
  font-family: 'Nationale', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #cbd5e1; /* subs */
}
.page-store-home .snap-banner__limited {
  margin: 24px 0 0 0;
  padding: 18px 0;
  width: 100%;
  max-width: 1072px;
  text-align: center;
  font-family: 'Nationale', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 3.6px; /* Figma: 20% of 18px */
  text-transform: uppercase;
  color: #FFFFFF;
  /* Figma Group 74: 2px slate-300 gradient lines (0→1→0 horizontal) at 30% opacity */
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, rgba(148,163,184,0) 10%, rgba(148,163,184,0.3) 50%, rgba(148,163,184,0) 90%) 1;
}
.page-store-home .snap-banner__price-row {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 16px;
}
.page-store-home .snap-banner__price {
  font-family: 'Nationale', sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 36px;
  letter-spacing: -0.56px;
  color: #ffffff;
}
.page-store-home .snap-banner__price-old {
  position: relative;
  font-family: 'Nationale', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 26px;
  color: #94a3b8;
}
.page-store-home .snap-banner__price-old::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  top: 50%;
  height: 2px;
  background: #94a3b8;
  transform: translateY(-50%) rotate(-12deg);
  border-radius: 1px;
}
.page-store-home .snap-banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 48px;
  background: #ffffff;
  color: #0b0e16;
  border: 0;
  border-radius: 24px;
  text-decoration: none;
  cursor: pointer;
  margin-top: 8px;
  font-family: 'Nationale', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  transition: opacity 0.18s ease;
}
.page-store-home .snap-banner__cta:hover { opacity: 0.92; }
.page-store-home .snap-banner__cta:active { opacity: 0.86; }
.page-store-home .snap-banner__cta:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 2px;
}
.page-store-home .snap-banner__sales-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 2px 8px;
  background: #353D61; /* Figma: solid #353D61 linear-gradient (degenerate) */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #FFFFFF;
  border-radius: 20px;
  font-family: 'Nationale', sans-serif;
  font-size: 12px;
  line-height: 20px;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
}
.page-store-home .snap-banner__sales-badge strong { font-weight: 700; }
.page-store-home .snap-banner__sales-badge .icon-receipt-check { font-size: 16px; }

/* ── Tablet ────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .page-store-home .store-container {
    padding: 32px 24px 80px;
    gap: 40px;
  }
  .page-store-home .section-heading {
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -0.48px;
  }
  .page-store-home .embla__slide {
    flex: 0 0 282px;
  }
  .page-store-home .embla__container {
    gap: 20px;
  }
  .page-store-home .store-search {
    padding: 0 24px;
    height: 64px;
  }
  .page-store-home .store-search__icon { font-size: 24px; }
  .page-store-home .store-search__input { font-size: 18px; }
  .page-store-home .snap-banner {
    padding: 64px 48px;
  }
  .page-store-home .snap-banner__title {
    font-size: 36px;
    line-height: 44px;
  }
}

/* ── Desktop (≥1024) ───────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .page-store-home .store-container {
    padding: 40px 16px 96px;
    gap: 16px;
  }
  /* Add 32px margin-top to "new section" markers — top boundary of each rail/banner.
     Figma section-row→section-row gap = 48 (instead of container 16 → +32 needed). */
  .page-store-home .section-row--categories,
  .page-store-home .section-row--popular,
  .page-store-home .section-row--latest,
  .page-store-home .vip-banner,
  .page-store-home .snap-banner {
    margin-top: 32px;
  }
  .page-store-home .section-heading {
    font-size: 28px;
    line-height: 36px;
    letter-spacing: -0.56px;
  }
  .page-store-home .section-arrows {
    display: inline-flex;
  }
  .page-store-home .embla__container {
    gap: 24px;
  }
  .page-store-home .snap-banner {
    /* Card content area: 532px visible per Figma (excl 48px glow bleed) */
    padding: 64px 64px 80px;
  }
  .page-store-home .snap-banner__title {
    /* Figma style_EZPV2G: 48px / 48 line-height, Bold 700 */
    font-size: 48px;
    line-height: 48px;
    letter-spacing: -0.96px;
  }
  .page-store-home .snap-banner__price {
    /* Figma style_ZGYYB2: 36px / 40, weight 600, ls -5.56% */
    font-size: 36px;
    line-height: 40px;
    letter-spacing: -2px;
  }
  .page-store-home .snap-banner__price-old {
    /* Figma style_2UJNPI: 24px / 32, weight 500, ls -8.33% */
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -2px;
  }
  .page-store-home .snap-banner__cta {
    width: 280px;
    height: 56px;
    /* Figma style_AA8L8D: 18px / 28, DemiBold 600 (NOT 20px) */
    font-size: 18px;
    line-height: 28px;
    border-radius: 32px;
  }
}

/* Hide wins counter (Figma store-home doesn't show it) — keep header-full as-is */
/* (keep wins counter visible per content-list pages — store-home doesn't hide it) */
