.catalog-v2 {
  background: #0d142d;
  border-top: 1px solid rgba(126, 148, 227, 0.24);
  color: #edf1ff;
  padding: 32px 0 80px;
}

.catalog-v2-shell {
  margin: 0 auto;
  width: min(1220px, calc(100% - 56px));
}

.catalog-v2-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.catalog-v2-types button {
  background: transparent;
  border: 1px solid rgba(157, 174, 255, 0.3);
  border-radius: 0;
  color: #b8c4e5;
  cursor: pointer;
  font: 700 12px inherit;
  min-height: 38px;
  padding: 8px 13px;
}

.catalog-v2-types button:hover,
.catalog-v2-types button.is-active {
  background: #7188ef;
  border-color: #7188ef;
  color: #07102b;
}

.catalog-v2-summary {
  align-items: center;
  color: #91a0c5;
  display: flex;
  font-size: 12px;
  gap: 20px;
  justify-content: space-between;
  min-height: 48px;
}

.catalog-v2-summary strong {
  color: #edf1ff;
}

.catalog-v2-table-head,
.catalog-v2-filter-row,
.catalog-v2-row {
  align-items: center;
  display: grid;
  grid-template-columns: 126px 228px 190px 200px 280px 130px;
}

.catalog-v2-table-head {
  background: #17234a;
  border: 1px solid rgba(126, 148, 227, 0.42);
  color: #9aa7cf;
  font-family: var(--font-geist-mono), monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  min-height: 46px;
  text-transform: uppercase;
}

.catalog-v2-table-head span {
  display: flex;
  justify-content: center;
  padding: 0 14px;
  text-align: center;
}

.catalog-v2-filter-row {
  background: linear-gradient(180deg, rgba(27, 40, 88, 0.58), rgba(11, 20, 46, 0.42));
  border: 1px solid rgba(126, 148, 227, 0.26);
  border-top: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(135%);
  gap: 0;
  min-height: 46px;
  padding: 0;
}

.catalog-v2-filter-row label,
.catalog-v2-filter-actions {
  min-width: 0;
  padding: 10px 12px;
}

.catalog-v2-filter-gap {
  min-height: 100%;
}

.catalog-v2-filter-row input {
  background: #0e1736;
  border: 1px solid rgba(157, 174, 255, 0.24);
  color: #edf1ff;
  font: inherit;
  height: 38px;
  min-width: 0;
  padding: 0 11px;
  width: 100%;
}

.catalog-v2-native-select {
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
}

.catalog-v2-custom-select {
  position: relative;
}

.catalog-v2-custom-trigger {
  appearance: none;
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
    linear-gradient(180deg, rgba(21, 33, 74, 0.74), rgba(10, 18, 42, 0.58));
  backdrop-filter: blur(18px) saturate(145%);
  border: 1px solid rgba(173, 190, 255, 0.28);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(76, 101, 196, 0.18),
    0 10px 24px rgba(4, 10, 28, 0.18);
  color: #dfe7ff;
  cursor: pointer;
  display: block;
  font-size: 10px;
  font-weight: 700;
  height: 30px;
  letter-spacing: 0.04em;
  line-height: 1;
  min-width: 0;
  overflow: hidden;
  padding: 0 28px 0 13px;
  position: relative;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  width: 100%;
}

.catalog-v2-custom-trigger::before,
.catalog-v2-custom-trigger::after {
  content: "";
  pointer-events: none;
  position: absolute;
  right: 14px;
  top: 11px;
}

.catalog-v2-custom-trigger::before {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #b9c8ff;
}

.catalog-v2-custom-select.is-open .catalog-v2-custom-trigger {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    linear-gradient(180deg, rgba(34, 52, 112, 0.82), rgba(13, 23, 52, 0.64));
  border-color: rgba(194, 209, 255, 0.34);
}

