/* shop.css — page-local styles for /shop on the marketing site.
   Re-uses tokens from seo.css (--bg, --primary, --card, --border, --fg,
   --muted, --muted-light). Anything that would also apply to other
   pages belongs in seo.css, not here. */

.shop-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}
@media (min-width: 768px) {
  .shop-main { padding: 3rem 2rem 4rem; }
}

/* ── Hero ─────────────────────────────────────────────────────── */
.shop-hero { margin-bottom: 1.5rem; }
.shop-hero-inner { max-width: 720px; }
.shop-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-glow);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.875rem;
}
.shop-title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.75rem;
  color: var(--fg);
}
.shop-sub {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--muted-light);
  margin: 0;
}
.link-soft {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: rgba(59, 130, 246, 0.4);
  text-underline-offset: 3px;
}
.link-soft:hover { text-decoration-color: var(--primary); }

/* ── Affiliate disclosure ─────────────────────────────────────── */
.shop-disclosure {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.06);
  color: #fcd34d;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.4;
  margin-bottom: 1.25rem;
}
.shop-disclosure svg { flex-shrink: 0; }

/* ── Category tabs (sticky) ───────────────────────────────────── */
.shop-tabs-wrap {
  position: sticky;
  top: 64px; /* below the global nav */
  z-index: 5;
  margin: 0 -1.25rem 1rem;
  padding: 0.5rem 1.25rem;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) {
  .shop-tabs-wrap { margin: 0 -2rem 1.25rem; padding: 0.625rem 2rem; }
}
.shop-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.125rem;
}
.shop-tabs::-webkit-scrollbar { display: none; }

.shop-tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--fg);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}
.shop-tab:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
}
.shop-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.shop-tab-count {
  font-size: 0.6875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 0.05rem 0.375rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted-light);
}
.shop-tab.is-active .shop-tab-count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* ── Section header ───────────────────────────────────────────── */
.shop-section { margin-bottom: 2rem; }
.shop-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.shop-section-head h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--fg);
  margin: 0;
}
.shop-section-head p {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0.25rem 0 0;
  line-height: 1.4;
}
.shop-section-jump {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.shop-section-jump:hover { text-decoration: underline; }

/* ── Grid + cards ─────────────────────────────────────────────── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
}
@media (min-width: 480px) { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) { .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .shop-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .shop-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.shop-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}
.shop-card:hover {
  border-color: rgba(59, 130, 246, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -16px rgba(59, 130, 246, 0.45);
  text-decoration: none;
}
.shop-card-img {
  position: relative;
  height: 112px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) {
  .shop-card-img { height: 128px; }
}
.shop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
}
.shop-card-img .shop-card-placeholder {
  width: 28px; height: 28px; color: rgba(255,255,255,0.18);
}
.shop-card-badge {
  position: absolute;
  top: 0.375rem;
  left: 0.375rem;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.125rem 0.4rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.95);
  color: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.shop-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.625rem 0.625rem 0.625rem;
  gap: 0.375rem;
}
.shop-card-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shop-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
}
.shop-card-price {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.shop-card-cta {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.shop-card:hover .shop-card-cta { color: var(--primary-hover); }

/* ── Skeleton ─────────────────────────────────────────────────── */
.shop-skeleton {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
}
@media (min-width: 480px) { .shop-skeleton { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) { .shop-skeleton { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.shop-skeleton > div {
  height: 188px;
  border-radius: 0.625rem;
  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: 200% 100%;
  animation: shop-skel 1.5s ease-in-out infinite;
}
@keyframes shop-skel {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Funnel banner ────────────────────────────────────────────── */
.shop-funnel {
  margin: 2rem 0;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(59, 130, 246, 0.25);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.02));
}
.shop-funnel h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--fg);
}
.shop-funnel p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted-light);
  margin: 0 0 1rem;
  max-width: 60ch;
}
.shop-funnel-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

/* ── Error + retry ────────────────────────────────────────────── */
.shop-error {
  padding: 1.5rem;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 0.5rem;
  color: var(--muted-light);
  font-size: 0.875rem;
}
.link-button {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

/* ── Bottom CTA band (re-used pattern) ────────────────────────── */
.cta-band {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, rgba(59, 130, 246, 0.04) 100%);
  padding: 3rem 1.25rem;
}
.cta-band-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  color: var(--fg);
}
.cta-band p {
  font-size: 1rem;
  color: var(--muted-light);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}
.cta-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
