@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #FFFFFF;
  --bg-soft: #F6F6F7;
  --ink: #141414;
  --ink-dim: #666666;
  --red: #D81E3F;
  --red-dark: #B0172F;
  --gold: #B8860B;
  --line: #E7E7E9;
  --line-strong: #D4D4D7;
  --radius: 6px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, .display {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin: 0 0 0.4em;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow, .status-line, .section-head .tag {
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}
.brand {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 3px;
}
.brand span { color: var(--ink-dim); font-weight: 500; margin-left: 6px; }
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a { color: var(--ink-dim); transition: color .15s; }
.nav-links a:hover { color: var(--red); }
.nav-links .pill {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-links .pill:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }

/* verify-email banner */
.site-header + div[style*="f3e4c9"] {
  background: #FFF4E5 !important;
  color: #8A5A13 !important;
  font-size: 13.5px !important;
  border-bottom: 1px solid var(--line);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--bg-soft);
  color: var(--ink);
  padding: 96px 0 100px;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-size: clamp(38px, 5.5vw, 62px);
  max-width: 15ch;
  line-height: 1.06;
}
.hero p {
  max-width: 48ch;
  color: var(--ink-dim);
  font-size: 17px;
  font-family: 'Inter', sans-serif;
  text-transform: none;
  letter-spacing: normal;
}
.eyebrow {
  color: var(--red);
  margin-bottom: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 20px;
}
.section-head h2 { font-size: 28px; }
.section-head .tag { color: var(--red); font-weight: 600; }

/* ---------- Product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: 0 12px 28px rgba(20,20,20,0.09); transform: translateY(-2px); }
.card .thumb {
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-soft);
  position: relative;
}
.card .badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--red);
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 999px;
}
.card .badge.preorder { background: var(--gold); }
.card .body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 16px; margin-bottom: 8px; letter-spacing: 0; text-transform: none; font-weight: 600; }
.card .price { color: var(--ink); font-weight: 700; font-size: 16px; margin-top: auto; padding-top: 14px; }
.card .desc { font-size: 14px; color: var(--ink-dim); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-secondary { background: #fff; border: 1.5px solid var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-ochre { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-ochre:hover { background: #96700a; border-color: #96700a; }
.btn-block { display: block; width: 100%; }
.btn-small { padding: 9px 16px; font-size: 12.5px; }
.btn-danger { background: #fff; border: 1.5px solid var(--red); color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }

/* ---------- Forms ---------- */
.form-card {
  max-width: 460px;
  margin: 64px auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 48px 42px;
  box-shadow: 0 4px 24px rgba(20,20,20,0.05);
}
.form-card h2 { font-size: 24px; }
.field { margin-bottom: 20px; }
.product-detail .field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
  color: var(--ink);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(216,30,63,0.1);
}
.field textarea { resize: vertical; min-height: 100px; }
.error-msg {
  background: #FDECEE;
  color: #A3162F;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 20px;
  border-left: 3px solid var(--red);
}
.helper-note {
  font-size: 13.5px;
  color: var(--ink-dim);
  margin-top: 16px;
}

select {
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  cursor: pointer;
}
select:focus { outline: none; border-color: var(--red); }

