/* ==================================================================
   Green Apron — Stylesheet
   Design direction: Editorial / organic / confident
   Typography: Fraunces (display, with optical sizing) + Manrope (body)
   Palette: Deep forest green + cream + terracotta accent
   ================================================================== */

:root {
  /* Brand palette */
  --ga-green-900: #1a3a0f;
  --ga-green-800: #2d5016;
  --ga-green-700: #3d6b1f;
  --ga-green-600: #5a8a3a;
  --ga-green-100: #e8f0df;
  --ga-green-50:  #f4f8ef;

  --ga-cream:     #fbf8f1;
  --ga-cream-dk:  #f3ecde;
  --ga-sand:      #e9dfc7;

  --ga-ink:       #1a1e17;
  --ga-ink-soft:  #4a5245;
  --ga-muted:     #8a8f83;

  --ga-terra:     #c4552b;
  --ga-terra-dk:  #9c3f1a;
  --ga-gold:      #d4a83e;

  --ga-border:    #e4dfd3;
  --ga-success:   #2f7a3d;
  --ga-error:     #b8351c;

  /* Typography */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(26,30,23,.08), 0 1px 2px rgba(26,30,23,.04);
  --shadow:    0 10px 25px -10px rgba(26,30,23,.15), 0 4px 10px -6px rgba(26,30,23,.08);
  --shadow-lg: 0 25px 50px -12px rgba(26,30,23,.25);

  --container:  1240px;
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ga-ink);
  background: var(--ga-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--ga-green-800); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ga-terra); }
button { cursor: pointer; font-family: inherit; }

/* -------------------- Typography -------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ga-green-900);
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 900; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; font-weight: 700; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ga-terra);
  display: inline-block;
  margin-bottom: var(--space-4);
}

/* -------------------- Container -------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
}
@media (min-width: 768px) { .container { padding: 0 var(--space-6); } }

/* -------------------- Header / Nav -------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 241, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--ga-border);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 900; font-size: 1.5rem;
  color: var(--ga-green-900);
  letter-spacing: -0.02em;
}
.logo-mark { font-size: 1.6rem; }
.main-nav {
  display: none;
  gap: var(--space-7);
}
.main-nav a {
  font-weight: 600; font-size: 0.95rem;
  color: var(--ga-ink);
  position: relative;
}
.main-nav a::after {
  content: ''; position: absolute;
  bottom: -6px; left: 0; right: 100%;
  height: 2px; background: var(--ga-terra);
  transition: right .3s;
}
.main-nav a:hover { color: var(--ga-green-900); }
.main-nav a:hover::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: var(--space-4); }
.cart-link {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--ga-ink);
  transition: background .2s;
}
.cart-link:hover { background: var(--ga-green-100); color: var(--ga-green-900); }
.cart-badge {
  position: absolute; top: 4px; right: 4px;
  background: var(--ga-terra); color: white;
  font-size: 0.7rem; font-weight: 700;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
}

.mobile-toggle {
  display: flex; flex-direction: column; gap: 5px;
  width: 40px; height: 40px; padding: 10px;
  background: transparent; border: none;
}
.mobile-toggle span {
  display: block; width: 100%; height: 2px;
  background: var(--ga-ink); border-radius: 2px;
  transition: .25s;
}

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .mobile-toggle { display: none; }
}

/* Mobile menu open state */
.main-nav.is-open {
  display: flex; flex-direction: column;
  position: absolute; top: 76px; left: 0; right: 0;
  background: var(--ga-cream);
  padding: var(--space-5) var(--space-6);
  gap: var(--space-4);
  border-bottom: 1px solid var(--ga-border);
}

