/* =========================================================
   SHOPNFINITY — design system
   Palette   : paper / ink / ink-soft / line / spark / deep
   Display   : Space Grotesk   Body: Inter   Data: IBM Plex Mono
   Signature : the infinity mark — wordmark + recurring eyebrow glyph
   ========================================================= */

:root {
  --paper:      #FAF7F2;
  --paper-dim:  #F3EDE3;
  --ink:        #201A15;
  --ink-soft:   #6B5D4F;
  --line:       #E8DDCD;
  --spark:      #8A5F36;
  --spark-hover: #714E2C;
  --spark-ink:  #F1E4D3;
  --deep:       #221A13;
  --deep-soft:  #3A2C1E;
  --white:      #FFFFFF;

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;

  --shadow-sm: 0 1px 2px rgba(32, 26, 21, 0.06), 0 1px 1px rgba(32, 26, 21, 0.04);
  --shadow-md: 0 12px 28px -12px rgba(32, 26, 21, 0.22);
  --shadow-lg: 0 24px 60px -20px rgba(32, 26, 21, 0.32);

  --wrap: 1320px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
input { font: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

:focus-visible {
  outline: 2.5px solid var(--spark);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: var(--radius-sm);
  z-index: 999; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- infinity mark / eyebrow ---------- */
.infinity-mark {
  display: inline-block;
  font-size: 1.05em;
  transform: translateY(-1px);
  color: var(--spark);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}
.eyebrow--on-media { color: var(--white); opacity: .92; }
.eyebrow--on-dark { color: rgba(250,249,245,0.72); }

.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head--rail {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.section-head h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 600; }
.section-sub { color: var(--ink-soft); margin: 8px 0 0; max-width: 46ch; }

.text-link {
  font-family: var(--font-mono);
  font-size: 13px;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
  padding-bottom: 2px;
}
.text-link:hover { border-color: currentColor; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--spark); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: var(--spark-hover); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn--lg { padding: 15px 28px; font-size: 15px; }
.btn--pill { background: var(--ink); color: var(--white); font-size: 12px; padding: 8px 16px; }

/* =========================================================
   ANNOUNCEMENT STRIP + HEADER
   ========================================================= */
.announce-strip {
  background: var(--ink);
  color: var(--paper);
}
.announce-strip p {
  margin: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  padding: 8px 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 16px 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.logo--image { line-height: 0; }
.logo__img {
  display: block;
  height: 30px;
  width: auto;
  max-width: 100%;
}
.logo--footer .logo__img {
  height: 26px;
  /* brighten the wordmark so it reads clearly on the dark footer */
  filter: brightness(1.55) saturate(1.05);
}

.main-nav ul { display: flex; gap: 26px; }
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--spark);
  transition: right .22s var(--ease);
}
.main-nav a:hover::after { right: 0; }

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  height: 44px;
  min-width: 220px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.header-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--spark-ink); }
