:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --text: #1c1917;
  --muted: #78716c;
  --border: #e7e5e4;
  --brand-red: #e10600;
  --accent: var(--brand-red);
  --accent-text: #ffffff;
  --accent-ink: var(--brand-red);
  --error: #b91c1c;
  --radius: 12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0a09;
    --surface: #1c1917;
    --text: #fafaf9;
    --muted: #a8a29e;
    --border: #292524;
    --accent: var(--brand-red);
    --accent-text: #ffffff;
    --accent-ink: #ff4136;
    --error: #f87171;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px 48px; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px max(16px, calc((100% - 1100px) / 2));
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

/* The logo image has its own white outline, so it reads on light and dark backgrounds. */
.brand { display: block; line-height: 0; }
.brand img { height: 64px; width: auto; }

button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.5; }

.cart-button {
  display: flex; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--border); color: inherit;
  padding: 8px 14px; border-radius: 999px;
}
.cart-count {
  background: var(--accent); color: var(--accent-text);
  border-radius: 999px; padding: 0 8px; font-size: 0.85rem; font-weight: 600;
}

.hero { text-align: center; padding: 56px 0 40px; }
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1.05; margin: 0 0 16px;
  font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -0.03em;
}
.hero p { color: var(--muted); margin: 0 auto 16px; max-width: 34rem; }
.hero .eyebrow {
  color: var(--accent-ink); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 0.8rem; margin-bottom: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.status { grid-column: 1 / -1; text-align: center; color: var(--muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card img, .card .placeholder { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.card .placeholder {
  display: grid; place-items: center;
  font-size: 4rem; font-weight: 800; color: var(--muted); background: var(--border);
}
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { margin: 0; font-size: 1.1rem; }
.desc { margin: 0; color: var(--muted); font-size: 0.95rem; flex: 1; }
.card-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.price { font-weight: 700; font-size: 1.1rem; }

select {
  font: inherit; padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg); color: inherit;
}

.primary {
  background: var(--accent); color: var(--accent-text);
  border: none; border-radius: 8px; padding: 10px 16px; font-weight: 600;
}
.link-button { display: inline-block; text-decoration: none; }

.cart {
  position: fixed; inset: 0; z-index: 20;
  background: rgb(0 0 0 / 0.4);
  display: flex; justify-content: flex-end;
}
.cart[hidden] { display: none; }
.cart-panel {
  background: var(--surface);
  width: min(420px, 100%);
  height: 100%;
  display: flex; flex-direction: column;
  padding: 20px;
}
.cart-head { display: flex; justify-content: space-between; align-items: center; }
.cart-head h2 { margin: 0; }
.icon-button { background: none; border: none; color: inherit; font-size: 1.75rem; line-height: 1; }

.cart-items { list-style: none; padding: 0; margin: 16px 0; flex: 1; overflow-y: auto; }
.cart-line {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.empty { color: var(--muted); }
.muted { color: var(--muted); font-size: 0.9rem; }
.qty { display: flex; align-items: center; gap: 10px; }
.qty button {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--border); background: none; color: inherit;
}

.cart-foot { border-top: 1px solid var(--border); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.1rem; }
.hint { margin: 0; color: var(--muted); font-size: 0.9rem; }
.error { margin: 0; color: var(--error); font-size: 0.9rem; min-height: 1em; }
.error:empty { display: none; }

.site-footer { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 32px 16px; border-top: 1px solid var(--border); }
.site-footer .follow { color: var(--text); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 12px; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px; }
.socials a {
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px;
}
.socials a:hover { border-color: var(--accent); color: var(--accent-ink); }
