/* Stores directory — browse retailers with live deals */

body.page-stores {
  background:
    radial-gradient(900px 480px at 12% -6%, rgba(61, 220, 151, 0.1), transparent 55%),
    linear-gradient(180deg, #eef2f0 0%, #f4f6f8 42%, #e9edf1 100%);
}

body.page-stores .atmosphere {
  opacity: 0.28;
}

.stores-desk {
  padding-bottom: 3.5rem;
}

.stores-hero {
  --stores-ink: #f4efe6;
  --stores-mute: rgba(244, 239, 230, 0.72);
  --stores-pine: #0f241c;
  --stores-pine-deep: #081510;
  --stores-mint: #3ddc97;
  --stores-gold: #efb100;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 0 0.35rem;
  color: var(--stores-ink);
  background:
    radial-gradient(ellipse 65% 55% at 88% 12%, rgba(239, 177, 0, 0.16), transparent 58%),
    radial-gradient(ellipse 50% 48% at 8% 88%, rgba(61, 220, 151, 0.12), transparent 55%),
    linear-gradient(155deg, #16352a 0%, var(--stores-pine) 46%, var(--stores-pine-deep) 100%);
  min-height: clamp(20rem, 48vw, 26rem);
  display: grid;
  align-items: end;
}

.stores-hero__visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.stores-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
}

.stores-hero__glow--mint {
  width: min(38vw, 360px);
  height: min(38vw, 360px);
  left: -8%;
  bottom: -20%;
  background: rgba(61, 220, 151, 0.18);
  animation: stores-glow-drift 16s ease-in-out infinite alternate;
}

.stores-hero__glow--gold {
  width: min(44vw, 420px);
  height: min(44vw, 420px);
  right: -6%;
  top: -16%;
  background: rgba(239, 177, 0, 0.2);
  animation: stores-glow-drift 13s ease-in-out infinite alternate-reverse;
}

.stores-hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(244, 239, 230, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 230, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
}

.stores-hero__mosaic {
  position: absolute;
  inset: 8% 2% 10% 48%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.55rem, 1.4vw, 0.95rem);
  align-content: center;
  justify-items: center;
  transform: rotate(-6deg);
}

.stores-hero__tile {
  width: clamp(2.6rem, 5.2vw, 3.55rem);
  height: clamp(2.6rem, 5.2vw, 3.55rem);
  border-radius: 0.95rem;
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(244, 239, 230, 0.16);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: stores-tile-float 7.5s ease-in-out infinite;
}

.stores-hero__tile img {
  width: 58%;
  height: 58%;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}

.stores-hero__tile--1 { animation-delay: 0s; }
.stores-hero__tile--2 { animation-delay: 0.35s; transform: translateY(10px); }
.stores-hero__tile--3 { animation-delay: 0.7s; }
.stores-hero__tile--4 { animation-delay: 1.05s; transform: translateY(-8px); }
.stores-hero__tile--5 { animation-delay: 0.2s; }
.stores-hero__tile--6 { animation-delay: 0.9s; transform: translateY(14px); }
.stores-hero__tile--7 { animation-delay: 1.3s; }

.stores-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: 0.45rem;
  width: min(1180px, calc(100% - 2rem));
  max-width: 34rem;
  margin: 0 auto;
  padding: clamp(2.1rem, 5.5vw, 3.5rem) 0 clamp(1.7rem, 4vw, 2.5rem);
  justify-self: start;
  animation: stores-rise 0.7s ease both;
}

.stores-hero__brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 4.8rem);
  letter-spacing: -0.055em;
  line-height: 0.9;
  color: #fff;
}

.stores-hero__brand em {
  font-style: normal;
  color: var(--stores-mint);
}

.stores-hero__title {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  letter-spacing: -0.03em;
  color: rgba(244, 239, 230, 0.92);
}

.stores-hero__lede {
  margin: 0.15rem 0 0;
  max-width: 28rem;
  color: var(--stores-mute);
  font-size: 1.02rem;
  line-height: 1.45;
}

.stores-search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: min(34rem, 100%);
  margin-top: 0.95rem;
  padding: 0.8rem 1rem;
  border-radius: 1.05rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 18px 40px rgba(0, 0, 0, 0.22);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.stores-search:focus-within {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 3px rgba(61, 220, 151, 0.28),
    0 20px 44px rgba(0, 0, 0, 0.26);
}

.stores-search__icon {
  display: inline-grid;
  place-items: center;
  color: #5b6676;
  flex: 0 0 auto;
}

.stores-search__icon .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.stores-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 550;
  color: #10141c;
}

.stores-search input::placeholder {
  color: #8a93a3;
  font-weight: 500;
}

