/* ====== STORE GLOBAL ====== */
.store-body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
}

/* ====== NAV ====== */
.store-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26, 22, 18, 0.08);
  padding: 0 5vw;
}

.store-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 24px;
}

.nav-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

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

.nav-link {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  transition: all 0.2s ease;
}

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

.nav-link.active {
  background: var(--fg);
  color: var(--bg);
}

/* ====== CATALOG HEADER ====== */
.catalog-header {
  padding: 60px 5vw 40px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.catalog-header::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: var(--accent-glow);
  filter: blur(80px);
  z-index: 0;
}

.catalog-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.catalog-back {
  margin-bottom: 16px;
}

.catalog-back a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.catalog-back a:hover { color: var(--fg); }

.catalog-header h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.catalog-subtitle {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.65;
}

/* ====== CATEGORY TABS (mobile primary, desktop supplement) ====== */
.cat-tabs {
  background: var(--bg);
  border-bottom: 1px solid rgba(26,22,18,0.08);
  padding: 0 5vw;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cat-tabs::-webkit-scrollbar { display: none; }

.cat-tabs-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  padding: 12px 0;
}

.cat-tab {
  white-space: nowrap;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  border: 1px solid rgba(26,22,18,0.12);
  transition: all 0.2s ease;
  background: white;
}

.cat-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

/* ====== CATALOG MAIN ====== */
.catalog-main {
  padding: 48px 5vw 80px;
}

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

/* ====== CATEGORY SECTION ====== */
.category-section {
  margin-bottom: 72px;
}

.category-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.category-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.category-see-all {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.category-see-all:hover { opacity: 0.7; }

/* ====== PRODUCT GRID ====== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-grid--full {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.product-grid--related {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* ====== PRODUCT CARD ====== */
.product-card {
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.10);
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Preview pane */
.product-card-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  font-size: 3.2rem;
}

.product-card-preview--accent { background: var(--accent-glow); }
.product-card-preview--yellow { background: var(--yellow-light); }
.product-card-preview--green { background: var(--green-light); }
.product-card-preview--purple { background: var(--purple-light); }

.product-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.product-card-badge--accent { background: rgba(232,93,38,0.12); color: var(--accent); }
.product-card-badge--yellow { background: rgba(245,200,66,0.2); color: #8a6d00; }
.product-card-badge--green { background: rgba(45,138,78,0.12); color: var(--green); }
.product-card-badge--purple { background: rgba(124,92,191,0.12); color: var(--purple); }

/* Body */
.product-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-category {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 6px;
}

.product-card-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-card-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(26,22,18,0.07);
}

.product-card-price {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
}

.product-card-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  transition: opacity 0.2s;
}

.product-card:hover .product-card-cta { opacity: 0.7; }

/* ====== BREADCRUMB ====== */
.breadcrumb {
  padding: 12px 5vw;
  background: var(--bg-warm);
  border-bottom: 1px solid rgba(26,22,18,0.07);
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--fg-muted);
}

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

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

/* ====== PRODUCT DETAIL ====== */
.product-detail {
  padding: 60px 5vw 80px;
}

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

.product-detail-preview {
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  position: relative;
  gap: 16px;
}

.product-detail-preview--accent { background: var(--accent-glow); }
.product-detail-preview--yellow { background: var(--yellow-light); }
.product-detail-preview--green { background: var(--green-light); }
.product-detail-preview--purple { background: var(--purple-light); }

.product-detail-emoji {
  font-size: 5rem;
  line-height: 1;
}

.product-detail-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

.product-detail-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.product-detail-short {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.product-detail-long {
  background: var(--bg-warm);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 32px;
  border-left: 3px solid var(--accent);
}

.product-detail-long p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.75;
}

.product-detail-purchase {
  background: var(--fg);
  color: var(--bg);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.product-detail-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
}

.price-amount {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--bg);
}

.price-label {
  font-size: 0.82rem;
  color: rgba(250,247,242,0.55);
}

.btn-buy {
  width: 100%;
  background: var(--accent);
  color: white;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  border: none;
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

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

.purchase-note {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(250,247,242,0.45);
  margin-top: 12px;
}

/* What you get box */
.what-you-get {
  background: white;
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-top: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.what-you-get h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.what-you-get ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.what-you-get li {
  font-size: 0.88rem;
  color: var(--fg-muted);
}

/* ====== RELATED SECTION ====== */
.related-section {
  padding: 0 5vw 80px;
  background: var(--bg-warm);
}

.related-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 60px;
}

.related-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

/* ====== STORE FOOTER ====== */
.store-footer {
  background: var(--fg);
  padding: 32px 5vw;
  border-top: 1px solid rgba(250,247,242,0.08);
}

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

/* ====== BUTTONS ====== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: white;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--fg);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(26,22,18,0.2);
  transition: border-color 0.2s, transform 0.15s;
}

.btn-ghost:hover {
  border-color: var(--fg);
  transform: translateY(-2px);
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

/* ====== ERROR PAGE ====== */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 5vw;
}

.error-inner {
  text-align: center;
  max-width: 400px;
}

.error-emoji {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.error-inner h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.error-inner p {
  color: var(--fg-muted);
  margin-bottom: 28px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--fg-muted);
  font-size: 1rem;
}

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

  .product-detail-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-detail-preview {
    min-height: 200px;
  }

  .store-footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .category-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (max-width: 500px) {
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
}
