/* 80s Natural Hub storefront
   Palette taken from the logo (hut green + palm cream) and the banner (dates, jaggery). */
:root {
  --leaf: #0b6b32;
  --leaf-deep: #074a23;
  --leaf-soft: #e3eedb;
  --palm: #fbf4cf;
  --dates: #5b2a14;
  --jaggery: #d9962b;
  --paper: #f2f5e9;
  --ink: #17261b;
  --muted: #56675a;
  --line: #d6e1cd;
  --white: #ffffff;
  --danger: #a3261b;
  --radius: 14px;
  --display: "Young Serif", Georgia, serif;
  --body: "Hind Madurai", "Segoe UI", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(23, 38, 27, 0.06), 0 8px 24px rgba(23, 38, 27, 0.07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: var(--leaf); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0 0 0.5em; color: var(--ink); }
h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--jaggery); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 2px solid transparent; font: 600 16px/1.1 var(--body); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--leaf); color: var(--white); }
.btn-primary:hover { background: var(--leaf-deep); }
.btn-primary:disabled { background: #7b9a85; cursor: wait; }
.btn-ghost { background: transparent; border-color: var(--leaf); color: var(--leaf); }
.btn-ghost:hover { background: var(--leaf-soft); }
.btn-block { width: 100%; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--leaf-soft); }
.icon-btn svg { width: 22px; height: 22px; }
.link-btn { border: 0; background: none; color: var(--leaf); font: 600 15px var(--body); text-decoration: underline; cursor: pointer; padding: 4px; }

