:root {
  --cream: #fff7e8;
  --cream-2: #f7ecd9;
  --paper: #fffdf8;
  --paper-solid: #fffaf1;
  --green: #5f8d3e;
  --green-2: #7faa59;
  --green-dark: #2f4a2d;
  --green-soft: #edf6df;
  --orange: #ef8423;
  --orange-dark: #a65318;
  --yellow: #f4c453;
  --terracotta: #b85c38;
  --sky: #a8d8ea;
  --ink: #253126;
  --muted: #746b5d;
  --line: #e7d8c0;
  --line-strong: #d9c6a8;
  --danger: #9a4437;
  --danger-soft: #fff0ec;
  --success: #3f742d;
  --success-soft: #eef8e6;
  --shadow: 0 18px 48px rgba(67, 50, 29, 0.13);
  --shadow-soft: 0 8px 26px rgba(67, 50, 29, 0.08);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 21px;
  --radius-sm: 14px;
  --max-width: 1240px;
  --header-h: 76px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(246, 196, 83, .15), transparent 32rem),
    radial-gradient(circle at 96% 20%, rgba(168, 216, 234, .16), transparent 30rem),
    var(--cream);
  font-family: "PT Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.48;
  min-height: 100vh;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .56; }

h1, h2, h3, h4 {
  margin: 0 0 .55em;
  color: var(--green-dark);
  font-family: Nunito, "Baloo 2", "PT Sans", system-ui, sans-serif;
  line-height: 1.08;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(2.35rem, 5vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: 1.27rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.25rem; }
small { color: var(--muted); }

.container { width: min(var(--max-width), calc(100% - 36px)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 36px)); margin: 0 auto; }
.section { padding: 42px 0; }
.section.compact { padding: 24px 0; }
.section.soft { background: rgba(255, 253, 248, .55); border-block: 1px solid rgba(231, 216, 192, .7); }
.stack { display: grid; gap: 16px; }
.cluster { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.muted { color: var(--muted); }
.lead { color: #514a40; font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.55; }
.kicker, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 11px;
  color: var(--orange-dark);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  z-index: 1000;
  left: 16px;
  top: -80px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--green-dark);
  color: #fff;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 250, 241, .91);
  border-bottom: 1px solid rgba(231, 216, 192, .86);
  backdrop-filter: blur(18px);
}
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; }
.brand img { width: 196px; height: 44px; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 20px; font-weight: 750; font-size: .95rem; }
.nav-links a { color: #3c493b; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--orange); transition: right .2s; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-button {
  position: relative;
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--green-dark);
  display: inline-grid;
  place-items: center;
  font-weight: 900;
}
.icon-button:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.count-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  font-size: .7rem;
  border: 2px solid var(--paper);
}
.city-button { max-width: 140px; padding: 0 12px; font-size: .86rem; }

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 16px;
  min-height: 46px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #f39538, var(--orange));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 9px 19px rgba(239, 132, 35, .23);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(239, 132, 35, .29); filter: saturate(1.05); }
.btn.secondary { background: var(--paper); color: var(--green-dark); border-color: var(--line-strong); box-shadow: none; }
.btn.secondary:hover { background: var(--green-soft); }
.btn.green { background: linear-gradient(180deg, #6ba04b, var(--green)); box-shadow: 0 9px 19px rgba(95, 141, 62, .2); }
.btn.danger { background: var(--danger); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--green-dark); border-color: transparent; box-shadow: none; }
.btn.small { min-height: 38px; padding: 8px 13px; border-radius: 13px; font-size: .88rem; }
.btn.full { width: 100%; }
.link-more { color: var(--green-dark); font-weight: 900; text-decoration: underline; text-decoration-color: rgba(95,141,62,.35); text-underline-offset: 4px; }

.hero { padding: 30px 0 24px; }
.hero-shell {
  min-height: 660px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  isolation: isolate;
  background: #e9f2df;
}
.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/assets/illustrations/hero-market.webp') center / cover no-repeat;
  z-index: -2;
}
.hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,250,240,.98) 0%, rgba(255,250,240,.91) 36%, rgba(255,250,240,.44) 61%, rgba(255,250,240,.02) 82%);
  z-index: -1;
}
.hero-content { width: min(650px, 61%); padding: 78px 58px 190px; }
.hero-content h1 { max-width: 680px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0; }
.hero-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hero-trust-item { padding: 12px; border: 1px solid rgba(217,198,168,.84); border-radius: 16px; background: rgba(255,253,248,.79); font-size: .88rem; font-weight: 800; }
.hero-category-rail {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(231,216,192,.94);
  border-radius: 24px;
  background: rgba(255, 250, 241, .92);
  backdrop-filter: blur(12px);
}
.rail-card { display: flex; align-items: center; gap: 9px; min-height: 58px; padding: 10px; border-radius: 16px; font-weight: 850; font-size: .87rem; }
.rail-card:hover { background: var(--green-soft); }
.rail-icon { font-size: 1.55rem; }

