/* =========================================================
   Muthu Bio Feeds — Premium Minimal Stylesheet
   ========================================================= */

:root {
  --green-deep: #1f3d2c;
  --green: #2d5a3d;
  --green-light: #4a7a5c;
  --gold: #b8934a;
  --white: #ffffff;
  --off-white: #f7f6f2;
  --ink: #1c1c1a;
  --ink-soft: #55584f;
  --border: #e4e2da;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 6px;
  --transition: 200ms ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--green-deep);
  line-height: 1.2;
  margin: 0;
}

section { padding: 88px 0; }

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 12px;
}

.section-title {
  font-size: clamp(26px, 3.2vw, 36px);
  margin-bottom: 40px;
}

.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--green-deep);
  color: var(--white);
}
.btn-primary:hover { background: var(--green); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.75);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-add {
  width: 100%;
  background: var(--green-deep);
  color: var(--white);
  margin-top: 14px;
}
.btn-add:hover { background: var(--green); }
.btn-add.added { background: var(--gold); }

.btn-whatsapp {
  width: 100%;
  background: #218838;
  color: var(--white);
  margin-top: 8px;
  padding: 15px 30px;
}
.btn-whatsapp:hover { background: #1b6e2d; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 54px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}
.nav-link:hover { color: var(--green); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-link:hover::after { width: 100%; }

.nav-cta {
  background: var(--green-deep);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition);
}
.nav-cta:hover { background: var(--green); }

/* ---------- Cart icon button ---------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--green-deep);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--transition), transform 150ms ease;
}
.cart-icon-btn svg { width: 20px; height: 20px; }
.cart-icon-btn:hover { border-color: var(--green-light); }
.cart-icon-btn.bump { animation: cartBump 350ms ease; }
@keyframes cartBump {
  0% { transform: scale(1); }
  35% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

/* ---------- Cart drawer ---------- */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,25,18,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
  z-index: 199;
}
.cart-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100%;
  max-width: 400px;
  background: var(--white);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -12px 0 32px rgba(0,0,0,0.14);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-drawer-header h3 {
  font-size: 19px;
}
.cart-drawer-close {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 4px;
}
.cart-drawer-close:hover { color: var(--ink); }

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.cart-drawer-footer {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--border);
}
.cart-drawer-footer .btn { width: 100%; margin-top: 14px; }

.cart-item.just-added {
  animation: itemFlash 900ms ease;
}
@keyframes itemFlash {
  0% { background: #eef6ee; }
  100% { background: transparent; }
}

@media (max-width: 640px) {
  .cart-drawer { max-width: 100%; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--green-deep);
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--green-deep);
}

.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media .real-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 500ms ease;
}
.hero-media .real-photo.loaded { opacity: 1; }

/* ---------- Hero brand cluster (logo + name, top-left corner) ---------- */
.hero-brand-cluster {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border-radius: var(--radius);
  padding: 12px 22px 12px 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.30), 0 0 0 1px rgba(184,147,74,0.25);
}

.hero-brand-icon {
  height: 58px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.hero-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.hero-name-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 21px;
  color: var(--green-deep);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}
.hero-name-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.03em;
  margin-top: 2px;
}

/* ---------- Media placeholder panels ----------
   Shown until a real photo is dropped into assets/images/
   with the matching filename — then it fades in automatically. */
.media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-dark {
  background:
    radial-gradient(circle at 30% 20%, rgba(184,147,74,0.18), transparent 55%),
    linear-gradient(155deg, #24462f 0%, #1a3320 55%, #12211a 100%);
}

.placeholder-light {
  background:
    radial-gradient(circle at 75% 15%, rgba(184,147,74,0.10), transparent 55%),
    linear-gradient(155deg, #eef2ec 0%, #e2e8dd 100%);
}

.placeholder-mark {
  width: 92px;
  opacity: 0.85;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08));
}
.placeholder-dark .placeholder-mark { opacity: 0.92; }
.placeholder-mark.small { width: 56px; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,30,20,0.55) 0%, rgba(15,30,20,0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 680px;
  animation: fadeUp 900ms ease both;
}



.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  color: var(--white);
  font-weight: 700;
}

.hero-sub {
  margin-top: 20px;
  font-size: 17px;
  color: rgba(255,255,255,0.88);
  max-width: 480px;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Scroll reveal (subtle, professional) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.in-view .stagger-item {
  animation: fadeUp 650ms ease both;
}
.reveal-stagger.in-view .stagger-item:nth-child(2) { animation-delay: 100ms; }
.reveal-stagger.in-view .stagger-item:nth-child(3) { animation-delay: 200ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in-view, .stagger-item {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Shipping banner ---------- */
.shipping-banner {
  background: var(--gold);
  color: var(--white);
  text-align: center;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  padding: 12px 0;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--off-white);
}
.about-media .real-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 500ms ease;
}
.about-media .real-photo.loaded { opacity: 1; }

.about-text p:last-child {
  color: var(--ink-soft);
  font-size: 16px;
  margin-top: 18px;
}

/* ---------- Products ---------- */
.products { background: var(--off-white); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.product-card:hover {
  box-shadow: 0 12px 28px rgba(31,61,44,0.1);
  transform: translateY(-3px);
}

.product-media {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--off-white);
  overflow: hidden;
}
.product-media .real-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 500ms ease;
}
.product-media .real-photo.loaded { opacity: 1; }

