/* ===== STORE SHARED ===== */
.store-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.store-header {
  text-align: center;
  margin-bottom: 40px;
}

.store-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.store-subtitle {
  color: var(--fg-muted);
  font-size: 1.05rem;
}

/* ===== NAV ===== */
.site-nav {
  background: var(--bg-elevated);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding: 0 24px;
}

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

.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
  text-decoration: none;
}

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

.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

/* ===== CATEGORY FILTERS ===== */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
  justify-content: center;
}

.category-pill {
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.category-pill:hover, .category-pill.active {
  border-color: var(--accent);
  color: var(--fg);
  background: rgba(168,85,247,0.08);
}

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

.product-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(168,85,247,0.12);
  border-color: rgba(168,85,247,0.25);
}

.product-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.product-thumb-placeholder {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: var(--bg-elevated);
}

.product-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 0.75rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.product-name {
  font-size: 1.05rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-desc {
  color: var(--fg-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.product-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--green);
}

.product-cta {
  font-size: 0.85rem;
  color: var(--fg-muted);
  transition: color 0.2s;
}

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

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}

.empty-icon { font-size: 4rem; margin-bottom: 20px; }
.empty-state h2 { margin-bottom: 12px; }
.empty-state p { color: var(--fg-muted); }

/* ===== PRODUCT DETAIL PAGE ===== */
.product-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-preview-col { position: sticky; top: 24px; }

.product-preview-img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
}

.product-preview-placeholder {
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--fg-muted);
}

.product-preview-placeholder p { font-size: 0.9rem; margin-top: 8px; }

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

.breadcrumb a { color: var(--fg-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.product-category-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 12px;
}

.product-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.product-price-display {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 28px;
}

.price-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--green);
}

.price-note {
  color: var(--fg-muted);
  font-size: 0.9rem;
}

.product-description {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
  white-space: pre-wrap;
}

/* ===== CHECKOUT BOX ===== */
.checkout-box {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.email-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.email-input:focus {
  outline: none;
  border-color: var(--accent);
}

.buy-button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  border-radius: 8px;
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.buy-button:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); }
.buy-button:disabled { opacity: 0.6; cursor: not-allowed; }

.checkout-note {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-muted);
  font-size: 0.82rem;
  margin-top: 10px;
  justify-content: center;
}

.checkout-error {
  color: #f87171;
  font-size: 0.88rem;
  margin-top: 10px;
  text-align: center;
}

/* ===== PRODUCT META ===== */
.product-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-muted);
  font-size: 0.88rem;
}

.meta-icon { font-size: 1rem; }

/* ===== SUCCESS PAGE ===== */
.success-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.success-box {
  text-align: center;
  max-width: 480px;
}

.success-icon { font-size: 4rem; margin-bottom: 20px; }
.success-box h1 { margin-bottom: 12px; }
.success-box p { color: var(--fg-muted); margin-bottom: 8px; }
.success-product { color: var(--accent) !important; margin-bottom: 16px !important; }
.success-note { color: var(--fg-muted); font-size: 0.9rem; margin-bottom: 32px; }

.success-actions { display: flex; justify-content: center; gap: 16px; }

.btn-secondary {
  display: inline-block;
  padding: 10px 24px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: var(--fg);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

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

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

.not-found-box { text-align: center; }
.not-found-icon { font-size: 4rem; margin-bottom: 20px; }
.not-found-box h1 { margin-bottom: 12px; }
.not-found-box p { color: var(--fg-muted); margin-bottom: 28px; }

.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

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

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

  .product-preview-col { position: static; }
}

@media (max-width: 480px) {
  .nav-links a { font-size: 0.82rem; }

  .category-filters { gap: 8px; }
  .category-pill { font-size: 0.8rem; padding: 6px 14px; }

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