/* =============================================================================
 * Hey there. Welcome to theming.
 *
 * This is the default theme — a minimal dark starting point you can make
 * entirely your own. Every color, label, and layout decision lives in
 * plain Liquid templates and this CSS file.
 *
 * Welcome to the part where it becomes yours.
 *
 * How it works:
 *   layout/theme.liquid    — the shell that wraps every page
 *   templates/*.liquid     — one file per page (index, product, login, account)
 *   snippets/*.liquid      — reusable pieces (nav, footer)
 *   config/settings_*.json — the knobs your admins can turn in the dashboard
 *   assets/theme.css       — you are here
 *
 * ============================================================================= */

*,
*::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, #ffffff);
}

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;
}

/* ── Announcement bar ── */

.announcement-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0.5rem 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

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

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

/* ── 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;
}

.hero-cta {
  margin-top: 2rem;
}

/* ── 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;
  text-align: center;
}

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

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social-links a {
  color: var(--color-muted);
  transition: color 0.15s;
}

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

.social-links svg {
  width: 18px;
  height: 18px;
}

/* ── Auth ── */

.auth-error {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #fca5a5;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
  gap: 0;
}

.auth-tab {
  flex: 1;
  padding: 0.625rem 0;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition:
    color 0.15s,
    border-color 0.15s;
  margin-bottom: -1px;
}

.auth-tab:hover {
  color: var(--color-text);
}

.auth-tab.active {
  color: var(--color-text);
  border-bottom-color: var(--color-text);
}

.auth-separator {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  gap: 1rem;
}

.auth-separator::before,
.auth-separator::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--color-border);
}

.auth-separator span {
  color: var(--color-muted);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-providers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.account-header h1 {
  margin: 0;
}

/* ── 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;
  }
}
