/* Omonide Farms — professional ecommerce storefront */

:root {
  --brand-green: #2E8B3A;
  --brand-forest: #1F3D2A;
  --brand-gold: #F5C518;
  --ink: #142018;
  --muted: #5c6b60;
  --line: #e4ebe4;
  --paper: #f7faf6;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(20, 40, 24, 0.08);
  --radius: 14px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  antialiased: true;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-top {
  background: var(--brand-forest);
  color: rgba(255,255,255,0.88);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.header-top-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  align-items: center;
  padding: 0.45rem 0;
}
.header-top a:hover { color: var(--brand-gold); }
.header-top .dot { opacity: 0.45; }
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.brand img { height: 48px; width: auto; object-fit: contain; }
.nav-desktop { display: none; gap: 1.6rem; font-weight: 600; font-size: 0.95rem; }
.nav-desktop a { position: relative; color: var(--brand-forest); }
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--brand-green);
  transition: width 0.2s ease;
}
.nav-desktop a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 0.65rem; }
.cart-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--brand-forest);
}
.cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--brand-green);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: grid; place-items: center;
}
.nav-toggle {
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--brand-forest);
}
.nav-mobile {
  display: grid;
  gap: 0.25rem;
  padding: 0.5rem 1rem 1rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.nav-mobile a {
  padding: 0.75rem 0.5rem;
  font-weight: 600;
  border-radius: 8px;
}
.nav-mobile a:hover { background: var(--paper); }

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
  .brand img { height: 56px; }
}
@media (max-width: 640px) {
  .hide-sm { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--brand-green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(46, 139, 58, 0.28);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-dark {
  background: var(--brand-forest);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--brand-forest);
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
}
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.btn-gold {
  background: var(--brand-gold);
  color: var(--brand-forest);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: var(--brand-forest);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(20, 40, 24, 0.88) 0%, rgba(20, 40, 24, 0.55) 48%, rgba(20, 40, 24, 0.28) 100%),
    linear-gradient(0deg, rgba(20, 40, 24, 0.55), transparent 45%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 7rem 0 4rem;
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(245, 197, 24, 0.18);
  color: var(--brand-gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  max-width: 14ch;
  font-weight: 700;
}
.hero p {
  max-width: 38rem;
  font-size: 1.08rem;
  color: rgba(255,255,255,0.88);
  margin: 0 0 1.75rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Dual intent */
.dual-intent {
  display: grid;
  gap: 1rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 3;
}
@media (min-width: 800px) {
  .dual-intent { grid-template-columns: 1fr 1fr; }
}
.intent-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.intent-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand-green) 40%, var(--line));
}
.intent-card h2 {
  font-family: var(--display);
  margin: 0;
  font-size: 1.55rem;
  color: var(--brand-forest);
}
.intent-card p { margin: 0; color: var(--muted); }
.intent-badge {
  width: fit-content;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-green);
}

/* Sections */
.section { padding: 4.5rem 0; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-green);
  margin: 0 0 0.4rem;
}
.section-head h2,
.section h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0;
  color: var(--brand-forest);
  line-height: 1.15;
}
.muted { color: var(--muted); }
.section-paper { background: var(--paper); }

/* Product grid */
.product-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.product-media {
  background: #fff;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.product-body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: grid;
  gap: 0.55rem;
  flex: 1;
}
.product-badge {
  width: fit-content;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--brand-gold) 28%, #fff);
  color: var(--brand-forest);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}
.product-body h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-forest);
}
.price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.9rem;
}
.price-row strong { color: var(--brand-green); font-size: 1.05rem; }
.price-row .wholesale { color: var(--muted); }

/* Purchase type toggle */
.purchase-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  background: var(--paper);
  padding: 0.3rem;
  border-radius: 999px;
}
.purchase-toggle label {
  text-align: center;
  padding: 0.55rem 0.4rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
}
.purchase-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.purchase-toggle label:has(input:checked) {
  background: #fff;
  color: var(--brand-forest);
  box-shadow: 0 4px 14px rgba(20,40,24,0.08);
}
.qty-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.qty-row input {
  width: 72px;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.moq-note {
  font-size: 0.78rem;
  color: var(--muted);
  min-height: 1.1em;
}

/* Banner strip */
.banner-strip {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  min-height: 280px;
  display: grid;
  align-items: center;
  color: #fff;
}
.banner-strip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-strip .inner {
  position: relative;
  z-index: 1;
  padding: 2.5rem;
  background: linear-gradient(90deg, rgba(20,40,24,0.88), rgba(20,40,24,0.35));
  max-width: 34rem;
}
.banner-strip h2 {
  font-family: var(--display);
  margin: 0 0 0.6rem;
  color: #fff;
}

/* About split */
.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
}
.split-media {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* Product page */
.product-layout {
  display: grid;
  gap: 2rem;
  padding: 2.5rem 0 4rem;
}
@media (min-width: 900px) {
  .product-layout { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
}
.product-gallery {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.product-buy h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 0.75rem;
  color: var(--brand-forest);
}
.live-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand-green);
  margin: 0.5rem 0 1rem;
}

/* Cart */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td {
  text-align: left;
  padding: 1rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.cart-item {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}
.cart-item img {
  width: 72px; height: 72px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
}
.cart-summary {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  display: grid;
  gap: 1rem;
}
.cart-summary .total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-forest);
}

/* Forms */
.form-grid { display: grid; gap: 0.9rem; }
.form-grid label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.9rem; }
.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.form-grid textarea { min-height: 140px; resize: vertical; }
.alert {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-weight: 600;
}
.alert-success { background: #e8f6ea; color: #1a6b2a; }
.alert-error { background: #fdeceb; color: #9b1c1c; }

/* Page hero compact */
.page-hero {
  padding: 3.5rem 0 2rem;
  background:
    radial-gradient(ellipse at top right, color-mix(in srgb, var(--brand-gold) 18%, transparent), transparent 50%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-family: var(--display);
  margin: 0 0 0.5rem;
  color: var(--brand-forest);
  font-size: clamp(2rem, 4vw, 3rem);
}

/* Footer */
.site-footer {
  background: var(--brand-forest);
  color: rgba(255,255,255,0.86);
  padding: 3.5rem 0 1.5rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand img {
  height: 44px; width: auto; margin-bottom: 0.75rem;
  background: #fff; border-radius: 8px; padding: 4px 8px;
}
.site-footer h3 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-gold);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer a:hover { color: var(--brand-gold); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 50;
  width: 56px; height: 56px;
  border-radius: 999px;
  background: #25D366;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.06); }

/* Toast */
.toast-root {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 80;
  display: grid;
  gap: 0.5rem;
}
.toast {
  background: var(--brand-forest);
  color: #fff;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-weight: 600;
  animation: toast-in 0.25s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* Trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  padding: 1.5rem 0 0;
}
.trust-item {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}
.trust-item strong { display: block; color: var(--brand-gold); margin-bottom: 0.2rem; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
