:root {
  --blue: #242a30;
  --blue-dark: #171c21;
  --blue-border: #11161b;
  --accent: #f58220;
  --accent-action: #d86612;
  --accent-action-hover: #bf570f;
  --accent-action-active: #a94c0c;
  --accent-soft: #fff3e6;
  --logo-gray: #404040;
  --logo-gray-dark: #303030;
  --ink: #111827;
  --muted: #56657a;
  --line: #d5dde7;
  --soft: #f5f7fa;
  --tab: #f3f5f6;
  --panel: #f8fafc;
  --shell: 1380px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1.42;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid rgba(245, 130, 32, 0.28);
  outline-offset: 3px;
}

.shell {
  width: min(var(--shell), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-row {
  min-height: 74px;
  display: grid;
  grid-template-columns: 220px 124px minmax(340px, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 210px;
  min-height: 58px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.logo img {
  width: 206px;
  height: auto;
  filter: none;
}

.catalog-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--blue-border);
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  padding-inline: 14px;
  font-weight: 700;
  box-shadow: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.catalog-button:hover {
  border-color: var(--accent);
  background: var(--blue-dark);
}

.catalog-button:active {
  background: #11161b;
}

.catalog-button span,
.catalog-button span::before,
.catalog-button span::after {
  width: 18px;
  height: 2px;
  display: block;
  background: currentColor;
  border-radius: 8px;
  content: "";
}

.catalog-button span {
  position: relative;
}

.catalog-button span::before,
.catalog-button span::after {
  position: absolute;
  left: 0;
}

.catalog-button span::before {
  top: -6px;
}

.catalog-button span::after {
  top: 6px;
}

.header-search {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 78px;
  min-height: 38px;
  border: 1px solid #cfd8e3;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
  overflow: visible;
}

.header-search input {
  min-width: 0;
  border: 0;
  border-radius: 4px 0 0 4px;
  background: #fff;
  padding-inline: 12px;
  font-size: 14px;
  color: var(--ink);
}

.header-search input::placeholder {
  color: #98a2b3;
}

.header-search button {
  border: 1px solid var(--blue-border);
  border-left: 1px solid var(--blue-border);
  border-radius: 0 4px 4px 0;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  margin: 0;
  box-shadow: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.header-search button:hover {
  border-color: var(--accent);
  background: var(--blue-dark);
  box-shadow: 0 0 0 1px var(--accent);
}

.header-search button:active {
  border-color: var(--accent-action-active);
  background: #11161b;
  box-shadow: 0 0 0 1px var(--accent-action-active);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.cart-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f7f8fa;
  padding-inline: 12px;
  box-shadow: none;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.cart-link:hover {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 1px var(--blue);
}

.cart-link b {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  background: var(--accent-action);
  color: #fff;
  font-size: 12px;
  box-shadow: none;
}

.catalog-panel {
  border-top: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
}

.catalog-panel__inner {
  padding: 14px 0 18px;
}

.catalog-panel__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background: var(--panel);
  padding: 10px 12px;
}

.catalog-panel__head b {
  font-size: 14px;
}

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

.nomenclature-tree {
  max-height: 450px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 0 0 4px 4px;
  background: #fff;
  padding: 8px 10px 12px;
}

.nomenclature-tree details {
  margin-left: 18px;
}

.nomenclature-tree > details {
  margin-left: 0;
}

.nomenclature-tree summary,
.nomenclature-tree a {
  min-height: 28px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  color: var(--blue);
  padding: 4px 8px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.nomenclature-tree summary {
  cursor: pointer;
  font-weight: 700;
}

.nomenclature-tree summary .tree-category-link {
  min-height: 0;
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
}

.nomenclature-tree summary:hover,
.nomenclature-tree a:hover {
  background: var(--accent-soft);
}

.nomenclature-tree a {
  margin-left: 26px;
  color: #333;
  font-size: 13px;
}

.nomenclature-tree b {
  min-width: 0;
  font-weight: 700;
}

.catalog-tree-status {
  margin: 0 0 8px;
  border: 1px solid #f6d7a8;
  border-radius: 4px;
  background: #fff8ed;
  color: #7a4b00;
  padding: 8px 10px;
  font-size: 13px;
}

.tree-code,
.nomenclature-tree a span {
  min-width: 96px;
  flex: 0 0 96px;
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  font-weight: 400;
}

.search-suggestions {
  position: absolute;
  left: -2px;
  right: 56px;
  top: 58px;
  z-index: 8;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.1);
}

.search-suggestions button {
  width: 100%;
  display: grid;
  grid-template-columns: 126px 1fr auto;
  gap: 14px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px;
  text-align: left;
}

.search-suggestions button:hover {
  background: var(--soft);
}

.search-suggestions button:last-child {
  border-bottom: 0;
}

.search-suggestions span {
  color: var(--accent-action);
  font-size: 13px;
  font-weight: 800;
}

.search-suggestions em {
  color: var(--muted);
  font-style: normal;
}

.category-showcase {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 24px 0 34px;
  overflow: visible;
}

.showcase-card {
  min-width: 0;
  min-height: 152px;
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  padding: 12px 13px 84px;
  overflow: hidden;
}

.showcase-card.has-image {
  align-items: stretch;
}

.subcategory-tile.has-image {
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
}

.category-card-media {
  grid-row: 1 / span 3;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.showcase-card .category-card-media {
  position: absolute;
  right: 8px;
  bottom: -14px;
  width: 154px;
  height: 114px;
  z-index: 0;
  pointer-events: none;
}

.category-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.showcase-card b {
  color: #222;
  position: relative;
  z-index: 1;
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: normal;
}

.showcase-card small {
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.showcase-card > span:not(.category-card-media) {
  color: #344054;
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 5px;
  font-size: 13px;
}

.showcase-card:hover {
  border-color: #b9c7d7;
  background: #eef3f8;
}

.is-admin-ui [data-agent-entity-type] {
  cursor: context-menu;
}

.agent-admin-badge {
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  border: 1px solid #f0b36a;
  border-radius: 4px;
  background: #fff7ed;
  color: #9a4b0a;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 800;
}

.manager-session {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  border: 1px solid #cfd8e3;
  border-radius: 4px;
  background: #f8fafc;
  padding: 3px 5px 3px 9px;
  color: #344054;
  font-size: 12px;
}

.manager-session[hidden] {
  display: none;
}

.manager-session button {
  min-height: 22px;
  border: 0;
  border-radius: 3px;
  background: #175cd3;
  color: #fff;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
}

.manager-session button:hover {
  background: #0b4ba3;
}

.manager-session.is-error {
  border-color: #f2b8b5;
  background: #fff6f5;
  color: #b42318;
}

.catalog-auth-pending main,
.catalog-auth-pending .catalog-button,
.catalog-auth-pending .header-search,
.catalog-auth-pending .cart-link,
.catalog-unauthenticated main,
.catalog-unauthenticated .catalog-button,
.catalog-unauthenticated .header-search,
.catalog-unauthenticated .cart-link {
  visibility: hidden;
}

.catalog-login-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.5);
  padding: 20px;
}

.catalog-login-dialog {
  width: min(390px, 100%);
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.24);
  padding: 20px;
}

.catalog-login-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 18px;
}

.catalog-login-dialog__head button {
  border: 0;
  background: transparent;
  color: #667085;
  font-size: 24px;
}

.catalog-login-dialog label {
  display: grid;
  gap: 6px;
  margin-bottom: 13px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.catalog-login-dialog input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #b9c7d7;
  border-radius: 4px;
  padding: 8px 10px;
  font: inherit;
}

.catalog-login-dialog > button[type="submit"] {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 4px;
  background: #175cd3;
  color: #fff;
  font-weight: 800;
}

.catalog-login-dialog__status {
  min-height: 20px;
  margin: 2px 0 10px;
  color: #b42318;
  font-size: 13px;
}

.agent-context-menu {
  position: fixed;
  z-index: 120;
  min-width: 170px;
  border: 1px solid #b9c7d7;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.16);
  padding: 6px;
}

.agent-context-menu button {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 3px;
  background: #fff;
  color: #17212f;
  padding: 7px 10px;
  text-align: left;
  font-weight: 700;
}

.agent-context-menu button:hover {
  background: var(--accent-soft);
  color: #7a3c06;
}

.agent-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  background: rgba(17, 24, 39, 0.38);
  padding: 20px;
}

.agent-dialog {
  width: min(560px, 100%);
  display: grid;
  gap: 12px;
  border: 1px solid #b9c7d7;
  border-radius: 6px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 20px 48px rgba(17, 24, 39, 0.22);
}

.agent-dialog__head,
.agent-dialog__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.agent-dialog__head b {
  font-size: 18px;
}

.agent-dialog__close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: #17212f;
  font-size: 22px;
  line-height: 1;
}

