:root {
  color-scheme: light;
  --bg: #fffaf3;
  --surface: #ffffff;
  --text: #24170d;
  --muted: #6f5d4f;
  --line: #ead8c2;
  --brand: #b85c16;
  --brand-strong: #7a330b;
  --green: #44724a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(184, 92, 22, 0.16);
  background: rgba(255, 250, 243, 0.9);
  backdrop-filter: blur(12px);
}

.brand,
.nav,
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  font-size: 13px;
}

.nav a {
  color: var(--muted);
  font-weight: 700;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 32px;
  min-height: 560px;
}

.hero-copy h1,
.detail-copy h1,
.section-head h1,
.section-head h2,
.receipt h1 {
  margin: 0;
  color: var(--brand-strong);
  line-height: 1.08;
}

.hero-copy h1 {
  max-width: 700px;
  font-size: 56px;
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--brand-strong);
  font-weight: 800;
  padding: 10px 16px;
}

.button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.hero-media,
.detail-media,
.product-image {
  overflow: hidden;
  border-radius: 8px;
  background: #f3e4d2;
}

.hero-media img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 40px 0 18px;
}

.section-head a {
  color: var(--brand);
  font-weight: 800;
}

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

.product-card,
.features article,
.receipt-box,
.order-form,
.items {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.product-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-body {
  padding: 16px;
}

.product-body h3 {
  margin: 0 0 8px;
}

.product-body p,
.footer p,
.features p {
  margin: 0;
  color: var(--muted);
}

.product-meta {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 14px;
  color: var(--brand-strong);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.features article {
  padding: 18px;
}

.detail {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.detail-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.price {
  color: var(--brand);
  font-size: 26px;
  font-weight: 900;
}

.order-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  padding: 11px 12px;
}

.receipt {
  max-width: 760px;
}

.receipt-box {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 18px;
  margin: 22px 0;
  padding: 18px;
}

.items {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.items th,
.items td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
}

.items tr:last-child td {
  border-bottom: 0;
}

.total {
  color: var(--brand-strong);
  font-size: 22px;
  font-weight: 900;
  text-align: right;
}

.empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 820px) {
  .site-header,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .detail,
  .features,
  .product-grid,
  .receipt-box {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-media img {
    height: 320px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
