/* ================================================
   ShadowShelf Store CSS
   Inherits design tokens from the landing page.
   Shared: nav, catalog, product page, related.
   ================================================ */

:root {
  --bg: #0a0a0c;
  --bg-elevated: #111115;
  --bg-card: #16161a;
  --fg: #e8e6e3;
  --fg-muted: #8a8a8e;
  --accent: #c4f04d;
  --accent-dim: #9cc23a;
  --border: #222228;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

.store-body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

/* ---- NAV ---- */
.store-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

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

.store-nav-link {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.store-nav-link:hover,
.store-nav-link.active { color: var(--fg); }

/* ---- CATALOG HEADER ---- */
.catalog-header {
  position: relative;
  padding: 80px 48px 60px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.catalog-header-inner {
  max-width: 660px;
  position: relative;
  z-index: 2;
}

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

.catalog-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -2.5px;
  margin-bottom: 20px;
}

.catalog-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 480px;
  margin-bottom: 36px;
}

.catalog-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
}

.stat-num {
  color: var(--fg);
  font-weight: 600;
}

.catalog-blur {
  position: absolute;
  top: -80px;
  right: -160px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(196,240,77,0.07) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

/* ---- CATALOG GRID ---- */
.catalog-main {
  padding: 60px 48px 100px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---- PRODUCT CARD ---- */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(196,240,77,0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.product-card:hover {
  border-color: rgba(196, 240, 77, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(196,240,77,0.08);
}

.product-card:hover::before { opacity: 1; }

.product-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 340px;
  padding: 28px 28px 24px;
  text-decoration: none;
  color: var(--fg);
}

.product-card-top {
  flex: 1;
}

.product-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

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

.product-badge {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 3px 8px;
  border-radius: 2px;
}

.product-card-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
  color: var(--fg);
}

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

/* INCLUDES on card */
.product-card-includes {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-bottom: 20px;
}

.include-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 6px;
  line-height: 1.45;
}

.include-check {
  color: var(--accent);
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

.include-more {
  font-size: 12px;
  color: var(--fg-muted);
  opacity: 0.6;
  margin-top: 4px;
  padding-left: 20px;
}

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

.product-price {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.product-cta {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

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

/* ---- STORE TRUST BAR ---- */
.store-trust {
  padding: 36px 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.store-trust-inner {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--fg-muted);
}

.trust-icon {
  font-size: 18px;
  color: var(--accent);
  line-height: 1;
}

/* ---- PRODUCT PAGE ---- */
.breadcrumb {
  padding: 18px 48px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.breadcrumb-link {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb-link:hover { color: var(--accent); }

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

.breadcrumb-current {
  color: var(--fg-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.product-page {
  padding: 60px 48px 100px;
}

.product-page-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

/* LEFT COLUMN */
.product-info {}

.product-info-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.product-page-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.product-page-tagline {
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg-muted);
  margin-bottom: 36px;
  max-width: 520px;
}

.product-description {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 48px;
  max-width: 560px;
}

.product-description p { color: var(--fg-muted); }

/* PREVIEW */
.product-preview {
  margin-bottom: 48px;
}

.preview-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.preview-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-muted);
  font-style: italic;
  border-radius: 0 2px 2px 0;
}

.preview-quote {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  margin-top: -2px;
}

/* RIGHT: BUY BOX */
.product-buy-box {}

.buy-box-sticky {
  position: sticky;
  top: 80px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: 2px;
}

.buy-box-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.buy-box-price {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -1.5px;
  line-height: 1;
}

.buy-box-note {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.3;
}

.buy-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 16px 24px;
  border-radius: 2px;
  text-decoration: none;
  margin-bottom: 16px;
  transition: background 0.2s, transform 0.15s;
}

.buy-btn:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.buy-box-guarantee {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.4;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.guarantee-icon {
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.buy-box-includes {}

.includes-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 14px;
}

.includes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.includes-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-muted);
}

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

.related-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.related-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 28px;
}

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

.related-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 22px;
  border-radius: 2px;
  text-decoration: none;
  color: var(--fg);
  display: block;
  transition: border-color 0.2s, background 0.2s;
}

.related-card:hover {
  border-color: rgba(196, 240, 77, 0.25);
  background: var(--bg-card);
}

.related-card-cat {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 10px;
}

.related-card-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
  line-height: 1.25;
}

.related-card-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

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

/* ---- FOOTER ---- */
.site-footer {
  padding: 32px 48px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg-muted);
  letter-spacing: -0.3px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--fg-muted);
  opacity: 0.5;
}

/* ---- NOT FOUND ---- */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  padding: 60px;
  text-align: center;
}

.not-found-title {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 700;
  color: var(--border);
  letter-spacing: -4px;
  margin-bottom: 24px;
}

.not-found-text {
  font-size: 18px;
  color: var(--fg-muted);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .store-nav { padding: 0 24px; }
  .catalog-header { padding: 60px 24px 48px; }
  .catalog-main { padding: 40px 24px 60px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .product-page { padding: 40px 24px 60px; }
  .product-page-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .buy-box-sticky { position: static; }
  .breadcrumb { padding: 16px 24px; }
  .related-section { padding: 40px 24px; }
  .store-trust { padding: 28px 24px; }
  .store-trust-inner { gap: 24px; }
  .site-footer { padding: 24px; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 520px) {
  .catalog-title { letter-spacing: -1.5px; }
  .catalog-stats { gap: 8px; }
  .stat-chip { font-size: 12px; }
  .product-card-link { padding: 22px 20px 18px; }
  .product-card-name { font-size: 19px; }
  .store-nav-links { gap: 20px; }
}
