:root {
  color-scheme: light;
  --ink: #17201b;
  --ink-soft: #344139;
  --muted: #69756e;
  --line: #dfe5e0;
  --line-dark: #cad3cc;
  --paper: #ffffff;
  --wash: #f4f6f3;
  --wash-strong: #eaeeea;
  --green: #116b45;
  --green-dark: #095033;
  --green-soft: #e1eee7;
  --lime: #ddec45;
  --orange: #dc6b32;
  --red: #a54431;
  --blue: #39799c;
  --shadow: 0 14px 40px rgba(24, 36, 29, 0.12);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, Arial, sans-serif; letter-spacing: 0; }
.app-loading { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 8px; background: var(--wash); }
.app-loading strong { font-size: 28px; }
.app-loading span { color: var(--muted); font-size: 11px; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); font-size: 13px; }

.topbar { height: 68px; display: flex; align-items: center; gap: 34px; border-bottom: 1px solid var(--line); padding: 0 max(24px, calc((100vw - 1440px) / 2)); position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.brand { display: grid; grid-template-columns: 30px auto; align-items: center; column-gap: 9px; color: var(--ink); font-size: 22px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.brand small { grid-column: 2; margin-top: -5px; color: var(--muted); font-size: 9px; font-weight: 650; text-transform: uppercase; }
.brand-mark { grid-row: 1 / 3; width: 30px; height: 34px; display: grid; place-items: center; background: var(--lime); border: 2px solid var(--ink); border-radius: 4px; font-size: 18px; }
.main-nav { display: flex; align-items: stretch; height: 100%; gap: 25px; }
.main-nav a { display: flex; align-items: center; color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 680; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--green); border-bottom-color: var(--green); }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.button, .cart-button, .account-button, .mobile-menu { min-height: 40px; border: 1px solid var(--line-dark); border-radius: 6px; padding: 0 16px; background: #fff; color: var(--ink); font-weight: 750; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.button:hover, .cart-button:hover { border-color: var(--green); }
.button.primary { background: var(--green); border-color: var(--green); color: #fff; }
.button.primary:hover { background: var(--green-dark); }
.button.secondary { background: #fff; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button.tiny { min-height: 31px; padding: 0 9px; font-size: 11px; }
.button.full { width: 100%; }
.large-button { min-height: 48px; }
.cart-button { border: 0; padding: 0 10px; }
.cart-button b { min-width: 20px; margin-left: 6px; border-radius: 10px; background: var(--lime); color: var(--ink); padding: 2px 6px; font-size: 11px; }
.account-button { min-width: 168px; display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; padding: 5px 10px; text-align: left; }
.account-button > span { grid-row: 1 / 3; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.account-button b, .account-button small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-button b { font-size: 11px; }
.account-button small { font-size: 9px; color: var(--muted); }
.mobile-menu, .mobile-nav { display: none; }

.site-main { min-height: calc(100vh - 68px); }
.market-head { background: var(--wash); border-bottom: 1px solid var(--line); }
.market-head-inner { max-width: 1280px; margin: 0 auto; padding: 42px 28px 34px; }
.place-line { font-size: 13px; font-weight: 750; color: var(--green); display: flex; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #1da65b; box-shadow: 0 0 0 3px rgba(29,166,91,.13); }
.market-head h1 { font-size: 38px; line-height: 1.08; margin: 14px 0 19px; }
.search-bar { display: grid; grid-template-columns: minmax(0, 1fr) 190px 112px; max-width: 1000px; background: #fff; border: 2px solid var(--green); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 20px rgba(33,56,42,.08); }
.search-bar input, .search-bar select { width: 100%; height: 54px; border: 0; padding: 0 18px; outline: 0; background: #fff; color: var(--ink); }
.search-bar select { border-left: 1px solid var(--line); }
.search-button { height: 54px; border: 0; border-radius: 0; background: var(--green); color: #fff; }
.search-bar.compact { min-width: min(620px, 52vw); }
.quick-links { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 13px; color: var(--muted); font-size: 13px; }
.quick-links button { border: 0; background: transparent; color: var(--green); padding: 0; text-decoration: underline; cursor: pointer; }

.content-section, .band-inner, .split-section, .map-promo, .catalog-layout, .directory-results, .directory-controls, .seller-layout, .seller-hero, .requests-layout, .checkout-layout, .breadcrumbs { max-width: 1280px; margin-left: auto; margin-right: auto; }
.content-section { padding: 38px 28px 70px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.section-heading h2 { font-size: 25px; line-height: 1.18; margin: 4px 0 0; }
.section-heading > a { color: var(--green); font-size: 14px; font-weight: 750; }
.eyebrow { margin: 0; color: var(--muted); font-size: 11px; text-transform: uppercase; font-weight: 800; }
.lead { max-width: 600px; color: var(--muted); line-height: 1.6; }
.category-grid { display: grid; grid-template-columns: repeat(8, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.category { min-width: 0; min-height: 156px; text-align: left; border: 0; border-right: 1px solid var(--line); background: #fff; padding: 17px 13px; cursor: pointer; }
.category:last-child { border: 0; }
.category:hover { background: #f8faf8; }
.category-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; margin-bottom: 16px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 900; }
.tone-red { background: #f4dfda; color: var(--red); }
.tone-ochre { background: #f3ead3; color: #785c1d; }
.tone-blue, .tone-cyan { background: #deedf3; color: var(--blue); }
.tone-yellow { background: #f5efc9; color: #76670f; }
.tone-violet { background: #e8e5f1; color: #5d527c; }
.tone-gray { background: #e8ebe9; color: #515d56; }
.category strong, .category small { display: block; }
.category strong { font-size: 13px; line-height: 1.25; }
.category small { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.metrics-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--wash); }
.metrics-strip div { padding: 15px 18px; border-right: 1px solid var(--line); display: flex; align-items: baseline; gap: 8px; }
.metrics-strip div:last-child { border: 0; }
.metrics-strip strong { font-size: 20px; }
.metrics-strip span { color: var(--muted); font-size: 11px; }
.offers-heading { margin-top: 42px; }
.view-switch { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.view-switch button, .view-switch a { min-height: 34px; border: 0; background: #fff; padding: 8px 12px; color: var(--muted); text-decoration: none; font-size: 12px; }
.view-switch .active { background: var(--wash); color: var(--ink); font-weight: 750; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .18s, transform .18s; }
.product-card:hover { box-shadow: 0 10px 28px rgba(24,36,29,.1); transform: translateY(-2px); }
.product-photo, .detail-photo, .cart-thumb { background-image: url("assets/market-assortment.jpg"); background-repeat: no-repeat; background-color: var(--wash); }
.product-photo { display: block; width: 100%; height: 174px; position: relative; border: 0; background-size: 330% auto; cursor: pointer; }
.photo-mango { background-position: 0 5%; }
.photo-produce { background-position: 100% 9%; }
.photo-nuts { background-position: 50% 2%; }
.photo-tea { background-position: 7% 94%; }
.photo-drinks { background-position: 73% 98%; }
.photo-grocery { background-position: 44% 9%; }
.photo-fish { background-position: 100% 16%; filter: saturate(.72) hue-rotate(135deg); }
.photo-horeca { background-position: 73% 87%; filter: saturate(.45); }
.photo-meat { background-image: url("assets/halal-beef.jpg"); background-size: cover; background-position: center; }
.product-photo > span, .detail-photo > span { position: absolute; top: 11px; left: 11px; background: rgba(255,255,255,.94); border-radius: 4px; padding: 5px 7px; font-size: 9px; font-style: normal; font-weight: 850; }
.product-photo > i { position: absolute; top: 10px; right: 10px; border: 0; border-radius: 4px; padding: 6px 8px; background: rgba(255,255,255,.94); font-size: 9px; font-style: normal; font-weight: 750; }
.product-body { padding: 14px; }
.product-category { margin: 0 0 6px; color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.product-title { display: block; width: 100%; height: 41px; overflow: hidden; border: 0; background: transparent; padding: 0; color: var(--ink); text-align: left; font-size: 15px; font-weight: 750; line-height: 1.32; cursor: pointer; }
.product-title:hover { color: var(--green); }
.price { font-size: 19px; font-weight: 870; margin-top: 11px; }
.price small { margin-left: 4px; font-size: 11px; color: var(--muted); font-weight: 500; }
.minimum { min-height: 16px; font-size: 11px; color: var(--muted); margin: 4px 0 12px; }
.seller-line { width: 100%; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 9px; border: 0; border-top: 1px solid var(--line); background: transparent; padding: 11px 0 0; text-align: left; cursor: pointer; }
.seller-logo { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 5px; background: var(--wash); font-weight: 850; }
.seller-line strong, .seller-line small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seller-line strong { font-size: 10px; }
.seller-line small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.seller-line i { color: var(--green); font-size: 8px; font-style: normal; font-weight: 800; }
.card-actions { display: grid; grid-template-columns: 1fr auto; gap: 7px; margin-top: 12px; }
.card-actions .button { min-height: 36px; padding: 0 11px; font-size: 11px; }
.icon-action { min-width: 72px; }
.center-action { display: flex; justify-content: center; margin-top: 23px; }

.band { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-inner { padding: 44px 28px 48px; }
.seller-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.seller-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; background: #fff; min-width: 0; }
.seller-card-head { width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; border: 0; background: transparent; padding: 0; text-align: left; cursor: pointer; }
.seller-avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 6px; background: var(--green-soft); color: var(--green); font-weight: 900; }
.seller-card-head strong, .seller-card-head small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seller-card-head strong { font-size: 13px; }
.seller-card-head small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.seller-card-head i { padding: 4px 6px; border-radius: 4px; background: var(--wash); color: var(--green); font-size: 8px; font-style: normal; font-weight: 800; }
.seller-location, .seller-contacts { min-height: 30px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.seller-location { margin: 14px 0 5px; color: var(--ink-soft); }
.seller-contacts { margin: 0; overflow-wrap: anywhere; }
.seller-card-actions { display: grid; grid-template-columns: 1fr auto; gap: 7px; margin-top: 13px; }
.seller-card-actions .button { min-height: 34px; padding: 0 10px; font-size: 10px; }
.split-section { display: grid; grid-template-columns: .78fr 1.22fr; gap: 64px; align-items: center; padding: 70px 28px; }
.split-section h2 { max-width: 420px; margin: 7px 0 12px; font-size: 29px; }
.request-list { display: grid; gap: 9px; }
.request-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: #fff; }
.request-card h3 { margin: 5px 0; font-size: 14px; }
.request-card p, .request-card span { margin: 0; color: var(--muted); font-size: 10px; }
.request-card > div:last-child { min-width: 150px; text-align: right; }
.request-card strong, .request-card small { display: block; }
.request-card strong { font-size: 12px; }
.request-card small { margin: 4px 0 8px; color: var(--muted); font-size: 9px; }
.request-card .button { min-height: 31px; font-size: 9px; }
.map-promo { display: grid; grid-template-columns: 380px 1fr; min-height: 360px; margin-bottom: 72px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-promo-copy { padding: 44px; background: var(--wash); }
.map-promo h2 { font-size: 27px; margin: 7px 0 10px; }
.map-promo p:not(.eyebrow) { color: var(--muted); line-height: 1.55; }
.map-preview { position: relative; min-height: 360px; overflow: hidden; background: #e7ece8; }
.map-preview iframe { width: 100%; height: 100%; min-height: 360px; display: block; border: 0; }
.map-preview-link { position: absolute; z-index: 500; left: 24px; bottom: 24px; padding: 12px 15px; border: 1px solid rgba(255,255,255,.75); border-radius: 5px; background: rgba(255,255,255,.94); color: var(--ink); text-decoration: none; box-shadow: 0 5px 22px rgba(20,44,31,.16); }
.map-preview-link b, .map-preview-link small { display: block; }
.map-preview-link small { margin-top: 4px; color: var(--muted); font-size: 10px; }

.subhead { display: flex; align-items: end; justify-content: space-between; gap: 40px; padding: 34px max(28px, calc((100vw - 1280px) / 2 + 28px)); background: var(--wash); border-bottom: 1px solid var(--line); }
.subhead h1 { margin: 7px 0 6px; font-size: 30px; }
.subhead p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 12px; }
.catalog-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 26px; padding: 28px; }
.filters { align-self: start; position: sticky; top: 90px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.filter-title { display: flex; justify-content: space-between; align-items: center; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.filter-title button { border: 0; padding: 0; background: transparent; color: var(--green); font-size: 10px; cursor: pointer; }
.filters > label { display: grid; gap: 7px; margin-top: 15px; color: var(--muted); font-size: 10px; font-weight: 750; }
.filters select, .directory-controls select, .results-toolbar select { min-height: 38px; border: 1px solid var(--line); border-radius: 5px; background: #fff; padding: 0 9px; color: var(--ink); font-size: 11px; }
.filters fieldset { margin: 18px 0 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); }
.filters legend { color: var(--ink); font-size: 11px; font-weight: 800; }
.radio, .check { display: flex; gap: 8px; align-items: center; margin-top: 10px; color: var(--ink-soft); font-size: 10px; }
.radio input, .check input { accent-color: var(--green); }
.map-filter-link { display: block; margin-top: 18px; padding: 10px; border-radius: 5px; background: var(--green-soft); color: var(--green); font-size: 10px; font-weight: 800; text-align: center; text-decoration: none; }
.results-toolbar { min-height: 40px; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font-size: 11px; }
.results-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.empty-state { max-width: 560px; margin: 80px auto; padding: 40px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--wash); }
.empty-state strong { font-size: 20px; }
.empty-state p { color: var(--muted); }

.directory-search { display: grid; grid-template-columns: minmax(280px, 520px) auto; }
.directory-search input { min-height: 44px; border: 1px solid var(--line-dark); border-radius: 6px 0 0 6px; padding: 0 14px; }
.directory-search .button { border-radius: 0 6px 6px 0; }
.directory-controls { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 24px 28px 10px; }
.category-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.category-pills button { min-height: 32px; border: 1px solid var(--line); border-radius: 5px; padding: 0 10px; background: #fff; color: var(--ink-soft); font-size: 10px; cursor: pointer; }
.category-pills button.active { border-color: var(--green); background: var(--green-soft); color: var(--green); font-weight: 800; }
.directory-results { padding: 0 28px 70px; }
.directory-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.directory-note { margin-top: 20px; color: var(--muted); font-size: 11px; text-align: center; }

.seller-hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 38px 28px 30px; }
.seller-identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
.seller-avatar.large { width: 72px; height: 72px; border-radius: 8px; font-size: 28px; }
.verified-row { display: flex; gap: 8px; align-items: center; }
.verified-row span, .verified-row b { padding: 4px 7px; border-radius: 4px; background: var(--wash); color: var(--muted); font-size: 9px; }
.verified-row b { background: var(--green-soft); color: var(--green); }
.seller-identity h1 { margin: 8px 0 5px; font-size: 29px; overflow-wrap: anywhere; }
.seller-identity p { margin: 0; color: var(--muted); font-size: 12px; }
.seller-hero-actions { display: flex; gap: 8px; }
.seller-layout { display: grid; grid-template-columns: minmax(0, 1fr) 315px; gap: 24px; padding: 0 28px 70px; }
.seller-main { min-width: 0; }
.seller-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.seller-tabs button { min-height: 42px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; }
.seller-tabs button.active { border-bottom-color: var(--green); color: var(--ink); }
.seller-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seller-aside { display: grid; align-content: start; gap: 12px; }
.contact-box, .location-box, .price-list-box, .unclaimed { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.contact-box h2, .location-box h2 { margin: 0 0 13px; font-size: 15px; }
.contact-primary { display: block; color: var(--green); font-size: 19px; font-weight: 850; text-decoration: none; }
.socials { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.socials a, .socials button { min-height: 30px; border: 1px solid var(--line); border-radius: 5px; padding: 0 9px; background: #fff; color: var(--ink-soft); font-size: 9px; text-decoration: none; display: inline-flex; align-items: center; cursor: pointer; }
.schedule { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.5; }
.mini-map { min-height: 120px; margin: 12px 0; padding: 16px; display: flex; align-items: end; gap: 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--wash); position: relative; overflow: hidden; }
.mini-map::before { content: ""; position: absolute; inset: 0; opacity: .42; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 24px 24px; }
.map-pin { z-index: 1; width: 13px; height: 13px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(17,107,69,.22); }
.mini-map div { z-index: 1; padding: 6px 8px; background: rgba(255,255,255,.9); border-radius: 4px; }
.mini-map b, .mini-map small { display: block; }
.mini-map b { font-size: 9px; }
.mini-map small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.source-link { color: var(--muted); font-size: 9px; text-align: center; }
.map-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.map-actions .button { min-width: 0; padding: 0 8px; font-size: 9px; }
.price-list-box { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 25px; }
.price-list-box p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.unclaimed { padding: 36px; background: var(--wash); }
.unclaimed h2 { max-width: 520px; }
.unclaimed p:not(.eyebrow) { max-width: 650px; color: var(--muted); line-height: 1.55; }

.breadcrumbs { display: flex; gap: 8px; align-items: center; padding: 20px 28px; color: var(--muted); font-size: 10px; }
.breadcrumbs a { color: var(--green); }
.product-detail { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 46px; padding: 10px 28px 62px; }
.detail-photo { min-height: 520px; position: relative; border-radius: var(--radius); background-size: 310% auto; }
.detail-photo.photo-meat { background-size: cover; }
.detail-content { padding-top: 18px; }
.detail-content h1 { margin: 9px 0 16px; font-size: 31px; line-height: 1.15; }
.detail-price { font-size: 29px; font-weight: 900; }
.detail-price small { margin-left: 6px; color: var(--muted); font-size: 12px; font-weight: 500; }
.freshness { color: var(--green); font-size: 11px; font-weight: 700; }
.order-box { display: grid; grid-template-columns: 1fr 1.15fr; gap: 16px; align-items: end; margin: 25px 0; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--wash); }
.order-box label { color: var(--muted); font-size: 10px; font-weight: 750; }
.order-box label > small { display: block; margin-top: 4px; font-size: 8px; }
.quantity { display: inline-grid; grid-template-columns: 34px 45px 34px; margin-top: 6px; border: 1px solid var(--line-dark); border-radius: 5px; overflow: hidden; background: #fff; }
.quantity button, .quantity input, .quantity span { height: 35px; border: 0; background: #fff; display: grid; place-items: center; text-align: center; }
.quantity button { cursor: pointer; }
.quantity input { width: 45px; }
.specs { margin: 0 0 24px; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 120px 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; }
.detail-seller { border: 1px solid var(--line); border-radius: 6px; padding: 12px; }
.similar { border-top: 1px solid var(--line); }

.requests-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 28px; padding: 30px 28px 70px; }
.request-feed .request-card { margin-top: 9px; }
.how-it-works { align-self: start; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--wash); }
.how-it-works h2 { margin: 0 0 18px; font-size: 16px; }
.how-it-works ol { margin: 0; padding-left: 25px; }
.how-it-works li { margin-bottom: 17px; padding-left: 4px; }
.how-it-works b, .how-it-works span { display: block; }
.how-it-works b { font-size: 11px; }
.how-it-works span { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.45; }

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 28px; padding: 34px 28px 80px; }
.checkout-form, .order-summary { border: 1px solid var(--line); border-radius: var(--radius); padding: 23px; }
.checkout-form h2, .order-summary h2 { margin: 0 0 18px; font-size: 17px; }
.checkout-form h2:not(:first-child) { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label, .checkout-form > label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 750; }
.full-field { grid-column: 1 / -1; }
.checkout-form input, .checkout-form textarea { width: 100%; border: 1px solid var(--line-dark); border-radius: 5px; padding: 10px 11px; color: var(--ink); }
.checkout-form textarea { min-height: 100px; resize: vertical; }
.delivery-options { display: grid; gap: 8px; margin-bottom: 20px; }
.delivery-options label { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 6px; padding: 13px; }
.delivery-options input { width: auto; accent-color: var(--green); }
.delivery-options b, .delivery-options small { display: block; }
.delivery-options b { font-size: 11px; }
.delivery-options small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.checkout-form .large-button { width: 100%; margin-top: 18px; }
.order-summary { align-self: start; position: sticky; top: 90px; background: var(--wash); }
.summary-item { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
.summary-item b, .summary-item small { display: block; }
.summary-item small { margin-top: 4px; color: var(--muted); }
.summary-item > span { white-space: nowrap; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 17px; }
.summary-total strong { font-size: 21px; }
.order-summary > p { color: var(--muted); font-size: 9px; line-height: 1.5; }

.account-page { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: stretch; }
.account-shell { grid-column: 1; grid-row: 1; min-height: calc(100vh - 68px); background: var(--wash); border-right: 1px solid var(--line); }
.account-sidebar { position: sticky; top: 68px; padding: 24px 16px; }
.account-person { display: grid; grid-template-columns: 38px 1fr; gap: 9px; align-items: center; padding: 0 5px 20px; border-bottom: 1px solid var(--line); }
.account-person > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 6px; background: var(--green); color: #fff; font-weight: 850; }
.account-person b, .account-person small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-person b { font-size: 11px; }
.account-person small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.account-sidebar nav { display: grid; gap: 4px; margin-top: 18px; }
.account-sidebar nav a, .account-sidebar nav button { min-height: 38px; display: flex; align-items: center; border: 0; border-radius: 5px; padding: 0 10px; background: transparent; color: var(--ink-soft); text-decoration: none; font-size: 10px; font-weight: 700; cursor: pointer; }
.account-sidebar nav a.active { background: var(--green-soft); color: var(--green); }
.account-content { grid-column: 2; grid-row: 1; min-width: 0; padding: 32px; }
.account-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.account-title h1 { margin: 5px 0 0; font-size: 28px; }
.account-title > div:last-child { display: flex; gap: 8px; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dashboard-metrics > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; }
.dashboard-metrics span, .dashboard-metrics strong, .dashboard-metrics small { display: block; }
.dashboard-metrics span { color: var(--muted); font-size: 9px; }
.dashboard-metrics strong { margin: 8px 0 5px; font-size: 25px; }
.dashboard-metrics small { color: var(--green); font-size: 8px; }
.seller-workspace, .moderation, .demand-panel { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.workspace-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 18px; border-bottom: 1px solid var(--line); }
.workspace-head h2 { margin: 0; font-size: 15px; }
.workspace-head p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.seller-product-table, .moderation-table, .orders-table { overflow-x: auto; }
.table-row { min-width: 720px; display: grid; align-items: center; gap: 12px; min-height: 55px; padding: 8px 16px; border-bottom: 1px solid var(--line); font-size: 10px; }
.table-row:last-child { border: 0; }
.seller-product-table .table-row { grid-template-columns: 2fr .8fr .7fr .8fr auto; }
.moderation-table .table-row { grid-template-columns: 1.4fr 1fr .9fr .8fr auto; }
.orders-table .table-row { grid-template-columns: .7fr 1fr .7fr 1fr 1.2fr; }
.table-head { min-height: 38px; background: var(--wash); color: var(--muted); font-size: 8px; text-transform: uppercase; }
.table-row i { width: fit-content; border-radius: 4px; padding: 4px 6px; background: #f2ead8; color: #806016; font-style: normal; font-size: 8px; font-weight: 750; }
.table-row i.good { background: var(--green-soft); color: var(--green); }
.demand-panel { padding: 20px; }
.demand-panel h2 { margin: 5px 0 18px; font-size: 16px; }
.demand-row { display: grid; grid-template-columns: 160px minmax(100px, 1fr) 100px; align-items: center; gap: 12px; margin-top: 12px; font-size: 10px; }
.demand-bar { height: 7px; border-radius: 4px; background: var(--wash-strong); overflow: hidden; }
.demand-bar i { display: block; height: 100%; background: var(--green); }
.orders-table { border: 1px solid var(--line); border-radius: var(--radius); }

.messages-page { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 0; padding: 0; min-height: calc(100vh - 68px); }
.conversation-list { border-right: 1px solid var(--line); padding: 24px 14px; }
.conversation-list .account-title { padding: 0 8px; }
.conversation { width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 8px; align-items: center; border: 0; border-radius: 6px; padding: 10px; background: transparent; text-align: left; }
.conversation.active { background: var(--green-soft); }
.conversation .seller-avatar { width: 38px; height: 38px; }
.conversation b, .conversation small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation b { font-size: 10px; }
.conversation small, .conversation time { margin-top: 4px; color: var(--muted); font-size: 8px; }
.chat { display: grid; grid-template-rows: 64px 1fr 64px; min-height: calc(100vh - 68px); }
.chat header { display: flex; align-items: center; padding: 0 20px; border-bottom: 1px solid var(--line); }
.chat header .seller-line { max-width: 400px; border: 0; padding: 0; }
.chat-messages { overflow: auto; padding: 30px; background: var(--wash); }
.message { max-width: 520px; width: fit-content; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 7px; padding: 10px 12px; background: #fff; }
.message.mine { margin-left: auto; border-color: #c5dfd0; background: var(--green-soft); }
.message p { margin: 0; font-size: 11px; line-height: 1.5; }
.message time { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; text-align: right; }
.message-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); }
.message-form input { min-width: 0; border: 1px solid var(--line-dark); border-radius: 6px; padding: 0 12px; }

.footer { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 42px; padding: 44px max(28px, calc((100vw - 1280px) / 2 + 28px)); border-top: 1px solid var(--line); background: var(--ink); color: #fff; }
.footer-brand { color: #fff; }
.footer p, .footer span { color: #aeb8b1; font-size: 10px; line-height: 1.5; }
.footer > div:not(:first-child) { display: grid; align-content: start; gap: 9px; }
.footer strong { margin-bottom: 5px; font-size: 11px; }
.footer a, .footer button { border: 0; background: transparent; padding: 0; color: #cfd6d1; font-size: 10px; text-align: left; text-decoration: none; cursor: pointer; }

.modal-backdrop, .drawer-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(15,24,18,.52); padding: 18px; }
.modal { width: min(470px, 100%); position: relative; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); padding: 28px; }
.modal h2 { margin: 6px 0 8px; font-size: 24px; }
.modal > p:not(.eyebrow) { color: var(--muted); font-size: 11px; line-height: 1.5; }
.modal-close { width: 34px; height: 34px; position: absolute; top: 12px; right: 12px; border: 0; border-radius: 50%; background: var(--wash); font-size: 22px; line-height: 1; cursor: pointer; }
.account-choices { display: grid; gap: 8px; margin-top: 20px; }
.account-choice { display: grid; grid-template-columns: 42px 1fr; gap: 11px; align-items: center; border: 1px solid var(--line); border-radius: 6px; padding: 11px; background: #fff; text-align: left; cursor: pointer; }
.account-choice.preferred { border-color: var(--green); background: var(--green-soft); }
.account-choice > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 6px; background: var(--green); color: #fff; font-weight: 850; }
.account-choice b, .account-choice small { display: block; }
.account-choice b { font-size: 12px; }
.account-choice small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.demo-notice { display: block; margin-top: 16px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.drawer-backdrop { place-items: stretch end; padding: 0; }
.cart-drawer, .mobile-drawer { width: min(440px, 100vw); height: 100%; display: grid; grid-template-rows: auto 1fr auto; background: #fff; box-shadow: var(--shadow); }
.cart-drawer > header, .mobile-drawer > header { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--line); }
.cart-drawer header h2 { margin: 5px 0 0; }
.cart-drawer .modal-close, .mobile-drawer .modal-close { position: static; }
.cart-items { overflow: auto; padding: 12px 20px; }
.cart-item { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 66px; height: 66px; border-radius: 5px; background-size: 330% auto; }
.cart-thumb.photo-meat { background-size: cover; }
.cart-item b, .cart-item small, .cart-item strong { display: block; }
.cart-item b { font-size: 10px; line-height: 1.35; }
.cart-item small { margin: 4px 0; color: var(--muted); font-size: 8px; }
.cart-item strong { font-size: 10px; }
.cart-item .quantity { grid-template-columns: 26px 25px 26px; }
.cart-item .quantity button, .cart-item .quantity span { height: 30px; }
.cart-drawer > footer { padding: 18px 20px 24px; border-top: 1px solid var(--line); }
.cart-drawer > footer > div { display: flex; justify-content: space-between; margin-bottom: 14px; }
.cart-drawer > footer .button { width: 100%; }
.cart-drawer > footer p { color: var(--muted); font-size: 8px; text-align: center; }
.empty-cart { padding: 60px 0; text-align: center; }
.empty-cart p { color: var(--muted); font-size: 10px; }
.menu-popover { position: fixed; z-index: 110; top: 62px; right: 24px; width: 220px; display: grid; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: var(--shadow); }
.menu-popover > div { padding: 8px 9px 12px; border-bottom: 1px solid var(--line); }
.menu-popover b, .menu-popover small { display: block; }
.menu-popover b { font-size: 11px; }
.menu-popover small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.menu-popover a, .menu-popover button { min-height: 34px; display: flex; align-items: center; border: 0; border-radius: 4px; padding: 0 9px; background: #fff; text-decoration: none; font-size: 10px; cursor: pointer; }
.menu-popover a:hover, .menu-popover button:hover { background: var(--wash); }
.mobile-drawer { grid-template-rows: auto 1fr; }
.mobile-drawer nav { display: grid; align-content: start; padding: 14px; }
.mobile-drawer nav a, .mobile-drawer nav button { min-height: 46px; display: flex; align-items: center; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-decoration: none; font-weight: 750; }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 24px; max-width: min(480px, calc(100vw - 32px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; border-radius: 6px; padding: 11px 16px; background: var(--ink); color: #fff; box-shadow: var(--shadow); font-size: 11px; transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1120px) {
  .main-nav { gap: 16px; }
  .seller-join { display: none; }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .category:nth-child(4) { border-right: 0; }
  .category:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .product-grid, .directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seller-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-metrics { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .topbar { padding: 0 18px; }
  .main-nav { display: none; }
  .mobile-menu { display: inline-flex; min-width: 44px; padding: 0 10px; }
  .sign-in-button { display: none; }
  .subhead { align-items: stretch; flex-direction: column; gap: 20px; }
  .search-bar.compact { min-width: 0; width: 100%; }
  .metrics-strip { grid-template-columns: repeat(2, 1fr); }
  .metrics-strip div:nth-child(2) { border-right: 0; }
  .metrics-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .product-grid, .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-section { grid-template-columns: 1fr; gap: 28px; }
  .map-promo { grid-template-columns: 300px 1fr; margin-left: 20px; margin-right: 20px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .directory-controls { align-items: stretch; flex-direction: column; }
  .seller-layout { grid-template-columns: 1fr; }
  .seller-aside { grid-row: 1; grid-template-columns: 1fr 1fr; }
  .source-link { display: none; }
  .product-detail { gap: 25px; }
  .detail-photo { min-height: 420px; }
  .requests-layout, .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; grid-row: 1; }
  .account-page { grid-template-columns: 1fr; }
  .account-shell { display: none; }
  .account-content { grid-column: 1; padding: 24px 20px; }
  .messages-page { grid-template-columns: 220px minmax(0, 1fr); padding: 0; }
  .footer { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  body { padding-bottom: 58px; }
  .topbar { height: 58px; padding: 0 14px; }
  .brand { grid-template-columns: 27px auto; font-size: 18px; }
  .brand-mark { width: 27px; height: 30px; font-size: 16px; }
  .brand small { display: none; }
  .cart-button { font-size: 0; min-width: 38px; padding: 0 6px; }
  .cart-button::before { content: "Корзина"; font-size: 10px; }
  .cart-button b { font-size: 9px; }
  .account-button { min-width: 40px; width: 40px; padding: 4px; grid-template-columns: 30px; border: 0; }
  .account-button b, .account-button small { display: none; }
  .mobile-menu { display: none; }
  .mobile-nav { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; height: 58px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); }
  .mobile-nav a, .mobile-nav button { display: grid; place-items: center; align-content: center; gap: 3px; border: 0; background: transparent; color: var(--muted); text-decoration: none; font-size: 8px; }
  .mobile-nav span { font-size: 11px; font-weight: 850; }
  .mobile-nav .active { color: var(--green); }
  .market-head-inner { padding: 25px 16px 22px; }
  .market-head h1 { font-size: 28px; }
  .place-line { font-size: 10px; }
  .search-bar { grid-template-columns: minmax(0, 1fr) 84px; }
  .search-bar select { display: none; }
  .search-bar input { height: 50px; padding: 0 12px; font-size: 12px; }
  .search-button { width: 84px; height: 50px; padding: 0; font-size: 11px; }
  .quick-links { font-size: 10px; }
  .content-section, .band-inner { padding: 26px 16px 52px; }
  .section-heading h2 { font-size: 21px; }
  .section-heading > a { display: none; }
  .category-grid { display: flex; overflow-x: auto; border: 0; gap: 8px; padding-bottom: 5px; scrollbar-width: none; }
  .category { min-width: 142px; min-height: 140px; border: 1px solid var(--line) !important; border-radius: 6px; padding: 14px; }
  .metrics-strip { margin-top: 16px; }
  .metrics-strip div { display: block; padding: 12px; }
  .metrics-strip strong, .metrics-strip span { display: block; }
  .metrics-strip span { margin-top: 3px; }
  .offers-heading { margin-top: 32px; }
  .view-switch { display: none; }
  .product-grid, .directory-grid, .seller-grid { grid-template-columns: 1fr; }
  .product-photo { height: 215px; }
  .product-title { height: auto; min-height: 40px; font-size: 16px; }
  .split-section { padding: 46px 16px; }
  .split-section h2 { font-size: 24px; }
  .request-card { grid-template-columns: 1fr; }
  .request-card > div:last-child { display: grid; grid-template-columns: 1fr auto; align-items: center; text-align: left; }
  .request-card > div:last-child small { grid-column: 1; }
  .request-card > div:last-child button { grid-column: 2; grid-row: 1 / 3; }
  .map-promo { grid-template-columns: 1fr; margin: 0 16px 52px; }
  .map-promo-copy { padding: 28px 22px; }
  .map-preview { min-height: 260px; }
  .subhead { padding: 25px 16px; }
  .subhead h1 { font-size: 25px; }
  .catalog-layout, .directory-results { padding: 16px 16px 55px; }
  .directory-controls { padding: 16px; overflow: hidden; }
  .category-pills { flex-wrap: nowrap; overflow-x: auto; }
  .category-pills button { white-space: nowrap; }
  .directory-search { grid-template-columns: 1fr auto; }
  .directory-search input { min-width: 0; font-size: 11px; }
  .seller-hero { align-items: stretch; flex-direction: column; padding: 25px 16px 18px; }
  .seller-avatar.large { width: 56px; height: 56px; font-size: 22px; }
  .seller-identity { align-items: flex-start; }
  .seller-identity h1 { font-size: 23px; }
  .seller-hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .seller-hero-actions .button { padding: 0 8px; font-size: 10px; }
  .seller-layout { padding: 0 16px 55px; }
  .seller-aside { grid-template-columns: 1fr; }
  .seller-tabs { gap: 10px; overflow-x: auto; }
  .seller-tabs button { white-space: nowrap; }
  .seller-products { grid-template-columns: 1fr; }
  .breadcrumbs { padding: 15px 16px; overflow: hidden; white-space: nowrap; }
  .product-detail { grid-template-columns: 1fr; padding: 0 16px 40px; }
  .detail-photo { min-height: 340px; }
  .detail-content h1 { font-size: 25px; }
  .order-box { grid-template-columns: 1fr; }
  .requests-layout, .checkout-layout { padding: 18px 16px 55px; }
  .how-it-works { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .full-field { grid-column: auto; }
  .account-content { padding: 22px 16px; }
  .account-title { align-items: stretch; flex-direction: column; }
  .account-title > div:last-child { display: grid; grid-template-columns: 1fr 1fr; }
  .dashboard-metrics { grid-template-columns: 1fr 1fr; }
  .dashboard-metrics > div { padding: 12px; }
  .dashboard-metrics strong { font-size: 21px; }
  .workspace-head { align-items: stretch; flex-direction: column; }
  .demand-row { grid-template-columns: 100px 1fr; }
  .demand-row strong { grid-column: 2; font-size: 8px; }
  .messages-page { display: block; padding: 0; }
  .conversation-list { display: none; }
  .chat { min-height: calc(100vh - 116px); grid-template-rows: 58px 1fr 58px; }
  .chat-messages { padding: 18px 12px; }
  .message { max-width: 85%; }
  .message-form { padding: 8px; }
  .footer { display: none; }
  .menu-popover { right: 10px; }
  .toast { bottom: 72px; }
}
