@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

:root {
    color-scheme: light;
    --paper: #f8f7f0;
    --white: #fffefa;
    --ink: #172d24;
    --muted: #52665d;
    --green: #154b3a;
    --line: #dce3d7;
    --lime: #d9f27e;
    font-family: "Be Vietnam Pro", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 94px; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.55; }
a { color: var(--green); text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #b35c19; outline-offset: 3px; }
h1, h2, h3, p { margin: 0 0 .65rem; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 4.7rem); letter-spacing: -.06em; }
h2 { font-size: clamp(1.3rem, 2.5vw, 2rem); letter-spacing: -.045em; }
h3 { font-size: 1rem; }
.wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.top { position: sticky; top: 0; z-index: 3; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav, .links, .brand, .actions, footer .wrap { display: flex; align-items: center; gap: .8rem; }
.nav { justify-content: space-between; min-height: 72px; }
.links { gap: clamp(.45rem, 2vw, 1.7rem); font-weight: 600; font-size: .86rem; }
.links a, .brand { text-decoration: none; }
.brand { font-weight: 800; color: var(--ink); letter-spacing: -.045em; white-space: nowrap; }
.mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--green); color: var(--lime); font-size: 1.25rem; }
.button, button, .outline { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 11px; border: 1px solid transparent; min-height: 42px; padding: .62rem 1rem; color: #fff; background: var(--green); font-size: .85rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover, button:hover { background: #21644e; }
.outline { color: var(--green); background: transparent; border-color: #acbfb1; }
.outline:hover { background: #e7ede2; }
.actions { flex-wrap: wrap; }
.hero { margin-top: 24px; display: grid; grid-template-columns: 1.05fr 1fr; border-radius: 24px; overflow: hidden; color: #fff; background: #143c32; }
.hero-copy { padding: clamp(26px, 5vw, 68px); }
.hero-copy p:not(.eyebrow) { max-width: 33rem; color: #e0eadd; margin-block: 1rem 1.5rem; }
.eyebrow { color: var(--green); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.hero .eyebrow { color: var(--lime); }
.hero .button { color: #173526; background: var(--lime); }
.hero .button:hover { background: #e7f6a8; }
.hero .outline { color: #fff; border-color: #8fae9e; }
.hero .outline:hover { background: #205043; }
.hero-photo { min-height: 260px; background: #527e47 url('grocery.jpg') center 53% / cover; }
.rates { display: grid; grid-template-columns: repeat(3, 1fr); margin-block: 15px 42px; border: 1px solid var(--line); background: var(--white); border-radius: 16px; }
.rates div, .metrics div { padding: .85rem 1rem; }
.rates div + div { border-left: 1px solid var(--line); }
.rates span, .metrics span { display: block; font-size: .76rem; color: var(--muted); }
.rates strong, .metrics strong { display: block; color: var(--green); }
.shopping { display: grid; grid-template-columns: minmax(0, 1fr) minmax(295px, 350px); gap: 24px; align-items: start; }
.muted { color: var(--muted); font-size: .87rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 1.1rem .9rem; }
.tabs button, .tabs a { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; min-height: 39px; padding: .4rem .8rem; color: var(--green); background: var(--white); font-weight: 700; font-size: .8rem; text-decoration: none; }
.tabs button[aria-pressed="true"], .tabs a[aria-current="page"] { color: #fff; background: var(--green); border-color: var(--green); }
.search-label { max-width: 350px; margin-bottom: 1rem; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.product { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.product img { display: block; width: 100%; aspect-ratio: 1.4; object-fit: cover; background: #e7ede2; }
.product-copy { padding: .8rem; }
.product-copy small { display: block; font-size: .68rem; color: var(--muted); margin-bottom: .3rem; }
.product-copy div { display: flex; justify-content: space-between; align-items: center; gap: .25rem; }
.product-copy strong { font-size: .9rem; color: var(--green); }
.product-copy button, .cart-item button { min-height: 38px; width: 38px; padding: 0; font-size: 1.15rem; border-radius: 10px; }
.panel { border: 1px solid var(--line); border-radius: 18px; background: var(--white); padding: clamp(16px, 3vw, 28px); margin-bottom: 16px; }
.checkout { border-top: 4px solid var(--green); }
.stack, label { display: grid; gap: .35rem; }
.stack { gap: .75rem; }
label { color: var(--ink); font-weight: 600; font-size: .8rem; }
input, textarea, select { width: 100%; border: 1px solid #b9c8bc; border-radius: 8px; background: #fff; color: var(--ink); padding: .55rem .65rem; min-height: 42px; font-weight: 400; }
textarea { resize: vertical; }
.remember-login { display: flex; align-items: center; gap: .55rem; cursor: pointer; }
.remember-login input { width: 1.05rem; min-height: 0; height: 1.05rem; margin: 0; flex: none; accent-color: var(--green); }
.total, .cart-item { display: flex; justify-content: space-between; align-items: center; gap: .45rem; }
.total { border-top: 1px solid var(--line); padding-top: .55rem; font-size: .86rem; }
.cart-item { margin-bottom: .5rem; font-size: .82rem; }
.cart-item span { flex: 1; }
.cart-item button { min-height: 30px; width: 30px; }
.tracking { margin-top: 24px; }
.delivery-map { height: 230px; width: 100%; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.payment-details { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; margin-block: 1rem; }
.payment-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: .7rem; }
.payment-qr:empty { display: none; }
.payment-qr { width: min(210px, 100%); }
.payment-qr svg { display: block; width: 100%; height: auto; }
.inline, .editor { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem; margin-block: .65rem; }
.inline label, .editor label { min-width: 120px; flex: 1 1 135px; }
.inline { max-width: 740px; }
.notice { margin: .75rem 0; border-radius: 10px; padding: .7rem .8rem; color: #17432b; background: #e7f4df; font-size: .87rem; }
.error { color: #842b22; background: #fbece7; }
.timeline { padding-left: 1.2rem; font-size: .83rem; }
.timeline time { margin-left: .55rem; color: var(--muted); }
footer { margin-top: 44px; padding: 22px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .83rem; }
footer .wrap { justify-content: space-between; flex-wrap: wrap; }
.admin-head { margin-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.admin-head h1, .login h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
.login { margin: 50px auto; max-width: 460px; }
.narrow { max-width: 600px; }
details { margin-top: .7rem; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 10px; }
summary { cursor: pointer; font-size: .9rem; font-weight: 700; overflow-wrap: anywhere; }
.order-data { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.order-data dt { color: var(--muted); font-size: .76rem; }
.order-data dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.cancel { margin-top: .6rem; }
.metrics { display: flex; flex-wrap: wrap; background: #f0f5e8; border-radius: 10px; margin: 1rem 0; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; text-align: left; }
th, td { padding: .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
@media (max-width: 980px) {
    .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 730px) {
    .wrap { width: calc(100% - 30px); }
    .nav { min-height: 62px; }
    .hero, .shopping { grid-template-columns: minmax(0, 1fr); }
    .hero { margin-top: 14px; }
    .hero-photo { min-height: 170px; }
    .rates { margin-bottom: 26px; }
    .rates div { padding: .65rem .45rem; }
    .rates strong { font-size: .8rem; }
    .links > a:not(.outline) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
