:root {
  --green-950: var(--brand-deep-market, #082c23);
  --green-800: #0a5e43;
  --green-700: var(--brand-forest, #0f7b56);
  --green-600: #159568;
  --green-100: #def3ea;
  --green-50: #eff9f5;
  --amber-500: var(--brand-warm-market, #f4b63e);
  --amber-100: #fff1cf;
  --ink: var(--brand-ink, #15221e);
  --muted: var(--brand-muted, #67736e);
  --line: var(--brand-line, #e3e8e5);
  --surface: var(--brand-surface, #ffffff);
  --background: var(--brand-background, #f6f7f6);
  --danger: #d93025;
  --shadow: 0 10px 30px rgba(8, 44, 35, .1);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1540px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font: 15px/1.45 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.drawer-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.skip-link {
  position: fixed; z-index: 999; top: 8px; left: 8px; padding: 10px 14px;
  border-radius: 8px; background: var(--green-950); color: white; transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid rgba(244, 182, 62, .8); outline-offset: 2px; }

.site-header {
  position: sticky; z-index: 60; top: 0; background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(16px);
}
.header-main { min-height: 76px; display: flex; align-items: center; gap: 12px; }
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; }
.brand-logo { display: block; width: 165px; height: auto; }
.catalog-button, .location-button {
  height: 48px; display: inline-flex; align-items: center; gap: 8px; border: 0;
  border-radius: 13px; font-weight: 700; white-space: nowrap;
}
.catalog-button {
  gap: 10px; min-width: 137px; padding: 0 17px 0 11px; border: 1px solid rgba(3,73,51,.1);
  border-radius: 11px; color: white; background: linear-gradient(135deg, #11855f, #0b7452);
  box-shadow: 0 5px 14px rgba(8,105,75,.16), inset 0 1px rgba(255,255,255,.08);
  font-size: 15px; font-weight: 780; letter-spacing: -.01em;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.catalog-button:hover {
  background: linear-gradient(135deg, #0e7b58, #086747);
  box-shadow: 0 7px 18px rgba(8,105,75,.22), inset 0 1px rgba(255,255,255,.1);
  transform: translateY(-1px);
}
.catalog-button:active { transform: translateY(0) scale(.985); }
.catalog-button:focus-visible { outline: 3px solid rgba(16,132,94,.24); outline-offset: 2px; }
.catalog-symbol {
  position: relative; width: 27px; height: 27px; display: grid; place-content: center; gap: 4px;
  flex: 0 0 auto; border-radius: 8px; background: rgba(255,255,255,.13);
}
.catalog-symbol i {
  display: block; width: 14px; height: 1.8px; border-radius: 2px; background: currentColor;
  transform-origin: center; transition: transform .2s ease, opacity .14s ease, width .2s ease;
}
.catalog-button[aria-expanded="true"] { background: linear-gradient(135deg, #0a694a, #064f38); }
.catalog-button[aria-expanded="true"] .catalog-symbol i:first-child { transform: translateY(5.8px) rotate(45deg); }
.catalog-button[aria-expanded="true"] .catalog-symbol i:nth-child(2) { width: 0; opacity: 0; }
.catalog-button[aria-expanded="true"] .catalog-symbol i:last-child { transform: translateY(-5.8px) rotate(-45deg); }
.location-button { padding: 0 10px; color: var(--ink); background: transparent; }
.location-button:hover { background: var(--green-50); }
.icon, [data-icon] { display: inline-flex; width: 23px; height: 23px; flex: 0 0 auto; }
.vector-icon { color: currentColor; }
.vector-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  shape-rendering: geometricPrecision;
}
.vector-icon svg * { vector-effect: non-scaling-stroke; }
.search {
  min-width: 180px; height: 48px; display: flex; flex: 1; align-items: center;
  border: 2px solid var(--green-700); border-radius: 14px; background: white; overflow: hidden;
}
.search:focus-within { box-shadow: 0 0 0 3px var(--green-100); }
.search input { min-width: 0; width: 100%; height: 100%; padding: 0 16px; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search input::placeholder { color: #8a9690; }
.search button { width: 52px; height: 100%; display: grid; place-items: center; border: 0; color: white; background: var(--green-700); }
.header-actions { display: flex; align-items: stretch; gap: 2px; }
.header-action {
  position: relative; min-width: 62px; display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 6px 8px; border: 0; border-radius: 10px; color: #46524d;
  background: transparent; font-size: 11px; font-weight: 600;
}
.header-action:hover { color: var(--green-700); background: var(--green-50); }
.action-icon { width: 26px; height: 26px; }
.badge-wrap { position: relative; }
.count-badge {
  position: absolute; top: 0; right: 6px; min-width: 18px; height: 18px; padding: 0 5px;
  border: 2px solid white; border-radius: 12px; color: white; background: var(--danger);
  font-size: 10px; line-height: 14px; text-align: center;
}
.mobile-search { display: none; padding-bottom: 10px; }
.category-menu {
  position: fixed; z-index: 55; top: 76px; left: 0; right: 0; padding: 18px 0;
  border-bottom: 1px solid var(--line); background: white; box-shadow: var(--shadow);
}
.category-menu-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 20px; }
.menu-category { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; font-weight: 650; }
.menu-category .category-art { width: 34px; height: 44px; flex: 0 0 auto; }
.menu-category:hover { color: var(--green-700); background: var(--green-50); }

.route-loading { min-height: 70vh; padding-top: 36px; }
.skeleton { border-radius: 8px; background: linear-gradient(90deg,#edf0ee 25%,#f8f9f8 40%,#edf0ee 65%); background-size: 400% 100%; animation: shimmer 1.3s infinite; }
.skeleton-title { width: 300px; height: 36px; margin-bottom: 24px; }
.skeleton-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 14px; }
.skeleton-card { height: 390px; border-radius: 16px; background: #edf0ee; }
@keyframes shimmer { to { background-position: -100% 0; } }

.home-page { padding: 18px 0 0; }
.promo-carousel {
  position: relative; height: clamp(300px,21vw,390px); overflow: hidden;
  border-radius: var(--radius-lg); background: var(--green-950); box-shadow: 0 12px 34px rgba(8,44,35,.12);
}
.promo-banner {
  position: absolute; inset: 0; display: flex; align-items: center; overflow: hidden;
  padding: 42px 64px; color: white; background-color: var(--green-950);
  background-position: center; background-repeat: no-repeat; background-size: cover;
  opacity: 1; transition: opacity .22s ease;
}
.promo-banner.changing { opacity: .32; }
.promo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,rgba(3,24,18,.96) 0%,rgba(3,24,18,.78) 35%,rgba(3,24,18,.14) 67%,rgba(3,24,18,0) 100%);
}
.promo-copy { position: relative; z-index: 2; width: min(590px,47%); display: flex; flex-direction: column; align-items: flex-start; }
.promo-title {
  display: block; max-width: 590px; font-size: clamp(34px,3vw,54px);
  font-weight: 900; line-height: 1.02; letter-spacing: -.04em;
}
.promo-text { max-width: 540px; margin-top: 14px; color: rgba(255,255,255,.82); font-size: clamp(14px,1.1vw,17px); line-height: 1.5; }
.promo-cta {
  min-height: 46px; display: inline-flex; align-items: center; gap: 7px; margin-top: 22px;
  padding: 0 18px; border-radius: 12px; color: var(--green-950); background: var(--amber-500);
  font-size: 14px; font-weight: 800; box-shadow: 0 7px 20px rgba(0,0,0,.16);
}
.promo-cta [data-icon] { width: 19px; height: 19px; }
.promo-ad-label {
  position: absolute; z-index: 3; top: 14px; right: 17px; padding: 4px 8px;
  border-radius: 7px; color: rgba(255,255,255,.85); background: rgba(3,24,18,.42);
  font-size: 11px; backdrop-filter: blur(8px);
}
.promo-arrow {
  position: absolute; z-index: 4; top: 50%; width: 46px; height: 46px; display: grid;
  place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.3); border-radius: 50%;
  color: white; background: rgba(3,24,18,.43); box-shadow: 0 6px 18px rgba(0,0,0,.15);
  opacity: 0; transform: translateY(-50%); transition: opacity .18s ease, background .18s ease;
  backdrop-filter: blur(8px);
}
.promo-carousel:hover .promo-arrow, .promo-arrow:focus-visible { opacity: 1; }
.promo-arrow:hover { background: rgba(3,24,18,.72); }
.promo-arrow-prev { left: 15px; }
.promo-arrow-next { right: 15px; }
.promo-arrow-prev [data-icon] { transform: rotate(180deg); }
.promo-dots {
  position: absolute; z-index: 4; left: 50%; bottom: 15px; display: flex; gap: 2px;
  padding: 2px 5px; border-radius: 20px; background: rgba(3,24,18,.34);
  transform: translateX(-50%); backdrop-filter: blur(7px);
}
.promo-dots button {
  position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: transparent;
  transition: width .2s ease;
}
.promo-dots button::before {
  content: ""; position: absolute; top: 8px; left: 8px; width: 8px; height: 8px;
  border-radius: 50%; background: rgba(255,255,255,.58);
  transition: width .2s ease, border-radius .2s ease, background .2s ease;
}
.promo-dots button.active { width: 38px; }
.promo-dots button.active::before { width: 22px; border-radius: 8px; background: white; }
.geo-notice {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px;
  margin-top: 18px; padding: 14px 16px; border: 1px solid #c7e4d8;
  border-radius: 15px; background: var(--green-50);
}
.geo-notice-icon { width: 30px; height: 30px; }
.geo-notice b, .geo-notice span { display: block; }
.geo-notice span { color: var(--muted); font-size: 13px; }
.geo-notice button { min-height: 40px; padding: 0 14px; border: 1px solid #abd6c5; border-radius: 10px; color: var(--green-800); background: white; font-weight: 700; }

.category-strip { display: grid; grid-template-columns: repeat(8, minmax(100px,1fr)); gap: 10px; margin: 18px 0 28px; }
.category-tile {
  min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 9px;
  min-height: 148px; padding: 8px 8px 13px; border: 1px solid transparent; border-radius: var(--radius-md);
  color: var(--ink); background: white; text-align: center; transition: .18s ease;
}
.category-tile:hover { border-color: #cce8dc; color: var(--green-700); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(8,44,35,.07); }
.category-icon { width: 70px; height: 96px; display: grid; place-items: center; color: var(--green-700); }
.category-art {
  width: 70px;
  height: 94px;
  display: block;
  background-image: url("/assets/generated/category-icons-v2.webp");
  background-repeat: no-repeat;
  background-size: 400% 200%;
  filter: drop-shadow(0 5px 6px rgba(8,44,35,.13));
}
.category-art-electronics { background-position: 0 0; }
.category-art-clothes { background-position: 33.333% 0; }
.category-art-home { background-position: 66.667% 0; }
.category-art-beauty { background-position: 100% 0; }
.category-art-kids { background-position: 0 100%; }
.category-art-groceries {
  background-image: url("/assets/generated/category-groceries-v4.png");
  background-position: center;
  background-size: contain;
}
.category-art-auto {
  background-image: url("/assets/generated/category-auto-v4.png");
  background-position: center;
  background-size: contain;
}
.category-art-pets { background-position: 100% 100%; }
.category-tile span:last-child { overflow: hidden; max-width: 100%; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }

.catalog-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 28px 0 15px; }
.catalog-head h2, .page-title { margin: 0; font-size: clamp(25px,2.2vw,34px); line-height: 1.15; letter-spacing: -.025em; }
.catalog-head p { margin: 5px 0 0; color: var(--muted); }
.view-controls { display: flex; gap: 8px; }
.control-button {
  height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; font-weight: 650;
}
.control-button:hover, .control-button.active { color: var(--green-700); border-color: #addbc9; background: var(--green-50); }
.filters-row { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.filters-row::-webkit-scrollbar { display: none; }
.chip {
  height: 38px; flex: 0 0 auto; padding: 0 14px; border: 1px solid var(--line);
  border-radius: 20px; color: #46524d; background: white; font-weight: 650;
}
.chip:hover, .chip.active { color: white; border-color: var(--green-700); background: var(--green-700); }
.sort-select { height: 38px; margin-left: auto; padding: 0 34px 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; }

.product-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 24px 13px; }
.product-card { position: relative; min-width: 0; }
.product-image-link { position: relative; display: block; aspect-ratio: .79; overflow: hidden; border-radius: var(--radius-md); background: #ebece9; }
.product-image-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease; }
.product-card:hover .product-image-link img { transform: scale(1.025); }
.product-favorite {
  position: absolute; z-index: 2; top: 9px; right: 9px; width: 38px; height: 38px;
  display: grid; place-items: center; padding: 0; border: 1px solid rgba(19,50,40,.08); border-radius: 50%;
  color: #52605a; background: rgba(255,255,255,.94); box-shadow: 0 3px 12px rgba(0,0,0,.08);
  backdrop-filter: blur(6px); transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.product-favorite:hover { color: var(--green-700); border-color: rgba(16,132,94,.22); background: #fff; }
.product-favorite:active { transform: scale(.94); }
.product-favorite:disabled { cursor: wait; opacity: .72; }
.product-favorite:focus-visible { outline: 3px solid rgba(16,132,94,.24); outline-offset: 2px; }
.favorite-heart-icon { display: block; width: 20px; height: 20px; }
.favorite-heart-icon svg { display: block; width: 100%; height: 100%; overflow: visible; }
.favorite-heart-icon path {
  fill: transparent; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke; transition: fill .18s ease, stroke .18s ease, transform .18s ease;
}
.product-favorite.active { color: var(--green-700); border-color: rgba(16,132,94,.18); background: #eef8f4; }
.product-favorite.active .favorite-heart-icon path { fill: currentColor; }
.product-favorite.active:hover { color: var(--green-800); }
.product-badge { position: absolute; z-index: 1; left: 9px; bottom: 9px; padding: 5px 8px; border-radius: 7px; color: var(--green-950); background: var(--amber-500); font-size: 11px; font-weight: 800; }
.product-info { padding: 10px 3px 0; }
.price-row { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.product-price { color: var(--green-800); font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.old-price { color: #909a96; font-size: 12px; text-decoration: line-through; }
.product-title { display: -webkit-box; min-height: 41px; margin: 5px 0 3px; overflow: hidden; color: #27332f; font-size: 14px; font-weight: 550; line-height: 1.42; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-title:hover { color: var(--green-700); }
.rating-row { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; }
.star { color: #e9a91f; }
.seller-line { overflow: hidden; margin-top: 3px; color: #7c8782; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.card-cart {
  width: 100%; height: 38px; margin-top: 9px; border: 0; border-radius: 10px;
  color: white; background: var(--green-700); font-weight: 750; transition: .18s ease;
}
.card-cart:hover { background: var(--green-800); }
.empty-state { grid-column: 1/-1; padding: 70px 20px; border-radius: var(--radius-lg); color: var(--muted); background: white; text-align: center; }
.empty-state [data-icon] { width: 42px; height: 42px; color: var(--green-700); }
.empty-state h3 { margin: 14px 0 4px; color: var(--ink); font-size: 21px; }
.empty-state p { margin: 0; }

.map-panel { height: 610px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #e5eee9; }
#catalogMap { width: 100%; }
#productMap { width: 100%; height: 100%; }
.leaflet-control-attribution { font-size: 10px; }
.seller-marker { width: 34px !important; height: 34px !important; display: grid !important; place-items: center; border: 3px solid white; border-radius: 50% 50% 50% 12%; color: white; background: var(--green-700); box-shadow: 0 5px 12px rgba(8,44,35,.25); transform: rotate(-45deg); }
.seller-marker span { width: 8px; height: 8px; border-radius: 50%; background: var(--amber-500); transform: rotate(45deg); }
.map-popup { min-width: 185px; }
.map-popup img { width: 100%; height: 100px; margin-bottom: 8px; border-radius: 8px; object-fit: cover; }
.map-popup b { display: block; margin-bottom: 3px; font-size: 14px; }
.map-popup strong { color: var(--green-700); }

.breadcrumbs { display: flex; gap: 7px; padding: 22px 0 16px; color: var(--muted); font-size: 13px; }
.breadcrumbs a:hover { color: var(--green-700); }
.product-page { padding-bottom: 0; }
.product-layout { display: grid; grid-template-columns: minmax(360px, .92fr) minmax(350px, .85fr) minmax(320px,.68fr); gap: 32px; align-items: start; }
.product-gallery { position: sticky; top: 98px; }
.main-product-image { width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-lg); background: white; }
.main-product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-summary { padding-top: 8px; }
.product-summary h1 { margin: 8px 0 11px; font-size: clamp(28px,2.5vw,42px); line-height: 1.08; letter-spacing: -.035em; }
.product-code { color: #8b9591; font-size: 12px; }
.product-rating-link { display: inline-flex; align-items: center; gap: 6px; margin: 7px 0; color: #53605a; font-weight: 650; }
.product-rating-link:hover { color: var(--green-700); }
.summary-description { margin: 18px 0; color: #4f5a55; font-size: 16px; line-height: 1.6; }
.section-title { margin: 0 0 16px; font-size: 24px; letter-spacing: -.02em; }
.attributes { width: 100%; border-collapse: collapse; }
.attributes td { padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.attributes td:first-child { width: 45%; color: var(--muted); }
.buy-box { position: sticky; top: 98px; padding: 22px; border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow); }
.buy-price { color: var(--green-800); font-size: 32px; font-weight: 850; letter-spacing: -.035em; }
.buy-old-price { margin-left: 8px; color: #8b9591; text-decoration: line-through; }
.buy-note { margin: 8px 0 18px; color: var(--muted); font-size: 13px; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 1px solid transparent; border-radius: 11px; font-weight: 750; }
.button-primary { color: white; background: var(--green-700); }
.button-primary:hover { background: var(--green-800); }
.button-secondary { color: var(--green-800); border-color: #b9ddcf; background: var(--green-50); }
.button-secondary:hover { border-color: var(--green-700); }
.button-ghost { color: var(--ink); border-color: var(--line); background: white; }
.button-wide { width: 100%; }
.buy-box .button + .button { margin-top: 9px; }
.fulfillment-list { display: grid; gap: 9px; margin: 20px 0; }
.fulfillment-item { display: flex; gap: 10px; }
.fulfillment-item [data-icon] { color: var(--green-700); }
.fulfillment-item b, .fulfillment-item small { display: block; }
.fulfillment-item small { color: var(--muted); }
.seller-mini { padding-top: 17px; border-top: 1px solid var(--line); }
.seller-mini-label { color: var(--muted); font-size: 12px; }
.seller-mini-name { display: flex; align-items: center; gap: 6px; margin: 4px 0; font-size: 17px; font-weight: 750; }
.verified { color: var(--green-700); }
.seller-address { color: var(--muted); font-size: 13px; }
.product-sections { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; margin-top: 42px; }
.content-card { padding: 26px; border-radius: var(--radius-lg); background: white; }
.seller-map-card { height: 330px; padding: 0; overflow: hidden; }
.reviews-section { margin-top: 28px; }
.reviews-layout { display: grid; grid-template-columns: 230px 1fr; gap: 30px; }
.rating-big { font-size: 48px; font-weight: 850; line-height: 1; }
.review-list { display: grid; gap: 12px; }
.review-card { padding: 18px 0; border-bottom: 1px solid var(--line); }
.review-card:first-child { padding-top: 0; }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.review-author { font-weight: 750; }
.review-date { color: var(--muted); font-size: 12px; }
.review-stars { margin: 4px 0 8px; color: #e6a519; letter-spacing: 1px; }
.review-card p { margin: 0; line-height: 1.6; }
.verified-purchase { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; color: var(--green-700); font-size: 12px; font-weight: 650; }
.related-section { margin-top: 36px; }

.overlay { position: fixed; z-index: 90; inset: 0; background: rgba(8,25,20,.45); backdrop-filter: blur(2px); }
.drawer {
  position: fixed; z-index: 100; top: 0; right: 0; width: min(500px,100%); height: 100dvh;
  background: white; box-shadow: -20px 0 50px rgba(8,44,35,.16); transform: translateX(105%);
  transition: transform .24s ease;
}
.drawer.open { transform: none; }
.drawer-header { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { margin: 0; font-size: 24px; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: var(--ink); background: transparent; }
.icon-button:hover { background: var(--background); }
.drawer-body { height: calc(100% - 72px); overflow-y: auto; padding: 20px 22px 90px; }
.drawer-empty { display: grid; place-items: center; min-height: 65vh; color: var(--muted); text-align: center; }
.drawer-empty [data-icon] { width: 52px; height: 52px; margin: auto; color: var(--green-700); }
.drawer-empty h3 { margin: 14px 0 5px; color: var(--ink); font-size: 21px; }
.drawer-empty p { max-width: 300px; margin: 0 0 18px; }
.cart-group + .cart-group { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.cart-group h3 { margin: 0 0 12px; font-size: 15px; }
.cart-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; margin-bottom: 15px; }
.cart-item img { width: 76px; height: 94px; border-radius: 10px; object-fit: cover; }
.cart-item h4 { margin: 2px 0 5px; font-size: 14px; line-height: 1.35; }
.cart-item strong { color: var(--green-800); }
.quantity { display: inline-flex; align-items: center; margin-top: 8px; border: 1px solid var(--line); border-radius: 9px; }
.quantity button { width: 31px; height: 31px; border: 0; background: transparent; }
.quantity span { min-width: 27px; text-align: center; }
.remove-item { align-self: start; color: var(--muted); }
.cart-total { position: sticky; bottom: -70px; margin: 20px -22px 0; padding: 18px 22px 24px; border-top: 1px solid var(--line); background: white; box-shadow: 0 -10px 20px rgba(255,255,255,.9); }
.total-row { display: flex; justify-content: space-between; margin-bottom: 13px; font-size: 20px; font-weight: 800; }
.checkout-form { display: grid; gap: 11px; margin-top: 16px; }
.order-card { padding: 17px; border: 1px solid var(--line); border-radius: 14px; }
.order-card + .order-card { margin-top: 12px; }
.order-head { display: flex; justify-content: space-between; gap: 10px; }
.order-status { padding: 4px 8px; border-radius: 8px; color: var(--green-800); background: var(--green-50); font-size: 11px; font-weight: 750; }
.order-items { margin: 10px 0; color: var(--muted); font-size: 13px; }

.modal {
  width: min(440px,calc(100% - 28px)); max-height: calc(100dvh - 30px); padding: 28px;
  border: 0; border-radius: 20px; color: var(--ink); box-shadow: 0 25px 70px rgba(8,44,35,.24);
}
.modal::backdrop { background: rgba(8,25,20,.48); backdrop-filter: blur(3px); }
.modal-close { position: absolute; top: 12px; right: 12px; }
.auth-brand { display: flex; justify-content: center; margin-bottom: 18px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 20px; padding: 4px; border-radius: 11px; background: var(--background); }
.tab { height: 38px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-weight: 700; }
.tab.active { color: var(--green-800); background: white; box-shadow: 0 2px 8px rgba(8,44,35,.07); }
.stack-form { display: grid; gap: 14px; }
.stack-form label, .field { display: grid; gap: 6px; color: #414d48; font-size: 13px; font-weight: 650; }
.stack-form input, .stack-form textarea, .stack-form select, .field input, .field textarea, .field select {
  width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #ccd4d0;
  border-radius: 10px; outline: none; color: var(--ink); background: white; font-weight: 400;
}
.stack-form textarea, .field textarea { min-height: 100px; resize: vertical; }
.stack-form input:focus, .stack-form textarea:focus, .stack-form select:focus, .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green-700); box-shadow: 0 0 0 3px var(--green-100); }
.stack-form small { color: var(--muted); font-weight: 400; }
.form-error { min-height: 0; margin: 0; color: var(--danger); font-size: 13px; }
.location-modal { width: min(560px,calc(100% - 28px)); padding: 28px; }
.location-modal h2 { margin: 0 0 18px; font-size: 29px; }
.location-modal > p { margin: 0 0 18px; color: var(--muted); }
.location-search {
  height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 13px;
  border: 2px solid var(--green-700); border-radius: 13px; background: white;
}
.location-search [data-icon] { width: 24px; height: 24px; }
.location-search input { width: 100%; height: 100%; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 16px; }
.detect-location {
  width: 100%; min-height: 52px; display: grid; grid-template-columns: auto 1fr;
  align-items: center; gap: 12px; margin-top: 10px; padding: 9px 13px;
  border: 0; border-radius: 12px; color: var(--green-800); background: var(--green-50); text-align: left;
}
.detect-location:disabled { cursor: wait; opacity: .6; }
.detect-location b, .detect-location small { display: block; }
.detect-location small { margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 400; }
.location-status { min-height: 20px; margin: 8px 0 0 !important; color: var(--green-800) !important; font-size: 13px; }
.location-status:empty, .location-results:empty { display: none; }
.location-results { margin-top: 8px; }
.location-results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.location-results-head h3 { margin: 0; font-size: 15px; }
.location-results-head span { color: var(--muted); font-size: 12px; }
.location-list { max-height: min(390px,44dvh); display: grid; gap: 6px; overflow-y: auto; padding-right: 3px; }
.city-option {
  width: 100%; min-height: 62px; display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 12px; color: var(--ink); background: white; text-align: left;
}
.city-option:hover { border-color: #b9ddcf; background: #f8fcfa; }
.city-option.active { border-color: #9fd1bd; color: var(--green-800); background: var(--green-50); }
.city-option small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 400; }
.city-chevron { opacity: .45; }
.location-empty { display: grid; gap: 3px; padding: 28px 12px; color: var(--muted); text-align: center; }
.location-empty b { color: var(--ink); }
.toast-region { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: grid; gap: 8px; }
.toast { min-width: 260px; max-width: 380px; padding: 13px 16px; border-radius: 11px; color: white; background: var(--green-950); box-shadow: var(--shadow); animation: toast-in .2s ease; }
.toast.error { background: #852d27; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.seller-page { padding: 28px 0 0; }
.seller-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.seller-layout { display: grid; grid-template-columns: 230px 1fr; gap: 22px; align-items: start; }
.seller-nav { position: sticky; top: 100px; padding: 9px; border-radius: 16px; background: white; }
.seller-nav button { width: 100%; height: 43px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 0; border-radius: 10px; color: #48544f; background: transparent; text-align: left; font-weight: 650; }
.seller-nav button:hover, .seller-nav button.active { color: var(--green-800); background: var(--green-50); }
.seller-content { min-width: 0; }
.dashboard-card { padding: 24px; border-radius: 18px; background: white; }
.dashboard-card + .dashboard-card { margin-top: 18px; }
.dashboard-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
.dashboard-card h2 { margin: 0; font-size: 21px; }
.seller-table { width: 100%; border-collapse: collapse; }
.seller-table th, .seller-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.seller-table th { color: var(--muted); font-size: 12px; font-weight: 650; }
.seller-table img { width: 48px; height: 60px; border-radius: 8px; object-fit: cover; }
.status-pill { display: inline-flex; padding: 4px 8px; border-radius: 12px; color: var(--green-800); background: var(--green-50); font-size: 11px; font-weight: 750; }
.product-form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 13px; }
.product-form-grid .full { grid-column: 1/-1; }
.field-hint { margin: -2px 0 2px; color: var(--muted); font-size: 12px; }
.form-checks { display: flex; flex-wrap: wrap; gap: 16px; }
.form-checks label { display: flex; align-items: center; gap: 7px; }
.dashboard-gate { max-width: 600px; margin: 60px auto; padding: 36px; border-radius: 22px; background: white; text-align: center; }
.dashboard-gate [data-icon] { width: 52px; height: 52px; color: var(--green-700); }
.dashboard-gate h1 { margin-bottom: 8px; }
.dashboard-gate p { color: var(--muted); }
.seller-order { padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.seller-order + .seller-order { margin-top: 12px; }
.seller-order-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.seller-order select { height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; }

.footer { margin-top: 64px; color: #c4d5ce; background: var(--green-950); }
.footer-main {
  display: grid; grid-template-columns: minmax(260px,1.35fr) repeat(3,minmax(160px,1fr));
  gap: clamp(32px,4vw,72px); padding-top: 54px; padding-bottom: 46px;
}
.footer-brand { max-width: 360px; }
.brand-footer { display: inline-flex; }
.brand-footer .brand-logo { width: 174px; height: auto; }
.footer-lead { max-width: 330px; margin: 24px 0 10px; color: #f4f8f6; font-size: 16px; line-height: 1.5; }
.footer-note { max-width: 350px; margin: 0; color: #8fa99e; font-size: 13px; line-height: 1.55; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-column h2 { margin: 3px 0 9px; color: #fff; font-size: 15px; font-weight: 780; letter-spacing: .01em; }
.footer-column a { color: #c4d5ce; font-size: 14px; line-height: 1.35; text-decoration: none; transition: color .18s ease; }
.footer-column a:hover { color: #fff; }
.footer-column a:focus-visible { border-radius: 4px; outline: 2px solid #fff; outline-offset: 4px; }
.footer-contacts span { color: #8fa99e; font-size: 13px; line-height: 1.5; }
.footer-bottom {
  min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-top: 1px solid rgba(255,255,255,.12); color: #88a197; font-size: 12px;
}
.footer-bottom p { margin: 0; }

.info-page { padding-top: 34px; }
.info-layout { display: grid; grid-template-columns: 220px minmax(0,800px); justify-content: center; gap: clamp(30px,5vw,72px); align-items: start; }
.info-sidebar { position: sticky; top: 116px; display: grid; gap: 22px; padding-top: 8px; }
.info-sidebar a { display: inline-flex; align-items: center; gap: 8px; width: max-content; color: var(--green-800); font-size: 14px; font-weight: 750; text-decoration: none; }
.info-sidebar a [data-icon] { width: 18px; height: 18px; }
.info-sidebar > span { color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.legal-document { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 12px 38px rgba(8,44,35,.06); }
.legal-header { padding: clamp(30px,5vw,54px); color: #fff; background: linear-gradient(135deg,var(--green-950),#0d654a); }
.legal-header > span { display: block; margin-bottom: 14px; color: #a9d7c3; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.legal-header h1 { max-width: 700px; margin: 0; font-size: clamp(32px,5vw,48px); line-height: 1.04; letter-spacing: -.035em; }
.legal-header p { max-width: 650px; margin: 18px 0 22px; color: #d5e5de; font-size: 16px; line-height: 1.55; }
.legal-header time { color: #9bbbae; font-size: 12px; }
.legal-content { padding: clamp(30px,5vw,54px); }
.legal-section + .legal-section { margin-top: 38px; padding-top: 34px; border-top: 1px solid var(--line); }
.legal-section h2 { margin: 0 0 18px; color: var(--ink); font-size: clamp(20px,3vw,25px); line-height: 1.2; }
.legal-section p, .legal-section li { color: #46534e; font-size: 15px; line-height: 1.72; }
.legal-section p { margin: 0; }
.legal-section p + p { margin-top: 13px; }
.legal-section ul { display: grid; gap: 10px; margin: 0; padding-left: 22px; }
.legal-section li::marker { color: var(--green-700); }
.legal-contact { margin: 0 clamp(30px,5vw,54px) clamp(30px,5vw,54px); padding: 22px 24px; border-radius: 16px; background: var(--green-50); }
.legal-contact strong { color: var(--ink); }
.legal-contact p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.legal-contact a { color: var(--green-800); font-weight: 750; }
.info-page-back { text-align: center; }
.mobile-nav { display: none; }

@media (max-width: 1280px) {
  .product-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .product-layout { grid-template-columns: minmax(340px,1fr) minmax(330px,.9fr); }
  .buy-box { position: static; grid-column: 2; }
  .product-summary { grid-column: 2; }
  .product-gallery { grid-row: 1 / span 2; }
  .promo-copy { width: min(590px,55%); }
  .header-action { min-width: 55px; }
}
@media (max-width: 1050px) {
  .brand-logo { width: 150px; }
  .location-button span:last-child { display: none; }
  .header-action span:last-of-type { display: none; }
  .header-action { min-width: 42px; }
  .count-badge { right: 0; }
  .product-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .category-strip { grid-template-columns: repeat(8,110px); overflow-x: auto; scrollbar-width: none; }
  .product-sections { grid-template-columns: 1fr; }
  .reviews-layout { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1.25fr repeat(2,1fr); }
  .footer-contacts { grid-column: 2; }
}
@media (max-width: 780px) {
  body { padding-bottom: 66px; }
  .container { width: min(calc(100% - 24px),var(--container)); }
  .site-header { position: sticky; }
  .header-main { min-height: 60px; gap: 7px; }
  .brand-logo { width: 142px; }
  .catalog-button { width: 42px; min-width: 42px; height: 42px; justify-content: center; padding: 0; }
  .catalog-button span:last-child, .location-button, .header-main > .search, .header-actions { display: none; }
  .mobile-search { display: block; }
  .search { height: 43px; border-width: 1.5px; }
  .category-menu { top: 113px; max-height: calc(100dvh - 180px); overflow-y: auto; }
  .category-menu-inner { grid-template-columns: 1fr 1fr; }
  .home-page { padding-top: 12px; }
  .promo-carousel { height: 286px; border-radius: 18px; }
  .promo-banner { padding: 28px 22px 50px; background-position: 62% center; }
  .promo-overlay { background: linear-gradient(90deg,rgba(3,24,18,.97) 0%,rgba(3,24,18,.84) 48%,rgba(3,24,18,.28) 84%,rgba(3,24,18,.12) 100%); }
  .promo-copy { width: 78%; }
  .promo-title { max-width: 410px; font-size: clamp(28px,8vw,35px); }
  .promo-text { max-width: 390px; margin-top: 9px; font-size: 13px; line-height: 1.4; }
  .promo-cta { min-height: 42px; margin-top: 14px; padding: 0 14px; font-size: 13px; }
  .promo-arrow { display: none; }
  .promo-dots { bottom: 9px; }
  .promo-ad-label { top: 9px; right: 10px; }
  .category-strip { margin: 12px 0 22px; gap: 7px; grid-template-columns: repeat(8,92px); }
  .category-tile { min-height: 124px; padding: 5px 5px 9px; }
  .category-icon { width: 56px; height: 76px; }
  .category-art { width: 56px; height: 75px; }
  .catalog-head { align-items: start; }
  .catalog-head h2 { font-size: 25px; }
  .view-controls .control-button span:last-child { display: none; }
  .sort-select { margin-left: 0; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 9px; }
  .product-image-link { border-radius: 13px; }
  .product-price { font-size: 17px; }
  .product-title { min-height: 39px; font-size: 13px; }
  .card-cart { height: 37px; }
  #catalogMap.map-panel { height: 62vh; min-height: 420px; max-height: 610px; }
  .breadcrumbs { overflow: hidden; white-space: nowrap; }
  .product-layout { display: block; }
  .product-gallery { position: static; }
  .main-product-image { border-radius: 16px; }
  .product-summary h1 { margin-top: 10px; font-size: 29px; }
  .buy-box { margin-top: 22px; padding: 18px; box-shadow: 0 5px 20px rgba(8,44,35,.09); }
  .product-sections { margin-top: 25px; }
  .content-card { padding: 19px; }
  .reviews-section { margin-top: 18px; }
  .related-section .product-grid { display: flex; overflow-x: auto; }
  .related-section .product-card { min-width: 160px; width: 160px; }
  .mobile-nav {
    position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; height: 66px;
    display: grid; grid-template-columns: repeat(4,1fr); padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line); background: rgba(255,255,255,.97); backdrop-filter: blur(16px);
  }
  .mobile-nav a, .mobile-nav button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; color: #58645f; background: transparent; font-size: 10px; font-weight: 650; }
  .mobile-nav [data-icon] { width: 22px; height: 22px; }
  .mobile-nav .count-badge { top: 5px; right: calc(50% - 25px); }
  .drawer { width: 100%; }
  .modal { padding: 24px 20px; }
  .location-modal {
    width: 100%; max-width: none; max-height: 88dvh; margin: auto 0 0;
    padding: 26px 18px calc(20px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
  }
  .location-modal h2 { font-size: 25px; }
  .location-list { max-height: 40dvh; }
  .geo-notice { grid-template-columns: auto 1fr; }
  .geo-notice button { grid-column: 2; justify-self: start; }
  .toast-region { left: 12px; right: 12px; bottom: 78px; }
  .toast { min-width: 0; max-width: none; }
  .seller-page { padding-top: 18px; }
  .seller-header { align-items: start; }
  .seller-layout { display: block; }
  .seller-nav { position: static; display: flex; margin-bottom: 14px; overflow-x: auto; }
  .seller-nav button { flex: 0 0 auto; width: auto; white-space: nowrap; }
  .dashboard-card { padding: 17px; overflow-x: auto; }
  .seller-table { min-width: 680px; }
  .product-form-grid { grid-template-columns: 1fr; }
  .product-form-grid .full { grid-column: auto; }
  .footer { margin-top: 46px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 34px 24px; padding-top: 40px; padding-bottom: 34px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contacts { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; padding-top: 18px; padding-bottom: 18px; line-height: 1.5; }
  .info-page { padding-top: 18px; }
  .info-layout { display: block; }
  .info-sidebar { position: static; display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding: 0 4px; }
  .legal-document { border-radius: 18px; }
}
@media (max-width: 480px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .legal-header h1 { font-size: 31px; }
  .legal-header, .legal-content { padding: 28px 22px; }
  .legal-contact { margin: 0 22px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