/* -------------------- Flash messages -------------------- */
.flash { padding: var(--space-4) 0; font-weight: 600; font-size: 0.95rem; }
.flash-success { background: var(--ga-green-100); color: var(--ga-green-900); }
.flash-error { background: #fce4dd; color: var(--ga-error); }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--ga-green-800); color: white;
}
.btn-primary:hover {
  background: var(--ga-green-900); color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-secondary {
  background: transparent; color: var(--ga-green-900);
  border-color: var(--ga-green-900);
}
.btn-secondary:hover { background: var(--ga-green-900); color: white; }
.btn-terra {
  background: var(--ga-terra); color: white;
}
.btn-terra:hover { background: var(--ga-terra-dk); color: white; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  padding: var(--space-9) 0 var(--space-8);
  overflow: hidden;
  background:
    radial-gradient(ellipse at top right, var(--ga-green-100) 0%, transparent 60%),
    radial-gradient(ellipse at bottom left, var(--ga-cream-dk) 0%, transparent 50%),
    var(--ga-cream);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><circle cx='30' cy='30' r='1' fill='%232d5016' opacity='0.08'/></svg>");
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; gap: var(--space-7);
  align-items: center;
}
.hero-label {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 6px 14px;
  background: white; border: 1px solid var(--ga-border);
  border-radius: 999px;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ga-green-800);
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.hero-label::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ga-green-600);
  box-shadow: 0 0 0 4px rgba(90,138,58,.2);
}
.hero h1 {
  font-size: clamp(3rem, 3.8vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 560px;
}
.hero h1 em {
  font-style: italic;
  color: var(--ga-terra);
  font-weight: 500;
}
.hero-lead {
  font-size: 1.05rem; 
  color: var(--ga-ink-soft);
  max-width: 540px;
  margin-bottom: var(--space-6);
  line-height: 1.55;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.hero-visual {
  position: relative;
}
.hero-visual::after {
  content: none;
}
.hero-visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-badge {
  position: absolute;
  bottom: var(--space-5); left: var(--space-5);
  z-index: 2;
  background: var(--ga-cream); color: var(--ga-green-900);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  max-width: 240px;
  box-shadow: var(--shadow);
}
.hero-badge strong { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 900; }
.hero-badge span { font-size: 0.85rem; color: var(--ga-ink-soft); }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-9); }
}

/* -------------------- Section heading -------------------- */
.section { padding: var(--space-9) 0; }
.section-head { margin-bottom: var(--space-7); max-width: 720px; }
.section-head p { color: var(--ga-ink-soft); font-size: 1.1rem; margin-top: var(--space-3); }

/* -------------------- Category grid -------------------- */
.cat-grid {
  display: grid; gap: var(--space-4);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }

.cat-card {
  display: block;
  padding: var(--space-6) var(--space-5);
  background: white;
  border: 1px solid var(--ga-border);
  border-radius: var(--radius);
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: var(--ga-green-600);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s;
}
.cat-card:hover { border-color: var(--ga-green-600); transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-card:hover::before { transform: scaleX(1); }
.cat-card-icon {
  font-size: 2rem; margin-bottom: var(--space-3);
  display: block;
}
.cat-card-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.2rem;
  color: var(--ga-green-900);
  margin-bottom: var(--space-2);
}
.cat-card-count { font-size: 0.85rem; color: var(--ga-muted); }

/* -------------------- Product grid & card -------------------- */
.prod-grid {
  display: grid; gap: var(--space-5);
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.prod-card {
  background: white;
  border: 1px solid var(--ga-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .25s;
  display: flex; flex-direction: column;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--ga-green-600); }

.prod-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--ga-green-50);
  position: relative;
}
.prod-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.prod-card:hover .prod-image img { transform: scale(1.05); }
.prod-image .placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--ga-green-600);
}
.prod-badge {
  position: absolute; top: var(--space-3); left: var(--space-3);
  background: var(--ga-terra); color: white;
  padding: 4px 10px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.prod-badge-oos { background: var(--ga-muted); }
.prod-badge-seasonal { background: var(--ga-gold); }

.prod-body {
  padding: var(--space-4);
  display: flex; flex-direction: column; flex: 1;
}
.prod-cat {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ga-green-700);
  margin-bottom: var(--space-2);
}
.prod-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.15rem;
  color: var(--ga-green-900);
  margin-bottom: var(--space-2);
}
.prod-name a { color: inherit; }
.prod-name a:hover { color: var(--ga-terra); }
.prod-price-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: auto;
  padding-top: var(--space-3);
}
.prod-price {
  font-family: var(--font-display);
  font-weight: 900; font-size: 1.3rem;
  color: var(--ga-green-900);
}
.prod-unit { font-size: 0.75rem; color: var(--ga-muted); font-weight: 600; }