.catalog-v2-custom-menu {
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(15, 29, 69, 0.92), rgba(8, 18, 46, 0.88));
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(176, 193, 255, 0.24);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(76, 101, 196, 0.16),
    0 20px 44px rgba(3, 8, 24, 0.42);
  display: grid;
  gap: 4px;
  left: 50%;
  margin-top: 8px;
  max-height: 280px;
  min-width: calc(100% + 64px);
  opacity: 0;
  overflow-y: auto;
  padding: 8px;
  pointer-events: none;
  position: absolute;
  top: 100%;
  transform: translate(-50%, 8px) scale(0.98);
  transform-origin: top center;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 20;
  scrollbar-color: rgba(210, 223, 255, 0.6) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.catalog-v2-custom-menu::-webkit-scrollbar {
  width: 12px;
}

.catalog-v2-custom-menu::-webkit-scrollbar-track {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, rgba(16, 26, 61, 0.78), rgba(8, 17, 42, 0.68));
  border-left: 1px solid rgba(183, 198, 255, 0.12);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(93, 115, 196, 0.1);
}

.catalog-v2-custom-menu::-webkit-scrollbar-thumb {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.18)),
    linear-gradient(180deg, rgba(185, 201, 255, 0.82), rgba(123, 145, 228, 0.58));
  border: 2px solid rgba(12, 22, 52, 0.34);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 4px 14px rgba(5, 10, 28, 0.24);
}

.catalog-v2-custom-menu::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.22)),
    linear-gradient(180deg, rgba(204, 216, 255, 0.9), rgba(136, 157, 234, 0.68));
}

.catalog-v2-custom-menu::-webkit-scrollbar-corner {
  background: transparent;
}

.catalog-v2-custom-select.is-open .catalog-v2-custom-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.catalog-v2-custom-option {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #e6eeff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  min-height: 34px;
  padding: 0 12px;
  text-align: center;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.catalog-v2-custom-option:hover,
.catalog-v2-custom-option.is-selected {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
    linear-gradient(180deg, rgba(41, 63, 135, 0.72), rgba(18, 31, 73, 0.6));
  border-color: rgba(164, 182, 255, 0.22);
  color: #ffffff;
}

.catalog-v2-filter-row input::placeholder {
  color: #7f8eb5;
}

.catalog-v2-filter-row input:focus,
.catalog-v2-custom-trigger:focus,
.catalog-v2-filter-actions button:focus-visible,
.catalog-v2-types button:focus-visible,
.catalog-v2-pagination button:focus-visible {
  border-color: #9daeff;
  outline: 2px solid rgba(157, 174, 255, 0.35);
  outline-offset: 2px;
}

.catalog-v2-filter-actions {
  display: flex;
  justify-content: center;
}

.catalog-v2-filter-actions button,
.catalog-v2-view a {
  align-items: center;
  box-sizing: border-box;
  border-radius: 16px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 600;
  height: 32px;
  justify-content: center;
  letter-spacing: 0.01em;
  line-height: 1;
  max-width: 100%;
  padding: 0 10px;
  white-space: nowrap;
  width: 100%;
}

.catalog-v2-filter-actions button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.12)),
    linear-gradient(180deg, rgba(178, 193, 255, 0.58), rgba(118, 136, 219, 0.42));
  border: 1px solid rgba(210, 222, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(126, 148, 227, 0.24),
    0 10px 24px rgba(8, 14, 34, 0.18);
  color: #e8eeff;
  cursor: pointer;
}

.catalog-v2-filter-actions button:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.14)),
    linear-gradient(180deg, rgba(194, 207, 255, 0.62), rgba(129, 147, 226, 0.46));
}

.catalog-v2-row {
  background: #111a3b;
  border: 1px solid rgba(126, 148, 227, 0.26);
  border-top: 0;
  min-height: 68px;
}

.catalog-v2-row:hover {
  background: #141f46;
  border-color: rgba(157, 174, 255, 0.48);
}

.catalog-v2-row > div {
  color: #aebbdc;
  font-size: 13px;
  line-height: 1.2;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 10px 12px;
  text-align: center;
  white-space: pre-line;
}

