:root {
  --paper: #fffaf0;
  --panel: #ffffff;
  --ink: #24211d;
  --muted: #6f675c;
  --line: #e7dcca;
  --sun: #f8c24e;
  --coral: #ef745c;
  --teal: #16817a;
  --green: #2f8f5b;
  --blue: #3268a8;
  --shadow: 0 14px 40px rgba(64, 48, 27, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
}

.site-header,
.site-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 18px 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 250, 240, 0.94);
  border-bottom: 1px solid rgba(231, 220, 202, 0.8);
  backdrop-filter: blur(14px);
}

.site-footer {
  color: var(--muted);
  gap: 16px;
  padding: 32px 24px 48px;
}

.brand,
.nav,
.action-row,
.card-row,
.price-row,
.seller-line,
.checkout-row,
.line-actions,
.chip-row,
.flag-row {
  align-items: center;
  display: flex;
  gap: 12px;
}

.brand {
  color: var(--ink);
  font-weight: 800;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: 8px;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.nav {
  flex-wrap: wrap;
  font-size: 0.96rem;
  justify-content: flex-end;
}

.inline-form {
  display: inline;
  margin: 0;
}

.link-button {
  background: none;
  border: 0;
  color: var(--teal);
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.button,
.ghost-button {
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  text-decoration: none;
}

.button {
  background: var(--teal);
  border: 2px solid var(--teal);
  color: #fff;
}

.button:hover {
  background: #0f6964;
  text-decoration: none;
}

.button.tiny {
  min-height: 34px;
  padding: 7px 12px;
}

.ghost-button {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.ghost-button:hover {
  border-color: var(--teal);
  text-decoration: none;
}

.messages {
  margin: 14px auto 0;
  max-width: 1180px;
  padding: 0 24px;
}

.message {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  margin-bottom: 8px;
  padding: 12px 14px;
}

.message.error {
  border-left-color: var(--coral);
}

.message.success {
  border-left-color: var(--green);
}

.hero-band,
.section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 36px 24px;
}

.hero-band {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 310px;
}

.hero-band h1,
.section h1 {
  font-size: clamp(2.4rem, 9vw, 5.8rem);
  line-height: 0.95;
  margin: 0;
}

.section h2 {
  font-size: 1.25rem;
  margin: 0 0 16px;
}

.eyebrow {
  color: var(--coral);
  font-weight: 800;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.lede {
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.5;
  max-width: 620px;
}

.lede.small {
  font-size: 1rem;
}

.section-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.muted-band {
  background: #f6ead7;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  max-width: none;
}

.muted-band > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 1180px;
}

.product-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}

.image-slot {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f9d978, #9ed7cf);
  color: #173b38;
  display: flex;
  font-weight: 800;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.image-slot.big {
  border-radius: 8px;
  min-height: 440px;
}

.image-slot img,
.gallery img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.card-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.card-body p,
.line-item p,
.status-row p {
  color: var(--muted);
  margin: 0;
}

.product-title {
  color: var(--ink);
  font-weight: 800;
}

.pill,
.badge,
.chip {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 750;
  padding: 6px 10px;
}

.pill,
.chip {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
}

.badge {
  background: #f1e8da;
  color: var(--muted);
}

.badge.good {
  background: #dff3e8;
  color: var(--green);
}

.badge.warn {
  background: #fff0d1;
  color: #8b5f00;
}

.chip-row,
.flag-row {
  flex-wrap: wrap;
}

.detail-layout {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 36px 24px;
}

.gallery,
.detail-panel,
.form-shell,
.line-item,
.status-row {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.gallery {
  min-height: 440px;
  overflow: hidden;
}

.detail-panel,
.form-shell {
  align-self: start;
  box-shadow: var(--shadow);
  padding: 22px;
}

.detail-panel h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  margin: 0;
}

.price-row {
  justify-content: space-between;
  margin: 22px 0;
}

.price-row strong {
  font-size: 1.65rem;
}

.buy-box {
  display: grid;
  gap: 10px;
  grid-template-columns: 100px 1fr;
}

.seller-line {
  color: var(--muted);
  margin-top: 18px;
}

.notice,
.empty {
  background: #fff8e4;
  border: 1px solid #f2d184;
  border-radius: 8px;
  color: #6b4d05;
  padding: 12px 14px;
}

.narrow {
  max-width: 820px;
}

.prose {
  color: var(--ink);
  line-height: 1.65;
}

.list-stack {
  display: grid;
  gap: 10px;
}

.line-item {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px;
}

.line-item.tall {
  align-items: flex-start;
}

.line-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.checkout-row {
  justify-content: space-between;
  margin-top: 18px;
}

.form-shell {
  display: grid;
  gap: 24px;
  grid-template-columns: 0.7fr 1fr;
}

.form-shell.wide {
  grid-template-columns: 0.45fr 1fr;
  max-width: 1040px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid p {
  display: grid;
  gap: 6px;
  margin: 0;
}

.form-grid label {
  color: var(--muted);
  font-weight: 700;
}

input,
select,
textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(22, 129, 122, 0.16);
}

.dashboard-head,
.seller-hero,
.status-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.two-col {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
}

.status-grid {
  display: grid;
  gap: 10px;
}

.status-row {
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr auto;
  padding: 14px;
}

.status-row p {
  grid-column: 1 / -1;
}

.status-operational {
  color: var(--green);
}

.status-degraded,
.status-maintenance,
.status-unknown {
  color: #9a6a00;
}

.status-major_outage {
  color: var(--coral);
}

@media (max-width: 760px) {
  .site-header,
  .site-footer,
  .hero-band,
  .section-heading,
  .dashboard-head,
  .seller-hero,
  .status-head,
  .line-item,
  .checkout-row {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-band {
    min-height: 240px;
  }

  .detail-layout,
  .form-shell,
  .form-shell.wide,
  .two-col {
    grid-template-columns: 1fr;
  }

  .gallery,
  .image-slot.big {
    min-height: 280px;
  }

  .buy-box {
    grid-template-columns: 1fr;
  }

  .nav {
    justify-content: flex-start;
  }
}