/* -------------------- Story strip -------------------- */
.story {
  background: var(--ga-green-900);
  color: var(--ga-cream);
  padding: var(--space-9) 0;
  position: relative;
  overflow: hidden;
}
.story::before {
  content: '';
  position: absolute; top: -50%; right: -10%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(90,138,58,.3) 0%, transparent 70%);
  pointer-events: none;
}
.story h2 { color: var(--ga-cream); }
.story h2 em { color: var(--ga-gold); font-style: italic; }
.story p { color: rgba(251,248,241,.8); font-size: 1.1rem; max-width: 680px; }
.story-stats {
  display: grid; gap: var(--space-5);
  grid-template-columns: repeat(2, 1fr);
  margin-top: var(--space-7);
}
@media (min-width: 700px) { .story-stats { grid-template-columns: repeat(4, 1fr); } }
.stat { border-left: 2px solid var(--ga-gold); padding-left: var(--space-4); }
.stat-num {
  font-family: var(--font-display);
  font-weight: 900; font-size: 2.5rem;
  color: var(--ga-gold);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(251,248,241,.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--ga-ink);
  color: rgba(251,248,241,.7);
  padding: var(--space-8) 0 var(--space-5);
  margin-top: var(--space-9);
}
.footer-grid {
  display: grid; gap: var(--space-6);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-col h4 {
  color: var(--ga-cream);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.footer-col a {
  display: block;
  color: rgba(251,248,241,.7);
  font-size: 0.95rem;
  padding: 4px 0;
  transition: color .2s;
}
.footer-col a:hover { color: var(--ga-gold); }

.footer-logo {
  font-family: var(--font-display);
  font-weight: 900; font-size: 1.75rem;
  color: var(--ga-cream);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}
.footer-tag { margin-bottom: var(--space-4); font-size: 0.95rem; line-height: 1.5; }
.footer-cert { font-size: 0.85rem; color: var(--ga-gold); }
.footer-addr { font-size: 0.9rem; margin-top: var(--space-2); line-height: 1.5; }

.restaurant-link {
  margin-top: var(--space-5);
  padding: var(--space-4);
  background: rgba(212,168,62,.08);
  border: 1px solid rgba(212,168,62,.25);
  border-radius: var(--radius-sm);
}
.restaurant-link span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(251,248,241,.5);
  margin-bottom: 6px;
}
.restaurant-link a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ga-gold);
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.restaurant-link a:hover { color: var(--ga-cream); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  justify-content: space-between;
  padding-top: var(--space-5);
  font-size: 0.85rem;
}
.footer-payhere strong { color: var(--ga-gold); }

/* -------------------- Forms -------------------- */
.form-group { margin-bottom: var(--space-4); }
.form-group label {
  display: block; margin-bottom: var(--space-2);
  font-size: 0.9rem; font-weight: 600;
  color: var(--ga-ink);
}
.form-group .hint { font-size: 0.8rem; color: var(--ga-muted); margin-top: var(--space-1); }

input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=number], select, textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit; font-size: 0.95rem;
  border: 1.5px solid var(--ga-border);
  border-radius: var(--radius-sm);
  background: white;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ga-green-600);
  box-shadow: 0 0 0 3px rgba(90,138,58,.15);
}
textarea { resize: vertical; min-height: 100px; }

/* -------------------- Product detail -------------------- */
.pd-grid {
  display: grid; gap: var(--space-7);
  margin-bottom: var(--space-8);
}
@media (min-width: 900px) { .pd-grid { grid-template-columns: 1.1fr 1fr; } }

.pd-image {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ga-green-50);
  box-shadow: var(--shadow);
}
.pd-image img { width: 100%; height: 100%; object-fit: cover; }
.pd-image .placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem;
}

.pd-title {
  margin-bottom: var(--space-4);
}
.pd-price {
  font-family: var(--font-display);
  font-weight: 900; font-size: 2.5rem;
  color: var(--ga-green-900);
  margin-bottom: var(--space-2);
}
.pd-unit { color: var(--ga-muted); font-weight: 600; font-size: 0.9rem; }
.pd-desc { font-size: 1.05rem; color: var(--ga-ink-soft); margin: var(--space-5) 0; line-height: 1.7; }

.pd-addbox {
  display: flex; gap: var(--space-3); align-items: end;
  padding: var(--space-5);
  background: var(--ga-cream-dk);
  border-radius: var(--radius);
  margin: var(--space-6) 0;
}
.qty-input { width: 80px; text-align: center; }