.product-body { padding: 22px 22px 26px; }

.product-body h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.product-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--green-deep);
  margin: 0 0 16px;
}
.product-price span {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: fit-content;
}
.qty-btn {
  width: 38px;
  height: 38px;
  background: var(--off-white);
  border: none;
  font-size: 18px;
  font-weight: 600;
  color: var(--green-deep);
  cursor: pointer;
  transition: background var(--transition);
}
.qty-btn:hover { background: #e9ede6; }
.qty-input {
  width: 48px;
  height: 38px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Farm ---------- */
.farm-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 21/9;
  background: var(--off-white);
  margin-bottom: 28px;
}
.farm-media .real-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 500ms ease;
}
.farm-media .real-photo.loaded { opacity: 1; }

.farm-video-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #0f1c13;
}
.farm-video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Gallery ---------- */
.gallery { background: var(--off-white); }

.gallery-note {
  color: var(--ink-soft);
  font-size: 14px;
  margin: -20px 0 40px;
}

.gallery-slider-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gallery-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 14px;
  flex: 1;
  scrollbar-width: thin;
}
.gallery-track::-webkit-scrollbar { height: 6px; }
.gallery-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.gallery-slide {
  position: relative;
  flex: 0 0 260px;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--border);
}
.gallery-slide .real-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 500ms ease;
}
.gallery-slide .real-photo.loaded { opacity: 1; }

.gallery-arrow {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 20px;
  color: var(--green-deep);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.gallery-arrow:hover { border-color: var(--green-light); background: #f2f5f0; }

.gallery-videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 44px;
}

.gallery-video-card {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0f1c13;
}
.gallery-video-card .gallery-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 500ms ease;
}
.gallery-video-card .gallery-video.loaded { opacity: 1; }

@media (max-width: 860px) {
  .gallery-videos { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .gallery-slide { flex-basis: 210px; }
  .gallery-arrow { width: 36px; height: 36px; font-size: 17px; }
}

/* ---------- Order ---------- */
.order-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.cart-box, .details-box {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.cart-box h3, .details-box h3 {
  font-size: 19px;
  margin-bottom: 20px;
}

.cart-items { min-height: 60px; }

.cart-empty { color: var(--ink-soft); font-size: 14.5px; }

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
.cart-item:last-child { border-bottom: none; }

.cart-item-name { font-weight: 600; color: var(--ink); }
.cart-item-meta { color: var(--ink-soft); font-size: 13px; margin-top: 2px; }
.cart-item-remove {
  background: none;
  border: none;
  color: #a33;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.cart-summary {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1.5px solid var(--border);
}
.cart-row {
  display: flex;
  justify-content: space-between;
  font-size: 14.5px;
  margin-bottom: 8px;
  color: var(--ink-soft);
}
.cart-total {
  font-size: 18px;
  font-weight: 700;
  color: var(--green-deep);
  margin-top: 12px;
}

.details-box label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 16px 0 6px;
}
.details-box label:first-of-type { margin-top: 0; }

.details-box input,
.details-box textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  background: var(--white);
  resize: vertical;
}
.details-box input:focus,
.details-box textarea:focus {
  outline: none;
  border-color: var(--green-light);
}

.order-note {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 12px;
  line-height: 1.5;
}

/* ---------- Contact ---------- */
.contact { background: var(--green-deep); color: var(--white); }
.contact .section-label { color: var(--gold); }
.contact h2 { color: var(--white); margin-bottom: 20px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  padding: 6px 0;
  font-size: 15.5px;
  color: rgba(255,255,255,0.88);
}
.contact-list a:hover { color: var(--gold); }

.contact-cta { display: flex; justify-content: flex-end; }
.contact-cta .btn-whatsapp { width: auto; padding: 15px 34px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #14261a;
  color: rgba(255,255,255,0.6);
  padding: 30px 0;
  font-size: 13px;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  height: 58px;
  width: auto;
  background: var(--white);
  padding: 12px 22px;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
  .about-grid,
  .contact-grid,
  .order-layout {
    grid-template-columns: 1fr;
  }
  .contact-cta { justify-content: flex-start; }

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

@media (max-width: 640px) {
  section { padding: 60px 0; }

  .hero-brand-cluster {
    top: 14px;
    left: 14px;
    gap: 8px;
    padding: 8px 14px 8px 8px;
  }
  .hero-brand-icon {
    height: 38px;
  }
  .hero-name-title {
    font-size: 14px;
  }
  .hero-name-sub {
    font-size: 10px;
  }

  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav .nav-link {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-cta { margin-top: 14px; width: 100%; text-align: center; }

  .hero { min-height: 78vh; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

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

  .contact-cta { justify-content: flex-start; }
  .contact-cta .btn-whatsapp { width: 100%; }
}
