:root {
  color-scheme: light;
  --ink: #18211d;
  --muted: #65746c;
  --soft: #f3f5ef;
  --surface: #ffffff;
  --line: #dde4d9;
  --green: #23543a;
  --green-2: #3f7a55;
  --mint: #dceee2;
  --amber: #c97d1f;
  --amber-soft: #fff1d8;
  --blue: #2d5d7f;
  --red: #b84b3f;
  --shadow: 0 18px 60px rgba(24, 33, 29, 0.11);
  --radius: 8px;
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f8f8f4;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 140px minmax(260px, 0.7fr) minmax(230px, 0.9fr) auto auto;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(24, 33, 29, 0.09);
  background: rgba(232, 232, 232, 0.94);
  backdrop-filter: blur(16px);
}

.logo-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  color: var(--ink);
  font-weight: 860;
}

.logo-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0;
}

.logo-text {
  font-size: 20px;
  letter-spacing: 0;
}

.brand,
.app-company {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand span:last-child,
.app-company div {
  display: grid;
  gap: 1px;
}

.brand small,
.app-company small {
  color: var(--muted);
  font-size: 12px;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font-weight: 780;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 0;
}

.site-nav a,
.app-menu a {
  border-radius: var(--radius);
  color: #3d4a43;
  font-size: 14px;
  font-weight: 680;
}

.site-nav a {
  padding: 8px 0;
  border-radius: 0;
}

.site-nav a:hover,
.app-menu a:hover {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.site-header a:focus,
.site-header button:focus,
.primary-action:focus,
.secondary-action:focus,
.ghost-action:focus {
  outline: none;
}

.site-header a:focus-visible,
.site-header button:focus-visible,
.primary-action:focus-visible,
.secondary-action:focus-visible,
.ghost-action:focus-visible {
  outline: none;
}

.top-search input {
  min-height: 34px;
  border-color: #1b1b1b;
  border-radius: 0;
  background: transparent;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.square-tool {
  position: relative;
  display: inline-grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #1b1b1b;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.square-tool:hover,
.profile-button:hover {
  background: #fff;
}

.fav-tool:hover,
.profile-button:hover {
  color: #111;
}

.lang-tool {
  min-width: 58px;
  font-size: 12px;
}

.square-tool span {
  position: absolute;
  right: -8px;
  top: -8px;
  min-width: 15px;
  height: 15px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 10px;
  line-height: 15px;
}

.square-tool svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.fav-tool {
  background: #111;
  color: #fff;
}

.profile-button {
  min-height: 38px;
  min-width: 150px;
  border: 1px solid #1b1b1b;
  border-radius: 0;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-weight: 760;
}

.header-actions {
  display: none;
  align-items: center;
  gap: 10px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.language-switch button {
  min-width: 38px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 820;
}

.language-switch button:hover {
  background: var(--mint);
  color: var(--green);
}

.primary-action,
.secondary-action,
.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 760;
  letter-spacing: 0;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease;
}

.primary-action {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 22px rgba(35, 84, 58, 0.18);
}

.secondary-action {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.ghost-action {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.primary-action:hover,
.secondary-action:hover,
.ghost-action:hover {
  transform: translateY(-1px);
}

.large {
  min-height: 46px;
  padding: 12px 18px;
}

.compact {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 13px;
}

.full-width {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: clamp(28px, 5vw, 72px);
  max-width: var(--max);
  width: 100%;
  min-height: 680px;
  margin: 0 auto;
  padding: clamp(38px, 5vw, 72px) clamp(16px, 4vw, 48px) 56px;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.hero-copy .secondary-action {
  border-color: var(--line);
  background: #fff;
  color: var(--green);
}

.eyebrow {
  margin: 0;
  color: var(--green-2);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 650px;
  margin-bottom: 0;
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.hero-text {
  max-width: 600px;
  margin-bottom: 0;
  color: #47564d;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions [data-cabinet-choice] {
  border-color: var(--line);
  background: #fff;
  color: var(--green);
  box-shadow: none;
}

.hero-actions [data-cabinet-choice].cabinet-selected {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 22px rgba(35, 84, 58, 0.18);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 0;
}

.hero-metrics div,
.metric-tile,
.value-card,
.panel,
.filter-panel,
.cart-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.hero-metrics div {
  padding: 16px;
}

.hero-metrics dt {
  font-size: 30px;
  font-weight: 820;
}

.hero-metrics dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #77df8b;
  box-shadow: 0 0 0 5px rgba(119, 223, 139, 0.18);
}

.section-band {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px) 72px;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.benefit-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 24px;
}

.benefit-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.value-card {
  padding: 22px;
}

.value-card ul {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.value-card li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
}

.value-card li::before {
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green-2);
  content: "";
}

.value-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.digest-section {
  padding-top: 40px;
}

.digest-feed {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.digest-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 8px 18px;
  align-items: start;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.digest-item span {
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--mint);
  color: var(--green);
  font-size: 12px;
  font-weight: 820;
}

.digest-item time {
  justify-self: end;
  color: var(--muted);
  font-size: 13px;
}

.digest-item h3 {
  grid-column: 2;
  margin: 0;
  font-size: 20px;
}

.digest-item p {
  grid-column: 2 / -1;
  margin: 0;
  color: var(--muted);
}

.value-icon {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--green);
  font-size: 13px;
  font-weight: 820;
}

.app-view {
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
}

.app-view.active {
  display: grid;
}

.app-sidebar {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  padding: 22px;
  border-right: 1px solid var(--line);
  background: #f1f5ec;
}

.supplier-theme {
  background: #f2f0e8;
}

.app-menu {
  display: grid;
  gap: 8px;
  margin-top: 26px;
}

.app-menu a {
  padding: 12px;
}

.app-workspace {
  display: grid;
  gap: 18px;
  max-width: 1260px;
  width: 100%;
  padding: 28px clamp(16px, 3vw, 36px) 48px;
}

.workspace-top,
.panel-head,
.results-head,
.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.workspace-top h1 {
  font-size: clamp(30px, 4vw, 52px);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.metric-tile {
  display: grid;
  gap: 4px;
  padding: 18px;
}

.metric-tile span,
.muted-text,
.product-card small,
.cart-line small,
.supplier-row small,
.timeline small,
.draft-list span,
.health-row span {
  color: var(--muted);
}

.metric-tile strong {
  font-size: 28px;
  line-height: 1.1;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 18px;
}

.chat-workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
}

.chat-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.chat-list button {
  display: grid;
  gap: 5px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcf8;
  cursor: pointer;
  padding: 14px;
  text-align: left;
}

.chat-list button:hover {
  border-color: var(--green);
  background: var(--mint);
}

.chat-list span,
.chat-message p,
.chat-request-card p {
  color: var(--muted);
}

.chat-thread {
  display: grid;
  gap: 14px;
  align-content: start;
}

.chat-message,
.chat-request-card {
  display: grid;
  gap: 8px;
  max-width: 760px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcf8;
}

.chat-message.outgoing {
  justify-self: end;
  background: #eef6ee;
}

.chat-request-card {
  border-style: dashed;
  background: #fffaf1;
}

.chat-request-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.panel {
  min-width: 0;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(24, 33, 29, 0.05);
}

.panel-head {
  margin-bottom: 16px;
}

.panel-head h2 {
  font-size: 22px;
}

.compact-head {
  align-items: flex-start;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  border-radius: 999px;
  padding: 5px 9px;
  background: #eef2ea;
  color: var(--green);
  font-size: 12px;
  font-weight: 780;
}

.pill.good {
  background: var(--mint);
}

.pill.warning {
  background: var(--amber-soft);
  color: #8b531a;
}

.pill.stop {
  background: #f2d8d5;
  color: var(--red);
}

.supplier-list,
.timeline,
.draft-list,
.catalog-health,
#cartPreview,
#productCartPreview {
  display: grid;
  gap: 12px;
}

.supplier-row,
.cart-line,
.draft-list article,
.health-row {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcf8;
}

.supplier-row-top,
.cart-line-top,
.health-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.progress {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #e7ece3;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green-2);
}

.timeline div {
  position: relative;
  display: grid;
  gap: 3px;
  padding-left: 24px;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green-2);
}

.timeline-dot.warning {
  background: var(--amber);
}

.bar-chart {
  display: grid;
  gap: 12px;
}

.stats-dashboard-head {
  align-items: flex-start;
}

.stats-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.text-action {
  min-height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 0;
  font-size: 12px;
  font-weight: 760;
}

.text-action:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.stats-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stats-kpi,
.stats-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcf8;
}

.stats-kpi {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 18px;
}

.stats-kpi span,
.stats-kpi small,
.stats-card small,
.stats-price-row small {
  color: var(--muted);
}

.stats-kpi strong {
  font-size: 30px;
  line-height: 1;
}

.stats-insight-grid {
  display: grid;
  grid-template-columns: minmax(340px, 1.25fr) minmax(260px, 0.9fr) minmax(260px, 0.9fr);
  gap: 14px;
}

.stats-card {
  display: grid;
  gap: 16px;
  align-content: start;
  min-height: 250px;
  padding: 18px;
}

.stats-card h3 {
  font-size: 20px;
}

.stats-bar-list,
.stats-share-list,
.stats-price-list {
  display: grid;
  gap: 12px;
}

.stats-bar-row,
.stats-share-row,
.stats-price-row {
  display: grid;
  gap: 8px;
  align-items: center;
}

.stats-bar-row {
  grid-template-columns: 128px minmax(0, 1fr) 96px;
}

.stats-share-row {
  grid-template-columns: minmax(120px, 1fr) minmax(70px, 0.8fr) 44px;
}

.stats-price-row {
  grid-template-columns: minmax(0, 1fr) 86px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.stats-price-row small {
  grid-column: 1;
}

.stats-price-row strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  color: var(--green);
}

.stats-bar-row span,
.stats-share-row button,
.stats-price-row span {
  min-width: 0;
  font-weight: 800;
}

.stats-share-row button {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.stats-track,
.stats-share-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #e7ece3;
}

.stats-share-track {
  height: 8px;
}

.stats-track i,
.stats-share-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-2), var(--blue));
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tabs button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #405148;
  cursor: pointer;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 760;
}

