:root {
  --bg: #fbfaf6;
  --paper: #ffffff;
  --ink: #1f211b;
  --muted: #62665b;
  --line: #ded8cb;
  --forest: #31553b;
  --leaf: #6e8a44;
  --ember: #b25e2a;
  --straw: #eadbb9;
  --shadow: 0 18px 45px rgba(39, 33, 24, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 246, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 92px;
  height: 92px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  transform: scale(1.08);
  clip-path: circle(46% at 50% 50%);
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  padding: 8px 10px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
}

.nav-button {
  padding: 8px 12px;
  border: 1px solid var(--forest);
  background: var(--forest);
  color: #fff;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

nav a:hover,
nav a:focus-visible,
nav a.active {
  color: var(--ink);
  background: var(--straw);
}

.hero {
  position: relative;
  min-height: min(660px, 82vh);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(25, 29, 21, 0.74), rgba(25, 29, 21, 0.26) 48%, rgba(25, 29, 21, 0.04));
}

.hero-overlay {
  position: relative;
  z-index: 1;
  width: min(670px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 92px);
  color: #fff;
  padding: 72px 0;
}

.hero h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.35rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 560px;
  margin: 20px 0 28px;
  font-size: clamp(1rem, 2.2vw, 1.28rem);
}

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

.hero .eyebrow {
  color: #f4c06b;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--forest);
  background: var(--paper);
  color: var(--forest);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--ember);
  border-color: var(--ember);
  color: #fff;
}

.button.secondary {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

.button.light {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
  color: var(--forest);
}

.button:hover,
.button:focus-visible {
  filter: brightness(0.95);
}

.button:disabled {
  border-color: #b8b4aa;
  background: #d8d3c8;
  color: #777267;
  cursor: not-allowed;
  filter: none;
}

.catalog-section,
.contact-band {
  padding: clamp(42px, 7vw, 82px) clamp(18px, 5vw, 72px);
}

.section-heading h1,
.contact-band h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  letter-spacing: 0;
}

.contact-band p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
}

.muted {
  background: #f1efe7;
}

.section-heading {
  margin-bottom: 22px;
}

.catalog-filters {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin: -4px 0 22px;
}

.catalog-filters label {
  width: min(240px, 100%);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 360px));
  gap: 18px;
  justify-content: start;
  align-items: stretch;
}

.product-card {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 300px;
  overflow: hidden;
  padding: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(39, 33, 24, 0.08);
}

.product-card.is-sold-out {
  opacity: 0.72;
}

.product-card > :not(.product-image) {
  margin-left: 20px;
  margin-right: 20px;
}

.product-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: #efe7d7;
}

.placeholder-image {
  display: grid;
  place-items: center;
  color: #75664d;
  font-weight: 800;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.product-card .badge {
  padding: 4px 8px;
  background: #e8f0df;
  color: var(--forest);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 800;
}

.sold-out-label {
  padding: 5px 9px;
  background: #96351f;
  color: #fff;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 16px 0 8px;
  font-size: 1.45rem;
}

.product-card p {
  color: var(--muted);
  margin: 0 0 14px;
}

.price-line {
  color: var(--forest);
  font-weight: 800;
}

.meta-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 0;
  margin: auto 0 18px;
  list-style: none;
}

.meta-list li {
  padding: 5px 7px;
  background: #f6f2e7;
  border-radius: 4px;
  font-size: 0.84rem;
  color: #514938;
}

.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.page-view,
.hero {
  display: none;
}

.page-view.active,
.hero.active {
  display: grid;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal {
  width: min(820px, calc(100% - 28px));
  max-height: min(820px, calc(100vh - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(25, 25, 22, 0.58);
}

.icon-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 6px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.detail,
.request-form {
  padding: clamp(22px, 4vw, 42px);
}

.detail-image {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 22px;
}

.detail h2,
.request-form h2 {
  margin: 0 42px 8px 0;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.detail p {
  color: var(--muted);
}

.detail-description {
  white-space: pre-line;
}

.detail-status {
  display: inline-flex;
  margin: 0 0 10px;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
}

.detail-table th,
.detail-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.detail-table th {
  width: 190px;
  color: var(--muted);
  font-weight: 700;
}

form {
  display: grid;
  gap: 20px;
}

fieldset {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
}

legend {
  padding: 0 8px;
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: #3c3d37;
  font-weight: 700;
}

.wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cfc8b8;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

select option:disabled {
  color: #aaa;
  background: #f3f3f3;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.checkbox-group {
  display: grid;
  gap: 10px;
}

.hidden {
  display: none;
}

.help {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.pickup-only {
  margin: 0;
  color: var(--forest);
  font-weight: 800;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.form-privacy-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-privacy-note a {
  color: var(--forest);
  font-weight: 800;
}

.contact-band {
  background: var(--forest);
  color: #fff;
}

.contact-band p {
  color: rgba(255, 255, 255, 0.78);
}

.legal-section {
  background: var(--bg);
}

.legal-content {
  display: grid;
  gap: 20px;
  max-width: 860px;
  white-space: pre-line;
}

.legal-content section {
  display: grid;
  gap: 6px;
}

.legal-content h2 {
  margin: 0;
  font-size: 1.18rem;
}

.legal-content p {
  margin: 0;
  color: var(--muted);
}

.legal-footer {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px clamp(18px, 5vw, 72px);
  background: #213927;
  color: #fff;
}

.legal-footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.legal-footer a:hover,
.legal-footer a:focus-visible {
  text-decoration: underline;
}

.contact-card {
  display: grid;
  gap: 12px;
  max-width: 440px;
  margin-top: 22px;
  font-style: normal;
}

.postal-address {
  display: block;
  white-space: pre-line;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
}

.postal-address:empty,
.contact-line:has(.postal-address:empty),
.contact-link:has(span:last-child:empty) {
  display: none;
}

.contact-line {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.5;
}

.contact-icon {
  display: inline-grid;
  width: 22px;
  min-width: 22px;
  place-items: center;
  background: transparent;
  color: #fff;
}

.whatsapp-icon {
  width: 22px;
  height: 22px;
  color: #fff;
}

.whatsapp-icon svg {
  width: 21px;
  height: 21px;
  display: block;
  fill: currentColor;
}

.empty-state {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.status-message {
  padding: 12px;
  border-radius: 6px;
  background: #edf6e8;
  color: #264d2d;
  font-weight: 700;
}

@media (max-width: 740px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 620px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(25, 29, 21, 0.78), rgba(25, 29, 21, 0.3));
  }

  .hero-overlay {
    align-self: end;
    margin: 0;
    padding: 34px 18px;
    width: 100%;
  }

  .hero h1 {
    max-width: 11ch;
  }

  .catalog-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .detail-table th,
  .detail-table td {
    display: block;
    width: 100%;
  }

  .detail-table th {
    border-bottom: 0;
    padding-bottom: 0;
  }
}
