/* ===== Reset & base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-900: #113319;
  --green-800: #1c4b26;
  --green-700: #256b34;
  --green-600: #2f8f45;
  --green-500: #37a852;
  --green-100: #e6f4ea;
  --green-50: #f2faf4;
  --amber-500: #f2a53c;
  --amber-600: #e08e1d;
  --red-500: #e5484d;
  --ink-900: #16201a;
  --ink-700: #3d473f;
  --ink-500: #6b756e;
  --ink-300: #a3aca5;
  --border: #dfe8e1;
  --bg: #ffffff;
  --bg-alt: #f7faf8;
  --shadow: 0 8px 24px rgba(17, 51, 25, 0.08);
  --shadow-lg: 0 20px 48px rgba(17, 51, 25, 0.18);
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1180px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.5;
}

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

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

ul { list-style: none; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

input, select {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.01em; color: var(--green-900); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  color: var(--green-600);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.eyebrow.light { color: var(--green-100); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--green-600);
  color: white;
  box-shadow: 0 6px 16px rgba(47, 143, 69, 0.35);
}
.btn-primary:hover { background: var(--green-700); }
.btn-ghost {
  background: transparent;
  color: var(--green-800);
  border: 1.5px solid var(--green-600);
}
.btn-ghost:hover { background: var(--green-50); }
.btn-light {
  background: white;
  color: var(--green-800);
}
.btn-light:hover { background: var(--green-50); }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  box-shadow: 0 1px 0 var(--border);
}

.header-top { padding: 16px 0; }
.header-top-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--green-800);
  flex-shrink: 0;
}
.logo-icon { font-size: 1.5rem; }

.search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 4px 4px 18px;
  max-width: 560px;
}
.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  padding: 10px 0;
  font-size: 0.95rem;
}
.search-bar button {
  background: var(--green-600);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.search-bar button:hover { background: var(--green-700); }

.header-actions { flex-shrink: 0; }
.icon-btn {
  position: relative;
  font-size: 1.15rem;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--green-50);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.icon-btn:hover { background: var(--green-100); }

.cart-count {
  background: var(--amber-500);
  color: var(--ink-900);
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.main-nav { background: var(--green-900); }
.nav-inner {
  display: flex;
  gap: 28px;
  padding: 10px 24px;
  overflow-x: auto;
}
.nav-inner a {
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 2px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav-inner a:hover, .nav-inner a.active-link { color: white; border-color: var(--amber-500); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--green-50), #fff 60%);
  padding: 64px 0;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}
.hero-text h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  margin-bottom: 16px;
}
.hero-sub {
  color: var(--ink-700);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 28px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.3rem; color: var(--green-800); }
.hero-stats span { font-size: 0.82rem; color: var(--ink-500); }

.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
}
.produce-blob {
  font-size: clamp(3rem, 8vw, 5.5rem);
  background: white;
  border-radius: 50%;
  aspect-ratio: 1;
  width: min(340px, 80vw);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  line-height: 1.4;
}

/* ===== Category strip ===== */
.category-strip {
  display: flex;
  gap: 14px;
  padding: 40px 24px;
  overflow-x: auto;
}
.category-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 22px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1.5px solid transparent;
  min-width: 108px;
  text-align: center;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.category-chip:hover { transform: translateY(-2px); }
.category-chip.active {
  border-color: var(--green-600);
  background: var(--green-50);
}
.category-chip .cat-icon { font-size: 1.7rem; }
.category-chip .cat-name { font-size: 0.82rem; font-weight: 600; color: var(--ink-700); }

/* ===== Deals banner ===== */
.deals-banner {
  background: linear-gradient(120deg, var(--green-700), var(--green-500));
  color: white;
  margin: 0 24px;
  border-radius: var(--radius);
}
.deals-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 36px 40px;
}
.deals-inner h2 { color: white; font-size: 1.6rem; margin-bottom: 6px; }
.deals-inner p { color: rgba(255,255,255,0.88); }

/* ===== Shop ===== */
.shop { padding: 56px 24px; }
.shop-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 6px;
}
.shop-header h2 { font-size: 1.7rem; }
.shop-controls { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--ink-500); }
.shop-controls select {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: white;
}
.results-info { color: var(--ink-500); font-size: 0.9rem; margin-bottom: 24px; }
.no-results { text-align: center; padding: 60px 0; color: var(--ink-500); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.product-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--amber-500);
  color: var(--ink-900);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 9px;
  border-radius: 999px;
}

.product-icon {
  font-size: 2.6rem;
  align-self: center;
  background: var(--bg-alt);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.product-name { font-weight: 700; font-size: 0.98rem; }
.product-unit { color: var(--ink-500); font-size: 0.8rem; }
.product-price { font-weight: 800; color: var(--green-800); font-size: 1.1rem; margin-top: auto; }

.product-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.add-btn {
  background: var(--green-600);
  color: white;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  flex: 1;
}
.add-btn:hover { background: var(--green-700); }

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--green-50);
  border-radius: 999px;
  padding: 4px 6px;
  flex: 1;
  justify-content: space-between;
}
.qty-stepper button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: white;
  font-weight: 800;
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.qty-stepper span { font-weight: 700; }

