:root {
  --bg: #1c1917;
  --surface: #292524;
  --surface-2: #44403c;
  --text: #f5f5f4;
  --muted: #d6d3d1;
  --accent: #d97706;
  --accent-2: #f59e0b;
  --border: #57534e;
  --max: 1080px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
}

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

.marquee {
  overflow: hidden;
  background: var(--accent);
  color: #1c1917;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  padding: 0.4rem 0;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 2.5rem;
  padding-left: 1rem;
  animation: scroll 22s linear infinite;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 1.15rem;
}

.site-header nav { display: flex; gap: 1.25rem; align-items: center; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--text); }

#cart-button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
}

main { max-width: var(--max); margin: 0 auto; padding: 1rem 1.25rem 3rem; }

.hero { padding: 3rem 0 2rem; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.05; margin: 0 0 1rem; }
.hero p { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }

.pipe-art { max-width: 420px; margin: 2rem 0 0; color: var(--accent-2); }

.button {
  display: inline-block;
  background: var(--accent);
  color: #1c1917;
  font-weight: 800;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
}

.button.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.button:disabled { opacity: 0.5; cursor: not-allowed; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1rem 0 2.5rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.25rem; }
.card h2, .card h3 { margin-top: 0; }
.price { font-size: 1.5rem; font-weight: 800; }
.stock { color: var(--accent-2); font-weight: 700; }

section { margin: 2.5rem 0; }
section h2 { font-size: 1.6rem; }

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.cart-drawer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: flex-end;
  z-index: 50;
}

.cart-drawer.open { display: flex; }
.cart-panel { background: var(--surface); width: min(380px, 90vw); padding: 1.25rem; overflow-y: auto; }
.cart-head { display: flex; justify-content: space-between; align-items: center; }
.cart-head button { background: transparent; border: 1px solid var(--border); color: var(--text); border-radius: 0.4rem; padding: 0.3rem 0.7rem; cursor: pointer; }
.cart-line { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.cart-line button { background: transparent; border: none; color: var(--muted); cursor: pointer; }

form.checkout { max-width: 560px; display: grid; gap: 0.9rem; }
form.checkout label { display: grid; gap: 0.3rem; font-weight: 600; }
form.checkout input, form.checkout textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 0.4rem;
  padding: 0.65rem;
  font: inherit;
}
.notice { background: var(--surface); border: 1px solid var(--accent); border-radius: 0.75rem; padding: 1rem 1.25rem; }
