/**
 * Shop scaffold styles — Lemon Squeezy ready (checkout disabled while coming soon).
 */

.shop-banner {
  position: sticky;
  top: 12px;
  z-index: 25;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(241, 100, 30, 0.45);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(241, 100, 30, 0.16), rgba(131, 100, 199, 0.14)),
    rgba(12, 12, 20, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.shop-banner-badge {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f1641e, #ff8d3a);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.shop-banner-copy {
  min-width: 0;
}

.shop-banner-copy strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.95rem;
}

.shop-banner-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
}

.shop-banner-copy a {
  color: var(--brand-accent);
  font-weight: 800;
}

/* Shop hero — reuses homepage FX, slightly shorter */
.shop-hero {
  min-height: clamp(240px, 34vh, 360px);
  margin-bottom: 16px;
}

.shop-hero-kicker {
  margin: 0 0 8px;
  color: var(--brand-accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shop-hero h1 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  animation: hub-rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.shop-hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.shop-hero-pills span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(177, 163, 248, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 800;
}

/* Search + sort + view on one row */
.shop-controls {
  display: grid;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.shop-controls-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shop-search-field {
  flex: 1 1 auto;
  min-width: 0;
}

.shop-search-field .search-input {
  width: 100%;
  min-height: 48px;
  background: rgba(0, 0, 0, 0.42);
  border-color: rgba(255, 255, 255, 0.1);
}

.shop-search-field .search-input:focus {
  border-color: rgba(177, 163, 248, 0.45);
  background: rgba(0, 0, 0, 0.55);
}

.shop-toolbar-controls {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}

.shop-sort-group {
  margin: 0;
  min-width: 160px;
}

.shop-sort-group .hub-select-trigger {
  min-height: 48px;
  min-width: 160px;
  background: rgba(0, 0, 0, 0.42);
  border-color: rgba(255, 255, 255, 0.1);
}

.shop-view-toggle {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.42);
  height: 48px;
}

.shop-view-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  width: 44px;
  height: 48px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.shop-view-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.shop-view-btn.is-active {
  color: #fff;
  background: rgba(177, 163, 248, 0.2);
}

.shop-clear-btn {
  appearance: none;
  border: 1px solid rgba(241, 100, 30, 0.4);
  background: rgba(241, 100, 30, 0.12);
  color: #ffb38a;
  border-radius: 14px;
  min-height: 48px;
  padding: 0 14px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.shop-clear-btn:hover {
  background: rgba(241, 100, 30, 0.2);
}

.shop-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.shop-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(177, 163, 248, 0.4);
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
}

.shop-chip.is-active {
  border-color: rgba(177, 163, 248, 0.55);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(177, 163, 248, 0.2), 0 0 18px rgba(177, 163, 248, 0.12);
}

.shop-empty-clear {
  appearance: none;
  margin-left: 8px;
  border: 0;
  background: transparent;
  color: var(--brand-accent);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
}

.shop-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.shop-card-featured {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(12, 12, 20, 0.82);
  border: 1px solid rgba(177, 163, 248, 0.45);
  color: #c4b5fd;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shop-card-new {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(119, 221, 255, 0.16);
  border: 1px solid rgba(119, 221, 255, 0.45);
  color: #77ddff;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: hub-badge-glow 2.4s ease-in-out infinite;
}

.shop-detail-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 8px;
}

.shop-detail-title-row h1 {
  margin: 0;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.shop-grid.is-list {
  grid-template-columns: 1fr;
  gap: 12px;
}

.shop-grid.is-list .shop-card {
  flex-direction: row;
  align-items: stretch;
  min-height: 0;
}

.shop-grid.is-list .shop-card-media {
  width: min(200px, 32%);
  flex: 0 0 auto;
  aspect-ratio: 1 / 1;
  min-height: 0;
}

.shop-grid.is-list .shop-card-body {
  flex: 1;
  justify-content: center;
}

.shop-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s ease,
    box-shadow 0.28s ease,
    background 0.2s ease;
}

.shop-card:hover {
  transform: translateY(-6px);
  border-color: rgba(177, 163, 248, 0.38);
  background: rgba(0, 0, 0, 0.55);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(177, 163, 248, 0.08);
}

.shop-card:hover .shop-card-media img {
  transform: scale(1.045);
}

.shop-card:hover .shop-card-cta {
  color: #fff;
  letter-spacing: 0.02em;
}

.shop-card:hover .shop-card-cta::after {
  transform: translateX(3px);
}

.shop-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 80% 20%, rgba(131, 100, 199, 0.28), transparent 50%),
    linear-gradient(160deg, #0a0a10, #050508);
  overflow: hidden;
  isolation: isolate;
}