/* ===== About ===== */
.about { padding: 56px 24px 8px; text-align: center; }
.about h2 { margin-bottom: 32px; font-size: 1.7rem; }
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  text-align: left;
}
.about-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 26px;
}
.about-icon { font-size: 1.8rem; margin-bottom: 12px; }
.about-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.about-card p { color: var(--ink-500); font-size: 0.9rem; }

/* ===== Newsletter ===== */
.newsletter { background: var(--green-900); color: white; margin: 64px 0 0; padding: 48px 24px; }
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.newsletter-inner h2 { color: white; font-size: 1.5rem; margin-bottom: 6px; }
.newsletter-inner p { color: rgba(255,255,255,0.75); }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  min-width: 240px;
  outline: none;
}

/* ===== Footer ===== */
.site-footer { background: var(--ink-900); color: rgba(255,255,255,0.75); padding: 48px 24px 0; }
.site-footer .logo { color: white; margin-bottom: 12px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 { color: white; font-size: 0.95rem; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 9px; font-size: 0.88rem; }
.footer-col ul li a:hover { color: white; }
.contact-list li { color: rgba(255,255,255,0.7); }
.footer-bottom { padding: 18px 0; text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* ===== Cart drawer ===== */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(17,51,25,0.35);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: white;
  z-index: 60;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}
.cart-drawer-header h2 { font-size: 1.2rem; }

.cart-items { flex: 1; overflow-y: auto; padding: 12px 22px; }

.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.cart-item-icon {
  font-size: 1.7rem;
  background: var(--bg-alt);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info .name { font-weight: 700; font-size: 0.92rem; }
.cart-item-info .unit { font-size: 0.78rem; color: var(--ink-500); }
.cart-item-controls { display: flex; align-items: center; gap: 8px; }
.cart-item-controls button {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-700);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.cart-item-price { font-weight: 700; color: var(--green-800); font-size: 0.9rem; min-width: 56px; text-align: right; }
.cart-item-remove { color: var(--red-500); font-size: 0.75rem; font-weight: 700; margin-left: 4px; }

.cart-empty { display: none; flex-direction: column; align-items: center; gap: 16px; padding: 60px 24px; text-align: center; color: var(--ink-500); flex: 1; }

.cart-summary { padding: 18px 22px 24px; border-top: 1px solid var(--border); }
.summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--ink-700); margin-bottom: 8px; }
.summary-row.total { font-size: 1.05rem; font-weight: 800; color: var(--ink-900); margin: 12px 0 16px; }

/* ===== Checkout modal ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(17,51,25,0.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 70;
  padding: 20px;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal h2 { margin-bottom: 18px; }
.modal .close-btn { position: absolute; top: 16px; right: 16px; background: var(--bg-alt); }

#checkoutForm { display: flex; flex-direction: column; gap: 14px; }
#checkoutForm label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--ink-700); }
#checkoutForm input, #checkoutForm select {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
}
#checkoutForm input:focus, #checkoutForm select:focus { border-color: var(--green-600); }
.form-row { display: flex; gap: 12px; }
.form-row label { flex: 1; }

.modal-summary { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 14px; font-size: 0.88rem; }
.modal-summary .summary-row:last-child { margin-bottom: 0; }
.modal-note { text-align: center; font-size: 0.78rem; color: var(--ink-500); }

#checkoutSuccess { text-align: center; padding: 20px 0; }
.success-icon { font-size: 3rem; margin-bottom: 12px; }
.order-number { font-weight: 700; color: var(--green-700); margin: 10px 0 24px; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink-900);
  color: white;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 80;
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .header-top-inner { flex-wrap: wrap; }
  .search-bar { order: 3; max-width: 100%; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-inner { flex-direction: column; align-items: flex-start; }
  .deals-inner { flex-direction: column; align-items: flex-start; }
}

/* ===== Dark mode ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101812;
    --bg-alt: #17211a;
    --border: #26332c;
    --ink-900: #eef3ef;
    --ink-700: #c3ccc6;
    --ink-500: #8fa094;
    --green-50: #16241a;
    --green-100: #1c3324;
    --green-900: #0c1f13;
  }
  .hero { background: linear-gradient(135deg, #142219, var(--bg) 60%); }
  .produce-blob { background: var(--bg-alt); }
  .product-card, .modal, .cart-drawer { background: #141d17; }
  .search-bar { background: #17211a; }
  .newsletter-form input { color: var(--ink-900); }
}
/* Dec 2026: real produce photo instead of emoji art */
.hero-art .hero-photo{display:block;width:100%;max-width:520px;aspect-ratio:1/1;object-fit:cover;border-radius:28px;box-shadow:0 30px 60px -30px rgba(20,60,30,.45);margin-inline:auto}
@media(max-width:760px){.hero-art .hero-photo{max-width:none;aspect-ratio:4/3;border-radius:20px}}
