/* ── Store layout ──────────────────────────────────────────────────── */

.storePage {
  min-height: 100%;
  padding: 0;
  position: relative;
  overflow-x: hidden;
}

.storeWrap {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 3.5vw, 44px);
  padding-top: calc(48px + env(safe-area-inset-top, 0px) + clamp(40px, 6vw, 72px));
  padding-bottom: 80px;
  position: relative;
  z-index: 2;
}

/* ── Store heading + intro ────────────────────────────────────────── */

.storeHeading {
  font-family: var(--font-title);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
  margin: 0 0 10px;
}

.storeIntro {
  text-align: center;
  color: rgba(255, 255, 255, 0.44);
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto clamp(20px, 3vw, 32px);
}

/* ── Store nav (pill buttons) ─────────────────────────────────────── */

.storeNav {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.storeNav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
  white-space: nowrap;
}
.storeNav a::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  filter: blur(10px);
  background:
    radial-gradient(120px 60px at 10% 50%, var(--glow-sky), transparent 70%),
    radial-gradient(120px 60px at 90% 50%, var(--glow-violet), transparent 72%),
    radial-gradient(140px 60px at 50% 80%, var(--glow-pink), transparent 74%);
  background-size: 200% 200%, 200% 200%, 220% 220%;
  transition: opacity 260ms ease;
}
.storeNav a:hover::before {
  opacity: 1;
  animation: cardGlowDrift 2.2s ease-in-out infinite;
}

.storeNav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.storeNav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
}

/* ── Product grid ─────────────────────────────────────────────────── */

.storeGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
}

@media (max-width: 960px) {
  .storeGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .storeGrid {
    grid-template-columns: minmax(0, 320px);
    justify-content: center;
    gap: 22px;
  }
  .storeCard {
    width: min(320px, 86vw);
  }
}

/* ── Store card overrides ─────────────────────────────────────────── */

.storeCard {
  aspect-ratio: 3 / 4;
  grid-template-rows: 7fr 3fr;
  transform: perspective(800px) rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--scale));
}
.storeCard:hover {
  --ry: -2deg;
  --scale: 1.02;
}
@media (prefers-reduced-motion: reduce) {
  .storeCard:hover { --ry: 0deg; --scale: 1; }
}
.storeCard .meta {
  grid-template-rows: auto auto auto 1fr;
}
.storeCard .storeCta {
  align-self: end;
  justify-self: end;
}

.storeCard .media {
  background: #0a0e14;
}

.storePrice {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  margin: 0;
}
.storePrice--free {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(14, 165, 233, 0.92);
  background: rgba(14, 165, 233, 0.12);
  border-radius: 6px;
  padding: 2px 8px;
}

.storeHoverVideo {
  opacity: 0;
  transition: opacity 320ms ease;
  z-index: 1;
}
.storeCard:hover .storeHoverVideo {
  opacity: 1;
}
@media (hover: none) {
  .storeHoverVideo { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .storeHoverVideo { display: none; }
}

.storeCta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 180ms ease, border-color 180ms ease;
}
.storeCard:hover .storeCta {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

/* ── Skeleton shimmer ─────────────────────────────────────────────── */

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton {
  pointer-events: none;
}


.skeleton .media {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 800px 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}
.skeleton .media::after { display: none; }

.skeleton .title,
.skeleton .desc {
  background: rgba(255, 255, 255, 0.06);
  color: transparent;
  border-radius: 6px;
  min-height: 1em;
}

.skeleton .title { width: 60%; }
.skeleton .desc  { width: 80%; }

/* ── Suggest section (free page upsell) ──────────────────────────── */

.storeSuggestSection {
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.storeSuggestHeader {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.storeSuggestHeading {
  font-family: var(--font-title);
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.storeSuggestSub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.28);
  margin: 4px 0 0;
}

.storeSuggestAll {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
  text-decoration: none;
  transition: color 180ms ease;
  white-space: nowrap;
}
.storeSuggestAll:hover {
  color: var(--muted);
}

/* ── Empty state ──────────────────────────────────────────────────── */

.storeEmpty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 15px;
}

/* ── Store footer (expanded) ──────────────────────────────────────── */

.storeFooter {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px clamp(18px, 3.5vw, 44px) 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.48);
  font-family: "DM Sans", "Inter", system-ui, sans-serif;
  letter-spacing: 0.02em;
}
.storeFooter a {
  color: rgba(255, 255, 255, 0.48);
  text-decoration: none;
  transition: color 180ms ease;
}
.storeFooter a:hover {
  color: rgba(255, 255, 255, 0.82);
}
.storeFooterSep {
  color: rgba(255, 255, 255, 0.18);
}

/* ── Mobile tweaks ────────────────────────────────────────────────── */


@media (prefers-reduced-motion: reduce) {
}
