/* ============ HUB NAVIGATION ============ */
.hub-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.hub-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.hub-nav-brand {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.hub-nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.hub-nav-links::-webkit-scrollbar { display: none; }

.hub-nav-link {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 100px;
  white-space: nowrap;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.hub-nav-link:hover {
  color: var(--fg);
  background: rgba(255,255,255,0.06);
}

.hub-nav-link.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.nav-icon { font-size: 0.85em; }

.hub-nav-back {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-dim);
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.2s;
  white-space: nowrap;
}

.hub-nav-back:hover { color: var(--fg-muted); }

/* ============ HUB HERO ============ */
.hub-hero {
  position: relative;
  padding: 140px 48px 80px;
  overflow: hidden;
}

.hub-hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.hub-hero-glow {
  position: absolute;
  top: -200px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,255,0,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hub-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hub-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 20px 0 20px;
}

.hub-hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 36px;
}

/* ============ CATEGORY PILLS ============ */
.hub-category-pills,
.category-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-pill {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 100px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.category-pill:hover {
  color: var(--fg);
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}

.category-pill.active {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(200,255,0,0.2);
}

/* ============ SECTION HEADERS ============ */
.hub-section-header {
  max-width: 1280px;
  margin: 0 auto 48px;
  padding: 0 48px;
}

.hub-section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-sub {
  font-size: 0.95rem;
  color: var(--fg-muted);
  margin-top: 8px;
}

/* ============ FEATURED SECTION ============ */
.hub-featured {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
}

/* ============ PRODUCTS GRID ============ */
.hub-products-section {
  padding: 80px 0;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.featured-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  background: transparent;
  border: none;
  border-radius: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* ============ PRODUCT CARD ============ */
.product-card {
  position: relative;
  background: var(--bg-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.25s ease;
}

.product-card:hover {
  background: #1a1a1a;
}

.featured-grid .product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.featured-grid .product-card:hover {
  border-color: rgba(200,255,0,0.15);
}

.product-card--featured {
  /* slightly elevated vs standard card */
}

.product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #000;
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 100px;
}

.product-meta {
  margin-bottom: 2px;
}

.product-category-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.product-tagline {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--fg-muted);
  line-height: 1.5;
}

.product-description {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.65;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.product-price {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.product-cta {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #000;
  background: var(--accent);
  border: none;
  padding: 9px 20px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.product-cta:hover {
  background: #d4ff1a;
  transform: translateY(-1px);
}

.product-cta:active {
  transform: translateY(0);
}

.product-cta.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ============ CATEGORY CARDS ============ */
.hub-categories-section {
  padding: 80px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.category-cards-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-decoration: none;
  color: var(--fg);
  transition: all 0.25s ease;
}

.category-card:hover {
  border-color: rgba(200,255,0,0.2);
  background: #1a1a1a;
  transform: translateY(-2px);
}

.category-card-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 4px;
}

.category-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.category-card p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.6;
  flex: 1;
}

.category-card-cta {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* ============ CATEGORY HERO ============ */
.category-hero {
  position: relative;
  padding: 120px 48px 60px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.category-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.back-link {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-dim);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 24px;
  transition: color 0.2s;
}

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

.category-hero-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 16px;
}

.category-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

/* ============ OTHER CATEGORIES ============ */
.hub-other-categories {
  padding: 60px 0 80px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.hub-other-categories .category-pills-row {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

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

.empty-state p { margin-bottom: 24px; font-size: 1rem; }

/* ============ HUB FOOTER ============ */
.hub-footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
}

.hub-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-affiliate-note {
  font-size: 0.78rem;
  color: var(--fg-dim);
  max-width: 480px;
}

/* ============ LANDING PAGE NAV ADDITION ============ */
.hero-hub-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
  border: 1px solid rgba(200,255,0,0.25);
  padding: 10px 24px;
  border-radius: 100px;
  background: var(--accent-dim);
  transition: all 0.2s ease;
}

.hero-hub-link:hover {
  background: rgba(200,255,0,0.15);
  border-color: rgba(200,255,0,0.4);
  transform: translateY(-1px);
}

/* ============ BTN ACCENT ============ */
.btn-accent {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: #000;
  background: var(--accent);
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 100px;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.btn-accent:hover { background: #d4ff1a; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hub-nav-links {
    display: none;
  }
}

@media (max-width: 768px) {
  .hub-hero,
  .category-hero {
    padding: 100px 24px 48px;
  }

  .hub-section-header {
    padding: 0 24px;
    margin-bottom: 32px;
  }

  .hub-products-section {
    padding: 48px 24px;
  }

  .featured-grid {
    padding: 0 24px;
    grid-template-columns: 1fr;
  }

  .category-cards-grid {
    padding: 0 24px;
    grid-template-columns: 1fr 1fr;
  }

  .hub-footer,
  .hub-footer-inner {
    padding: 32px 24px;
    flex-direction: column;
    text-align: center;
  }

  .hub-other-categories .category-pills-row {
    padding: 0 24px;
  }

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

@media (max-width: 480px) {
  .category-cards-grid {
    grid-template-columns: 1fr;
  }
}