.stores-search__clear {
  flex: 0 0 auto;
  border: 0;
  background: rgba(16, 20, 28, 0.06);
  color: #10141c;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}

.stores-search__clear:hover {
  background: rgba(16, 20, 28, 0.1);
}

.stores-search__meta {
  margin: 0.5rem 0 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(244, 239, 230, 0.62);
}

@keyframes stores-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes stores-glow-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(14px, 18px, 0) scale(1.06); }
}

@keyframes stores-tile-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.stores-popular {
  margin-top: 1.75rem;
}

.stores-popular__head {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0.85rem;
}

.stores-popular__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.stores-popular__head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.stores-popular__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(11.5rem, 14rem);
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.55rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.stores-popular__rail::-webkit-scrollbar {
  display: none;
}

.stores-chip {
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  min-height: 4.1rem;
  padding: 0.7rem 0.8rem;
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(11, 31, 23, 0.07);
  box-shadow: 0 8px 22px rgba(16, 20, 28, 0.04);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.stores-chip:hover {
  border-color: rgba(31, 169, 113, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(16, 20, 28, 0.08);
}

.stores-chip__mark {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  background: #f3f5f8;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.stores-chip__mark img {
  width: 1.55rem;
  height: 1.55rem;
  object-fit: contain;
}

.stores-chip__mark span {
  font-weight: 800;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.stores-chip__copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.stores-chip__copy strong {
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stores-chip__copy span {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--muted);
}

.stores-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 1.35rem auto 0.35rem;
  position: sticky;
  top: 4.2rem;
  z-index: 5;
  padding: 0.55rem 0;
  background: linear-gradient(180deg, rgba(245, 246, 248, 0.96), rgba(245, 246, 248, 0.88));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stores-letters a {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  border-radius: 0.55rem;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(11, 31, 23, 0.06);
}

.stores-letters a:hover,
.stores-letters a.is-active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.stores-letters a.is-dim {
  opacity: 0.35;
  pointer-events: none;
}

.stores-directory {
  display: grid;
  gap: 1.35rem;
  margin-top: 0.75rem;
}

.stores-group__letter {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 0.65rem;
}

.stores-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  min-height: 4.4rem;
  padding: 0.8rem 0.9rem;
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(11, 31, 23, 0.07);
  box-shadow: 0 8px 22px rgba(16, 20, 28, 0.035);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.stores-card:hover {
  border-color: rgba(31, 169, 113, 0.32);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(16, 20, 28, 0.08);
}

.stores-card.is-hidden {
  display: none;
}

.stores-card__mark {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.8rem;
  background: #f3f5f8;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.stores-card__mark img {
  width: 1.7rem;
  height: 1.7rem;
  object-fit: contain;
}

.stores-card__mark span {
  font-weight: 800;
  color: var(--ink-2);
}

.stores-card__body {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.stores-card__name {
  font-size: 0.98rem;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stores-card__domain {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stores-card__count {
  display: grid;
  justify-items: end;
  gap: 0.05rem;
  flex: 0 0 auto;
}

.stores-card__count em {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.stores-card__count span {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stores-group.is-hidden {
  display: none;
}

.stores-empty {
  display: grid;
  justify-items: start;
  gap: 0.55rem;
  padding: 2rem 0 1rem;
}

.stores-empty h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.stores-empty p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .stores-hero__mosaic {
    inset: 6% -2% auto 42%;
    opacity: 0.55;
    transform: rotate(-8deg) scale(0.92);
  }
}

@media (max-width: 720px) {
  .stores-hero {
    min-height: 18.5rem;
    align-items: end;
  }

  .stores-hero__inner {
    max-width: none;
    width: min(100%, calc(100% - 1.5rem));
    padding-top: 1.7rem;
    padding-bottom: 1.45rem;
  }

  .stores-hero__brand {
    font-size: clamp(2.55rem, 14vw, 3.3rem);
  }

  .stores-hero__title {
    font-size: clamp(1.2rem, 5.2vw, 1.5rem);
  }

  .stores-hero__lede {
    font-size: 0.95rem;
    max-width: none;
  }

  .stores-hero__mosaic {
    inset: auto -8% 42% 28%;
    opacity: 0.28;
    transform: rotate(-10deg) scale(0.86);
  }

  .stores-hero__grid {
    opacity: 0.12;
  }

  .stores-letters {
    top: 3.6rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-top: 1rem;
  }

  .stores-letters::-webkit-scrollbar {
    display: none;
  }

  .stores-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .stores-card {
    min-height: 4rem;
    padding: 0.7rem 0.75rem;
  }

  .stores-popular__rail {
    grid-auto-columns: minmax(10.5rem, 12.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stores-card,
  .stores-chip,
  .stores-search,
  .stores-hero__inner,
  .stores-hero__glow--mint,
  .stores-hero__glow--gold,
  .stores-hero__tile {
    transition: none;
    animation: none;
  }

  .stores-card:hover,
  .stores-chip:hover,
  .stores-search:focus-within {
    transform: none;
  }
}