/* Scrolling marquee (wording edited in Admin → Settings) */
.marquee { background: var(--leaf-deep); color: var(--palm); overflow: hidden; white-space: nowrap; font-size: 14.5px; padding: 9px 0; }
.marquee-track { display: inline-flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-run { display: inline-flex; align-items: center; padding-right: 0; }
.marquee-run i { font-style: normal; color: var(--jaggery); margin: 0 22px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Announcement + header */
.announce { margin: 0; background: var(--leaf-deep); color: var(--palm); text-align: center; font-size: 14px; padding: 8px 16px; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 48px; height: 48px; border-radius: 50%; }
.brand strong { display: block; font: 400 1.25rem/1.1 var(--display); }
.brand small { display: block; font-size: 13px; color: var(--muted); }
.site-nav { display: flex; gap: 26px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-color: var(--jaggery); }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font: 600 15px var(--body); color: var(--ink); cursor: pointer; }
.cart-btn svg { width: 20px; height: 20px; }
.cart-btn b { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--leaf); color: #fff; font-size: 13px; display: grid; place-items: center; }
.cart-btn.bump b { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.menu-btn { display: none; order: 3; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 26px; height: 26px; }

/* Hero */
.hero { background: var(--leaf-deep); }
.hero picture img { width: 100%; height: auto; max-height: 640px; object-fit: cover; margin-inline: auto; max-width: 1600px; }
.hero-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; color: var(--palm); }
.hero-bar p, .hero-title { margin: 0; font: 400 1.1rem/1.5 var(--body); color: var(--palm); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-primary { background: var(--jaggery); color: var(--ink); }
.hero .btn-primary:hover { background: #ebab43; }
.hero .btn-ghost { border-color: var(--palm); color: var(--palm); }
.hero .btn-ghost:hover { background: rgba(251, 244, 207, 0.12); }

/* Promises */
.promises { background: var(--white); border-bottom: 1px solid var(--line); }
.promise-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 0; }
.promise-row div { display: flex; gap: 14px; align-items: flex-start; }
.promise-row svg { width: 36px; height: 36px; flex: none; color: var(--leaf); stroke-width: 1.6; }
.promise-row p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.4; }
.promise-row b { display: block; color: var(--ink); font-size: 16px; }

/* Sections */
.shop, .story, .track { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p { color: var(--muted); }
.notice { background: #fff4dc; border: 1px solid #eed39a; color: var(--dates); padding: 14px 18px; border-radius: var(--radius); }

/* Products: the leaf frame is the signature element of the site */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 340px)); gap: 28px; }
.product { display: flex; flex-direction: column; background: var(--white); border-radius: 22px; padding: 14px 14px 20px; box-shadow: var(--shadow); }
.leaf-frame { position: relative; background: var(--leaf); border-radius: 120px 18px 120px 18px; padding: 14px; aspect-ratio: 4 / 4.2; overflow: hidden; }
.leaf-frame img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 108px 10px 108px 10px; background: var(--leaf-soft); }
.tag { position: absolute; z-index: 1; top: 14px; right: 14px; background: var(--palm); color: var(--dates); font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.tag.out { background: var(--ink); color: var(--palm); }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 16px 6px 0; }
.product h3 { margin: 0 0 2px; }
.unit { color: var(--muted); font-size: 15px; margin: 0 0 8px; }
.desc { color: var(--ink); font-size: 15.5px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.desc.open { -webkit-line-clamp: unset; display: block; }
.more { align-self: flex-start; margin-top: 2px; }
.buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.price { font: 400 1.6rem/1 var(--display); color: var(--dates); }
.price s { font: 400 15px var(--body); color: var(--muted); margin-left: 6px; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--leaf); border-radius: 999px; height: 46px; }
.stepper button { width: 42px; height: 100%; border: 0; background: none; font-size: 22px; color: var(--leaf); cursor: pointer; border-radius: 999px; }
.stepper button:hover { background: var(--leaf-soft); }
.stepper output { min-width: 26px; text-align: center; font-weight: 700; }
.low { color: var(--dates); font-size: 14px; font-weight: 600; margin: 8px 0 0; }
.product-skeleton { height: 520px; border-radius: 22px; background: linear-gradient(90deg, #e9eee2, #f5f8f0, #e9eee2); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { grid-column: 1 / -1; color: var(--muted); }

/* How it works */
.how { background: var(--leaf); color: var(--palm); padding: 72px 0; }
.how h2 { color: var(--palm); }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 0; margin: 32px 0 0; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--palm); color: var(--leaf-deep); font: 400 1.3rem/44px var(--display); text-align: center; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 56px; right: -16px; border-top: 2px dashed rgba(251, 244, 207, 0.45); }
.steps b { display: block; font-size: 1.1rem; color: #fff; margin-bottom: 4px; }
.steps span { color: rgba(251, 244, 207, 0.9); font-size: 15.5px; }

/* Story */
.story { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.story-mark { margin: 0; }
.story-mark img { width: min(100%, 400px); border-radius: 200px 28px 200px 28px; box-shadow: var(--shadow); }
.story-copy { max-width: 620px; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 10px; border-left: 3px solid var(--leaf); border-bottom: 3px solid var(--leaf); transform: rotate(-45deg); }

/* Delivery */
.delivery { background: var(--white); border-block: 1px solid var(--line); padding: 64px 0; }
.delivery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.rates { width: 100%; border-collapse: collapse; margin: 8px 0 14px; }
.rates th, .rates td { text-align: left; padding: 12px 8px 12px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.rates td:last-child { text-align: right; font-weight: 700; color: var(--dates); }
.fineprint { font-size: 14px; color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--leaf); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* Track */
.track-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; max-width: 860px; }
label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
input, textarea, select { font: 400 16px var(--body); color: var(--ink); width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); }
input:focus, textarea:focus, select:focus { border-color: var(--leaf); outline: none; box-shadow: 0 0 0 3px rgba(11, 107, 50, 0.15); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
.track-card { margin-top: 28px; max-width: 860px; background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.track-card h3 { margin-bottom: 4px; }
.timeline { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.timeline li { position: relative; padding-top: 34px; font-size: 14px; color: var(--muted); text-align: center; }
.timeline li::before { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 2px solid var(--line); z-index: 1; }
.timeline li::after { content: ""; position: absolute; top: 14px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.timeline li:first-child::after { display: none; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--leaf); border-color: var(--leaf); }
.timeline li.done::after { background: var(--leaf); }
.timeline li.current { font-weight: 700; }
.timeline li.current::before { box-shadow: 0 0 0 5px rgba(11, 107, 50, 0.2); }
.timeline small { display: block; font-weight: 400; color: var(--muted); }
.ship-box { background: var(--leaf-soft); border-radius: 10px; padding: 14px 16px; margin: 12px 0; }
.form-error, .error-text { color: var(--danger); font-weight: 600; }

/* Footer */
.site-footer { background: var(--ink); color: #d7dfd2; padding: 56px 0 24px; font-size: 15.5px; }
.site-footer a { color: var(--palm); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid p { margin: 0 0 8px; }
.footer-brand { font: 400 1.5rem var(--display); color: var(--palm); }
.footer-h { font-weight: 700; color: #fff; }
.copyright { border-top: 1px solid #2d3d31; margin-top: 32px; padding-top: 18px; font-size: 14px; color: #9fb0a3; }

.ig-link { display: inline-flex; align-items: center; gap: 8px; }
.ig-link svg { width: 18px; height: 18px; }
.follow { margin-top: 24px; }
.follow svg { width: 20px; height: 20px; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 25; width: 58px; height: 58px; border-radius: 50%; background: #1f9d55; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; stroke: none; }

/* Cart drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(23, 38, 27, 0.45); z-index: 40; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--white); z-index: 41; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; visibility: hidden; }
.cart-drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.5rem; margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 20px 20px; }
.line { display: flex; justify-content: space-between; font-size: 1.1rem; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 22px 6px 22px 6px; }
.cart-item p { margin: 0; line-height: 1.35; }
.cart-item .stepper { height: 38px; }
.cart-item .stepper button { width: 34px; font-size: 18px; }
.cart-empty { text-align: center; color: var(--muted); padding: 48px 0; }
.free-hint { background: #fff4dc; color: var(--dates); border-radius: 8px; padding: 8px 12px; font-size: 14px; }

/* Dialogs */
.modal { border: 0; border-radius: 20px; padding: 0; width: min(640px, calc(100% - 24px)); max-height: calc(100dvh - 24px); color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3); }
.modal::backdrop { background: rgba(23, 38, 27, 0.55); }
.modal form { display: flex; flex-direction: column; max-height: calc(100dvh - 24px); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 1.5rem; margin: 0; }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot { padding: 14px 22px 20px; border-top: 1px solid var(--line); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.span-2 { grid-column: span 2; }
.hp { position: absolute; left: -9999px; }
.summary { margin-top: 20px; background: var(--paper); border-radius: 12px; padding: 14px 16px; }
.summary .line { font-size: 15.5px; padding: 3px 0; }
.summary .grand { font-size: 1.15rem; font-weight: 700; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }
.done { text-align: center; padding: 32px 26px; }
.done-mark { width: 64px; height: 64px; margin: 0 auto 12px; color: var(--leaf); stroke-width: 2.4; }
.done-mark circle { fill: var(--leaf-soft); stroke: none; }
.order-no { font: 400 1.6rem var(--display); color: var(--dates); }
.done-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }

/* Toasts */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); animation: toast-in .2s ease; }
.toast.error { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* Responsive */
@media (max-width: 960px) {
  .promise-row { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
  .story { grid-template-columns: 1fr; gap: 28px; }
  .story-mark img { max-width: 260px; }
  .delivery-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .marquee { font-size: 13.5px; padding: 7px 0; }
  .menu-btn { display: block; }
  .header-row { gap: 8px; min-height: 64px; }
  .brand img { width: 42px; height: 42px; }
  .brand small { display: none; }
  .cart-btn span { display: none; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; display: none; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .hero-bar { flex-direction: column; align-items: stretch; text-align: center; }
  .hero-actions .btn { flex: 1; }
  .shop, .story, .track { padding: 52px 0; }
  .how { padding: 52px 0; }
  .track-form { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline li { text-align: left; padding: 0 0 18px 34px; }
  .timeline li::before { top: 2px; left: 9px; }
  .timeline li::after { top: -16px; left: 17px; width: 3px; height: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .ticks { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .promise-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { white-space: normal; text-align: center; padding: 8px 16px; }
  .marquee-track { display: block; width: auto; }
  .marquee-run + .marquee-run { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Product page */
.product-page { padding: 28px 0 72px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.pp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.pp-photo { aspect-ratio: 4 / 4.2; max-width: 560px; }
.pp-info h1 { font-size: clamp(2rem, 1.6rem + 2vw, 3rem); margin-bottom: 4px; }
.pp-info .price { display: block; font-size: 2rem; margin: 10px 0 18px; }
.pp-desc { white-space: normal; max-width: 60ch; }
.pp-ticks { grid-template-columns: 1fr; margin: 22px 0 16px; }
.pp-more { margin-top: 56px; }
.pp-more ul { padding-left: 20px; }
.product h3 a { color: inherit; text-decoration: none; }
.product h3 a:hover { text-decoration: underline; }
@media (max-width: 760px) { .pp-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Policies + 404 */
.simple-header .header-row { justify-content: space-between; }
.policy { padding: 48px 0 72px; max-width: 760px; }
.policy h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
.policy h2 { font-size: 1.6rem; margin-top: 1.6em; padding-top: 12px; border-top: 1px solid var(--line); }
.policy li { margin-bottom: 6px; }
.policy nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 8px; }
.not-found { min-height: 60vh; display: grid; place-content: center; text-align: center; padding: 60px 20px; }
.nf-logo { margin: 0 auto 16px; border-radius: 50%; }

.preview-banner { margin: 0; background: #fff1c9; color: #5b2a14; border-bottom: 1px solid #e8cf8a; padding: 10px 16px; font-size: 14px; text-align: center; }
.preview-banner code { background: #fbe4a6; padding: 1px 5px; border-radius: 4px; }