.agent-dialog__entity {
  border: 1px solid #edf1f5;
  border-radius: 4px;
  background: var(--panel);
  color: #344054;
  padding: 9px 10px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.agent-dialog label {
  display: grid;
  gap: 6px;
  color: #17212f;
  font-weight: 700;
}

.agent-dialog textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #cfd8e3;
  border-radius: 4px;
  padding: 10px;
  color: #17212f;
  font: 14px/1.45 Arial, "Helvetica Neue", sans-serif;
}

.agent-dialog__status {
  min-height: 18px;
  color: var(--muted);
  font-size: 13px;
}

.agent-dialog__actions {
  justify-content: flex-end;
}

.agent-dialog__actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: #17212f;
  padding: 0 12px;
  font-weight: 700;
}

.agent-dialog__actions button[type="submit"] {
  border-color: var(--accent-action);
  background: var(--accent-action);
  color: #fff;
}

.agent-dialog__actions button[type="submit"]:disabled {
  opacity: 0.65;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 18px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a {
  color: #1f4e79;
}

.breadcrumbs b {
  color: var(--ink);
  font-weight: 600;
}

.category-page {
  padding-bottom: 42px;
}

.category-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.catalog-sidebar {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.catalog-sidebar__title {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
}

.catalog-sidebar__tree {
  max-height: calc(100vh - 142px);
  overflow: auto;
  padding: 8px;
}

.side-tree details {
  margin-left: 12px;
}

.side-tree > details {
  margin-left: 0;
}

.side-tree summary,
.side-tree a {
  min-height: 27px;
  display: block;
  border-radius: 4px;
  padding: 5px 7px;
  color: #333;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.side-tree summary {
  cursor: pointer;
}

.side-tree summary a {
  min-height: 0;
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
}

.side-tree a {
  margin-left: 18px;
  font-weight: 400;
}

.side-tree summary:hover,
.side-tree a:hover,
.side-tree .is-current {
  background: var(--tab);
  color: #003b67;
}

.product-filter {
  display: grid;
  gap: 0;
}

.product-filter__controls {
  display: flex;
  justify-content: flex-end;
  border-bottom: 1px solid #edf1f5;
  padding: 8px 10px;
}

.product-filter__controls button {
  border: 0;
  background: transparent;
  color: #175cd3;
  padding: 3px 2px;
  font-size: 12px;
  font-weight: 700;
}

.product-filter__controls button:hover {
  color: #0b4ba3;
  text-decoration: underline;
}

.product-filter fieldset {
  margin: 0;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  padding: 10px 12px 12px;
}

.product-filter fieldset:last-child {
  border-bottom: 0;
}

.product-filter legend {
  padding: 0 0 6px;
  color: #24364b;
  font-size: 13px;
  font-weight: 700;
}

.product-filter label {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: start;
  margin: 7px 0 0;
  color: #344054;
  font-size: 13px;
}

.product-filter input {
  width: 14px;
  height: 14px;
  margin: 2px 0 0;
}

.product-filter label span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-filter label small {
  color: var(--muted);
  font-size: 12px;
}

.product-filter-empty {
  color: var(--muted);
  padding: 12px;
  font-size: 13px;
}

.category-content {
  min-width: 0;
}

.category-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.category-heading h1 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.3;
}

.category-heading span {
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

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

.subcategory-tile {
  min-height: 98px;
  display: grid;
  align-content: start;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  padding: 13px 14px;
}

.subcategory-tile:hover {
  border-color: #b9c7d7;
  background: var(--tab);
}

.subcategory-tile b {
  color: #003b67;
  font-size: 15px;
}

.subcategory-tile small {
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.subcategory-tile span {
  color: #344054;
  font-size: 13px;
}

.empty-category {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--muted);
  padding: 18px;
  font-size: 13px;
}

.product-table-wrap {
  min-width: 0;
}

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

.product-card {
  min-width: 0;
  display: grid;
  grid-template-rows: 190px minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.product-card:hover {
  border-color: #b9c7d7;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
}

.product-card__media {
  min-width: 0;
  display: grid;
  place-items: center;
  border-bottom: 1px solid #edf1f5;
  background: #fff;
  padding: 14px;
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: 1px dashed #d7dde5;
  background: #f8fafc;
  color: #98a2b3;
  font-size: 12px;
}

.product-card__body {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px 13px;
}

.product-card__title {
  color: #17212f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.product-card__title:hover {
  color: #175cd3;
}

.product-card__identifiers {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: #667085;
  font-size: 11px;
}

.product-card__attributes {
  display: grid;
  grid-template-columns: minmax(80px, 0.8fr) minmax(0, 1.2fr);
  gap: 4px 8px;
  margin: 2px 0 0;
  font-size: 12px;
}

.product-card__attributes dt,
.product-card__attributes dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.product-card__attributes dt {
  color: #667085;
}

.product-card__attributes dd {
  color: #24364b;
  font-weight: 600;
}

.product-card__footer {
  border-top: 1px solid #edf1f5;
  padding: 11px 13px 12px;
}

.product-card__price {
  min-height: 28px;
  margin-bottom: 8px;
  color: #17212f;
  font-size: 18px;
  font-weight: 800;
}

.product-card__price.is-unavailable {
  color: #667085;
  font-size: 12px;
  font-weight: 600;
}

.product-card__footer .product-buy {
  grid-template-columns: 76px minmax(88px, 1fr);
}

.product-table-count {
  margin-bottom: 8px;
  color: #667085;
  font-size: 12px;
}

.product-table-scroll {
  width: 100%;
  overflow: auto;
  border: 1px solid #d7dde5;
  border-radius: 0;
  background: #fff;
}

.product-table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  background: #fff;
  font: 14px/1.35 Arial, sans-serif;
}

.product-table th,
.product-table td {
  border: 1px solid #d7dde5;
  min-width: min-content;
  padding: 6px 7px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}

.product-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef2f6;
  color: #17212f;
  font-weight: 700;
  white-space: normal;
}

.product-table td {
  color: #17212f;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.product-table th:first-child,
.product-table td:first-child {
  width: 30%;
  min-width: min-content;
}

.product-table th:nth-child(n + 2),
.product-table td:nth-child(n + 2) {
  width: auto;
  min-width: min-content;
}

.product-table th:last-child,
.product-table td:last-child {
  width: 190px;
  min-width: 190px;
  position: sticky;
  right: 0;
  z-index: 2;
  background: #fff;
  box-shadow: -1px 0 0 #d7dde5;
}

.product-table th:last-child {
  z-index: 4;
  background: #eef2f6;
}

.product-table td a {
  display: block;
  overflow: visible;
  color: #17212f;
  font-weight: 400;
  text-overflow: clip;
  white-space: normal;
}

.product-table td a:hover {
  color: #175cd3;
}

.product-table tbody tr:hover {
  background: #eaf4ff;
}

.product-table tbody tr:hover td:last-child {
  background: #eaf4ff;
}

.leaf-product-table-wrap {
  display: block;
  width: 100%;
  overflow-x: auto;
  border: 1px solid #d7dde5;
  background: #fff;
}

.leaf-product-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  font: 13px/1.3 Arial, sans-serif;
}

.leaf-product-table th,
.leaf-product-table td {
  border-bottom: 1px solid #e5eaf0;
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
}

.leaf-product-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  min-width: 110px;
  background: #eef2f6;
  color: #17212f;
  font-weight: 800;
  white-space: normal;
}

