/* ====== NAV ====== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-brand-accent { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-link:hover { color: var(--fg); }

.nav-cta {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  padding: 8px 20px;
  border-radius: 100px;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: background 0.15s, transform 0.15s;
}

.nav-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.2s;
}

/* ====== CATALOG PAGE ====== */
.catalog-page { min-height: 100vh; }

.catalog-header {
  padding: 80px 48px 60px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(232, 168, 56, 0.04) 0%, transparent 100%);
}

.catalog-header-inner { max-width: 1200px; margin: 0 auto; }

.catalog-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.catalog-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--fg);
}

.catalog-sub {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 480px;
}

.catalog-body { padding: 60px 48px 100px; }

.catalog-inner { max-width: 1200px; margin: 0 auto; }

/* Category tabs */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 52px;
}

.cat-tab {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: all 0.15s;
  background: transparent;
}

.cat-tab:hover {
  color: var(--fg);
  border-color: rgba(232, 168, 56, 0.3);
}

.cat-tab.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* Product grid */
.product-grid-catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.no-results {
  grid-column: 1/-1;
  color: var(--fg-muted);
  font-size: 16px;
  padding: 60px 0;
  text-align: center;
}

/* Product card */
.product-card-catalog {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.product-card-catalog:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(232, 168, 56, 0.1);
}

.product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 3px 10px;
  border-radius: 100px;
}

.product-icon-large {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--accent);
  line-height: 1;
}

.product-category-tag {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 10px;
}

.product-card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.product-card-tagline {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 24px;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.product-cta {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  transition: color 0.15s;
}

.product-card-catalog:hover .product-cta { color: var(--accent); }

/* ====== DETAIL PAGE ====== */
.detail-page {
  min-height: 100vh;
  padding: 60px 48px 100px;
}

.detail-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 52px;
  font-size: 13px;
  color: var(--fg-muted);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumb a:hover { color: var(--accent); }

.breadcrumb-sep { color: var(--border); }

.breadcrumb span:last-child { color: var(--fg); }

/* Detail layout */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
  margin-bottom: 80px;
}

.detail-category-tag {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 12px;
}

.product-badge-detail {
  position: static;
  display: inline-block;
  margin-bottom: 16px;
}

.detail-icon {
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 20px;
  line-height: 1;
}

.detail-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--fg);
  margin-bottom: 12px;
  line-height: 1.1;
}

.detail-tagline {
  font-size: 19px;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 24px;
  font-weight: 400;
}

.detail-description {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 560px;
}

/* Features */
.detail-features {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.features-heading {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 20px;
}

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
  color: var(--fg);
  line-height: 1.5;
}

.feature-check {
  color: var(--accent);
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Purchase card */
.purchase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: sticky;
  top: 88px;
}

.purchase-price-row {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.purchase-price {
  display: block;
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 6px;
}

.purchase-note {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}

.platforms-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 14px;
}

.purchase-platforms {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

/* Platform buttons */
.platform-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s;
  border: 1px solid transparent;
}

.platform-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.platform-btn-etsy {
  background: #f1641e;
  color: #fff;
}

.platform-btn-gumroad {
  background: var(--accent);
  color: var(--bg);
}

.platform-btn-payhip {
  background: var(--bg-elevated);
  color: var(--fg);
  border-color: var(--border);
}

.platform-btn-payhip:hover { border-color: var(--accent); }

.platform-arrow {
  font-size: 16px;
  opacity: 0.7;
}

.purchase-guarantee {
  font-size: 12px;
  color: var(--fg-muted);
  text-align: center;
  line-height: 1.6;
}

/* Related products */
.related-section {
  border-top: 1px solid var(--border);
  padding-top: 60px;
}

.related-heading {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--fg);
  margin-bottom: 32px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.related-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.related-icon {
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 12px;
}

.related-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 6px;
}

.related-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}

.related-price {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

/* ====== 404 PAGE ====== */
.not-found-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 48px;
}

.not-found-inner { text-align: center; max-width: 480px; }

.not-found-icon {
  font-size: 56px;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 24px;
}

.not-found-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--fg);
  margin-bottom: 16px;
}

.not-found-sub {
  font-size: 16px;
  color: var(--fg-muted);
  margin-bottom: 32px;
  line-height: 1.65;
}

.not-found-cta {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  padding: 12px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.15s;
}

.not-found-cta:hover { background: var(--accent-dark); }

/* ====== PRODUCT CARD IMAGE (catalog grid) ====== */
.product-card-image {
  width: calc(100% + 56px);
  margin: -32px -28px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-elevated);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.product-card-catalog:hover .product-card-image img {
  transform: scale(1.04);
}

.product-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ====== DETAIL HERO IMAGE ====== */
.detail-hero-image {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 52px;
  aspect-ratio: 16/7;
  background: var(--bg-elevated);
}

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

/* ====== SCREENSHOT GALLERY ====== */
.screenshot-gallery {
  margin-top: 40px;
}

.gallery-heading {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  aspect-ratio: 1/1;
  background: var(--bg-elevated);
  transition: border-color 0.2s, transform 0.2s;
}

.gallery-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-overlay span {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
}

/* ====== LIGHTBOX ====== */
.gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gallery-lightbox.open { display: flex; }

.lightbox-img-wrap {
  max-width: min(880px, 92vw);
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 8px;
  transition: color 0.15s;
}

.lightbox-close:hover { color: #fff; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.2); }

/* ====== RELATED CARD WITH IMAGE ====== */
.related-card-image {
  width: calc(100% + 48px);
  margin: -24px -24px 16px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-elevated);
}

.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.related-card:hover .related-card-image img { transform: scale(1.04); }

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
  .product-grid-catalog {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .purchase-card { position: static; }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-inner { padding: 0 24px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    align-items: flex-start;
  }

  .nav-open .nav-links { display: flex; }

  .nav-toggle { display: flex; }

  .catalog-header { padding: 48px 24px 40px; }

  .catalog-body { padding: 40px 24px 60px; }

  .detail-page { padding: 40px 24px 60px; }

  .product-grid-catalog { grid-template-columns: 1fr; }

  .related-grid { grid-template-columns: 1fr; }

  .category-tabs { gap: 8px; }
}
