:root {
  --green: #6a9739;
  --green-dark: #55792d;
  --dark: #111111;
  --beige: #f9f7f5;
  --text: #222222;
  --muted: #777777;
  --heading: "Merriweather", Georgia, "Times New Roman", serif;
  --body: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.container { width: 100%; max-width: 1286px; margin: 0 auto; padding: 0 40px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 14px 26px;
  border-radius: 3px;
  transition: background .2s;
}
.btn:hover { background: var(--green-dark); }
.btn--sm { padding: 10px 18px; font-size: 11px; }
.btn .arrow { font-size: 14px; line-height: 1; }

.leaf-icon { width: 80px; height: auto; }
.leaf-icon--center { margin: 14px auto 0; }

.section-title {
  font-family: var(--heading);
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1366px;
  margin: 0 auto;
  padding: 10px 40px;
  min-height: 72px;
}
.header__logo img { height: 80px; width: auto; }
.nav { display: flex; flex: 1; align-items: center; justify-content: space-between; margin-left: 24px; }
.nav ul { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: 13px; transition: color .2s; }
.nav a:hover { color: var(--green); }
.nav__cart a { display: flex; align-items: center; gap: 8px; }
.nav__price { color: var(--green); font-weight: 600; }
.cart-icon { position: relative; color: var(--green); display: inline-flex; }
.cart-icon b {
  position: absolute;
  top: -8px; right: -9px;
  width: 15px; height: 15px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green);
  color: #fff;
  font-size: 9px;
  border-radius: 50%;
}
.nav__user { display: inline-flex; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; }