.shop-card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
  pointer-events: none;
  z-index: 1;
}

.shop-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.shop-card-media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--brand-accent);
  font-size: 2rem;
  font-weight: 900;
  opacity: 0.55;
}

.shop-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 18px;
  flex: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.28));
}

.shop-card-cat {
  width: fit-content;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(177, 163, 248, 0.3);
  background: rgba(0, 0, 0, 0.45);
  color: var(--brand-accent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.shop-card-cat.is-dbd {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

.shop-card-cat.is-stream {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
}

.shop-card-cat.is-pokemon {
  border-color: rgba(250, 204, 21, 0.4);
  background: rgba(250, 204, 21, 0.12);
  color: #facc15;
}

.shop-card-cat.is-arc {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
}

.shop-card-cat.is-re {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.35);
  color: #fca5a5;
}

.shop-card-cat.is-bundle {
  border-color: rgba(251, 146, 60, 0.45);
  background: rgba(251, 146, 60, 0.14);
  color: #fb923c;
}

.shop-card-cat.is-emote {
  border-color: rgba(244, 114, 182, 0.4);
  background: rgba(244, 114, 182, 0.12);
  color: #f472b6;
}

.shop-card-cat.is-overlay {
  border-color: rgba(167, 139, 250, 0.4);
  background: rgba(167, 139, 250, 0.12);
  color: #c4b5fd;
}

.shop-card h2 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-price {
  font-size: 0.95rem;
  font-weight: 900;
  color: #fff;
}

.shop-price.is-soon {
  color: #ffb38a;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shop-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand-accent);
  font-size: 0.82rem;
  font-weight: 900;
  transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.shop-card-cta::after {
  content: "→";
  display: inline-block;
  transition: transform 0.2s ease;
}

body[data-shop-page] .updates-results-meta {
  margin: 0 0 14px;
  padding: 8px 12px;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.shop-back {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--brand-accent);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.shop-back:hover {
  text-decoration: underline;
}

.shop-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 16px;
  margin-bottom: 18px;
  align-items: start;
}

.shop-detail-media {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background:
    radial-gradient(circle at 80% 10%, rgba(131, 100, 199, 0.28), transparent 46%),
    rgba(0, 0, 0, 0.45);
  aspect-ratio: 1 / 1;
  max-width: min(100%, 560px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.shop-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-detail-media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--brand-accent);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  opacity: 0.4;
}

.shop-detail-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.shop-detail-panel h1 {
  margin: 8px 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
}

.shop-detail-panel .shop-lead {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.55;
}

.shop-feature-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.shop-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.shop-feature-list li::before {
  content: "✦";
  color: var(--brand-accent);
  flex: 0 0 auto;
}

.shop-buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.shop-buy-row .button[aria-disabled="true"],
.shop-buy-row .button.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

.shop-buy-note {
  width: 100%;
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 650;
}

.nav-link .nav-soon {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(241, 100, 30, 0.2);
  border: 1px solid rgba(241, 100, 30, 0.45);
  color: #ffb38a;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
}

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

  .shop-grid.is-list {
    grid-template-columns: 1fr;
  }

  .shop-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .shop-controls-bar {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .shop-search-field {
    flex: 1 1 100%;
  }

  .shop-toolbar-controls {
    width: 100%;
    flex-wrap: wrap;
  }

  .shop-sort-group {
    flex: 1 1 auto;
    min-width: 140px;
  }

  .shop-sort-group .hub-select-trigger {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }

  .shop-grid.is-list .shop-card {
    flex-direction: column;
  }

  .shop-grid.is-list .shop-card-media {
    width: 100%;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .shop-banner {
    flex-direction: column;
    align-items: stretch;
  }
}