.leaf-product-table th:first-child,
.leaf-product-table td:first-child {
  width: 34%;
  min-width: 290px;
}

.leaf-product-table th:nth-last-child(2),
.leaf-product-table td:nth-last-child(2) {
  min-width: 150px;
  white-space: nowrap;
}

.leaf-product-table th:last-child,
.leaf-product-table td:last-child {
  width: 210px;
  min-width: 210px;
}

.leaf-product-table tbody tr:nth-child(even) {
  background: #fbfcfd;
}

.leaf-product-table tbody tr:hover {
  background: #eaf4ff;
}

.leaf-product-table td.is-empty,
.leaf-product-card__attributes .is-empty {
  color: #98a2b3;
}

.leaf-product__identity {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.leaf-product__identity img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid #edf1f5;
  object-fit: contain;
  background: #fff;
}

.leaf-product__identity > div {
  min-width: 0;
}

.leaf-product__name {
  display: block;
  color: #17212f;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.leaf-product__name:hover {
  color: #175cd3;
}

.leaf-product__identity small {
  display: block;
  margin-top: 3px;
  color: #667085;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.leaf-product-table .product-card__price {
  margin: 0;
  font-size: 14px;
}

.leaf-product-table .product-buy {
  min-width: 188px;
}

.leaf-product-cards {
  display: none;
}

