/**
 * Neo Compounds — home page (hero, categories, best sellers, explore)
 */

/* Kill Storefront homepage leftovers inside our front page */
.neo-compounds.home .site-main > .col-full,
.neo-compounds.home .storefront-product-section,
.neo-compounds.home .site-header,
.neo-compounds.home #homepage-carousel,
.neo-compounds.home .page-template-template-homepage .entry-header {
  /* safety — front-page.php replaces content */
}

.neo-home {
  background: var(--neo-bg);
}

/* Defensive: never show Storefront homepage sections under our home */
.neo-compounds.home .storefront-product-section,
.neo-compounds.home .site-main > .col-full > .entry,
.neo-compounds.home .page-template-template-homepage .entry-header,
.neo-compounds.home #content > .col-full > article {
  display: none !important;
}

.neo-compounds.home .neo-home {
  display: block !important;
}

/* ── Hero ───────────────────────────────────────────────── */
.neo-hero {
  position: relative;
  min-height: clamp(520px, 72vh, 720px);
  background: var(--neo-navy);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.neo-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.neo-hero__bg picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.neo-hero__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

.neo-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(11, 26, 48, 0.9) 0%,
    rgba(11, 26, 48, 0.45) 38%,
    rgba(11, 26, 48, 0) 60%
  );
  pointer-events: none;
}

.neo-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--neo-max);
  width: 100%;
  margin: 0 auto;
  padding: 120px var(--neo-pad) 96px;
}

.neo-hero__rule {
  display: block;
  width: 120px;
  height: 2px;
  background: var(--neo-green);
  margin-bottom: 28px;
}

.neo-hero__eyebrow {
  margin: 0 0 18px;
  font-family: var(--neo-font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neo-green);
}

.neo-hero__title {
  margin: 0 0 36px;
  color: #fff;
  font-size: clamp(44px, 6.4vw, 88px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 760px;
  text-wrap: balance;
}

.neo-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 58px;
  padding: 0 10px 0 30px;
  white-space: nowrap;
  background: #fff;
  color: var(--neo-navy);
  border-radius: var(--neo-pill);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}

.neo-hero__cta:hover {
  background: var(--neo-green);
  color: var(--neo-navy);
}

.neo-hero__cta-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--neo-navy);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
}

/* ── Categories ─────────────────────────────────────────── */
.neo-cats {
  background: #fff;
  border-bottom: 1px solid var(--neo-border);
}

.neo-cats__head {
  padding-top: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.neo-cats__label {
  font-family: var(--neo-font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neo-navy);
  white-space: nowrap;
}

.neo-cats__line {
  flex: 1;
  height: 1px;
  background: var(--neo-border);
}

.neo-cats__grid {
  padding-top: 20px;
  padding-bottom: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 24px 12px;
}

.neo-cats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 14px 8px;
  border-radius: 18px;
  color: var(--neo-navy);
  text-decoration: none;
  transition: background 0.15s;
}

.neo-cats__item:hover {
  background: var(--neo-bg);
  color: var(--neo-navy);
}

.neo-cats__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--neo-cat-tint, #F1F4F8);
  color: var(--neo-cat-ink, var(--neo-blue));
  display: flex;
  align-items: center;
  justify-content: center;
}

.neo-cats__icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.neo-cats__name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
}

/* ── Best Sellers ───────────────────────────────────────── */
.neo-bestsellers {
  padding: 88px 0 40px;
}

.neo-bestsellers__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.neo-bestsellers__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--neo-navy);
}

.neo-bestsellers__all {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--neo-navy);
  border-bottom: 2px solid var(--neo-green);
  padding-bottom: 4px;
  text-decoration: none;
}

.neo-bestsellers__all:hover {
  color: var(--neo-blue);
}

.neo-bestsellers__empty {
  margin: 0;
  color: var(--neo-muted);
  font-size: 15px;
}

/* Product cards/grid: see products.css (shared with shop) */

/* ── Explore tiles ──────────────────────────────────────── */
.neo-explore {
  padding: 48px 0 104px;
}

.neo-explore__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
}

.neo-explore__tile {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  min-height: 260px;
  border-radius: 24px;
  overflow: hidden;
  padding: 28px;
  text-decoration: none;
  color: #fff;
  background: var(--neo-navy);
}

.neo-explore__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
  transition: transform 0.35s ease;
}

.neo-explore__tile:hover .neo-explore__photo {
  transform: scale(1.04);
}

.neo-explore__shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(0deg, rgba(11, 26, 48, 0.88) 0%, rgba(11, 26, 48, 0) 100%);
  pointer-events: none;
}

.neo-explore__label {
  position: relative;
  z-index: 1;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.neo-explore__arrow {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--neo-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.neo-explore__tile:hover .neo-explore__arrow {
  background: var(--neo-green);
}

@media (max-width: 720px) {
  .neo-hero__inner {
    padding: 80px var(--neo-pad) 64px;
  }

  .neo-hero__art {
    object-position: 85% center;
    opacity: 0.85;
  }

  .neo-bestsellers {
    padding: 56px 0 24px;
  }

  .neo-explore {
    padding: 32px 0 72px;
  }

  .neo-explore__tile {
    min-height: 220px;
  }
}