.section-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-title p { margin-bottom: 0; max-width: 760px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.auto { grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); }
.card {
  background: rgba(255,253,248,.93);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}
.card.flat { box-shadow: none; }
.card.hover { transition: transform .2s ease, box-shadow .2s ease; }
.card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category-card { min-height: 195px; position: relative; overflow: hidden; }
.category-card::after { content: ""; position: absolute; width: 130px; height: 130px; right: -38px; bottom: -50px; border-radius: 50%; background: rgba(244,196,83,.19); }
.category-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 20px; background: #fff0c9; font-size: 1.8rem; margin-bottom: 16px; }
.story-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.story-pill { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,253,248,.88); }
.story-pill .icon { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 15px; background: var(--green-soft); font-size: 1.35rem; }
.story-pill b { display: block; margin-bottom: 4px; color: var(--green-dark); }

.product-card { display: flex; flex-direction: column; gap: 11px; min-height: 100%; padding: 0; overflow: hidden; position: relative; }
.product-card-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 0 18px 18px; }
.product-media { position: relative; height: 228px; overflow: hidden; background: linear-gradient(135deg, #fff0ca, var(--green-soft)); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-media img { transform: scale(1.035); }
.product-media .product-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 4rem; }
.favorite-button { position: absolute; z-index: 2; right: 12px; top: 12px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(231,216,192,.8); border-radius: 14px; background: rgba(255,253,248,.92); color: var(--terracotta); font-size: 1.15rem; box-shadow: 0 5px 15px rgba(45,38,28,.1); }
.favorite-button.active { color: #fff; background: var(--terracotta); border-color: var(--terracotta); }
.product-card h3 { margin-bottom: 0; }
.product-card .description { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 999px; border: 1px solid #d4e5c2; background: var(--green-soft); color: var(--green-dark); font-size: .73rem; font-weight: 850; }
.badge.gray { border-color: var(--line); background: #f7efe3; color: var(--muted); }
.badge.orange { border-color: #f1d399; background: #fff0cc; color: #865016; }
.badge.red { border-color: #efc3b8; background: var(--danger-soft); color: var(--danger); }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.price { font-size: 1.45rem; font-weight: 950; color: var(--ink); }
.old-price { color: var(--muted); text-decoration: line-through; font-size: .88rem; }
.rating { color: #9b6119; font-weight: 900; }
.stock { font-size: .83rem; color: var(--muted); }
.stock.low { color: var(--orange-dark); }
.stock.out { color: var(--danger); }

.producer-card { padding: 0; overflow: hidden; }
.producer-card-cover { height: 152px; background: var(--cream-2); overflow: hidden; }
.producer-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.producer-card-body { padding: 0 18px 20px; }
.producer-avatar { width: 76px; height: 76px; margin-top: -38px; margin-bottom: 12px; border: 5px solid var(--paper); border-radius: 26px; overflow: hidden; background: var(--green-soft); box-shadow: 0 7px 18px rgba(45,38,28,.12); }
.producer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.producer-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.producer-stat { padding: 9px; border-radius: 13px; background: #f8f1e5; text-align: center; font-size: .77rem; color: var(--muted); }
.producer-stat b { display: block; color: var(--green-dark); font-size: .95rem; }

.toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) 210px 220px auto; gap: 11px; margin: 18px 0; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: var(--paper);
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(95,141,62,.12); }
textarea { min-height: 110px; resize: vertical; }
label.field { display: grid; gap: 7px; color: var(--green-dark); font-weight: 800; }
label.field > span { font-size: .86rem; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.check input { width: 18px; height: 18px; min-height: auto; margin-top: 2px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--green-dark); font-weight: 850; }
.chip:hover, .chip.active { background: var(--green-soft); border-color: #c8ddaF; }

.catalog-layout { display: grid; grid-template-columns: 275px minmax(0, 1fr); gap: 22px; align-items: start; }
.filters-panel { position: sticky; top: calc(var(--header-h) + 18px); display: grid; gap: 14px; }
.filter-section { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.filter-section:last-child { border-bottom: 0; }
.catalog-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.catalog-meta { color: var(--muted); }
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.mobile-filter-toggle { display: none; }

.split-panel { display: grid; grid-template-columns: 1fr .88fr; gap: 20px; }
.panel-copy { padding: 32px; }
.panel-image { min-height: 370px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.panel-image img { width: 100%; height: 100%; object-fit: cover; }
.steps { counter-reset: step; display: grid; gap: 13px; margin-top: 20px; }
.step { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; }
.step::before { content: counter(step); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; background: var(--orange); color: #fff; font-weight: 950; }

.page-hero { padding: 34px 0 18px; }
.page-hero-card { display: grid; grid-template-columns: 1fr .88fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-xl); background: rgba(255,253,248,.95); box-shadow: var(--shadow); }
.page-hero-card .copy { padding: 46px; }
.page-hero-card .visual { min-height: 390px; }
.page-hero-card .visual img { width: 100%; height: 100%; object-fit: cover; }
.seller-landing-hero {
  position: relative;
  min-height: min(720px, calc(100vh - var(--header-h) - 18px));
  overflow: hidden;
  display: grid;
  align-items: center;
  isolation: isolate;
  border-bottom: 1px solid rgba(231,216,192,.72);
  background: #21301f;
}
.seller-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('/assets/illustrations/seller-onboarding.webp') center / cover no-repeat;
  transform: scale(1.01);
}
.seller-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(28,43,26,.92) 0%, rgba(28,43,26,.75) 45%, rgba(28,43,26,.18) 78%),
    linear-gradient(0deg, rgba(255,247,232,.18) 0%, rgba(255,247,232,0) 34%);
}
.seller-hero-content {
  padding: 64px 0 92px;
  color: #fff;
}
.seller-hero-content h1 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(3rem, 7vw, 6.2rem);
}
.seller-hero-content .lead {
  max-width: 680px;
  color: rgba(255,255,255,.9);
  font-size: clamp(1.12rem, 2vw, 1.42rem);
}
.seller-landing-hero .btn.secondary {
  background: rgba(255,253,248,.93);
  border-color: rgba(255,255,255,.68);
}
.seller-proof-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
  margin-top: -46px;
  padding: 14px;
  border: 1px solid rgba(231,216,192,.92);
  border-radius: 24px;
  background: rgba(255,253,248,.95);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.seller-proof-strip div {
  min-height: 86px;
  padding: 14px;
  border-radius: 17px;
  background: #fff8eb;
}
.seller-proof-strip b {
  display: block;
  color: var(--green-dark);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.1;
}
.seller-proof-strip span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 750;
  font-size: .9rem;
}
.seller-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
.seller-benefits article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,253,248,.94);
  box-shadow: var(--shadow-soft);
}
.seller-benefits img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}
.seller-benefits h3, .seller-benefits p {
  margin-left: 18px;
  margin-right: 18px;
}
.seller-benefits h3 { margin-top: 18px; }
.seller-benefits p { margin-bottom: 20px; }
.seller-flow-band { padding: 54px 0; }
.seller-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 12px;
}
.seller-flow article {
  min-height: 214px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,253,248,.88);
}
.seller-flow span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  font-weight: 950;
}
.seller-flow p {
  color: var(--muted);
  margin-bottom: 0;
}
.seller-pricing {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: center;
}
.seller-pricing-copy {
  max-width: 580px;
}
.seller-pricing-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(237,246,223,.92), rgba(255,240,201,.88));
  box-shadow: var(--shadow-soft);
}
.seller-pricing-panel div {
  min-height: 154px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,253,248,.9);
}
.seller-pricing-panel span {
  display: block;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.seller-pricing-panel b {
  display: block;
  margin: 12px 0 8px;
  color: var(--green-dark);
  font-family: Nunito, "PT Sans", system-ui, sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1;
}
.seller-pricing-panel small {
  color: var(--muted);
  font-weight: 750;
}
.seller-form-section {
  scroll-margin-top: calc(var(--header-h) + 18px);
}
.seller-final {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.seller-final .lead { margin-bottom: 0; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; color: var(--muted); font-size: .9rem; }
.breadcrumbs a:hover { color: var(--green-dark); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 24px; align-items: start; }
.detail-gallery { display: grid; gap: 12px; }
.detail-main-image { min-height: 520px; overflow: hidden; border: 1px solid var(--line); border-radius: 30px; background: var(--paper); }
.detail-main-image img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 3px; }
.gallery-thumb { width: 92px; height: 72px; flex: 0 0 92px; border: 2px solid transparent; border-radius: 15px; padding: 0; overflow: hidden; background: var(--paper); }
.gallery-thumb.active { border-color: var(--green); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-side { position: sticky; top: calc(var(--header-h) + 18px); }
.detail-price { display: flex; align-items: baseline; gap: 12px; margin: 16px 0; }
.detail-price .price { font-size: 2rem; }
.qty-control { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 15px; padding: 4px; background: var(--paper); }
.qty-control button { width: 36px; height: 36px; border: 0; border-radius: 11px; background: #f6edde; color: var(--green-dark); font-weight: 950; }
.qty-control span { min-width: 34px; text-align: center; font-weight: 900; }
.info-list { display: grid; gap: 10px; margin-top: 18px; }
.info-row { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eee2d0; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--green-dark); font-weight: 800; }
.review-card { display: grid; gap: 8px; }
.review-head { display: flex; justify-content: space-between; gap: 12px; }
.review-stars { color: #a76619; letter-spacing: 2px; }

.producer-hero { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-xl); min-height: 440px; box-shadow: var(--shadow); }
.producer-hero-bg { position: absolute; inset: 0; }
.producer-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.producer-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(33,48,31,.91), rgba(33,48,31,.63) 55%, rgba(33,48,31,.12)); }
.producer-hero-content { position: relative; z-index: 1; width: min(720px, 70%); padding: 54px; color: #fff; }
.producer-hero-content h1 { color: #fff; }
.producer-hero-content .lead, .producer-hero-content .muted { color: rgba(255,255,255,.86); }
.producer-identity { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.producer-identity img { width: 88px; height: 88px; border-radius: 28px; object-fit: cover; border: 4px solid rgba(255,255,255,.8); }

.map-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 20px; }
.map-canvas { position: relative; min-height: 620px; overflow: hidden; border: 1px solid var(--line); border-radius: 30px; background: #dcebd1; box-shadow: var(--shadow-soft); }
.map-canvas::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(255,253,248,.28),rgba(255,253,248,.28)), url('/assets/illustrations/market-village.webp') center / cover; opacity: .72; }
.map-canvas::after { content: "Прототип карты — координаты демонстрационные"; position: absolute; left: 16px; bottom: 14px; padding: 8px 12px; border-radius: 999px; background: rgba(255,253,248,.9); color: var(--muted); font-size: .76rem; }
.map-marker { position: absolute; z-index: 2; transform: translate(-50%, -50%); width: 44px; height: 44px; border: 3px solid #fff; border-radius: 50% 50% 50% 14%; rotate: -45deg; background: var(--green); box-shadow: 0 10px 25px rgba(32,52,29,.28); color: #fff; }
.map-marker span { display: grid; place-items: center; width: 100%; height: 100%; rotate: 45deg; font-size: 1rem; }
.map-marker.active, .map-marker:hover { background: var(--orange); scale: 1.08; }
.map-list { display: grid; gap: 12px; max-height: 620px; overflow: auto; padding-right: 4px; }
.map-list .mini-producer { display: grid; grid-template-columns: 62px 1fr; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.map-list .mini-producer.active { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(239,132,35,.12); }
.map-list img { width: 62px; height: 62px; border-radius: 18px; object-fit: cover; }

.notice { padding: 14px 16px; border: 1px solid #f0d39b; border-radius: 17px; background: #fff3d7; color: #78501e; }
.notice.green { border-color: #c8dfb4; background: var(--success-soft); color: var(--success); }
.notice.red { border-color: #efc3b8; background: var(--danger-soft); color: var(--danger); }
.notice.blue { border-color: #c6e0ea; background: #eff9fc; color: #3f6672; }
.empty-state { text-align: center; padding: 42px 22px; }
.empty-illustration { width: 92px; height: 92px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 30px; background: #fff0cc; font-size: 2.8rem; }
.skeleton { min-height: 180px; border-radius: var(--radius-md); background: linear-gradient(90deg, #f0e5d4 25%, #faf4e9 45%, #f0e5d4 65%); background-size: 220% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }

.cart-drawer-backdrop { position: fixed; inset: 0; z-index: 180; background: rgba(34,39,31,.36); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.cart-drawer { position: fixed; z-index: 190; right: 0; top: 0; bottom: 0; width: min(440px, 100vw); padding: 20px; background: var(--paper-solid); box-shadow: -20px 0 60px rgba(42,35,25,.2); transform: translateX(104%); transition: transform .24s ease; overflow: auto; }
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.cart-items { display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 70px 1fr auto; gap: 11px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cart-item img { width: 70px; height: 62px; object-fit: cover; border-radius: 14px; }
.cart-group-title { margin: 15px 0 8px; color: var(--orange-dark); font-size: .78rem; font-weight: 950; text-transform: uppercase; letter-spacing: .06em; }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin: 18px 0; font-size: 1.35rem; font-weight: 950; }

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 22px; align-items: start; }
.checkout-summary { position: sticky; top: calc(var(--header-h) + 18px); }
.fulfillment-card { display: grid; gap: 14px; }
.checkout-item { display: grid; grid-template-columns: 82px 1fr auto; gap: 12px; align-items: center; }
.checkout-item img { width: 82px; height: 72px; border-radius: 16px; object-fit: cover; }
.order-success { display: grid; place-items: center; min-height: 430px; text-align: center; }
.order-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.35rem; font-weight: 950; padding: 12px 16px; border-radius: 15px; background: var(--green-soft); color: var(--green-dark); }
.status-timeline { display: grid; gap: 0; }
.status-step { display: grid; grid-template-columns: 32px 1fr; gap: 12px; min-height: 72px; }
.status-step::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px var(--green-soft); }
.status-step:not(:last-child) > div { border-bottom: 1px solid var(--line); padding-bottom: 16px; }

.wizard { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 22px; }
.wizard-nav { display: grid; gap: 10px; align-self: start; position: sticky; top: calc(var(--header-h) + 18px); }
.wizard-step { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 12px; border-radius: 16px; color: var(--muted); }
.wizard-step .number { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; background: #f2e8d8; font-weight: 950; }
.wizard-step.active { background: var(--green-soft); color: var(--green-dark); }
.wizard-step.done .number { background: var(--green); color: #fff; }
.wizard-panel[hidden] { display: none; }
.compliance-meter { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 16px 0; }
.compliance-meter span { height: 9px; border-radius: 999px; background: #e9ddca; }
.compliance-meter[data-level="low"] span:first-child,
.compliance-meter[data-level="medium"] span:nth-child(-n+2),
.compliance-meter[data-level="medium_high"] span:nth-child(-n+2),
.compliance-meter[data-level="high"] span { background: var(--orange); }

.dashboard-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 22px; align-items: start; }
.dashboard-nav { position: sticky; top: calc(var(--header-h) + 18px); display: grid; gap: 8px; }
.dashboard-nav button { text-align: left; padding: 12px 14px; border: 1px solid transparent; border-radius: 14px; background: transparent; color: var(--muted); font-weight: 850; }
.dashboard-nav button.active, .dashboard-nav button:hover { background: var(--green-soft); color: var(--green-dark); border-color: #d3e5c3; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.metric { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.metric span { display: block; color: var(--muted); font-size: .82rem; }
.metric b { display: block; margin-top: 6px; color: var(--green-dark); font-size: 1.55rem; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.table { width: 100%; min-width: 760px; border-collapse: collapse; }
.table th, .table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { position: sticky; top: 0; z-index: 2; background: #f5ede0; color: var(--muted); font-size: .78rem; }
.table tr:hover td { background: #fff7e8; }
.table select { min-height: 36px; padding: 6px 9px; font-size: .82rem; }
.admin-login { max-width: 520px; margin: 60px auto; }

.accordion { display: grid; gap: 10px; }
.accordion details { border: 1px solid var(--line); border-radius: 17px; background: var(--paper); padding: 14px 16px; }
.accordion summary { color: var(--green-dark); font-weight: 900; cursor: pointer; }
.accordion details p { margin: 12px 0 0; }

.toast-region { position: fixed; z-index: 260; right: 18px; top: 92px; display: grid; gap: 10px; pointer-events: none; }
.toast { min-width: 280px; max-width: 420px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper-solid); box-shadow: var(--shadow); animation: toast-in .22s ease; }
.toast.success { border-color: #bad7a5; }
.toast.error { border-color: #e9b5aa; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

.footer { margin-top: 34px; padding: 46px 0 92px; border-top: 1px solid var(--line); background: rgba(255,253,248,.58); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 22px; }
.footer h4 { margin-bottom: 12px; }
.footer a { display: block; margin: 7px 0; color: var(--muted); }
.footer a:hover { color: var(--green-dark); }
.mobile-bottom-nav { display: none; }

@media (max-width: 1080px) {
  .nav-links { gap: 13px; font-size: .88rem; }
  .city-button { display: none; }
  .grid.four { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .header { height: var(--header-h); }
  .brand img { width: 170px; height: 38px; }
  .nav-links { display: none; }
  .hero-shell { min-height: 710px; }
  .hero-shell::after { background: linear-gradient(180deg, rgba(255,250,240,.98) 0%, rgba(255,250,240,.9) 55%, rgba(255,250,240,.17) 77%); }
  .hero-content { width: 100%; padding: 46px 28px 245px; }
  .hero-category-rail { grid-template-columns: repeat(3, 1fr); }
  .story-strip, .grid, .grid.two, .split-panel, .page-hero-card, .detail-layout, .map-layout, .checkout-layout, .wizard, .dashboard-layout, .footer-grid { grid-template-columns: 1fr; }
  .seller-proof-strip, .seller-benefits, .seller-flow, .seller-pricing, .seller-pricing-panel { grid-template-columns: 1fr; }
  .detail-side, .checkout-summary, .filters-panel, .wizard-nav, .dashboard-nav { position: static; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters-panel { display: none; }
  .filters-panel.open { display: grid; }
  .mobile-filter-toggle { display: inline-flex; }
  .page-hero-card .copy { padding: 30px; }
  .page-hero-card .visual { min-height: 280px; }
  .producer-hero-content { width: 100%; padding: 34px; }
  .producer-hero-overlay { background: rgba(33,48,31,.78); }
  .seller-landing-hero { min-height: 660px; align-items: end; }
  .seller-hero-shade { background: linear-gradient(180deg, rgba(28,43,26,.44) 0%, rgba(28,43,26,.88) 58%, rgba(28,43,26,.96) 100%); }
  .seller-hero-content { padding: 210px 0 76px; }
  .seller-proof-strip { margin-top: -28px; }
  .seller-flow article, .seller-pricing-panel div { min-height: auto; }
  .seller-final { align-items: flex-start; flex-direction: column; }
  .detail-main-image, .detail-main-image img { min-height: 420px; }
  .mobile-bottom-nav {
    position: fixed;
    z-index: 150;
    left: 10px;
    right: 10px;
    bottom: 9px;
    display: grid;
    grid-template-columns: repeat(5,1fr);
    min-height: 62px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255,250,241,.94);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
  }
  .mobile-bottom-nav a, .mobile-bottom-nav button { border: 0; background: transparent; display: grid; place-items: center; gap: 2px; color: var(--muted); font-size: .68rem; }
  .mobile-bottom-nav .nav-icon { font-size: 1.2rem; }
  .footer { padding-bottom: 110px; }
}

@media (max-width: 620px) {
  .container, .narrow { width: min(100% - 24px, var(--max-width)); }
  .section { padding: 30px 0; }
  .nav-actions .icon-button:nth-child(1) { display: none; }
  .hero { padding-top: 14px; }
  .hero-shell { min-height: 760px; border-radius: 27px; }
  .hero-content { padding: 34px 20px 300px; }
  .hero-content h1 { font-size: 2.72rem; }
  .hero-category-rail { left: 10px; right: 10px; bottom: 10px; grid-template-columns: repeat(2, 1fr); }
  .rail-card { font-size: .8rem; }
  .hero-trust { grid-template-columns: 1fr; }
  .seller-landing-hero { min-height: 620px; }
  .seller-hero-content { padding: 180px 0 62px; }
  .seller-hero-content h1 { font-size: 3rem; }
  .seller-proof-strip { padding: 10px; border-radius: 20px; }
  .seller-proof-strip div { min-height: auto; }
  .seller-benefits img { height: 210px; }
  .section-title, .catalog-head, .between { align-items: flex-start; flex-direction: column; }
  .grid.four, .metric-grid { grid-template-columns: 1fr; }
  .product-media { height: 210px; }
  .toolbar, .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .detail-main-image, .detail-main-image img { min-height: 340px; }
  .detail-side { padding: 17px; }
  .producer-hero { min-height: 520px; }
  .producer-hero-content { padding: 25px; }
  .producer-identity { align-items: flex-start; }
  .map-canvas { min-height: 480px; }
  .checkout-item { grid-template-columns: 62px 1fr; }
  .checkout-item img { width: 62px; height: 58px; }
  .checkout-item > :last-child { grid-column: 2; }
  .toast-region { left: 12px; right: 12px; top: 76px; }
  .toast { min-width: 0; max-width: none; }
  .cart-drawer { padding: 15px; }
  .cart-item { grid-template-columns: 58px 1fr auto; }
  .cart-item img { width: 58px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Visual foundations retained and refined through MVP 5.0 */
.map-watermark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: rgba(47, 74, 45, .26);
  font-family: Nunito, "PT Sans", system-ui, sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 950;
  pointer-events: none;
}
.map-watermark span { font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.catalog-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.map-list { max-height: 680px; overflow: auto; }
.map-list .mini-producer { width: 100%; text-align: left; color: var(--ink); }
.map-list .mini-producer img { width: 62px; height: 62px; object-fit: cover; border-radius: 16px; }
.producer-identity > img { width: 86px; height: 86px; object-fit: cover; border-radius: 25px; border: 4px solid rgba(255,255,255,.82); }
.hero-shell, .page-hero-card, .panel-image, .producer-hero, .detail-main-image { content-visibility: auto; contain-intrinsic-size: 700px; }
@media (max-width: 620px) {
  .catalog-meta { align-items: flex-start; flex-direction: column; }
  .map-list { max-height: none; }
}

/* MVP 5.0 — accounts, support, capacity-aware checkout and operations */
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr);
  gap: 24px;
  align-items: start;
}
.auth-card { padding: clamp(24px, 4vw, 46px); }
.dashboard-nav.horizontal {
  position: static;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.dashboard-nav.horizontal button { text-align: center; }
.compact-list { margin: 0; display: grid; gap: 6px; }
.fulfillment-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(237, 246, 223, .65);
  border: 1px solid #d6e5c8;
}
.promo-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.promo-row input { min-width: 0; }
.compact-form { margin-bottom: 18px; padding: 20px; }
.info-list > div:not(.between) {
  display: grid;
  grid-template-columns: minmax(120px, .45fr) 1fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.info-list > div:not(.between) span { overflow-wrap: anywhere; }
.table input[data-comment] { min-width: 170px; }
.table input[type="number"] { min-height: 36px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.notice hr { border: 0; border-top: 1px solid currentColor; opacity: .18; margin: 10px 0; }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .fulfillment-options { grid-template-columns: 1fr; }
  .dashboard-nav.horizontal { display: flex; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .dashboard-nav.horizontal button { white-space: nowrap; }
}

@media (max-width: 620px) {
  .promo-row { grid-template-columns: 1fr; }
  .info-list > div:not(.between) { grid-template-columns: 1fr; gap: 2px; }
  .auth-card { padding: 22px; }
}

/* Account security and operational forms — MVP 5.0 */
.session-list { display: grid; gap: 10px; margin-top: 18px; }
.session-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.session-row:first-child { border-top: 0; }
.session-row .muted { font-size: .9rem; line-height: 1.45; margin-top: 4px; }
.field small { color: var(--muted); line-height: 1.4; }
@media (max-width: 720px) {
  .session-row { align-items: flex-start; flex-direction: column; }
  .session-row .btn { width: 100%; }
}

/* MVP 5.0 — trust, media, compliance coverage and seller operations */
.requirement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.requirement-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
}
.requirement-card > span {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f5ede0;
  color: var(--muted);
  font-weight: 950;
}
.requirement-card.covered { border-color: #c8dfb7; background: var(--success-soft); }
.requirement-card.covered > span { background: var(--green); color: #fff; }
.draft-media-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}
.draft-media-row > img,
.draft-media-row > .product-placeholder {
  width: 92px;
  height: 82px;
  object-fit: cover;
  border-radius: 17px;
  border: 1px solid var(--line);
}
.inline-upload {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.fulfillment-card {
  margin: 12px 0;
  padding: 14px;
  border: 1px solid #d6e5c8;
  border-radius: 17px;
  background: rgba(237, 246, 223, .62);
}
.status-bars { display: grid; gap: 9px; }
.status-bars > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
}
.compact-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 14px; }
.compact-metrics .metric b { font-size: 1.25rem; }
.table input[data-assignee] {
  min-width: 140px;
  min-height: 36px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
}
.check input { margin-top: 4px; }
.notice.red { background: var(--danger-soft); border-color: #e7b8ae; color: var(--danger); }

@media (max-width: 760px) {
  .inline-upload { grid-template-columns: 1fr; }
  .draft-media-row { grid-template-columns: 72px minmax(0, 1fr); }
  .draft-media-row > img,
  .draft-media-row > .product-placeholder { width: 72px; height: 68px; }
  .compact-metrics { grid-template-columns: 1fr; }
}


/* MVP 5.0 — MFA, quarantine, moderation queue and inventory reservations */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.mfa-challenge { display: grid; gap: 16px; text-align: center; }
.mfa-challenge .field { text-align: left; }
.mfa-inline-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.mfa-secret,
.recovery-code-grid code,
.checksum,
.request-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}
.mfa-secret {
  display: inline-block;
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px dashed var(--green);
  font-size: 1rem;
  letter-spacing: .06em;
}
.recovery-codes { margin-top: 16px; }
.recovery-code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}
.recovery-code-grid code {
  display: block;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  text-align: center;
  font-weight: 800;
}
.checksum { font-size: .78rem; color: var(--muted); }
.request-id { font-size: .76rem; max-width: 180px; display: inline-block; }
.table .cluster { min-width: 150px; }
.table td { vertical-align: top; }
.badge.gray { background: #f1eee7; color: var(--muted); }
.notice.red { box-shadow: inset 4px 0 0 var(--danger); }

@media (max-width: 900px) {
  .security-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .recovery-code-grid { grid-template-columns: 1fr; }
}