.leaf-product-card {
  border: 1px solid #d7dde5;
  border-radius: 6px;
  background: #fff;
  padding: 12px;
}

.leaf-product-card + .leaf-product-card {
  margin-top: 10px;
}

.leaf-product-card__attributes {
  display: grid;
  grid-template-columns: minmax(115px, 0.8fr) minmax(0, 1.2fr);
  gap: 5px 10px;
  margin: 12px 0;
  font-size: 12px;
}

.leaf-product-card__attributes dt,
.leaf-product-card__attributes dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.leaf-product-card__attributes dt {
  color: #667085;
}

.leaf-product-card__attributes dd {
  color: #24364b;
  font-weight: 700;
}

.leaf-product-card__footer {
  border-top: 1px solid #edf1f5;
  padding-top: 10px;
}

.product-name {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.product-code {
  display: block;
  overflow: visible;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: clip;
  white-space: normal;
}

.product-buy-cell {
  overflow: visible;
  white-space: normal;
}

.product-buy {
  display: grid;
  grid-template-columns: 76px minmax(88px, 1fr);
  gap: 5px 8px;
  align-items: center;
}

.product-qty {
  display: grid;
  grid-template-columns: 22px 32px 22px;
  height: 28px;
  border: 1px solid #d7dde5;
  background: #fff;
}

.product-qty button,
.product-qty input,
.add-cart-button {
  border: 0;
  border-radius: 0;
  font: 12px/1.2 Arial, sans-serif;
}

.product-qty button {
  display: grid;
  place-items: center;
  background: #eef2f6;
  color: #17212f;
  padding: 0;
}

.product-qty button:hover {
  background: #dfe7f0;
}

.product-qty input {
  width: 100%;
  min-width: 0;
  border-inline: 1px solid #d7dde5;
  color: #17212f;
  padding: 0 3px;
  text-align: center;
}

.product-qty input::-webkit-outer-spin-button,
.product-qty input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.add-cart-button {
  min-height: 28px;
  background: var(--accent-action);
  color: #fff;
  padding: 0 10px;
  font-weight: 700;
  white-space: nowrap;
}

.add-cart-button:hover {
  background: var(--accent-action-hover);
}

.product-stock {
  grid-column: 1 / -1;
  color: #067647;
  font-size: 12px;
  line-height: 1.2;
}

.product-buy.is-out .product-stock {
  color: #b42318;
}

.product-buy.is-out .product-qty,
.product-buy.is-out .add-cart-button {
  opacity: 0.55;
}

.product-buy button:disabled,
.product-buy input:disabled {
  cursor: default;
}

@media (max-width: 1180px) {
  .header-row {
    grid-template-columns: 206px 124px 1fr;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-bottom: 14px;
  }

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

  .category-layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }

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

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

}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 28px, var(--shell));
  }

  .header-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 0;
  }

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

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

  .catalog-panel__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .category-showcase {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 0;
  }

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

  .category-heading {
    flex-direction: column;
  }

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

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

  .leaf-product-table-wrap {
    display: none;
  }

  .leaf-product-cards {
    display: block;
  }

  .product-card {
    grid-template-rows: 220px minmax(0, 1fr) auto;
  }

  .search-suggestions {
    position: static;
    grid-column: 1 / -1;
    margin-top: 8px;
  }

  .search-suggestions button {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
