/* =============================================================================
 * Default Theme — UnknownAuth Store
 * ============================================================================= */

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

:root {
  --color-bg: var(--theme-bg, #050505);
  --color-surface: var(--theme-surface, #0c0c0c);
  --color-border: var(--theme-border, #1a1a1a);
  --color-text: var(--theme-text, #e0e0e0);
  --color-muted: var(--theme-muted, #666666);
  --color-accent: var(--theme-accent, #00fffb);
}

body {
  font-family:
    "Geist",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.15s;
}

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

/* ── Layout ── */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Navigation ── */

.nav {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8125rem;
  color: var(--color-muted);
  transition: color 0.15s;
}

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

.nav-links .btn-sm {
  font-size: 0.8125rem;
  padding: 0.375rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.nav-links .btn-sm:hover {
  background: var(--color-surface);
  border-color: var(--color-muted);
}

/* ── Hero ── */

.hero {
  text-align: center;
  padding: 5rem 0 3rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.0625rem;
  color: var(--color-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ── Section ── */

.section {
  padding: 3rem 0;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
}

/* ── Product grid ── */

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

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}

.product-card:hover {
  border-color: #333;
}

.product-card-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-card-price {
  font-family: "Geist Mono", monospace;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.product-card-meta {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.product-card-description {
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 1.25rem;
}

.product-card .btn {
  margin-top: auto;
}

/* ── Badge ── */

.badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--color-border);
  color: var(--color-muted);
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn-primary:hover {
  background: #ffffff;
  color: var(--color-bg);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  background: var(--color-surface);
  border-color: var(--color-muted);
}

.btn-block {
  width: 100%;
}

/* ── Product detail ── */

.product-detail {
  max-width: 600px;
  padding: 3rem 0;
}

.product-detail h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.product-detail-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.product-detail-price {
  font-family: "Geist Mono", monospace;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent);
}

.product-detail-tier {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.product-detail-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #ccc;
  margin-bottom: 2rem;
}

.back-link {
  display: inline-block;
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

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

/* ── Auth forms ── */

.auth-page {
  max-width: 400px;
  margin: 0 auto;
  padding: 5rem 0;
}

.auth-page h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.auth-page .subtitle {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--color-muted);
}

.form-group input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-family: inherit;
  font-size: 0.875rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.15s;
}

.form-group input:focus {
  border-color: var(--color-muted);
}

.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.auth-footer a {
  color: var(--color-text);
}

/* ── Account ── */

.account-page {
  padding: 3rem 0;
  max-width: 600px;
}

.account-page h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.account-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.account-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.account-card p {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

/* ── Footer ── */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  margin-top: 4rem;
}

.site-footer p {
  font-size: 0.75rem;
  color: var(--color-muted);
  text-align: center;
}

/* ── Empty state ── */

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-muted);
}

/* ── Responsive ── */

@media (max-width: 640px) {
  .hero h1 {
    font-size: 1.75rem;
  }

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

  .nav-links {
    gap: 1rem;
  }
}