.header-search__icon { color: var(--ink-soft); flex-shrink: 0; margin-right: 8px; }
.header-search input {
  border: 0; outline: 0; background: transparent;
  width: 100%; font-size: 13.5px; color: var(--ink);
}
.header-search input::placeholder { color: #9CA0AB; }

.header-actions { display: flex; align-items: center; gap: 22px; }
.header-actions__link {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10.5px; font-weight: 500; color: var(--ink-soft);
  position: relative;
}
.header-actions__link:hover { color: var(--ink); }
.header-actions__link--cart { color: var(--ink); }
.cart-count {
  position: absolute; top: -6px; right: -10px;
  background: var(--spark); color: var(--white);
  font-family: var(--font-mono); font-size: 10px;
  min-width: 17px; height: 17px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}
.hero__media {
  position: absolute; inset: 0;
  animation: hero-in 1.1s var(--ease) both;
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: hero-pan 16s ease-in-out infinite alternate;
}
.hero__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(24,19,15,.15) 0%, rgba(24,19,15,.05) 35%, rgba(24,19,15,.78) 100%);
}
.hero__content {
  position: relative;
  padding-bottom: 68px;
  padding-top: 120px;
  max-width: 760px;
  animation: hero-content-in 1s .15s var(--ease) both;
}
.hero__headline {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.02;
  margin-bottom: 18px;
}
.hero__sub {
  font-size: clamp(15px, 1.6vw, 18px);
  max-width: 46ch;
  color: rgba(255,255,255,0.88);
  margin: 0 0 30px;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero__trust {
  display: flex; gap: 26px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px;
  color: rgba(255,255,255,0.85);
}
.hero__trust li { display: flex; align-items: center; gap: 7px; }

@keyframes hero-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-content-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-pan { from { transform: scale(1.02) translateY(0); } to { transform: scale(1.08) translateY(-10px); } }

/* =========================================================
   PROMPT BAR (used on the search / results page)
   ========================================================= */
.prompt-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border-radius: 999px;
  padding: 8px 8px 8px 24px;
  box-shadow: var(--shadow-lg);
}
.prompt-bar input {
  flex: 1;
  border: 0; outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14.5px;
  min-width: 0;
}
.prompt-bar input::placeholder { color: #9CA0AB; }
.prompt-bar button {
  background: var(--spark);
  color: var(--white);
  border: 0;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
  transition: background .18s var(--ease);
}
.prompt-bar button:hover { background: var(--spark-hover); }
.prompt-bar--page { max-width: 640px; margin: 0 0 40px; box-shadow: var(--shadow-md); }

.prompt-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: 20px;
}
.prompt-chips a {
  font-family: var(--font-mono);
  font-size: 12px;
  border: 1px solid rgba(250,249,245,0.28);
  color: rgba(250,249,245,0.85);
  border-radius: 999px;
  padding: 8px 15px;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.prompt-chips a:hover { border-color: var(--spark); background: rgba(138,95,54,0.14); }

/* =========================================================
   CATEGORY DISCOVERY
   ========================================================= */
.categories { padding: 88px 0 20px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 18px;
}
.category-card--feature { grid-column: span 2; grid-row: span 2; }
.category-card--wide     { grid-column: span 2; grid-row: span 1; }
.category-card--standard { grid-column: span 1; grid-row: span 1; }

.category-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
}
.category-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
  transition: transform .6s var(--ease);
}
.category-card:hover img { transform: scale(1.09); }
.category-card__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(24,19,15,.86) 0%, rgba(24,19,15,.15) 55%, rgba(24,19,15,0) 75%);
}
.category-card__content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px;
  color: var(--white);
}
.category-card__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 4px;
}
.category-card--feature .category-card__name { font-size: 28px; }
.category-card__tagline {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 12px;
  max-width: 30ch;
}
.category-card__cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.03em;
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.category-card:hover .category-card__cta,
.category-card:focus-visible .category-card__cta { opacity: 1; transform: translateY(0); }

/* =========================================================
   PRODUCT CARD (shared)
   ========================================================= */
.product-card { position: relative; }
.product-card__media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--paper-dim);
  margin-bottom: 14px;
}
.product-card__media-link { display: block; width: 100%; height: 100%; }
.product-card__img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.product-card__img--primary { position: relative; z-index: 1; }
.product-card__img--hover {
  position: absolute; inset: 0; z-index: 2;
  opacity: 0;
}
.product-card__media:hover .product-card__img--primary { transform: scale(1.06); }
.product-card__media:hover .product-card__img--hover { opacity: 1; }

.product-card__badges {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  display: flex; flex-direction: column; gap: 6px;
}
.badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--white);
}
.badge--dark { background: var(--ink); }
.badge--accent { background: var(--spark); }

.icon-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.wishlist-form {
  position: absolute; top: 12px; right: 12px; z-index: 3;
}
.wishlist-btn:hover { background: var(--spark); color: var(--white); transform: scale(1.06); }
.wishlist-btn:active { transform: scale(.92); }

.quick-add-form {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3;
  opacity: 0; transform: translateY(8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.product-card__media:hover .quick-add-form,
.quick-add-form:focus-within { opacity: 1; transform: translateY(0); }
.btn--quick-add {
  width: 100%;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 11px;
  font-size: 13px;
}
.btn--quick-add:hover { background: var(--spark); }

.product-card__brand {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 4px;
}
.product-card__name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 8px;
  line-height: 1.3;
}
.product-card__name a:hover { color: var(--spark); }

.product-card__rating {
  display: flex; align-items: center; gap: 6px;
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.stars {
  position: relative;
  display: inline-block;
  width: 72px; height: 13px;
  font-family: sans-serif;
}
.stars::before, .stars::after {
  content: '★★★★★';
  position: absolute; left: 0; top: -3px;
  font-size: 15px; letter-spacing: 2px;
  line-height: 1;
}
.stars::before { color: var(--line); }
.stars::after {
  color: var(--spark);
  width: calc(var(--rating) / 5 * 100%);
  overflow: hidden;
  white-space: nowrap;
}
.product-card__price { margin: 0; font-family: var(--font-mono); font-size: 14px; }
.product-card__price-current { font-weight: 500; color: var(--ink); }
.product-card__price-compare {
  margin-left: 8px;
  color: #A4A8B1;
  text-decoration: line-through;
  font-size: 12.5px;
}

/* =========================================================
   TRENDING RAIL
   ========================================================= */
.rail-section { padding: 88px 0; }
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 264px;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.rail .product-card { scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

/* =========================================================
   GENERIC PRODUCT GRIDS
   ========================================================= */
.grid-section { padding: 88px 0; }
.grid-section--tint { background: var(--paper-dim); }
.product-grid { display: grid; gap: 26px 22px; }
.product-grid--4col { grid-template-columns: repeat(4, 1fr); }

/* =========================================================
   VIDEO / SOCIAL COMMERCE
   ========================================================= */
.video-section { padding: 20px 0 92px; }
.video-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 240px;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
}
.video-card {
  position: relative;
  scroll-snap-align: start;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
}
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.video-card:hover img { transform: scale(1.05); }
.video-card__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(24,19,15,.88) 0%, rgba(24,19,15,.05) 45%, rgba(24,19,15,0) 62%);
}
.video-card__play {
  position: absolute; top: 16px; right: 16px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--ink); padding-left: 2px;
}
.video-card__info { position: absolute; left: 14px; right: 14px; bottom: 14px; color: var(--white); }
.video-card__caption { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 3px; }
.video-card__product { display: block; font-family: var(--font-mono); font-size: 11.5px; color: rgba(255,255,255,0.82); margin-bottom: 10px; }

