:root {
  color-scheme: light;
  --ink: #203d32;
  --ink-soft: #62736a;
  --green: #1d6949;
  --green-deep: #174c38;
  --lime: #dce980;
  --coral: #f27c61;
  --paper: #f8f6ee;
  --paper-dark: #efede3;
  --white: #fffefa;
  --line: #e4e2d8;
  --font-body: "DM Sans", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { min-height: 82px; padding: 0 6.1%; display: grid; grid-template-columns: 1fr minmax(220px, 420px) 1fr; align-items: center; gap: 30px; background: var(--paper); border-bottom: 1px solid rgba(32, 61, 50, .09); }
.brand { display: inline-flex; align-items: center; gap: 9px; width: fit-content; font-size: 21px; font-weight: 700; letter-spacing: 0; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--lime); font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.brand-light { color: var(--green); font-weight: 500; }
.search { height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.search-icon { color: var(--green); font-size: 23px; line-height: 1; transform: rotate(-18deg); }
.search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.search input::placeholder { color: #8c9990; }
.search kbd { flex: none; padding: 2px 6px; border: 1px solid var(--line); border-radius: 3px; color: #8c9990; font-size: 11px; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.branch-picker { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.pin-icon { color: var(--green); font-size: 23px; line-height: 1; }
.branch-copy { display: flex; flex-direction: column; gap: 1px; }
.branch-copy small { color: var(--ink-soft); font-size: 10px; }
.branch-copy select { max-width: 145px; padding: 0 16px 0 0; appearance: none; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; font-weight: 700; cursor: pointer; }
.chevron { margin-left: -21px; color: var(--green); pointer-events: none; }
.cart-link { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.cart-link > span:first-child { color: var(--green); font-size: 22px; }
.cart-count { min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--green-deep); font-size: 10px; font-weight: 700; }

.hero { min-height: 400px; position: relative; overflow: hidden; display: flex; align-items: center; padding: 58px 9.2%; background-color: #344b30; background-image: linear-gradient(90deg, rgba(19, 51, 37, .84) 0%, rgba(19, 51, 37, .62) 40%, rgba(19, 51, 37, .03) 79%), url("https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&w=2000&q=85"); background-size: cover; background-position: center 52%; color: #fffdf2; animation: hero-appear .7s ease-out both; }
.hero-content { width: min(480px, 70%); position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--lime); font-size: 10px; font-weight: 700; letter-spacing: 1.35px; }
.eyebrow-dot, .live-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--coral); }
.hero h1 { margin: 17px 0 14px; font-family: var(--font-display); font-size: clamp(46px, 5.4vw, 72px); line-height: .98; font-weight: 600; letter-spacing: 0; }
.hero h1 em { color: var(--lime); font-weight: 600; }
.hero-content p { max-width: 340px; margin: 0 0 24px; color: rgba(255, 253, 242, .83); font-size: 14px; line-height: 1.7; }
.hero-button { min-height: 43px; padding: 0 16px; display: inline-flex; align-items: center; gap: 21px; background: var(--lime); color: var(--green-deep); font-size: 12px; font-weight: 700; transition: background .2s ease, transform .2s ease; }
.hero-button:hover { background: #edf5ac; transform: translateY(-2px); }
.hero-note { position: absolute; bottom: 24px; left: 6.1%; display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.78); font-size: 10px; }
.hero-note > span:first-child { color: var(--lime); font-weight: 700; }
.note-rule { width: 30px; height: 1px; background: rgba(255,255,255,.5); }
.hero-stamp { width: 95px; height: 95px; position: absolute; right: 9%; bottom: 48px; display: flex; align-items: center; justify-content: center; gap: 2px; transform: rotate(9deg); border: 1px solid rgba(220,233,128,.7); border-radius: 50%; color: var(--lime); text-align: center; font-size: 9px; font-weight: 700; line-height: 1.35; letter-spacing: .6px; }
.stamp-sun { align-self: flex-start; margin-top: 17px; font-size: 19px; }
.promise-bar { min-height: 58px; padding: 0 9.2%; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); background: #f0eee4; }
.promise-bar p { margin: 0; color: var(--ink-soft); font-size: 11px; white-space: nowrap; }
.promise-bar p > span:not(.live-dot) { margin-right: 7px; color: var(--green); font-size: 14px; }
.promise-bar .promise-location { display: flex; align-items: center; gap: 8px; color: var(--green); font-weight: 600; }
.live-dot { width: 6px; height: 6px; background: #6baf64; box-shadow: 0 0 0 3px rgba(107,175,100,.15); }

.market-layout { max-width: 1440px; margin: 0 auto; padding: 62px 6.1% 76px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: clamp(34px, 5vw, 74px); }
.market-main { min-width: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.section-eyebrow { color: #84927f; font-size: 9px; letter-spacing: 1.2px; }
.section-heading h2, .basket-heading h2 { margin: 7px 0 0; font-family: var(--font-display); font-size: 31px; font-weight: 600; letter-spacing: 0; }
.heading-period { color: var(--coral); }
.text-button { padding: 0 0 5px; border: 0; border-bottom: 1px solid #b7c0b5; background: transparent; color: var(--green); font-size: 11px; font-weight: 600; cursor: pointer; }
.text-button span { margin-left: 5px; }
.category-list { margin-top: 25px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.category-list::-webkit-scrollbar { display: none; }
.category-chip { min-height: 34px; padding: 0 13px; flex: none; border: 1px solid var(--line); border-radius: 2px; background: transparent; color: var(--ink-soft); font-size: 11px; cursor: pointer; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.category-chip:hover { border-color: #8aa493; color: var(--green); }
.category-chip[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: white; }
.results-line { margin: 27px 0 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink-soft); font-size: 11px; }
.sort-label { color: #919a8f; font-size: 9px; font-weight: 700; letter-spacing: .8px; }
.sort-label span { padding-left: 5px; color: var(--coral); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 15px; }
.product-card { min-width: 0; animation: card-appear .35s ease both; }
.product-image-wrap { position: relative; overflow: hidden; aspect-ratio: 1 / .91; background: var(--paper-dark); }
.product-image { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .4s cubic-bezier(.2,.7,.3,1); }
.product-card:hover .product-image { transform: scale(1.045); }
.product-tag { position: absolute; top: 9px; left: 9px; padding: 5px 7px; background: var(--lime); color: var(--green-deep); font-size: 8px; font-weight: 700; letter-spacing: .35px; text-transform: uppercase; }
.add-button { width: 31px; height: 31px; position: absolute; right: 9px; bottom: 9px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--white); color: var(--green); box-shadow: 0 2px 8px rgba(23, 56, 40, .13); font-size: 20px; cursor: pointer; transition: background .18s ease, color .18s ease, transform .18s ease; }
.add-button:hover { background: var(--green); color: white; transform: rotate(90deg); }
.product-meta { padding: 10px 1px 0; }
.product-name { margin: 0; overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.product-detail { margin: 4px 0 0; color: #859087; font-size: 10px; }
.product-price-row { margin-top: 9px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-price { color: var(--green-deep); font-size: 13px; font-weight: 700; }
.product-unit { color: #8b958c; font-size: 9px; }
.no-results { grid-column: 1 / -1; padding: 44px 12px; color: var(--ink-soft); text-align: center; font-size: 13px; }

.basket { position: sticky; top: 20px; padding: 22px 18px 17px; border: 1px solid var(--line); background: var(--white); }
.basket-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.basket-heading h2 { font-size: 23px; }
.basket-icon { color: var(--green); font-size: 26px; }
.basket-empty { padding: 25px 0 27px; text-align: center; }
.empty-illustration { width: 43px; height: 43px; margin: 0 auto 11px; display: grid; place-items: center; border-radius: 50%; background: #f2f3df; color: var(--green); font-size: 25px; }
.basket-empty p { margin: 0 0 7px; color: var(--ink); font-family: var(--font-display); font-size: 18px; line-height: 1.25; }
.basket-empty > span:last-child { color: #8a958c; font-size: 10px; }
.basket-items { display: flex; flex-direction: column; }
.basket-item { padding: 12px 0; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; border-bottom: 1px solid #eeece5; }
.basket-item img { width: 48px; height: 48px; object-fit: cover; background: var(--paper-dark); }
.basket-item-name { margin: 0; overflow: hidden; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.basket-item-price { margin: 4px 0 0; color: #829087; font-size: 10px; }
.basket-item-stock { margin: 4px 0 0; color: #a34c38; font-size: 9px; line-height: 1.35; }
.quantity-control { display: flex; align-items: center; gap: 7px; }
.quantity-control button { width: 20px; height: 20px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--green); font-size: 13px; cursor: pointer; }
.quantity-control button:disabled { color: #a0aaa1; cursor: not-allowed; opacity: .55; }
.quantity-control span { min-width: 10px; color: var(--ink); font-size: 10px; text-align: center; }
.basket-summary { padding-top: 13px; }
.basket-summary > div { margin-bottom: 9px; display: flex; justify-content: space-between; color: var(--ink-soft); font-size: 11px; }
.basket-summary .total-row { margin: 13px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.delivery-note { margin: 12px 0; color: #78877c; font-size: 9px; }
.delivery-note span { padding-right: 5px; color: var(--coral); }
.checkout-button { width: 100%; min-height: 42px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; border: 0; background: var(--green); color: white; font-size: 11px; font-weight: 600; cursor: pointer; transition: background .18s ease; }
.checkout-button:hover { background: var(--green-deep); }
.basket-footnote { padding-top: 13px; border-top: 1px solid var(--line); color: #89938a; font-size: 9px; text-align: center; }
.basket-footnote span { padding-right: 4px; color: var(--coral); }
.site-footer { min-height: 74px; padding: 0 6.1%; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); color: #89938a; font-size: 10px; }
.footer-brand { color: var(--ink); font-size: 16px; }
.footer-brand .brand-mark { width: 25px; height: 25px; font-size: 19px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 5; max-width: calc(100vw - 32px); padding: 13px 17px; transform: translateY(16px); opacity: 0; pointer-events: none; background: var(--green-deep); color: white; box-shadow: 0 8px 24px rgba(24, 51, 39, .18); font-size: 12px; transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { transform: translateY(0); opacity: 1; }

.add-button:disabled { cursor: not-allowed; opacity: .5; }
.chat-widget { position: fixed; right: 24px; bottom: 24px; z-index: 10; display: flex; align-items: flex-end; flex-direction: column; gap: 12px; }
.chat-launcher { min-height: 50px; padding: 0 17px; display: flex; align-items: center; gap: 10px; border: 0; background: var(--green-deep); color: white; box-shadow: 0 8px 24px rgba(24, 51, 39, .22); font-size: 12px; font-weight: 700; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.chat-launcher:hover { transform: translateY(-2px); background: var(--green); }
.chat-launcher-icon { color: var(--lime); font-size: 22px; }
.chat-launcher-dot { width: 7px; height: 7px; margin-left: 2px; border-radius: 50%; background: #8dd28a; }
.chat-panel { width: min(370px, calc(100vw - 32px)); height: min(540px, calc(100vh - 104px)); height: min(540px, calc(100dvh - 104px)); min-height: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(32, 61, 50, .14); background: var(--white); box-shadow: 0 14px 45px rgba(25, 48, 37, .22); animation: chat-appear .18s ease-out both; }
.chat-panel[hidden] { display: none; }
.chat-header { min-height: 69px; padding: 12px 15px; display: flex; align-items: center; gap: 10px; background: var(--green-deep); color: white; }
.chat-agent-mark { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--lime); color: var(--green-deep); font-family: var(--font-display); font-size: 24px; }
.chat-agent-copy { min-width: 0; flex: 1; }
.chat-agent-copy h2 { margin: 0; font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.chat-agent-copy > span { margin-top: 3px; display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.75); font-size: 10px; }
.chat-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #e9b56c; }
.chat-status-dot.is-connected { background: #93d28c; }
.chat-icon-button { width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: transparent; color: white; font-size: 25px; cursor: pointer; }
.chat-messages { min-height: 0; padding: 16px 14px; flex: 1; overflow-y: auto; background: #fbfaf6; }
.chat-welcome { max-width: 95%; padding: 12px; border: 1px solid var(--line); background: white; color: var(--ink); font-size: 12px; line-height: 1.55; }
.chat-welcome p { margin: 0 0 12px; }
.chat-suggestions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.chat-suggestions button { max-width: 100%; padding: 7px 9px; border: 1px solid #dce6d9; background: #f4f7eb; color: var(--green-deep); font-size: 10px; text-align: left; cursor: pointer; }
.chat-suggestions button:hover { border-color: var(--green); }
.chat-message { width: fit-content; max-width: 90%; margin-top: 12px; padding: 10px 12px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.55; }
.chat-message-user { margin-left: auto; background: var(--green); color: white; }
.chat-message-assistant { border: 1px solid var(--line); background: white; color: var(--ink); }
.chat-message.is-pending { color: var(--ink-soft); font-style: italic; }
.chat-message.is-error { border-color: #efc6b8; background: #fff6f2; color: #8a3e2e; }
.chat-form { margin: 0 12px; padding: 8px 8px 8px 12px; display: flex; align-items: flex-end; gap: 8px; border: 1px solid var(--line); background: white; }
.chat-form textarea { width: 100%; max-height: 112px; min-height: 24px; padding: 3px 0; resize: none; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; line-height: 1.5; }
.chat-form textarea::placeholder { color: #909a92; }
.chat-send { width: 30px; height: 30px; display: grid; place-items: center; flex: none; border: 0; background: var(--green); color: white; font-size: 19px; cursor: pointer; }
.chat-send:disabled { background: #d7ddd5; color: #849087; cursor: not-allowed; }
.chat-footnote { margin: 8px 14px 10px; color: #879187; font-size: 9px; text-align: center; }
@keyframes chat-appear { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-appear { from { opacity: .65; } to { opacity: 1; } }
@keyframes card-appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1020px) {
  .site-header { padding: 0 4%; grid-template-columns: auto minmax(180px, 1fr) auto; gap: 18px; }
  .header-actions { gap: 15px; }
  .market-layout { padding-right: 4%; padding-left: 4%; grid-template-columns: minmax(0, 1fr) 270px; gap: 28px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promise-bar { padding-right: 5%; padding-left: 5%; }
}
@media (max-width: 720px) {
  .site-header { min-height: 68px; padding: 0 18px; grid-template-columns: 1fr auto; gap: 12px; }
  .brand { font-size: 19px; }
  .brand-mark { width: 29px; height: 29px; font-size: 22px; }
  .search { grid-column: 1 / -1; grid-row: 2; margin: 0 0 13px; }
  .header-actions { grid-column: 2; grid-row: 1; gap: 12px; }
  .branch-picker { gap: 4px; }
  .pin-icon { font-size: 19px; }
  .branch-copy small { font-size: 9px; }
  .branch-copy select { max-width: 105px; font-size: 11px; }
  .cart-link { gap: 4px; }
  .cart-link-label { display: none; }
  .hero { min-height: 370px; padding: 48px 25px 65px; background-position: 58% center; }
  .hero-content { width: min(380px, 88%); }
  .hero h1 { font-size: 54px; }
  .hero-stamp { width: 70px; height: 70px; right: 18px; bottom: 28px; font-size: 7px; }
  .stamp-sun { margin-top: 12px; font-size: 14px; }
  .hero-note { bottom: 20px; left: 24px; font-size: 9px; }
  .promise-bar { min-height: unset; padding: 14px 20px; justify-content: flex-start; gap: 10px 20px; flex-wrap: wrap; }
  .promise-bar p { font-size: 10px; }
  .market-layout { padding: 42px 20px 54px; grid-template-columns: 1fr; gap: 36px; }
  .section-heading h2 { font-size: 29px; }
  .category-list { margin-top: 20px; margin-right: -20px; padding-right: 20px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .product-image-wrap { aspect-ratio: 1 / .95; }
  .product-name { font-size: 11px; }
  .basket { position: static; }
  .site-footer { padding: 18px 20px; flex-wrap: wrap; }
  .site-footer > span:nth-child(2) { order: 3; width: 100%; }
  .chat-widget { right: 14px; bottom: 14px; }
  .chat-panel { width: min(400px, calc(100vw - 28px)); height: min(600px, calc(100vh - 84px)); height: min(600px, calc(100dvh - 84px)); }
  .chat-launcher { min-height: 46px; }
}
@media (max-width: 390px) {
  .header-actions { gap: 8px; }
  .branch-copy select { max-width: 88px; }
  .pin-icon { display: none; }
  .hero h1 { font-size: 48px; }
  .sort-label { font-size: 8px; }
  .product-grid { gap: 17px 9px; }
  .chat-widget { right: 10px; bottom: 10px; }
  .chat-panel { width: calc(100vw - 20px); height: calc(100vh - 72px); height: calc(100dvh - 72px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}