body[data-view="products"] {
  background: #f6f8fc;
}

body[data-view="products"] .site-header,
body[data-view="products"] .site-footer {
  display: none;
}

.catalog-page,
.catalog-category-dialog {
  color: #1e293b;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

.catalog-page {
  width: min(100%, var(--connect-page-width));
  min-height: calc(100dvh - var(--connect-nav-height));
  margin: 0 auto;
  padding: 0 0 32px;
  background: #f6f8fc;
}

.catalog-intro {
  padding: calc(18px + env(safe-area-inset-top)) 20px 18px;
  background: #e1edfc;
}
.catalog-intro-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.catalog-title {
  margin: 0;
  color: #17365d;
  font-size: clamp(26px, 5vw, 32px);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.catalog-subtitle {
  margin: 6px 0 0;
  color: #526276;
  font-size: 14px;
  line-height: 1.6;
}
.catalog-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 16px;
  padding: 0 13px;
  border: 1px solid #b7cce8;
  border-radius: 10px;
  background: #fff;
  color: #5c6f86;
}
.catalog-search:focus-within { outline: 2px solid #1762d3; outline-offset: 2px; }
.catalog-search .connect-icon { font-size: 22px; }
.catalog-search input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1e293b;
  caret-color: #1762d3;
  font: inherit;
  font-size: 16px;
  outline: none;
  box-shadow: none;
}
.catalog-search input::placeholder { color: #64748b; opacity: 1; }

.catalog-shortcuts { padding: 16px 12px 0; }
.catalog-category-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.catalog-category-grid { display: contents; }
.catalog-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 76px;
  padding: 0 2px 5px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #4b5c73;
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
}
.catalog-category__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e8f1ff;
  color: #1762d3;
  font-size: 26px;
  transition: background-color .18s ease, color .18s ease;
}
.catalog-category[data-product-category="adhesion"] .catalog-category__icon,
.catalog-category[data-product-category="surface"] .catalog-category__icon { background: #e6f4ee; color: #278269; }
.catalog-category--all .catalog-category__icon { background: #edf0f5; color: #53647c; }
.catalog-category:hover .catalog-category__icon { background: #d8e7fc; }
.catalog-category[aria-pressed="true"] { color: #1155bb; font-weight: 600; }
.catalog-category[aria-pressed="true"] .catalog-category__icon { background: #1762d3; color: #fff; }

.catalog-results { margin-top: 14px; padding: 0 16px; scroll-margin-top: 20px; }
.catalog-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.catalog-heading h2 { flex: 1 1 110px; margin: 0; color: #20334f; font-size: 20px; font-weight: 650; line-height: 1.45; }
.catalog-filters { display: flex; flex: none; align-items: center; gap: 8px; }
.catalog-filter { position: relative; display: flex; align-items: center; max-width: 112px; }
.catalog-filter select {
  width: 100%;
  min-width: 76px;
  min-height: 44px;
  padding: 0 28px 0 12px;
  appearance: none;
  border: 0;
  border-radius: 22px;
  background: #eaf0f7;
  color: #4b5c73;
  font: inherit;
  font-size: 13px;
  text-overflow: ellipsis;
  cursor: pointer;
}
.catalog-filter .connect-icon { position: absolute; right: 10px; width: 16px; height: 16px; color: #526276; transform: rotate(90deg); pointer-events: none; }
.catalog-filter select.is-filtered { background: #e0ecff; color: #1155bb; }
.catalog-filter option { background: #fff; color: #1e293b; }
.catalog-text-button { min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: #1155bb; font: inherit; font-size: 13px; cursor: pointer; }
.catalog-text-button:hover { color: #073e9e; text-decoration: underline; text-underline-offset: 3px; }
.catalog-clear { display: block; margin: 0 0 -4px auto; }
.catalog-list { display: grid; gap: 12px; margin-top: 12px; }
.catalog-product {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #1e293b;
  box-shadow: 0 4px 16px #263e6510;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background-color .18s ease, box-shadow .18s ease;
}
.catalog-product:hover { background: #fcfdff; box-shadow: 0 6px 20px #263e651a; }
.catalog-product__text { display: block; min-width: 0; }
.catalog-product__heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 12px; }
.catalog-product__heading strong { min-width: 0; font-size: 19px; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.catalog-product__category { display: inline-flex; align-items: center; gap: 6px; color: #526276; font-size: 11px; font-weight: 400; line-height: 1.5; }
.catalog-product__category::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #1762d3; }
.catalog-product__category[data-category="surface"]::before,
.catalog-product__category[data-category="adhesion"]::before { background: #278269; }
.catalog-product__summary { display: block; margin-top: 8px; padding-right: 28px; color: #526276; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.catalog-product__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding-right: 28px; }
.catalog-product__tags:empty { display: none; }
.catalog-product__tags > span { padding: 3px 7px; border-radius: 4px; background: #eef2f7; color: #526276; font-size: 11px; line-height: 1.5; }
.catalog-product__arrow { position: absolute; top: 50%; right: 14px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #edf4ff; color: #1762d3; }
.catalog-product__arrow .connect-icon { font-size: 20px; }
.catalog-empty { margin: 18px 0; padding: 24px 16px; border-radius: 12px; background: #fff; color: #526276; font-size: 14px; text-align: center; }
.catalog-page ::selection { background: #c7ddfb; color: #17365d; }
.catalog-page :is(button, a, select):focus-visible,
.catalog-category-dialog :is(button, a):focus-visible { outline: 2px solid #1762d3; outline-offset: 3px; }
.catalog-page [hidden] { display: none !important; }


.catalog-category-dialog {
  width: min(calc(100% - 24px), 480px);
  max-height: min(80dvh, 600px);
  padding: 0;
  border: 1px solid #e1ebf8;
  border-radius: 20px;
  background: #f9fbff;
  box-shadow: 0 20px 60px #12234730;
}

.catalog-category-dialog::backdrop { background: #14284c60; }

.catalog-category-dialog__header {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  background: #f9fbff;
}

.catalog-category-dialog__header h2 { margin: 0; font-size: 20px; }

.catalog-close {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #edf2fa;
  color: #415675;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.catalog-category-list { padding: 0 16px 16px; }

.catalog-category-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 45px;
  padding: 6px 8px;
  border: 0;
  border-bottom: 1px solid #e4ecf8;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
}

.catalog-category-option:last-child { border-bottom: 0; }
.catalog-category-option:hover { background: #eef5ff; }
.catalog-category-option[aria-pressed="true"] { color: #105bce; }
.catalog-category-option__count { color: #5e6c84; font-size: 12px; }

@media (max-width: 360px) {
  .catalog-intro { padding-inline: 16px; }
  .catalog-shortcuts { padding-inline: 8px; }
  .catalog-category__icon { width: 44px; height: 44px; }
  .catalog-category { font-size: 11px; }
  .catalog-results { padding-inline: 12px; }
  .catalog-heading h2 { font-size: 18px; }
  .catalog-filter { max-width: 92px; }
  .catalog-filter select { min-width: 68px; padding-left: 10px; }
  .catalog-product { padding: 16px 14px; }
  .catalog-product__heading strong { font-size: 18px; }
}
@media (min-width: 600px) {
  .catalog-intro { padding: calc(28px + env(safe-area-inset-top)) 28px 28px; }
  .catalog-search { max-width: 620px; }
  .catalog-shortcuts { padding: 26px 24px 0; }
  .catalog-category { font-size: 14px; }
  .catalog-category__icon { width: 54px; height: 54px; font-size: 28px; }
  .catalog-results { padding-inline: 28px; }
  .catalog-product { padding: 20px; }
  .catalog-product__category { font-size: 12px; }
}
:lang(en) .catalog-category { font-size: 11px; }
:lang(en) .catalog-heading h2 { flex-basis: 140px; }
:lang(en) .catalog-filter--system { width: 136px; max-width: 136px; }
@media (prefers-reduced-motion: reduce) {
  .catalog-category__icon, .catalog-product { transition: none; }
}
