:root {
  --forest: #12543d;
  --forest-2: #1f713e;
  --mural: #63bd8e;
  --mint: #edf5e9;
  --mint-2: #d8ead4;
  --gold: #e4aa2c;
  --clay: #8b452c;
  --wood: #5c2f1f;
  --paper: #fbf0d8;
  --surface: #ffffff;
  --ink: #18221c;
  --muted: #6d624f;
  --line: #e4d8bd;
  --line-strong: #cdbd94;
  --shadow: 0 24px 60px rgba(24, 34, 28, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 8%, rgba(31, 113, 62, 0.08), transparent 26%),
    radial-gradient(circle at 92% 14%, rgba(228, 170, 44, 0.1), transparent 24%),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 12px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid rgba(92, 47, 31, 0.16);
  background: rgba(251, 240, 216, 0.94);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #efe2b5;
  box-shadow: 0 4px 14px rgba(18, 84, 61, 0.2);
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

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

.nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--forest);
  font-size: 0.92rem;
  font-weight: 750;
}

.nav a,
.mini-cart {
  text-decoration: none;
}

.mini-cart {
  display: inline-grid;
  min-width: 138px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--forest);
  text-align: right;
}

.mini-cart span {
  color: var(--muted);
  font-size: 0.78rem;
}

.mini-cart strong {
  font-size: 0.98rem;
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  padding: clamp(86px, 13vh, 132px) clamp(16px, 4vw, 56px) 54px;
  overflow: hidden;
  color: white;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(34, 24, 16, 0.92), rgba(18, 84, 61, 0.76) 48%, rgba(18, 84, 61, 0.12)),
    url("assets/shopping-rural-post.jpeg") center 48%/cover;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 180px;
  height: 180px;
  border: 24px solid rgba(228, 170, 44, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  top: 86px;
  left: -70px;
}

.hero::after {
  right: -80px;
  bottom: 48px;
  border-color: rgba(251, 240, 216, 0.18);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-seal {
  display: inline-grid;
  gap: 2px;
  min-width: 176px;
  padding: 14px 18px;
  margin-bottom: 24px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--forest);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.hero-seal span {
  font-weight: 950;
}

.hero-seal small {
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.35rem, 6.3vw, 5.2rem);
  line-height: 0.97;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.02rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
.ghost-button,
.filter-button,
.qty-button {
  min-height: 42px;
  border: 0;
  cursor: pointer;
  font-weight: 850;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 154px;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
}

.button.primary {
  background: linear-gradient(180deg, var(--forest-2), var(--forest));
  color: white;
}

.button.secondary {
  background: white;
  color: var(--forest);
}

.button.light {
  background: white;
  color: var(--forest);
}

.button.full {
  width: 100%;
}

.market-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: #fff8e8;
}

.market-strip div {
  padding: 22px clamp(16px, 4vw, 56px);
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), transparent),
    #fff8e8;
}

.market-strip div:last-child {
  border-right: 0;
}

.market-strip span,
.market-strip strong {
  display: block;
}

.market-strip span {
  color: var(--muted);
  font-size: 0.86rem;
}

.market-strip strong {
  color: var(--wood);
  font-size: 1.16rem;
}

.place-story {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: stretch;
  padding: 72px clamp(16px, 4vw, 56px);
  background:
    linear-gradient(135deg, rgba(237, 245, 233, 0.96), rgba(251, 240, 216, 0.98)),
    var(--paper);
}

.place-photo {
  min-height: 430px;
  border: 10px solid #fff8e8;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(18, 84, 61, 0.02), rgba(92, 47, 31, 0.08)),
    url("assets/shopping-rural-post.jpeg") center/cover;
  box-shadow: var(--shadow);
}

.place-copy {
  display: grid;
  align-content: center;
  padding: clamp(4px, 2vw, 18px) 0;
}

.place-copy h2 {
  max-width: 680px;
  margin: 0;
  color: var(--wood);
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 0.98;
}

.place-copy p {
  max-width: 670px;
  margin: 20px 0 0;
  color: #425147;
  font-size: 1.04rem;
}

.place-copy dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
}

.place-copy dl div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8e8;
}

.place-copy dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.place-copy dd {
  margin: 6px 0 0;
  color: var(--forest);
  font-weight: 850;
}

.catalog-shell,
.section {
  padding: 72px clamp(16px, 4vw, 56px);
}

.catalog-heading,
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(260px, 0.55fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 26px;
}

.section-heading.compact {
  display: block;
  max-width: 760px;
}

.catalog-heading h2,
.section-heading h2,
.contact-band h2,
.order-head h2 {
  margin: 0;
  line-height: 1;
  letter-spacing: 0;
}

.catalog-heading h2,
.section-heading h2,
.contact-band h2 {
  font-size: clamp(1.9rem, 4vw, 3.35rem);
}

.order-head h2 {
  font-size: 1.35rem;
}

.catalog-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.catalog-tools {
  position: sticky;
  top: 67px;
  z-index: 18;
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 14px;
  align-items: end;
  padding: 14px;
  margin: 0 -14px 24px;
  border: 1px solid rgba(228, 216, 189, 0.9);
  border-radius: 8px;
  background: rgba(251, 240, 216, 0.94);
  backdrop-filter: blur(14px);
}