.category-tabs button:hover {
  border-color: var(--green);
  background: var(--mint);
  color: var(--green);
}

.monthly-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  min-height: 240px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcf8;
}

.month-column {
  display: grid;
  gap: 6px;
  align-items: end;
  justify-items: center;
  min-width: 0;
}

.month-column strong {
  font-size: 18px;
}

.month-bar {
  width: min(42px, 70%);
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--green-2), var(--blue));
}

.month-column span {
  font-weight: 800;
}

.month-column small {
  color: var(--muted);
  font-size: 11px;
}

.bar-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 90px;
  gap: 12px;
  align-items: center;
}

.bar-track {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: #e8ede5;
}

.bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.order-table {
  display: grid;
  gap: 10px;
}

.orders-layout {
  display: grid;
}

.order-row {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.7fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcf8;
}

.order-row small {
  color: var(--muted);
}

.draft-list article {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.draft-list article span {
  grid-column: 1 / -1;
}

.catalog-view {
  min-height: calc(100vh - 72px);
  padding: 0;
}

.catalog-shell {
  display: grid;
  grid-template-columns: 280px minmax(240px, 260px) minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 clamp(16px, 3vw, 36px) 48px 0;
}

.catalog-sidebar {
  top: 72px;
  height: calc(100vh - 72px);
  border-right: 1px solid var(--line);
  border-radius: 0;
}

.filter-panel,
.catalog-results,
.cart-panel {
  margin-top: 28px;
}

.filter-panel,
.cart-panel {
  position: sticky;
  top: 100px;
  align-self: start;
  padding: 18px;
}

.filter-head {
  display: grid;
  justify-content: start;
  margin-bottom: 18px;
}

.filter-head h1,
.results-head h2 {
  font-size: 24px;
}

.search-field,
.filter-group,
.toggle-row {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.search-field span,
.filter-group strong {
  font-size: 13px;
  font-weight: 800;
}

input[type="search"],
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
}

.filter-option,
.toggle-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #394841;
  font-size: 14px;
}