/* =========================================================
   BEST DEALS
   ========================================================= */
.deals-section { padding: 20px 0 92px; }
.deals-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.deal-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.deal-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.deal-card:hover img { transform: scale(1.06); }
.deal-card__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(24,19,15,.82) 0%, rgba(24,19,15,.1) 55%, rgba(24,19,15,0) 72%);
}
.deal-card__content { position: absolute; left: 18px; right: 18px; bottom: 18px; color: var(--white); }
.deal-card__title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 19px; margin-bottom: 4px; }
.deal-card__subtitle { display: block; font-size: 12.5px; color: rgba(255,255,255,0.82); }

/* =========================================================
   TRUST STRIP
   ========================================================= */
.trust-strip { padding: 50px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-strip__item {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink-soft); font-size: 13.5px; font-weight: 500;
}
.trust-strip__item svg { color: var(--spark); flex-shrink: 0; }

/* =========================================================
   NEWSLETTER
   ========================================================= */
.newsletter { background: var(--deep); color: var(--white); padding: 90px 0; }
.newsletter__inner { max-width: 620px; margin: 0 auto; text-align: center; }
.newsletter__inner .eyebrow { justify-content: center; }
.newsletter__heading { font-size: clamp(26px, 4vw, 38px); font-weight: 600; margin-bottom: 12px; }
.newsletter__sub { color: rgba(250,249,245,0.72); margin: 0 0 30px; }
.newsletter__form {
  display: flex; gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
}
.newsletter__form input {
  flex: 1; border: 0; outline: 0; background: transparent;
  color: var(--white); font-size: 14px; min-width: 0;
}
.newsletter__form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter__form button {
  background: var(--spark); color: var(--white); border: 0;
  border-radius: 999px; padding: 13px 24px; font-weight: 600; font-size: 14px;
  flex-shrink: 0; transition: background .18s var(--ease);
}
.newsletter__form button:hover { background: var(--spark-hover); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: rgba(250,249,245,0.78); padding: 72px 0 0; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-footer__brand .logo { margin-bottom: 14px; }
.site-footer__tag { font-size: 13.5px; margin: 0 0 18px; max-width: 26ch; }
.site-footer__social { display: flex; gap: 12px; }
.site-footer__social a {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10px;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.site-footer__social a:hover { border-color: var(--spark); color: var(--spark); }
.site-footer__col h2 {
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--white); margin-bottom: 18px; font-weight: 500;
}
.site-footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.site-footer__col a { font-size: 13.5px; transition: color .18s var(--ease); }
.site-footer__col a:hover { color: var(--white); }
.site-footer__bottom { padding: 22px 0; font-size: 12px; color: rgba(250,249,245,0.5); }

/* =========================================================
   SEARCH / RESULTS PAGE
   ========================================================= */
.results-page { padding: 56px 0 96px; }
.results-heading { font-size: clamp(24px, 3.4vw, 32px); font-weight: 600; margin-bottom: 28px; }
.results-heading__query { color: var(--spark); }
.results-empty { color: var(--ink-soft); margin-bottom: 40px; }

/* =========================================================
   BRANDS MARQUEE
   ========================================================= */
.brands-strip { padding: 56px 0 64px; }
.brands-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
}
.brands-marquee__track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  padding: 4px 0;
  animation: brands-scroll 32s linear infinite;
}
.brands-marquee:hover .brands-marquee__track { animation-play-state: paused; }
.brands-marquee__item {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  white-space: nowrap;
  opacity: 0.75;
  transition: opacity .18s var(--ease), color .18s var(--ease);
}
.brands-marquee__item:hover { color: var(--spark); opacity: 1; }
.brands-marquee__logo {
  flex: 0 0 auto;
  height: 34px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter .18s var(--ease), opacity .18s var(--ease);
}
.brands-marquee__logo:hover { filter: grayscale(0); opacity: 1; }

