/* ==========================================================================
   Hero-to-store reveal — pure CSS sticky + scroll-snap
   ========================================================================== */

html,
body {
  overscroll-behavior-y: none;
}

body {
  overflow: hidden;
}

.scroll-container {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: none;
}

/* ---- Hero ---- */

.hero {
  height: 100vh;
  scroll-snap-align: start;
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: var(--color-black);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
}

/* ---- Header ----
   Sits outside .scroll-container (body never scrolls), so it's pinned to
   the viewport with position: fixed rather than sticky — sticky only takes
   effect relative to a scrolling ancestor, and this header doesn't have
   one. Always solid: with no JS left to detect which section is in view,
   a permanent black bar is what stays legible over both the hero and the
   store section. */

.hero-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-5) 0;
  background-color: var(--color-black);
}

.hero-header__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--space-6);
  height: var(--space-6);
  color: var(--color-white);
  transition: opacity 0.15s ease;
}

.hero-header__icon-btn svg {
  width: var(--space-5);
  height: var(--space-5);
}

.hero-header__icon-btn:hover {
  opacity: 0.7;
}

.hero-header__icon-btn:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

.hero-header__wordmark {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.2em;
  color: var(--color-white);
}

.bag-icon {
  width: var(--space-5);
  height: var(--space-5);
}

/* ---- Search bar overlay ---- */

.search-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5);
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-grey-200);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s ease;
}

.search-bar.is-open {
  transform: translateY(0);
  visibility: visible;
}

.search-bar__icon {
  flex-shrink: 0;
  width: var(--space-5);
  height: var(--space-5);
  color: var(--color-grey-400);
}

.search-bar__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  font-size: var(--font-size-md);
  color: var(--color-black);
}

.search-bar__input:focus {
  outline: none;
}

.search-bar__input::placeholder {
  color: var(--color-grey-400);
}

/* Removes the native OS-styled clear/search icons some browsers render
   inside type="search" inputs, so only our own close button shows. */
.search-bar__input::-webkit-search-cancel-button,
.search-bar__input::-webkit-search-decoration {
  display: none;
}

.search-bar__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--space-6);
  height: var(--space-6);
  color: var(--color-black);
  transition: opacity 0.15s ease;
}

.search-bar__close svg {
  width: var(--space-4);
  height: var(--space-4);
}

.search-bar__close:hover {
  opacity: 0.6;
}

.search-bar__close:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 2px;
}

/* ---- Bottom CTA ---- */

.hero-cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding-bottom: var(--space-7);
  text-align: center;
}

.hero-cta__primary {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.15em;
}

.hero-cta__secondary {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-regular);
  letter-spacing: 0.15em;
  color: var(--color-grey-300);
}

.hero-cta__chevron {
  width: var(--space-4);
  height: var(--space-4);
  color: var(--color-white);
  margin-top: var(--space-1);
}

/* ---- Store section ---- */

.store-section {
  min-height: 100vh;
  scroll-snap-align: start;
  position: relative;
  z-index: 10;
  background-color: var(--color-white, #ffffff);
}

.store-placeholder {
  height: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-light);
  color: var(--color-grey-600);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.1em;
}