/* ---------- Product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  padding: 56px 0;
  align-items: start;
}
.product-detail .thumb {
  aspect-ratio: 4/5;
  max-height: 520px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-soft);
  border-radius: 10px;
  border: 1px solid var(--line);
  position: sticky;
  top: 96px;
}
.product-detail .status-line {
  color: var(--red);
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}
.product-detail h1 { font-size: 32px; text-transform: none; letter-spacing: 0; }
.product-detail .price { font-size: 24px; color: var(--ink); font-weight: 700; margin: 14px 0 26px; }
.product-detail .desc { color: var(--ink-dim); margin-bottom: 30px; font-size: 15.5px; }

/* ---------- Tables (admin) ---------- */
table { width: 100%; border-collapse: collapse; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
th {
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  background: var(--bg-soft);
  font-weight: 600;
}
tr:hover td { background: #FBFBFC; }

.status-tag {
  display: inline-block;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
}
.status-available, .status-confirmed { background: #E7F5EC; color: #1E7A3D; }
.status-unreleased, .status-pending_payment { background: #FFF4E5; color: #8A5A13; }
.status-shipped { background: #E5F0FF; color: #1D4ED8; }
.status-cancelled { background: #FDECEE; color: #A3162F; }

/* ---------- Admin shell ---------- */
.admin-shell { display: flex; min-height: calc(100vh - 90px); }
.admin-sidebar {
  width: 230px;
  background: var(--bg-soft);
  color: var(--ink);
  padding: 32px 0;
  flex-shrink: 0;
  border-right: 1px solid var(--line);
}
.admin-sidebar a {
  display: block;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-dim);
  border-left: 3px solid transparent;
}
.admin-sidebar a:hover, .admin-sidebar a.active { color: var(--red); border-left-color: var(--red); background: #fff; }
.admin-main { flex: 1; padding: 40px 44px; }
.stat-row { display: flex; gap: 20px; margin-bottom: 36px; }
.stat-box { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 24px 28px; flex: 1; }
.stat-box .num { font-family: 'Oswald', sans-serif; font-size: 36px; font-weight: 600; color: var(--ink); }
.stat-box .label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-dim); margin-top: 6px; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-soft);
  color: var(--ink-dim);
  border-top: 1px solid var(--line);
  padding: 44px 0;
  margin-top: 64px;
  font-size: 13.5px;
  text-align: center;
}
.site-footer a:hover { color: var(--red); }

/* ---------- Empty state ---------- */
.empty-state {
  padding: 70px 20px;
  text-align: center;
  color: var(--ink-dim);
  font-size: 15px;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .container { padding: 0 18px; }

  /* Header: let nav wrap onto a second line instead of squeezing/overflowing */
  .site-header .container { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
  .nav-links { flex-wrap: wrap; gap: 10px 16px; font-size: 12.5px; width: 100%; }
  .nav-links span { display: none; } /* "Hi, Name" — drop on small screens, not essential */
  .nav-links .pill { padding: 8px 14px; }

  .hero { padding: 56px 0 60px; }
  .hero h1 { font-size: clamp(30px, 8vw, 42px); }
  .hero p { font-size: 15.5px; }

  .section { padding: 44px 0; }
  .section-head { margin-bottom: 24px; padding-bottom: 14px; }
  .section-head h2 { font-size: 22px; }

  .grid { gap: 18px; }

  /* Product detail: drop the sticky/capped image so it behaves like a normal
     stacked page instead of fighting the long form below it */
  .product-detail { grid-template-columns: 1fr; gap: 28px; padding: 32px 0; }
  .product-detail .thumb { position: static; max-height: none; }
  .product-detail > div:last-child { padding: 0; }
  .product-detail h1 { font-size: 26px; }
  .product-detail .price { font-size: 20px; margin: 10px 0 20px; }

  .form-card { margin: 32px auto; padding: 32px 22px; border-radius: 8px; }

  .field input, .field select, .field textarea { padding: 12px 13px; font-size: 16px; } /* 16px avoids iOS auto-zoom on focus */

  .btn { padding: 14px 22px; font-size: 14px; }

  /* Tables: rather than squeezing every column illegibly, let the row of
     columns scroll sideways so nothing gets cut off or overlaps. */
  .section, .admin-main { overflow-x: auto; }
  table { min-width: 640px; }

  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; display: flex; padding: 10px; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); }
  .admin-sidebar a { padding: 10px 16px; white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; }
  .admin-sidebar a:hover, .admin-sidebar a.active { border-left: none; border-bottom-color: var(--red); }
  .admin-main { padding: 24px 18px; }
  .stat-row { flex-direction: column; gap: 12px; }
  .stat-box { padding: 18px 20px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 28px; }
  .nav-links { font-size: 12px; gap: 8px 12px; }
}