/* Fresh produce banner */
.top-banner {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(110deg, #456c2c, var(--green));
}
.top-banner::after {
  position: absolute;
  top: -90px;
  right: 20%;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(255, 255, 255, .035), 0 0 0 48px rgba(255, 255, 255, .025);
  content: "";
}
.top-banner__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 108px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.top-banner__copy { display: flex; align-items: center; gap: 18px; }
.top-banner__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #eff8e7;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
}
.top-banner__icon svg { width: 27px; height: 27px; }
.top-banner__eyebrow {
  display: block;
  color: #e0edcf;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}
.top-banner__copy p { margin-top: 3px; color: rgba(255, 255, 255, .88); font-size: 13px; }
.top-banner__copy strong { margin-right: 5px; color: #fff; font-family: var(--heading); font-size: 18px; }
.top-banner__link {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 12px;
  padding: 11px 17px;
  color: var(--green-dark);
  background: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  transition: transform .2s, background .2s;
}
.top-banner__link:hover { transform: translateY(-2px); background: #f0f5e9; }
.top-banner__link span { font-size: 17px; line-height: 1; }

/* Hero */
.hero {
  background: var(--beige);
  background-image: radial-gradient(ellipse 28% 38% at 88% 82%, rgba(106, 151, 57, .09), transparent 70%);
  padding: 30px 0 60px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 40px;
}
.hero__image img { width: 100%; max-width: 580px; margin: 0 auto; mix-blend-mode: multiply; }
.hero__text .leaf-icon { margin-bottom: 14px; }
.hero__kicker { font-family: var(--heading); font-size: 12px; font-weight: 700; margin-bottom: 14px; }
.hero h1 {
  font-family: var(--heading);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
}
.hero__sub { font-size: 14px; margin-bottom: 26px; }

/* Features */
.features { background: var(--dark); padding: 32px 0; }
.features__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.features__list li {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #1f1f1f;
  border-radius: 4px;
  padding: 18px 22px;
}
.features__list svg { flex: none; }
.features__list h3 { font-family: var(--heading); color: #fff; font-size: 13px; font-weight: 700; }
.features__list p { color: #d6d6d6; font-size: 12px; }

/* Products */
.products { padding: 80px 0 70px; }
.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px 12px 16px;
  background: #fff;
  border: 1px solid #e9ede5;
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(34, 48, 25, .06);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.product:hover,
.product:focus-within {
  transform: translateY(-5px);
  border-color: #d7e2cc;
  box-shadow: 0 14px 28px rgba(34, 48, 25, .12);
}
.product__img {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  background: #f7f8f4;
  border-radius: 10px;
  margin-bottom: 16px;
}
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product:hover .product__img img { transform: scale(1.05); }
.product__cat {
  align-self: flex-start;
  display: block;
  padding: 3px 9px;
  color: var(--green-dark);
  background: #f0f5e9;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.product h3 { font-family: var(--heading); font-size: 14px; font-weight: 700; line-height: 1.45; }
.product h3 a:hover { color: var(--green); }
.product__price { display: block; color: var(--green-dark); font-size: 15px; font-weight: 700; margin-top: auto; padding-top: 10px; }

/* Categories */
.categories {
  position: relative;
  background: var(--beige);
  padding: 110px 0 90px;
}
.categories__leaf {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 75px;
}
.categories__grid {
  max-width: 1280px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.cat {
  position: relative;
  height: 350px;               /* height lives on the card, not on the grid */
  padding: 36px 32px 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
  overflow: hidden;
  isolation: isolate;
}
.cat h3 {
  font-family: var(--heading);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.cat p {
  font-size: 17px;
  line-height: 1.5;
  color: #333;
  max-width: 270px;
  margin-bottom: 26px;
}
.cat .btn { padding: 16px 32px; font-size: 14px; border-radius: 4px; }
.cat .btn .arrow { font-size: 20px; }

/* image covers the whole card */
.categories .cat img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  object-fit: cover;
  object-position: center bottom;
  z-index: -2;
}

/* white fade on top so the text stays readable */
.cat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.85) 45%, rgba(255,255,255,0) 100%);
  z-index: -1;
}

/* text and button stay above the image */
.cat h3, .cat p, .cat .btn { position: relative; z-index: 1; }

/* Offer */
.offer { background: var(--dark); padding: 40px 0; position: relative; }
.offer::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -8px;
  transform: translateX(-50%);
  border-style: solid;
  border-width: 8px 8px 0;
  border-color: var(--dark) transparent transparent;
}
.offer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.offer h2 { font-family: var(--heading); color: #fff; font-size: 24px; font-weight: 700; padding-left: 4px; }
.offer-note { background: var(--beige); padding: 22px 16px; text-align: center; }
.offer-note p { font-family: var(--heading); font-size: 16px; font-weight: 700; }

/* Reviews */
.reviews { background: var(--beige); padding: 80px 0 40px; }
.reviews__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  align-items: stretch;
  margin: 40px auto 0;
  max-width: 1000px;
}
.review {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 250px;           /* min-height so text never overflows */
  background: #fff;
  padding: 26px 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}
.review blockquote { font-size: 14px; line-height: 1.7; color: #555; margin-bottom: 20px; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.review figcaption img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.review strong { display: block; font-size: 13px; font-weight: 500; line-height: 1.2; }
.stars { color: #f4a62a; font-size: 12px; letter-spacing: 2px; }
.deal {
  position: relative;
  min-height: 400px;
  padding: 66px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.deal__bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.7); }
.deal__content { position: relative; }
.deal h3 { font-family: var(--heading); font-size: 22px; font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.deal p { margin-bottom: 14px; font-size: 16px; }

/* Brands (static row, no slider) */
.brands {
  display: flex;
  align-items: center;
  gap: 20px 40px;
  flex-wrap: wrap;
  margin-top: 70px;
  padding-bottom: 20px;
}
.brands__label { font-family: var(--heading); font-size: 11px; font-weight: 700; white-space: nowrap; }
.brands ul { display: flex; flex: 1; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.brands img { height: 74px; width: auto; mix-blend-mode: multiply; transition: transform .2s; }
.brands a:hover img { transform: scale(1.06); }

/* Footer */
.footer { background: var(--dark); color: #d9d9d9; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-top: 70px;
  padding-bottom: 60px;
}
.footer h4 { font-family: var(--heading); color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 18px; }
.footer__brand img { height: 72px; width: auto; margin-bottom: 14px; }
.footer__brand p, .footer__text { font-size: 12px; line-height: 1.7; margin-bottom: 26px; }
.hours div { display: flex; flex-direction: column; margin-bottom: 14px; font-size: 12px; }
.hours dt { color: #fff; font-weight: 600; }
.hours dd { color: #bdbdbd; }
.footer__links li { margin-bottom: 12px; font-size: 12px; }
.footer__links a { color: #d9d9d9; transition: color .2s, padding .2s; }
.footer__links a:hover { color: var(--green); padding-left: 4px; }
.badges { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.badges img { height: 34px; width: auto; border-radius: 4px; }
.footer address { font-size: 12px; line-height: 1.8; }
.footer__bar { border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0; }
.footer__bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__bar p { font-size: 12px; }
.social { display: flex; gap: 10px; }
.social a {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--dark);
  transition: background .2s, color .2s;
}
.social a:hover { background: var(--green); color: #fff; }

.to-top {
  position: fixed;
  right: 18px; bottom: 18px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green);
  color: #fff;
  border-radius: 3px;
  z-index: 40;
}
.to-top:hover { background: var(--green-dark); }

/* ================= Responsive ================= */
@media (max-width: 1100px) {
  .nav ul { gap: 22px; }
  .cat { padding: 30px 24px 0; }
  .cat h3 { font-size: 22px; }
  .cat p { font-size: 15px; max-width: 230px; margin-bottom: 20px; }
  .cat .btn { padding: 14px 24px; font-size: 13px; }
}

@media (max-width: 1024px) {
  .features__list { grid-template-columns: repeat(2, 1fr); }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .reviews__grid { grid-template-columns: 1fr; max-width: 520px; }
  .deal { order: -1; min-height: 340px; }
}

@media (max-width: 860px) {
  .header__logo img { height: 56px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    padding: 8px 40px 20px;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .08);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .nav li { padding: 10px 0; width: 100%; }
  .nav__user { display: none; }

  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__text .leaf-icon { margin-left: auto; margin-right: auto; }

  .categories { padding: 90px 0 60px; }
  .categories__grid { grid-template-columns: 1fr; max-width: 560px; gap: 20px; }
  .cat { height: 340px; }
  .cat h3 { font-size: 24px; }
  .cat p { font-size: 16px; max-width: 280px; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .header__inner { padding: 8px 20px; }
  .nav { padding: 8px 20px 20px; }
  .top-banner__inner { align-items: flex-start; flex-direction: column; gap: 14px; min-height: 0; padding-top: 20px; padding-bottom: 20px; }
  .top-banner__copy { align-items: flex-start; gap: 12px; }
  .top-banner__icon { width: 42px; height: 42px; }
  .top-banner__icon svg { width: 22px; height: 22px; }
  .top-banner__copy p { font-size: 12px; }
  .top-banner__copy strong { display: block; font-size: 16px; }
  .top-banner__link { margin-left: 54px; }
  .section-title { font-size: 24px; }
  .products { padding: 60px 0 50px; }
  .features__list { grid-template-columns: 1fr; }
  .products__grid { gap: 14px; }
  .cat { height: 320px; padding: 26px 20px 0; }
  .review { padding: 22px 20px; }
  .deal { padding: 50px 20px; }
  .brands { margin-top: 40px; }
  .brands img { height: 54px; }
  .brands ul { justify-content: flex-start; gap: 16px 24px; }
  .footer__grid { grid-template-columns: 1fr; padding-top: 50px; padding-bottom: 40px; }
  .footer__bar-inner { justify-content: center; text-align: center; }
  .offer__inner { flex-direction: column; align-items: flex-start; }
  .offer h2 { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}