.filter-option input,
.toggle-row input {
  accent-color: var(--green);
}

.catalog-results {
  min-width: 0;
}

.results-head {
  margin-bottom: 16px;
}

.results-head select {
  max-width: 210px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.draft-product-card {
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 0;
}

.product-card-visual-wrap {
  position: relative;
}

.product-visual {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 0;
  aspect-ratio: 1.08 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e6e6e6;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card {
  cursor: pointer;
}

.product-card:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.visual-orb,
.visual-pack,
.visual-line {
  position: absolute;
  display: block;
}

.visual-orb {
  width: 58%;
  height: 58%;
  left: 13%;
  top: 16%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  box-shadow: inset 0 -18px 36px rgba(24, 33, 29, 0.08);
}

.visual-pack {
  right: 12%;
  bottom: 22%;
  width: 38%;
  height: 42%;
  border-radius: 8px 8px 4px 4px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 16px 30px rgba(24, 33, 29, 0.14);
}

.visual-line {
  left: 16%;
  right: 16%;
  bottom: 18%;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.visual-label,
.visual-name {
  position: relative;
  z-index: 1;
  margin: 0 12px;
}

.visual-label {
  align-self: end;
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.visual-name {
  margin-bottom: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 840;
  line-height: 1.15;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}

.visual-produce {
  background-color: #6f9b63;
}

.visual-dairy {
  background-color: #7b9bb4;
}

.visual-meat {
  background-color: #b16959;
}

.visual-packaging {
  background-color: #a78551;
}

.visual-grocery {
  background-color: #8f7351;
}

.visual-cleaning {
  background-color: #4f8f8a;
}

.discount-badge,
.favorite-mini,
.add-mini {
  position: absolute;
  border: 0;
  border-radius: 3px;
  font-weight: 800;
}

.add-mini:disabled,
.primary-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.discount-badge {
  left: 8px;
  top: 8px;
  padding: 5px 8px;
  background: #000;
  color: #fff;
  font-size: 12px;
}

.favorite-mini {
  right: 8px;
  top: 8px;
  width: 30px;
  height: 30px;
  background: #fff;
  color: #c8c8c8;
  cursor: pointer;
}

.add-mini {
  right: 8px;
  bottom: 8px;
  width: 34px;
  height: 34px;
  background: #fff;
  color: #111;
  cursor: pointer;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-card h3 {
  margin: 0;
  min-height: 42px;
  font-size: 16px;
  line-height: 1.25;
}

.product-rating {
  color: #ffc400;
  font-size: 12px;
}

.product-rating span {
  color: var(--muted);
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meta-chip {
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef2ea;
  color: #405148;
  font-size: 12px;
  font-weight: 700;
}

.product-price {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 12px;
}

.product-price strong {
  font-size: 20px;
}

.product-price del {
  color: #cf6d83;
  font-size: 12px;
}

.delivery-badge {
  display: inline-flex;
  justify-content: center;
  border: 1px solid #8f72ff;
  border-radius: 3px;
  color: #6d52d8;
  font-size: 12px;
}

.stock-line {
  color: #39a95e !important;
}

.stock-line.stop {
  color: var(--red) !important;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.cart-line-controls {
  display: grid;
  grid-template-columns: minmax(62px, 1fr) auto minmax(80px, auto);
  gap: 10px;
  align-items: center;
}

.small-stepper {
  grid-template-columns: 24px 30px 24px;
}

.small-stepper button {
  min-height: 28px;
}

.icon-action {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.icon-action:hover {
  border-color: var(--red);
  color: var(--red);
}

.product-detail-view {
  padding: clamp(16px, 3vw, 32px);
}

.product-detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  max-width: var(--max);
  margin: 0 auto;
}

.product-detail-main {
  min-width: 0;
}

.detail-back {
  margin-bottom: 12px;
}

.detail-breadcrumbs {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.detail-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.detail-image {
  min-width: 0;
}

.product-visual-large {
  min-height: 360px;
  aspect-ratio: 1.02 / 1;
}

.product-visual-large .visual-label {
  font-size: 13px;
}

.product-visual-large .visual-name {
  margin-bottom: 22px;
  font-size: 24px;
  max-width: 80%;
}

.supplier-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcf8;
}

.supplier-card h3 {
  font-size: 20px;
}

.supplier-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.supplier-facts span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 6px;
  background: #eef2ea;
  color: var(--muted);
  font-size: 12px;
}

.supplier-facts strong {
  color: var(--ink);
  font-size: 13px;
}

.detail-info {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.detail-info h1 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
}

.detail-rating-row,
.detail-buy-row,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.detail-rating-row {
  gap: 14px;
}

.detail-description {
  max-width: 680px;
  color: #34443d;
  font-size: 17px;
}

.detail-buy-row {
  justify-content: space-between;
  padding: 12px 0;
}

.detail-price {
  display: grid;
  gap: 2px;
}

.detail-price del {
  color: #cf6d83;
  font-weight: 700;
}

.detail-price strong {
  font-size: 30px;
}

.detail-stepper {
  grid-template-columns: 42px 56px 42px;
}

.detail-stepper button {
  min-height: 44px;
}

.detail-actions > * {
  flex: 1 1 220px;
}

.detail-actions .secondary-action {
  border-color: var(--line);
  background: #fff;
  color: var(--green);
}

.detail-specs {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.detail-specs h2,
.similar-block h2 {
  font-size: 22px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
}

.spec-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.spec-row span {
  color: var(--muted);
  font-size: 13px;
}

.similar-block {
  margin-top: 28px;
}

.similar-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.empty-state {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.app-section {
  display: none;
}

.app-section.active {
  display: grid;
  gap: 18px;
  align-content: start;
}

.company-profile {
  align-content: start;
}

.profile-summary {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.avatar-circle {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 999px;
  background: #ececec;
  font-weight: 800;
}

.company-dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.company-dashboard article {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: #f3f3f3;
}

.company-dashboard span {
  color: var(--muted);
  font-size: 13px;
}

.company-dashboard strong {
  font-size: 28px;
}

.add-company-card {
  min-height: 180px;
  border: 1px solid #777;
  background: #e2e2e2;
  cursor: pointer;
  font-weight: 800;
}

.supplier-catalog-table {
  display: grid;
  gap: 10px;
}

.supplier-catalog-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 110px 92px auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcf8;
}

.catalog-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.catalog-thumb,
.cart-thumb {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  background: #e6e6e6;
}

.cart-view {
  padding: 34px clamp(16px, 4vw, 48px);
}

.cart-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  max-width: 1120px;
  margin: 0 auto;
}

.buyer-cart-section .cart-page {
  max-width: none;
  margin: 0;
}

.cart-main-panel,
.checkout-panel {
  background: #f6f6f6;
}

.breadcrumbs {
  display: flex;
  gap: 18px;
  margin-bottom: 22px;
  color: #111;
  font-size: 13px;
}

.breadcrumbs button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.cart-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.cart-title-row h1 {
  font-size: 34px;
}

.cart-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.full-cart-list {
  display: grid;
  gap: 16px;
}

.cart-supplier-group {
  background: #e9e9e9;
  padding: 10px;
}

.cart-supplier-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 0 12px;
}

.cart-supplier-head > div {
  display: grid;
  gap: 3px;
}

.full-cart-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 110px 90px 110px;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid #d0d0d0;
}

.qty-stepper {
  display: inline-grid;
  grid-template-columns: 28px 34px 28px;
  align-items: center;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.qty-stepper button {
  min-height: 30px;
  border: 0;
  background: #fff;
  cursor: pointer;
}

.qty-stepper span {
  text-align: center;
}

.checkout-panel {
  display: grid;
  gap: 14px;
  align-self: start;
  padding: 22px;
  border-radius: var(--radius);
}

.checkout-panel h2 {
  font-size: 22px;
}

.checkout-panel label {
  display: grid;
  gap: 5px;
  font-size: 13px;
}

.checkout-panel input {
  min-height: 34px;
  border: 1px solid #111;
  border-radius: 5px;
  padding: 6px 8px;
  background: transparent;
}

.checkout-summary {
  display: grid;
  gap: 7px;
  margin: 6px 0;
}

.checkout-summary div,
.checkout-total {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.checkout-summary dt,
.checkout-summary dd {
  margin: 0;
}

.checkout-total strong {
  font-size: 26px;
}

@media (max-width: 1180px) {
  .hero-section,
  .catalog-shell,
  .product-detail-shell,
  .cart-page {
    grid-template-columns: 1fr;
  }

  .catalog-shell {
    padding: 16px;
  }

  .hero-section {
    min-height: auto;
  }

  .filter-panel,
  .catalog-results,
  .cart-panel {
    margin-top: 0;
  }

  .filter-panel,
  .cart-panel,
  .catalog-sidebar {
    position: static;
    height: auto;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .similar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .logo-box {
    min-width: 0;
  }

  .menu-toggle {
    display: inline-block;
    grid-column: 2;
    grid-row: 1;
  }

  .site-nav,
  .top-search,
  .header-tools,
  .header-actions {
    display: none;
    width: 100%;
  }

  .site-header.nav-open .site-nav,
  .site-header.nav-open .top-search,
  .site-header.nav-open .header-tools,
  .site-header.nav-open .header-actions {
    display: grid;
  }

  .site-nav {
    order: 5;
    grid-column: 1 / -1;
    gap: 4px;
  }

  .header-actions {
    order: 6;
    grid-column: 1 / -1;
  }

  .top-search {
    order: 4;
    grid-column: 1 / -1;
  }

  .header-tools {
    order: 6;
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, max-content);
    justify-content: start;
  }

  .hero-section,
  .section-band,
  .section-band {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-media,
  .hero-media img {
    min-height: 380px;
  }

  .hero-metrics,
  .value-grid,
  .benefit-grid,
  .benefit-heading,
  .dashboard-grid,
  .split-layout,
  .chat-workspace,
  .app-view.active {
    display: block;
  }

  .chat-list {
    margin-bottom: 14px;
  }

  .app-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .app-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-top,
  .panel-head,
  .results-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats-controls {
    justify-content: flex-start;
  }

  .bar-row,
  .order-row,
  .digest-item,
  .supplier-catalog-row,
  .spec-grid,
  .full-cart-row {
    grid-template-columns: 1fr;
  }

  .monthly-chart {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats-kpi-grid,
  .stats-insight-grid {
    grid-template-columns: 1fr;
  }

  .digest-item h3,
  .digest-item p {
    grid-column: 1;
  }

  .digest-item time {
    justify-self: start;
  }

  .company-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .supplier-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .hero-actions,
  .header-actions {
    grid-template-columns: 1fr;
  }

  .hero-actions button,
  .header-actions button {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .similar-grid {
    grid-template-columns: 1fr;
  }

  .cart-line-controls,
  .spec-row,
  .stats-bar-row,
  .stats-share-row,
  .stats-price-row {
    grid-template-columns: 1fr;
  }

  .stats-price-row strong {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .product-visual-large {
    min-height: 280px;
  }

  .app-menu {
    grid-template-columns: 1fr;
  }

  .company-dashboard {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 34px;
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  .hero-text {
    font-size: 17px;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-copy {
    max-width: calc(100vw - 32px);
  }
}
