/* BlkBox Market — Main Stylesheet
   Palette: black (#0a0a0a), off-black (#1a1a1a), cream (#f5f0e8), gold (#c8a04a), muted (#8a8575)
*/

/* ─── Reset & Root ─────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black:      #0a0a0a;
  --off-black:  #1a1a1a;
  --card-bg:    #141414;
  --border:     #2a2a2a;
  --cream:      #f5f0e8;
  --gold:       #c8a04a;
  --gold-dim:   rgba(200, 160, 74, 0.15);
  --warm-white: #faf8f4;
  --muted:      #8a8575;
  --radius:     6px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--black);
  color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.syne { font-family: 'Syne', sans-serif; }
.gold { color: var(--gold); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── Layout ────────────────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }

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

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cream);
  flex-shrink: 0;
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 24px;
  flex: 1;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--cream); }

.nav-cta {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 8px 18px;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--gold); color: var(--black); }

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.btn-primary {
  background: var(--gold);
  color: var(--black);
}
.btn-primary:hover { background: #d4a84d; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--cream); }

.btn-full { width: 100%; display: block; }

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-glow-top {
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200,160,74,0.08) 0%, transparent 70%);
}
.hero-glow-bottom {
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(200,160,74,0.05) 0%, transparent 70%);
}

.hero-content { position: relative; z-index: 1; max-width: 680px; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  border: 1px solid var(--gold-dim);
  padding: 6px 14px;
  border-radius: 100px;
}

.hero-headline {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ─── Section headers ───────────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 40px;
}
.section-header .section-title { margin-bottom: 0; }

.view-all {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
}
.view-all:hover { opacity: 0.75; }

/* ─── Category grid ─────────────────────────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
  text-align: center;
}
.category-card:hover { border-color: var(--gold); transform: translateY(-3px); }

.category-icon { font-size: 1.8rem; }
.category-name { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.5px; }
.category-arrow { font-size: 0.8rem; color: var(--gold); opacity: 0; transition: opacity 0.2s; }
.category-card:hover .category-arrow { opacity: 1; }

/* ─── Product cards ─────────────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.product-grid-sm {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.product-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.product-card:hover { border-color: var(--gold); transform: translateY(-4px); }

.product-image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

/* Category-specific gradient placeholders */
.product-image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.product-image-placeholder[data-category="streetwear"]  { background: linear-gradient(135deg, #111 0%, #1e1e1e 50%, #0d0d0d 100%); }
.product-image-placeholder[data-category="self-care"]    { background: linear-gradient(135deg, #1a1210 0%, #2a1f16 50%, #120e0b 100%); }
.product-image-placeholder[data-category="grooming"]     { background: linear-gradient(135deg, #0e1218 0%, #1a2030 50%, #0a0e14 100%); }
.product-image-placeholder[data-category="accessories"]  { background: linear-gradient(135deg, #141410 0%, #201e14 50%, #0e0c08 100%); }
.product-image-placeholder[data-category="lifestyle"]    { background: linear-gradient(135deg, #121816 0%, #1e2820 50%, #0c1210 100%); }

.product-initials {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(200, 160, 74, 0.25);
  letter-spacing: 2px;
}

.product-category-badge, .product-featured-badge {
  position: absolute;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.product-category-badge {
  bottom: 10px; left: 10px;
  background: rgba(10,10,10,0.7);
  color: var(--muted);
  border: 1px solid var(--border);
}
.product-featured-badge {
  top: 10px; right: 10px;
  background: var(--gold);
  color: var(--black);
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.product-brand {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
}
.product-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.3;
}
.product-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--warm-white);
  margin-top: 4px;
}

/* ─── Value strip ───────────────────────────────────────────────────────────── */
.value-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  background: var(--off-black);
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}
.value-item { display: flex; flex-direction: column; gap: 8px; }
.value-icon { font-size: 1.4rem; color: var(--gold); }
.value-label { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; }
.value-desc { font-size: 0.8rem; color: var(--muted); }

/* ─── Shop page ─────────────────────────────────────────────────────────────── */
.shop-main { padding-top: 100px; padding-bottom: 80px; }

.shop-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}
.shop-title { font-size: 2rem; font-weight: 800; }
.shop-count { font-size: 0.85rem; color: var(--muted); }

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-pill {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.2s;
}
.filter-pill:hover { border-color: var(--cream); color: var(--cream); }
.filter-pill.active { background: var(--gold); color: var(--black); border-color: var(--gold); }

.empty-state {
  text-align: center;
  padding: 80px 0;
  color: var(--muted);
}
.empty-state p { margin-bottom: 24px; }

/* ─── Product detail page ───────────────────────────────────────────────────── */
.product-main { padding-top: 100px; padding-bottom: 80px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 48px;
}
.breadcrumb a:hover { color: var(--cream); }
.breadcrumb-sep { color: var(--border); }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 80px;
  align-items: start;
}

.product-detail-image { position: sticky; top: 88px; }

.product-image-lg {
  aspect-ratio: 1;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  overflow: hidden;
}
.product-image-lg[data-category="streetwear"]  { background: linear-gradient(135deg, #111 0%, #1e1e1e 50%, #0d0d0d 100%); }
.product-image-lg[data-category="self-care"]    { background: linear-gradient(135deg, #1a1210 0%, #2a1f16 50%, #120e0b 100%); }
.product-image-lg[data-category="grooming"]     { background: linear-gradient(135deg, #0e1218 0%, #1a2030 50%, #0a0e14 100%); }
.product-image-lg[data-category="accessories"]  { background: linear-gradient(135deg, #141410 0%, #201e14 50%, #0e0c08 100%); }
.product-image-lg[data-category="lifestyle"]    { background: linear-gradient(135deg, #121816 0%, #1e2820 50%, #0c1210 100%); }

.product-initials-lg {
  font-family: 'Syne', sans-serif;
  font-size: 5rem;
  font-weight: 800;
  color: rgba(200, 160, 74, 0.2);
  letter-spacing: 3px;
}

.product-badge-strip { margin-top: 12px; }
.badge-featured {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--black);
  padding: 5px 12px;
  border-radius: 100px;
}

.product-brand-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}
.product-detail-name {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
}
.product-detail-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.product-category-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 100px;
  color: var(--muted);
}
.product-origin { font-size: 0.8rem; color: var(--muted); }

.product-price-large {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 24px;
}
.product-description {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 36px;
}

.product-cta { display: flex; flex-direction: column; gap: 10px; }
.product-cta-note { font-size: 0.75rem; color: var(--muted); text-align: center; }

/* ─── Brand story ───────────────────────────────────────────────────────────── */
.brand-story {
  background: var(--off-black);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  margin-bottom: 64px;
  position: relative;
  overflow: hidden;
}
.brand-story::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--gold);
}
.brand-story-inner { max-width: 640px; }
.brand-story-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.brand-story-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.brand-story-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

/* ─── Related section ───────────────────────────────────────────────────────── */
.related-section { margin-top: 16px; }
.related-section .section-title { margin-bottom: 32px; }

/* ─── Error page ────────────────────────────────────────────────────────────── */
.error-main {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 64px;
}
.error-content { text-align: center; }
.error-code { font-size: 4rem; color: var(--gold); margin-bottom: 16px; }
.error-message { font-size: 1.1rem; color: var(--muted); margin-bottom: 32px; }

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
  background: var(--off-black);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: flex;
  gap: 64px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}
.footer-logo span { color: var(--gold); }
.footer-tagline { font-size: 0.85rem; color: var(--muted); }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 4px;
}
.footer-col a { font-size: 0.85rem; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  max-width: 1200px;
  margin: 0 auto;
}

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
  .product-detail-image { position: static; }
  .brand-story { padding: 32px 24px; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero { padding: 100px 24px 60px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner { flex-direction: column; gap: 40px; }
  .filter-bar { gap: 6px; }
  .shop-header { flex-direction: column; align-items: flex-start; gap: 4px; }
}