/* Info tabs */
.pd-info { margin-top: var(--space-7); }
.pd-info-item {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--ga-border);
}
.pd-info-item h4 {
  font-family: var(--font-display);
  color: var(--ga-terra);
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

/* -------------------- Utilities -------------------- */
.text-center { text-align: center; }
.mt-5 { margin-top: var(--space-5); }
.mb-5 { margin-bottom: var(--space-5); }


/* ============ Logo image ============ */
.site-header .logo {
  max-height: 64px;
  overflow: hidden;
}
.site-header .logo-img {
  height: 40px !important;
  width: auto !important;
  max-width: 180px !important;
  display: block !important;
  object-fit: contain;
}
@media (min-width: 700px) {
  .site-header .logo-img {
    height: 52px !important;
    max-width: 220px !important;
  }
}
/* Hide leftover text/emoji if not removed */
.site-header .logo .logo-text,
.site-header .logo .logo-mark { display: none; }

/* ============ Hero Slider — smooth slow fade ============ */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide.is-active {
  opacity: 1;
}
.hero-visual .hero-badge { z-index: 2; }

/* ============ Shop Search ============ */
.shop-search {
  display: flex;
  gap: .75rem;
  max-width: 640px;
  margin: 0 0 1.5rem;
  align-items: stretch;
  flex-wrap: wrap;
}
.shop-search input[type="search"] {
  flex: 1 1 280px;
  min-width: 0;
  padding: .85rem 1.2rem;
  font: 400 1rem/1.4 'Manrope', system-ui, sans-serif;
  background: #fff;
  border: 1.5px solid #d5dccd;
  border-radius: 999px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.shop-search input[type="search"]:focus {
  border-color: #0f3d2e;
  box-shadow: 0 0 0 3px rgba(15, 61, 46, 0.12);
}
.shop-search button {
  padding: .85rem 1.6rem;
  font: 600 .95rem/1 'Manrope', system-ui, sans-serif;
  letter-spacing: .02em;
  background: #0f3d2e;
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s;
}
.shop-search button:hover { background: #1a5c46; }
.shop-search-clear {
  align-self: center;
  font: 500 .9rem/1 'Manrope', sans-serif;
  color: #6b7563;
  text-decoration: underline;
  padding: 0 .5rem;
}
.shop-search-clear:hover { color: #c44; }
.shop-search-meta {
  font: 400 .95rem/1.5 'Manrope', sans-serif;
  color: #6b7563;
  margin: 0 0 1.5rem;
  padding: .75rem 1rem;
  background: #f6f7f4;
  border-radius: 8px;
  border-left: 3px solid #0f3d2e;
}
@media (max-width: 540px) {
  .shop-search { gap: .5rem; }
  .shop-search button { width: 100%; }
}

/* -------------------- Admin dashboard (basic, extends on admin.css) -------------------- */
/* See /admin/admin.css for admin-specific styles */

/* -------------------- Homepage shoppable updates -------------------- */
/* Tighter hero so products appear sooner */
.hero { padding: var(--space-8) 0 var(--space-7); }

/* Photo category tiles (auto-activates when /assets/images/categories/<slug>.jpg exists) */
.cat-card-photo { padding: 0; display: flex; flex-direction: column; }
.cat-card-photo .cat-photo {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ga-green-50);
}
.cat-card-photo .cat-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.cat-card-photo:hover .cat-photo img { transform: scale(1.06); }
.cat-card-photo .cat-card-body {
  display: block;
  padding: var(--space-4) var(--space-5);
}
.cat-card-photo .cat-card-name { display: block; margin-bottom: 2px; }
.cat-card-photo .cat-card-count { display: block; }

/* Order button on homepage product cards */
.prod-add {
  margin-top: var(--space-3);
  width: 100%;
  text-align: center;
}

/* Farm photo strip */
.farm-strip {
  padding: var(--space-8) 0;
  background: var(--ga-cream-dk);
}
.farm-grid {
  display: grid; gap: var(--space-3);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 800px) {
  .farm-grid { grid-template-columns: repeat(4, 1fr); }
}
.farm-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
/* -------------------- Hero slideshow upgrade -------------------- */
/* Bigger image, slightly smaller text (image priority) */
@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: 0.85fr 1.15fr;  /* image column wider than text */
    align-items: center;
  }
}
.hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.hero-lead { font-size: 1rem; }

/* Visual wrapper holds the slider + the floating badge */
.hero-visual { position: relative; }

/* Slider container + slides */
.hero-slider {
  position: relative;
  aspect-ratio: 4 / 3;          /* landscape, not tall */
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ga-green-50);
  box-shadow: var(--shadow-lg);
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .7s ease;
  cursor: zoom-in;
  z-index: 1;
}
.hero-slide.is-active { opacity: 1; z-index: 2; }

