/* -------------------------------------------------------
   Shop catalog & product detail styles.
   Extends theme.css — do NOT override :root tokens here.
   ------------------------------------------------------- */

/* NAV extensions */
.nav-links {
  display: flex;
  gap: 24px;
}
.nav-link {
  font-size: 0.9rem;
  color: var(--fg-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover,
.nav-link--active {
  color: var(--fg);
}

/* SHOP HEADER */
.shop-header {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--border);
}
.shop-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.shop-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
  line-height: 1.1;
}
.shop-subtitle {
  color: var(--fg-muted);
  font-size: 1rem;
  max-width: 480px;
  line-height: 1.6;
}
.shop-stats-row {
  display: flex;
  gap: 32px;
  flex-shrink: 0;
}
.shop-stat { text-align: right; }
.shop-stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -1px;
  line-height: 1;
}
.shop-stat-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 4px;
  max-width: 120px;
  text-align: right;
}

/* FILTER BAR */
.filter-bar {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
  backdrop-filter: blur(8px);
  background: rgba(10, 10, 15, 0.92);
}
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  border: 1px solid var(--border);
  background: transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.filter-tab:hover {
  color: var(--fg);
  border-color: rgba(255,255,255,0.15);
}
.filter-tab--active {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(0, 230, 118, 0.3);
}
.filter-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.07);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
}

/* PRODUCT GRID */
.shop-main {
  padding: 56px 0 100px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.product-grid--sm {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.product-card:hover {
  border-color: rgba(0, 230, 118, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.product-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-surface);
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-image img {
  transform: scale(1.04);
}
.product-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(0, 230, 118, 0.05) 100%);
}
.placeholder-icon {
  font-size: 3rem;
  opacity: 0.3;
  font-family: var(--font-display);
  font-weight: 700;
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.product-category-chip {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.product-card-body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}
.product-desc {
  color: var(--fg-muted);
  font-size: 0.85rem;
  line-height: 1.55;
  flex: 1;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.product-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
}
.product-cta {
  font-size: 0.85rem;
  color: var(--fg-muted);
  transition: color 0.2s;
}
.product-card:hover .product-cta {
  color: var(--accent);
}

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--fg-muted);
}

/* BREADCRUMB */
.breadcrumb-bar {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.breadcrumb a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--fg); }
.breadcrumb-sep { opacity: 0.4; }

/* DETAIL PAGE */
.detail-main {
  padding: 56px 0 100px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 80px;
}
.detail-image-wrap {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  background: var(--bg-surface);
}
.detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-placeholder {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(0, 230, 118, 0.05) 100%);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-placeholder-cat {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--fg-muted);
  opacity: 0.5;
}
.detail-cat-chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}
.detail-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.detail-price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -1px;
  margin-bottom: 24px;
}
.detail-description {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}
.detail-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.detail-highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--fg-muted);
}
.highlight-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.detail-platforms {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.platforms-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-weight: 600;
}
.platforms-row {
  display: flex;
  gap: 8px;
}
.platform-chip {
  padding: 4px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 500;
}

/* RELATED */
.related-section {
  padding-top: 60px;
  border-top: 1px solid var(--border);
}
.related-heading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 28px;
}

/* SHARED BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover {
  background: #00ff7f;
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn-secondary {
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  color: var(--fg);
  border-color: rgba(255,255,255,0.2);
}
.btn-full { width: 100%; justify-content: center; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .shop-header-inner { flex-direction: column; align-items: flex-start; }
  .shop-stats-row { flex-wrap: wrap; }
  .shop-stat { text-align: left; }
  .shop-stat-label { text-align: left; }
  .detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-grid { grid-template-columns: 1fr; }
}