.catalog-v2-part {
  color: #b8c3e6;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}

.catalog-v2-row > div[data-label="Brand"],
.catalog-v2-row > div[data-label="Application"] {
  color: #b8c3e6;
  font-size: 12px;
}

.catalog-v2-oe,
.catalog-v2-product,
.catalog-v2-view a {
  color: #b7c4ff;
  font-weight: 700;
  text-decoration: none;
}

.catalog-v2-oe {
  font-family: var(--font-geist-mono), monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 0 18px rgba(122, 144, 255, 0.22);
}

.catalog-v2-product {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.catalog-v2-oe:hover,
.catalog-v2-product:hover,
.catalog-v2-view a:hover {
  color: #fff;
  text-decoration: underline;
}

.catalog-v2-view a {
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(25, 39, 86, 0.76), rgba(11, 20, 46, 0.62));
  backdrop-filter: blur(18px) saturate(145%);
  border: 1px solid rgba(173, 190, 255, 0.28);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(76, 101, 196, 0.18),
    0 10px 24px rgba(4, 10, 28, 0.18);
  color: #e8eeff;
}

.catalog-v2-view a:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    linear-gradient(180deg, rgba(39, 60, 128, 0.82), rgba(13, 23, 52, 0.68));
  text-decoration: none;
}

.catalog-v2-pagination {
  align-items: center;
  border-top: 1px solid rgba(126, 148, 227, 0.28);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  margin-top: 24px;
  padding-top: 20px;
}

.catalog-v2-pagination button {
  background: transparent;
  border: 0;
  color: #a7b6ff;
  cursor: pointer;
  font: 700 12px inherit;
  justify-self: start;
  padding: 10px 0;
}

.catalog-v2-pagination button:last-child {
  justify-self: end;
}

.catalog-v2-pagination button:disabled {
  color: #65708f;
  cursor: default;
}

.catalog-v2-pagination strong {
  color: #dce4ff;
  font-size: 12px;
}

.catalog-v2-empty,
.catalog-v2-loading {
  background: #111a3b;
  border: 1px solid rgba(126, 148, 227, 0.3);
  color: #aebbdc;
  padding: 64px 20px;
  text-align: center;
}

.catalog-v2-empty strong,
.catalog-v2-loading strong {
  color: #edf1ff;
  display: block;
  margin-bottom: 8px;
}

.catalog-v2-sr {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 980px) {
  .catalog-v2-table-head,
  .catalog-v2-filter-row,
  .catalog-v2-row {
    grid-template-columns: 114px 194px minmax(140px, 0.7fr) 142px minmax(150px, 0.78fr) 124px;
  }

  .catalog-v2-results {
    overflow-x: auto;
  }

  .catalog-v2-table-head,
  .catalog-v2-filter-row,
  .catalog-v2-row {
    min-width: 880px;
  }
}

@media (max-width: 680px) {
  .catalog-v2 {
    padding: 22px 0 56px;
  }

  .catalog-v2-shell {
    width: min(100% - 32px, 1220px);
  }

  .catalog-v2-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    padding: 10px 0;
  }

  .catalog-v2-results {
    overflow: visible;
  }

  .catalog-v2-table-head,
  .catalog-v2-filter-row {
    display: none;
  }

  .catalog-v2-row {
    display: grid;
    gap: 10px 14px;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 10px;
    min-width: 0;
    padding: 16px;
  }

  .catalog-v2-row > div {
    padding: 0;
  }

  .catalog-v2-row > div::before {
    color: #7482a8;
    content: attr(data-label);
    display: block;
    font-size: 9px;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
  }

  .catalog-v2-row > div:nth-child(3),
  .catalog-v2-row > div:nth-child(5),
  .catalog-v2-view {
    grid-column: 1 / -1;
  }

  .catalog-v2-view a {
    justify-content: center;
    width: 100%;
  }
}
