:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7f2ea;
  color: #241812;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
.nav {
  align-items: center;
  background: #2d1013;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.85rem 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav a {
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  padding: 0.65rem 1rem;
}
.nav a.active, .nav a:hover { background: #7b1f24; }
button, .button {
  border: 0;
  border-radius: 999px;
  background: #ead8c0;
  color: #241812;
  cursor: pointer;
  display: inline-block;
  font-weight: 800;
  padding: 0.75rem 1rem;
}
button.primary, .button.primary { background: #7b1f24; color: white; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
.hero {
  background: linear-gradient(135deg, #2d1013, #7b1f24);
  color: white;
  padding: 4rem min(8vw, 6rem);
}
.hero.compact { padding-block: 3rem; }
.hero h1 { font-size: clamp(2rem, 6vw, 4.5rem); margin: 0.25rem 0; }
.eyebrow { color: #f4c76d; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
main { display: grid; gap: 2rem; padding: 2rem min(8vw, 6rem); }
.section-title { align-items: center; display: flex; justify-content: space-between; }
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card, .panel, .stripe-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #ead8c0;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(60, 34, 20, 0.08);
  overflow: hidden;
}
.card img { height: 220px; object-fit: cover; width: 100%; }
.card-body, .panel, .stripe-card { padding: 1.25rem; }
.muted { color: #725e50; }
.stock { color: #0f766e; font-weight: 800; }
.price { color: #7b1f24; font-size: 1.5rem; font-weight: 900; }
.detail-layout { display: grid; gap: 2rem; grid-template-columns: minmax(240px, 420px) 1fr; }
.detail-layout img { border-radius: 18px; height: 100%; max-height: 520px; object-fit: cover; width: 100%; }
label { display: grid; font-weight: 800; gap: 0.35rem; margin: 0.8rem 0; }
input {
  border: 1px solid #d9c0a0;
  border-radius: 12px;
  font: inherit;
  padding: 0.7rem;
  width: min(100%, 22rem);
}
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid #ead8c0; padding: 0.9rem; text-align: left; }
.badge { border-radius: 999px; display: inline-block; font-weight: 900; padding: 0.35rem 0.7rem; }
.badge.paid { background: #dcfce7; color: #166534; }
.badge.pending { background: #fef3c7; color: #92400e; }
.list-item {
  align-items: center;
  border-top: 1px solid #ead8c0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 96px 1fr auto;
  padding: 1rem 0;
}
.list-item img { border-radius: 14px; height: 86px; object-fit: cover; width: 96px; }
.stripe-card { margin-inline: auto; max-width: 520px; }
.stripe-brand { color: #635bff; font-size: 2rem; font-weight: 900; letter-spacing: -0.06em; }
.notice.error { background: #fee2e2; border: 1px solid #fecaca; border-radius: 16px; color: #991b1b; padding: 1rem; }
@media (max-width: 760px) {
  .detail-layout, .list-item { grid-template-columns: 1fr; }
  .nav { flex-wrap: wrap; }
}