@keyframes brands-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .brands-marquee__track { animation: none; }
  .brands-marquee { overflow-x: auto; }
}

@media (max-width: 620px) {
  .brands-strip { padding: 40px 0 48px; }
  .brands-marquee__track { gap: 36px; animation-duration: 22s; }
  .brands-marquee__item { font-size: 17px; }
}

/* =========================================================
   MOBILE BOTTOM NAV
   ========================================================= */
.mobile-nav { display: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 210px; }
  .category-card--feature { grid-column: span 2; grid-row: span 2; }
  .category-card--wide { grid-column: span 2; }
  .product-grid--4col { grid-template-columns: repeat(3, 1fr); }
  .deals-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .site-footer__col:last-child { grid-column: span 1; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-search { min-width: 0; flex: 1; }
  .header-search input,
  .prompt-bar input,
  .newsletter__form input { font-size: 16px; } /* prevents iOS auto-zoom on focus */
  .site-header__inner { grid-template-columns: auto 1fr auto; gap: 14px; padding: 12px 20px; }
  .header-actions__label { display: none; }
  .header-actions { gap: 16px; }
  .wrap { padding: 0 20px; }

  .hero { min-height: 560px; }
  .hero__content { padding-top: 90px; padding-bottom: 96px; }

  .categories { padding: 64px 0 16px; }
  .rail-section { padding: 64px 0; }
  .grid-section { padding: 64px 0; }
  .video-section { padding: 16px 0 68px; }
  .deals-section { padding: 16px 0 68px; }

  .trust-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid--4col { grid-template-columns: repeat(2, 1fr); }
  .deals-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer { padding: 56px 0 0; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .site-footer__brand { grid-column: span 2; }
  .newsletter { padding: 64px 0; }
  .newsletter__form { flex-direction: column; border-radius: var(--radius-md); padding: 14px; }
  .newsletter__form input { padding: 8px 4px; text-align: center; }

  .site-footer { padding-bottom: 62px; } /* room for mobile bottom nav, filled with footer bg */
  .mobile-nav {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: rgba(250,247,242,0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    justify-content: space-around;
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
  }
  .mobile-nav a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    font-size: 10px; color: var(--ink-soft); font-weight: 500;
    padding: 4px 8px;
  }
  .mobile-nav a.is-active { color: var(--spark); }
}

@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .announce-strip p { font-size: 10.5px; padding: 7px 12px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 168px; gap: 14px; }
  .category-card--feature { grid-column: span 2; grid-row: span 2; }
  .category-card--wide { grid-column: span 2; grid-row: span 1; }
  .category-card--standard { grid-column: span 1; }
  .product-grid--4col { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
  .deals-grid { grid-template-columns: 1fr; gap: 14px; }
  .rail { grid-auto-columns: 74vw; gap: 16px; }
  .video-rail { grid-auto-columns: 62vw; gap: 14px; }
  .trust-strip { padding: 36px 0; }
  .trust-strip__grid { grid-template-columns: 1fr; gap: 18px; }
  .section-head--rail { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero__ctas { gap: 10px; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .hero__trust { gap: 16px 20px; }
}

@media (max-width: 480px) {
  .site-header__inner { gap: 10px; padding: 10px 16px; }
  .logo__img { height: 24px; }
  .header-search { padding: 0 12px; height: 40px; }
  .header-actions { gap: 12px; }
  .hero { min-height: 480px; }
  .hero__content { padding-top: 70px; padding-bottom: 76px; }
  .hero__headline { margin-bottom: 12px; }
  .hero__sub { margin-bottom: 22px; }
  .btn--lg { padding: 13px 20px; font-size: 14px; }
  .prompt-bar { flex-wrap: wrap; padding: 14px; border-radius: var(--radius-md); }
  .prompt-bar input { flex-basis: 100%; padding: 4px 2px; }
  .prompt-bar button { width: 100%; }
  .category-grid { grid-auto-rows: 148px; }
  .product-grid--4col { gap: 14px 10px; }
  .product-card__name { font-size: 14px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__brand { grid-column: span 1; }
  .mobile-nav a { font-size: 9.5px; padding: 4px 6px; }
}
