:root {
  --green-900: #203f22;
  --green-700: #3f6f32;
  --green-100: #edf5e9;
  --orange-600: #df5d1c;
  --orange-100: #fff1e8;
  --gold-100: #fff7db;
  --ink: #172018;
  --muted: #5e665c;
  --line: #dce4d8;
  --surface: #ffffff;
  --page: #f8faf5;
  --shadow: 0 18px 45px rgba(36, 48, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.65rem 0.9rem;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ef 100%);
  border-bottom: 1px solid var(--line);
}

.utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem clamp(1rem, 4vw, 4rem);
  color: white;
  background: var(--green-900);
}

.utility-bar p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.utility-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.utility-links a {
  font-weight: 700;
  color: #ffe2b8;
  white-space: nowrap;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.social-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
}

.social-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.site-footer .social-icon {
  width: 42px;
  height: 42px;
}

.site-footer .social-icon img {
  width: 26px;
  height: 26px;
}

.main-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  padding: 0.65rem clamp(1rem, 4vw, 4rem);
  background: rgba(255, 255, 255, 0.9);
}

.brand {
  display: inline-flex;
  width: clamp(190px, 20vw, 280px);
}

.brand img,
.site-footer img {
  aspect-ratio: 3 / 2;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--green-900);
}

.nav-links a {
  padding: 0.45rem 0;
}

.cart-button,
.primary-button,
.secondary-button,
.search-row button,
.filter,
.product-card button,
.no-results button,
.cart-header button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.8rem;
  color: white;
  background: var(--orange-600);
}

.cart-button strong {
  display: inline-grid;
  min-width: 1.6rem;
  height: 1.6rem;
  place-items: center;
  color: var(--orange-600);
  background: white;
  border-radius: 999px;
}

.storefront-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.65fr);
  align-items: end;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 4rem) clamp(1.5rem, 4vw, 3rem);
}

.intro-copy {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--orange-600);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 820px;
  color: var(--green-900);
  font-size: clamp(2.25rem, 6vw, 4.9rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--green-900);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: var(--green-900);
  font-size: 1.15rem;
  letter-spacing: 0;
}

.intro-copy p:last-child {
  max-width: 700px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.search-panel {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-panel label {
  display: block;
  margin-bottom: 0.55rem;
  font-weight: 800;
  color: var(--green-900);
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
}

.search-row input {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfdf9;
}

.search-row input:focus {
  outline: 3px solid rgba(223, 93, 28, 0.22);
  border-color: var(--orange-600);
}

.search-row button,
.primary-button,
.product-card button,
.no-results button {
  padding: 0.7rem 1rem;
  color: white;
  background: var(--green-700);
}

#resultSummary {
  min-height: 1.5rem;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.category-band,
.products-section,
.content-band {
  padding: clamp(1.75rem, 4vw, 3.5rem) clamp(1rem, 4vw, 4rem);
}

.category-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.28fr) 1fr;
  align-items: center;
  gap: 1.5rem;
  background: #fffaf1;
  border-bottom: 1px solid var(--line);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.filter,
.secondary-button {
  padding: 0.62rem 0.8rem;
  color: var(--green-900);
  background: white;
  border-color: var(--line);
}

.filter.active {
  color: white;
  background: var(--green-900);
  border-color: var(--green-900);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 4.65;
  background: linear-gradient(180deg, var(--green-100), #ffffff);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.65rem;
}

.discount-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.28rem 0.5rem;
  color: white;
  background: var(--orange-600);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.product-body {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.product-meta span {
  padding: 0.25rem 0.45rem;
  color: var(--green-900);
  background: var(--green-100);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

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

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--line);
}

.price-row strong {
  display: inline-block;
  color: var(--green-900);
  font-size: 1.25rem;
}

.price-row span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.list-price {
  display: inline-block;
  margin-left: 0.35rem;
  text-decoration: line-through;
}

.no-results {
  margin-top: 1rem;
  padding: 1.5rem;
  background: var(--orange-100);
  border: 1px solid #ffd1b7;
  border-radius: 8px;
}

.content-band {
  background: white;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
}

.content-grid article {
  padding: 1.25rem 0;
  border-top: 3px solid var(--line);
}

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

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  width: min(420px, 100vw);
  height: 100vh;
  padding: 1rem;
  background: white;
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 180ms ease;
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.cart-header h2 {
  font-size: 1.4rem;
}

.cart-header button {
  padding: 0.5rem 0.75rem;
  color: var(--green-900);
  background: var(--green-100);
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  overflow: auto;
  padding: 1rem 0;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-line p {
  margin: 0;
}

.cart-line small {
  color: var(--muted);
}

.cart-line button {
  align-self: start;
  min-height: 36px;
  padding: 0.25rem 0.5rem;
  color: #8a2b0a;
  background: #fff1e8;
  border: 1px solid #ffd1b7;
  border-radius: 6px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.cart-note,
.seo-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(160px, 0.25fr) minmax(180px, 0.28fr) 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem clamp(1rem, 4vw, 4rem);
  color: white;
  background: var(--green-900);
}

.site-footer nav {
  display: grid;
  gap: 0.45rem;
}

.site-footer a {
  color: #ffe2b8;
  font-weight: 700;
}

.contact-info {
  display: grid;
  gap: 0.45rem;
  font-style: normal;
}

.contact-info strong {
  color: white;
}

.site-footer p {
  margin: 0.5rem 0 0;
}

@media (max-width: 900px) {
  .main-nav,
  .storefront-intro,
  .category-band,
  .content-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .main-nav {
    justify-items: start;
  }

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

  .cart-button {
    justify-self: stretch;
    justify-content: center;
  }

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

@media (max-width: 560px) {
  .utility-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .utility-links {
    justify-content: flex-start;
  }

  .storefront-intro {
    padding-top: 1.5rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

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