/* Arrows */
.hero-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: 40px; height: 40px;
  border: none; border-radius: 50%;
  background: rgba(255,255,255,.85);
  color: var(--ga-green-900);
  font-size: 1.5rem; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.hero-arrow:hover { background: #fff; }
.hero-arrow-prev { left: 12px; }
.hero-arrow-next { right: 12px; }

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 12px; left: 50%; transform: translateX(-50%);
  z-index: 3;
  display: flex; gap: 8px;
  padding: 6px 10px;
  background: rgba(0,0,0,.25);
  border-radius: 20px;
}
.hero-dot {
  width: 9px; height: 9px;
  border: none; border-radius: 50%;
  background: rgba(255,255,255,.55);
  cursor: pointer; padding: 0;
  transition: background .2s, transform .2s;
}
.hero-dot.is-active { background: #fff; transform: scale(1.25); }

/* -------------------- Lightbox -------------------- */
.ga-lightbox {
  position: fixed; inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.9);
  display: flex; align-items: center; justify-content: center;
  padding: 4vw;
}
.ga-lightbox[hidden] { display: none; }
.ga-lightbox img {
  max-width: 92vw; max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.ga-lightbox-close {
  position: absolute; top: 18px; right: 24px;
  background: none; border: none;
  color: #fff; font-size: 2.5rem; line-height: 1;
  cursor: pointer;
}
.ga-lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); border: none;
  color: #fff; font-size: 2.5rem; line-height: 1;
  width: 56px; height: 56px; border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.ga-lightbox-arrow:hover { background: rgba(255,255,255,.3); }
.ga-lightbox-prev { left: 3vw; }
.ga-lightbox-next { right: 3vw; }
@media (max-width: 700px) {
  .ga-lightbox-arrow { width: 44px; height: 44px; font-size: 1.8rem; }
}

/* Farm strip images also clickable */
.farm-grid img { cursor: zoom-in; }

/* -------------------- Hero slider fixes -------------------- */
/* Badge floats over the slide but must not block clicks to the photo */
.hero-visual .hero-badge { z-index: 4; pointer-events: none; }
/* Arrows and dots sit above slides */
.hero-arrow, .hero-dots { z-index: 5; }
/* Make sure the active slide is clickable for the lightbox */
.hero-slide.is-active { pointer-events: auto; }

/* -------------------- Hero "organic farm" badge (top) -------------------- */
.hero-farm-badge {
  position: absolute;
  top: var(--space-4); right: var(--space-4);
  z-index: 4;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px;
  background: rgba(255,255,255,.95);
  border-radius: 999px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ga-green-900);
  transition: transform .2s, box-shadow .2s;
}
.hero-farm-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.hero-farm-badge-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--ga-green-700, #2d5016);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 900; font-size: .8rem;
  line-height: 1;
}
.hero-farm-badge-text {
  font-size: .8rem; line-height: 1.2;
  color: var(--ga-ink-soft);
}
.hero-farm-badge-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: .95rem; font-weight: 800;
  color: var(--ga-green-900);
}
@media (max-width: 560px) {
  .hero-farm-badge { padding: 8px 12px 8px 8px; }
  .hero-farm-badge-mark { width: 34px; height: 34px; font-size: .72rem; }
  .hero-farm-badge-text { font-size: .72rem; }
  .hero-farm-badge-text strong { font-size: .82rem; }
}

/* -------------------- Welcome popup -------------------- */
.ga-popup {
  position: fixed; inset: 0;
  z-index: 900;
  display: flex; align-items: center; justify-content: center;
  padding: 5vw;
  background: rgba(20, 30, 15, .55);
  opacity: 0;
  transition: opacity .4s ease;
}
.ga-popup[hidden] { display: none; }
.ga-popup.is-visible { opacity: 1; }

.ga-popup-card {
  position: relative;
  max-width: 420px; width: 100%;
  background: var(--ga-cream, #faf7f0);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  transform: translateY(20px) scale(.97);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.ga-popup.is-visible .ga-popup-card { transform: translateY(0) scale(1); }

.ga-popup-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none;
  font-size: 1.8rem; line-height: 1;
  color: var(--ga-ink-soft); cursor: pointer;
}
.ga-popup-mark {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 72px; height: 72px;
  margin-bottom: 1rem;
  background: var(--ga-green-700, #2d5016);
  color: #fff; border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 900; font-size: 1.15rem; line-height: 1;
}
.ga-popup-mark small { font-size: .55rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-top: 2px; }
.ga-popup-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem; margin: 0 0 .6rem;
  color: var(--ga-green-900);
}
.ga-popup-card p {
  font-size: .95rem; line-height: 1.6;
  color: var(--ga-ink-soft);
  margin: 0 0 1.5rem;
}
.ga-popup-card p strong { color: var(--ga-terra, #b5491f); }