.search {
  display: grid;
  gap: 6px;
  color: var(--forest);
  font-size: 0.88rem;
  font-weight: 800;
}

.search input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  outline-color: var(--forest-2);
}

.category-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.filter-button {
  flex: 0 0 auto;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--forest);
  white-space: nowrap;
}

.filter-button.is-active {
  border-color: var(--forest-2);
  background: var(--forest-2);
  color: white;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) minmax(290px, 360px);
  gap: 22px;
  align-items: start;
}

.featured {
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid rgba(15, 61, 46, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0% 0%, rgba(228, 170, 44, 0.22), transparent 26%),
    linear-gradient(135deg, rgba(18, 84, 61, 0.98), rgba(31, 113, 62, 0.95)),
    var(--forest);
  color: white;
}

.featured-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.featured-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1;
}

.featured-head a {
  color: white;
  font-weight: 850;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 4px;
}

.featured-toggle {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.featured.is-collapsed .featured-grid {
  display: none;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.featured-card {
  display: grid;
  gap: 14px;
  min-height: 142px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
}

.featured-card h3 {
  margin: 0;
  font-size: 1rem;
}

.featured-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.featured-card .price {
  color: white;
  text-align: left;
}

.featured-card .qty {
  justify-self: start;
  border-color: rgba(255, 255, 255, 0.28);
  background: white;
}

.category-index,
.order-panel {
  position: sticky;
  top: 154px;
}

.category-index {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.category-index a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.category-index a:last-child {
  border-bottom: 0;
}

.category-index span {
  color: var(--muted);
  font-weight: 700;
}

.price-list {
  display: grid;
  gap: 18px;
}

.category-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 30px rgba(24, 34, 28, 0.06);
}

.category-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(237, 245, 233, 0.95), #fff8e8 72%, rgba(228, 170, 44, 0.18));
}

.category-title h3 {
  margin: 0;
  color: var(--forest);
  font-size: 1.3rem;
}

.category-title span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px 122px;
  gap: 14px;
  align-items: center;
  min-height: 66px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.product-row:last-child {
  border-bottom: 0;
}

.product-name {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.product-name strong {
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.product-name span {
  color: var(--muted);
  font-size: 0.82rem;
}

.price {
  color: var(--forest);
  font-size: 1.08rem;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.qty {
  display: grid;
  grid-template-columns: 36px 42px 36px;
  align-items: center;
  justify-content: end;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--mint);
}

.qty-button {
  min-height: 36px;
  background: transparent;
  color: var(--forest);
}

.qty span {
  color: var(--forest);
  text-align: center;
  font-weight: 900;
}

.order-card {
  padding: 18px;
  border: 1px solid rgba(15, 61, 46, 0.2);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.order-head,
.cart-item,
.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ghost-button {
  min-height: 36px;
  padding: 0 11px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--forest);
}

.cart-list {
  display: grid;
  gap: 10px;
  min-height: 82px;
  margin: 16px 0;
}

.order-body {
  display: grid;
}

.cart-item {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.cart-item strong,
.cart-item span {
  display: block;
}

.cart-item span,
.empty-cart,
.order-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.cart-total {
  margin: 16px 0;
  padding-top: 14px;
  border-top: 2px solid var(--line);
}

.cart-total strong {
  color: var(--forest-2);
  font-size: 1.42rem;
}

.steps {
  background: var(--mint);
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.step-grid div {
  padding: 20px;
  border: 1px solid rgba(15, 61, 46, 0.16);
  border-radius: 8px;
  background: white;
}

.step-grid span {
  color: var(--clay);
  font-weight: 950;
}

.step-grid h3 {
  margin: 10px 0 6px;
}

.step-grid p {
  margin: 0;
  color: var(--muted);
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 58px clamp(16px, 4vw, 56px);
  background:
    radial-gradient(circle at 88% 24%, rgba(228, 170, 44, 0.2), transparent 26%),
    var(--forest);
  color: white;
}

.contact-band h2 {
  max-width: 900px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(16px, 4vw, 56px);
  background: #0b261d;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
}

.footer a {
  color: white;
}

@media (max-width: 1120px) {
  .catalog-layout {
    grid-template-columns: minmax(0, 1fr) minmax(290px, 350px);
  }

  .category-index {
    display: none;
  }
}

@media (max-width: 880px) {
  .topbar {
    grid-template-columns: auto auto;
  }

  .nav {
    display: none;
  }

  .mini-cart {
    min-width: 118px;
  }

  .market-strip,
  .place-story,
  .catalog-heading,
  .catalog-tools,
  .catalog-layout,
  .featured-grid,
  .step-grid,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .catalog-tools,
  .order-panel {
    position: static;
  }

  .market-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .market-strip div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding-inline: 12px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand small {
    display: none;
  }

  .hero,
  .catalog-shell,
  .section,
  .contact-band {
    padding-inline: 14px;
  }

  .hero {
    min-height: 72vh;
  }

  .place-photo {
    min-height: 300px;
  }

  .place-copy dl {
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .contact-band .button {
    width: 100%;
  }

  .product-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
  }

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

  .price {
    text-align: right;
  }

  .qty {
    grid-column: 1 / -1;
    width: 122px;
    justify-self: end;
  }

  .footer {
    flex-direction: column;
  }
}
