:root {
  --bg: #030405;
  --panel: #0b0d0f;
  --panel-soft: #101214;
  --line: rgba(255, 255, 255, 0.16);
  --line-soft: rgba(255, 255, 255, 0.1);
  --text: #f5f5f3;
  --muted: rgba(245, 245, 243, 0.56);
  --dim: rgba(245, 245, 243, 0.36);
  --accent: #fff405;
  --page: min(calc(100% - 78px), 1440px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
}

button, input, textarea { font: inherit; }
button, a { color: inherit; }
a { text-decoration: none; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
}

.site-header-shell {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) 174px;
  align-items: center;
  gap: 38px;
  width: var(--page);
  min-height: 96px;
  margin: 0 auto;
}

.brand { width: 136px; }
.brand img { display: block; width: 100%; height: auto; }

.top-nav {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 3vw, 52px);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.top-nav a {
  position: relative;
  padding: 38px 0 32px;
  transition: color 220ms ease;
}

.top-nav a::after {
  position: absolute;
  right: 0;
  bottom: 24px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transition: transform 260ms ease;
}

.top-nav a:hover, .top-nav a.active { color: #fff; }
.top-nav a:hover::after, .top-nav a.active::after { transform: scaleX(1); }

.header-cta {
  justify-self: end;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 14px;
  transition: background 200ms ease, border-color 200ms ease;
}

.header-cta:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.catalog-hero {
  position: relative;
  height: clamp(660px, 82vh, 820px);
  overflow: hidden;
  isolation: isolate;
  background: #020303;
}

.catalog-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #020303 0%, rgba(2, 3, 3, 0.98) 24%, rgba(2, 3, 3, 0.72) 46%, rgba(2, 3, 3, 0.12) 76%, rgba(2, 3, 3, 0.04) 100%),
    linear-gradient(180deg, #020303 0%, rgba(2, 3, 3, 0.35) 20%, transparent 52%, rgba(2, 3, 3, 0.12) 76%, #020303 100%);
  content: "";
  pointer-events: none;
}

.hero-art { position: absolute; z-index: -2; inset: 0; }
.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  filter: contrast(1.04) saturate(0.9);
}

.hero-shell {
  position: relative;
  width: var(--page);
  height: 100%;
  margin: 0 auto;
}

.hero-copy {
  position: absolute;
  top: clamp(150px, 17vh, 190px);
  left: 0;
  width: 790px;
  max-width: 54vw;
  text-align: left;
}

.hero-kicker {
  margin-bottom: 26px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-size: clamp(52px, 4.2vw, 72px);
  font-weight: 480;
  line-height: 0.99;
  letter-spacing: 0;
}

.hero-description {
  margin-top: 38px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.68;
}

.request-submit, .card-action {
  border: 0;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 32%, #fff80b 0%, #e9df00 100%);
  color: #050505;
  font-weight: 680;
  transition: filter 180ms ease, transform 180ms ease;
}
.request-submit:hover, .card-action:hover { filter: brightness(0.88); transform: translateY(-1px); }

.catalog-workspace {
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr) 340px;
  gap: 24px;
  width: min(calc(100% - 80px), 1600px);
  margin: 0 auto;
  padding: 72px 0 120px;
  background:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.014) 1px, transparent 1px);
  background-size: 100% 46px, 46px 100%;
}

.filter-panel, .request-panel {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
}

.filter-panel {
  position: sticky;
  top: 20px;
  display: flex;
  height: calc(100vh - 40px);
  max-height: 920px;
  flex-direction: column;
  padding: 0 10px 14px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  border-left: 1px solid rgba(255, 244, 5, 0.34);
  border-radius: 0 8px 8px 0;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.012) 56%),
    repeating-radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.018) 0 0.7px, transparent 0.9px 3px),
    #090b0c;
  box-shadow: 18px 0 48px rgba(0, 0, 0, 0.2);
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.filter-panel::-webkit-scrollbar { display: none; }
.panel-heading {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 12px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 12, 0.94);
}
.panel-heading span {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.panel-heading h2 { max-width: 170px; font-size: 20px; font-weight: 430; line-height: 1.08; }
.panel-heading button { padding: 0 0 2px; border: 0; background: transparent; color: var(--muted); font-size: 13px; }
.panel-heading button:hover { color: #fff; }

.filter-panel {
  counter-reset: catalog-filter;
}
.filter-group {
  position: relative;
  display: grid;
  min-height: 0;
  gap: 12px;
  margin: 8px 0 0;
  padding: 16px 12px 14px 44px;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  counter-increment: catalog-filter;
}
.filter-group::before {
  content: "0" counter(catalog-filter);
  position: absolute;
  top: 17px;
  left: 13px;
  color: rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.filter-group:last-child { margin-bottom: 0; }
.filter-group legend { margin-bottom: 10px; color: rgba(255,255,255,.74); font-size: 13px; font-weight: 580; letter-spacing: 0; text-transform: none; }
.filter-group label { display: flex; align-items: center; gap: 11px; color: rgba(255,255,255,0.68); font-size: 14px; cursor: pointer; }
.filter-group label span { min-width: 0; overflow-wrap: anywhere; }
.filter-group input { position: absolute; opacity: 0; pointer-events: none; }
.filter-group label::before {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255,255,255,0.48);
  border-radius: 2px;
  content: "";
  transition: background 160ms ease, border-color 160ms ease;
}
.filter-group label:has(input:checked) { color: #fff; }
.filter-group label:has(input:checked)::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px #111; }
.filter-group:not(.filter-radios) label:has(input:checked)::before { box-shadow: none; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 7 2.2 2.2L11 3.8' fill='none' stroke='%23050505' stroke-width='1.8'/%3E%3C/svg%3E") center/14px no-repeat; }
.filter-radios label::before { border-radius: 50%; }
.filter-scroll { display: block; }
.filter-scroll legend { margin-bottom: 12px; }
.filter-scroll label { margin-bottom: 11px; }
.filter-scroll label:last-child { margin-bottom: 0; }
.filter-scroll .filter-options {
  max-height: 118px;
  padding-right: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,244,5,.48) rgba(255,255,255,.04);
}
.filter-scroll .filter-options::-webkit-scrollbar { width: 4px; }
.filter-scroll .filter-options::-webkit-scrollbar-thumb { border-radius: 4px; background: rgba(255,244,5,.34); }
.filter-hint { color: var(--dim); font-size: 14px; line-height: 1.45; }
.filter-group.is-disabled { opacity: 0.58; }

.results-panel { min-width: 0; }
.catalog-tabs {
  display: flex;
  gap: 8px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.catalog-tabs button {
  position: relative;
  flex: 1 0 auto;
  padding: 20px 16px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.52);
  font-size: 17px;
  font-weight: 560;
}
.catalog-tabs button::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--accent); content: ""; transform: scaleX(0); }
.catalog-tabs button.active { color: var(--accent); }
.catalog-tabs button.active::after { transform: scaleX(1); }

.results-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 26px 16px 20px; }
.results-toolbar p { color: var(--muted); font-size: 15px; }
.results-toolbar h2 { margin-top: 5px; font-size: 23px; font-weight: 620; }
.parts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.part-card { display: grid; grid-template-rows: 286px auto; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, #111315, #090b0c); }
.part-photo { position: relative; display: block; overflow: hidden; border-bottom: 1px solid var(--line-soft); background: radial-gradient(circle at 55% 75%, rgba(255,244,5,0.13), transparent 28%), #0b0d0e; color: inherit; text-decoration: none; }
.part-photo img { display: block; width: 100%; height: 100%; padding: 10px; object-fit: contain; filter: contrast(1.05); }
.photo-fallback { display: grid; height: 100%; place-items: center; padding: 20px; color: var(--dim); text-align: center; }
.part-content { display: grid; gap: 11px; padding: 17px 20px 18px; }
.part-category { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.part-content h3 { min-height: 2.5em; font-size: 19px; font-weight: 610; line-height: 1.25; }
.part-title-link { color: inherit; text-decoration: none; }
.part-title-link:hover { color: var(--accent); }
.part-description { display: -webkit-box; min-height: 2.9em; overflow: hidden; color: var(--muted); font-size: 14px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.part-meta { display: flex; align-items: center; gap: 14px; padding-top: 13px; border-top: 1px solid var(--line-soft); }
.part-price { margin-right: auto; font-size: 18px; font-weight: 650; white-space: nowrap; }
.part-time { color: var(--dim); font-size: 13px; white-space: nowrap; }
.card-action { min-height: 40px; padding: 0 14px; }

.request-panel { position: sticky; top: 20px; padding: 28px 22px 26px; }
.request-kicker { display: flex; align-items: center; gap: 10px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.request-kicker span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.request-panel > h2 { margin-top: 26px; font-size: 31px; font-weight: 560; line-height: 1.05; }
.request-intro { margin-top: 18px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.request-selection { margin-top: 24px; padding: 18px 16px; border: 1px solid rgba(255,244,5,0.55); border-radius: 10px; }
.request-selection strong { display: block; color: var(--accent); font-size: 14px; }
.request-selection p { margin-top: 9px; color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.4; }
.selected-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.selected-item:first-of-type { margin-top: 12px; }
.selected-item button { border: 0; background: transparent; color: var(--muted); font-size: 12px; }
.request-comment { display: block; margin-top: 24px; }
.request-comment > span { display: block; margin-bottom: 12px; color: var(--dim); font-size: 13px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; }
.request-comment textarea { width: 100%; min-height: 210px; padding: 16px; resize: vertical; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: rgba(255,255,255,0.045); color: #fff; line-height: 1.5; }
.request-comment textarea:focus { border-color: rgba(255,244,5,0.6); }
.request-submit { width: 100%; min-height: 58px; margin-top: 20px; font-size: 17px; }
.request-panel > small { display: block; margin-top: 18px; color: var(--dim); }

.load-more { display: block; min-width: 200px; margin: 28px auto 0; padding: 13px 18px; border: 1px solid var(--line); border-radius: 8px; background: transparent; text-align: center; }
.empty-state { padding: 54px 20px; border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.empty-state p { margin-top: 12px; color: var(--muted); }

.catalog-footer { display: flex; align-items: center; justify-content: space-between; width: var(--page); margin: 0 auto; padding: 30px 0 44px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.catalog-footer a { width: 136px; }
.catalog-footer img { display: block; width: 100%; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 60; max-width: 360px; padding: 14px 18px; border: 1px solid rgba(255,244,5,.5); border-radius: 8px; background: #111; opacity: 0; transform: translateY(12px); pointer-events: none; transition: 180ms ease; }
.toast.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1280px) {
  .site-header-shell { grid-template-columns: 140px 1fr 160px; gap: 20px; }
  .top-nav { gap: 22px; }
  .catalog-workspace { grid-template-columns: 235px minmax(0,1fr) 290px; gap: 16px; width: calc(100% - 40px); }
  .part-card { grid-template-rows: 230px auto; }
  .part-meta { flex-wrap: wrap; }
  .catalog-tabs button { padding-inline: 8px; font-size: 15px; }
}

@media (max-width: 1199px) {
  :root { --page: calc(100% - 40px); }
  .top-nav { display: none; }
  .site-header-shell { grid-template-columns: 1fr auto; }
  .hero-copy { max-width: 100%; width: 100%; }
  .catalog-workspace { grid-template-columns: 220px minmax(0,1fr); }
  .request-panel { position: static; grid-column: 1 / -1; }
}

@media (max-width: 599px) {
  :root { --page: calc(100% - 28px); }
  .catalog-hero, .hero-shell { height: 720px; }
  .hero-copy { top: 116px; }
  .hero-copy h1 { font-size: clamp(38px, 11vw, 54px); }
  .hero-description { margin-top: 24px; font-size: 15px; }
  .catalog-workspace { grid-template-columns: 1fr; width: calc(100% - 28px); padding-top: 38px; }
  .catalog-tabs { overflow-x: auto; }
  .filter-panel, .request-panel { position: static; }
  .filter-panel { max-height: none; overflow: visible; }
  .parts-grid { grid-template-columns: 1fr; }
  .catalog-footer { align-items: flex-start; flex-direction: column; gap: 20px; }
}

@media (max-height: 800px) and (min-width: 600px) {
  .panel-heading { padding-block: 17px 15px; }
  .filter-group { padding-block: 12px 11px; }
  .filter-group::before { top: 13px; }
  .filter-scroll .filter-options { max-height: 96px; }
}

/* Catalog interface: aligned with the homepage picker and request form. */
.catalog-workspace {
  grid-template-columns: 272px minmax(0, 1fr) 324px;
  gap: 18px;
  width: min(calc(100% - 8%), 1660px);
  padding: 64px 0 128px;
  background: none;
}

.filter-panel,
.request-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #0a0d0e;
  box-shadow: none;
}

.filter-panel {
  top: 18px;
  display: block;
  height: auto;
  max-height: calc(100dvh - 36px);
  padding: 18px;
  overflow: visible;
}

.panel-heading {
  align-items: flex-start;
  padding: 2px 0 20px;
  border-bottom: 0;
  background: transparent;
}

.panel-heading span {
  margin-bottom: 8px;
  font-size: 10px;
}

.panel-heading h2 {
  max-width: 190px;
  font-size: 22px;
  font-weight: 430;
  line-height: 1.12;
}

.panel-heading button {
  padding: 3px 0 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.56);
}

.catalog-filter-stack {
  display: grid;
  gap: 8px;
}

.filter-group {
  position: relative;
  display: block;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  border-radius: 6px;
  background: transparent;
  counter-increment: none;
}

.filter-group::before {
  content: none;
}

.filter-trigger {
  display: flex;
  width: 100%;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 6px;
  background: #111416;
  color: #fff;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease;
}

.filter-trigger:hover,
.filter-trigger:focus-visible,
.filter-dropdown.is-open .filter-trigger {
  border-color: rgba(255, 244, 5, 0.52);
  outline: 0;
  background: #141719;
}

.filter-trigger > span {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.filter-trigger small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.filter-trigger strong {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-trigger > i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms ease;
}

.filter-dropdown.is-open .filter-trigger > i {
  transform: rotate(225deg) translate(-2px, -1px);
}

.filter-dropdown.is-disabled {
  opacity: 0.48;
}

.filter-trigger:disabled {
  cursor: default;
}

.filter-popover {
  position: absolute;
  z-index: 40;
  top: 0;
  right: auto;
  left: calc(100% + 8px);
  width: 270px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  background: #101315;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.48);
}

.filter-popover[hidden] {
  display: none;
}

.filter-group .filter-search {
  position: relative;
  display: block;
  color: inherit;
  cursor: text;
}

.filter-group .filter-search::before {
  content: none;
}

.filter-search > span {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  transform: translateY(-58%);
}

.filter-search > span::after {
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 5px;
  height: 1px;
  background: rgba(255, 255, 255, 0.48);
  content: "";
  transform: rotate(45deg);
}

.filter-group .filter-search input {
  position: static;
  width: 100%;
  height: 42px;
  padding: 0 12px 0 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  opacity: 1;
  outline: 0;
  background: #080a0b;
  color: #fff;
  font-size: 13px;
  pointer-events: auto;
}

.filter-group .filter-search input:focus {
  border-color: rgba(255, 244, 5, 0.5);
}

.filter-options {
  display: grid;
  max-height: min(260px, 42vh);
  gap: 2px;
  margin-top: 8px;
  padding-right: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255, 244, 5, 0.5) rgba(255, 255, 255, 0.04);
  scrollbar-width: thin;
}

.filter-options::-webkit-scrollbar {
  width: 4px;
}

.filter-options::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: rgba(255, 244, 5, 0.44);
}

.filter-group .filter-options label {
  display: grid;
  min-height: 40px;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  cursor: pointer;
}

.filter-group .filter-options label:hover {
  background: #171a1c;
  color: #fff;
}

.filter-group .filter-options label > a {
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.filter-group .filter-options label[hidden] {
  display: none;
}

.filter-group .filter-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-group .filter-options label::before {
  content: none;
}

.filter-group .filter-options label > i {
  width: 15px;
  height: 15px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 2px;
}

.filter-group .filter-options label:has(input:checked) {
  background: rgba(255, 244, 5, 0.08);
  color: #fff;
}

.filter-group .filter-options label:has(input:checked) > i {
  border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 15 15'%3E%3Cpath d='m3 7.5 2.4 2.4L12 3.9' fill='none' stroke='%23050505' stroke-width='1.8'/%3E%3C/svg%3E") center/15px no-repeat;
}

.filter-empty {
  padding: 14px 8px 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
}

.filter-condition {
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

.filter-condition legend {
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.filter-condition > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 3px;
  border-radius: 6px;
  background: #111416;
}

.filter-condition label {
  min-width: 0;
}

.filter-condition input {
  position: absolute;
  opacity: 0;
}

.filter-condition span {
  display: grid;
  min-height: 38px;
  place-items: center;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  cursor: pointer;
}

.filter-condition input:checked + span {
  background: #242729;
  color: #fff;
}

.filter-note {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 12px;
  line-height: 1.45;
}

.catalog-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #0a0d0e;
}

.catalog-search label {
  min-width: 0;
  padding: 9px 14px 8px;
  border-radius: 5px;
  background: #111416;
}

.catalog-search label > span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.catalog-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
}

.catalog-search input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.catalog-search button {
  border: 0;
  border-radius: 6px;
  background: radial-gradient(circle at 50% 32%, #fff80b 0%, #e9df00 100%);
  color: #050505;
  font-weight: 680;
  transition: filter 180ms ease;
}

.catalog-search button:hover {
  filter: brightness(0.86);
}

.catalog-tabs {
  gap: 0;
  padding: 0 4px;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.catalog-tabs button {
  padding: 18px 12px;
  font-size: 14px;
  font-weight: 500;
}

.results-toolbar {
  padding: 24px 4px 18px;
}

.results-toolbar h2 {
  font-size: 24px;
  font-weight: 430;
}

.part-card {
  grid-template-rows: 258px auto;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #0a0d0e;
}

.part-photo {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: #0e1112;
}

.part-content {
  padding: 18px;
}

.part-content h3 {
  font-weight: 510;
}

.request-panel {
  top: 18px;
  max-height: calc(100dvh - 36px);
  padding: 26px 22px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255, 244, 5, 0.4) transparent;
  scrollbar-width: thin;
}

.request-panel > h2 {
  margin-top: 22px;
  font-size: 30px;
  font-weight: 430;
}

.request-selection {
  max-height: 230px;
  overflow-y: auto;
  border-color: rgba(255, 244, 5, 0.38);
  border-radius: 6px;
}

.request-comment textarea {
  min-height: 170px;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: #111416;
}

@media (max-width: 1280px) {
  .catalog-workspace {
    grid-template-columns: 244px minmax(0, 1fr) 286px;
    gap: 14px;
    width: calc(100% - 40px);
  }

  .catalog-search {
    grid-template-columns: minmax(0, 1fr) 108px;
  }

  .part-card {
    grid-template-rows: 220px auto;
  }
}

@media (max-width: 1199px) {
  .catalog-workspace {
    grid-template-columns: 236px minmax(0, 1fr);
  }

  .request-panel {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 599px) {
  .catalog-workspace {
    grid-template-columns: 1fr;
    width: calc(100% - 28px);
    padding-top: 34px;
  }

  .filter-panel {
    position: relative;
    z-index: 12;
    top: 0;
    max-height: none;
  }

  .filter-popover {
    position: static;
    width: 100%;
    margin-top: 6px;
    box-shadow: none;
  }

  .catalog-search {
    grid-template-columns: 1fr;
  }

  .catalog-search button {
    min-height: 48px;
  }

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

@media (min-width: 1200px) {
  .parts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .part-card {
    grid-template-rows: clamp(150px, 11vw, 190px) auto;
  }

  .part-photo img {
    padding: 8px;
  }

  .part-content {
    grid-template-rows: auto 3.75em 2.9em auto;
    gap: 8px;
    padding: 12px;
  }

  .part-category {
    font-size: 10px;
  }

  .part-content h3 {
    display: -webkit-box;
    min-height: 0;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .part-description {
    min-height: 0;
    font-size: 11px;
    line-height: 1.45;
  }

  .part-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    padding-top: 9px;
  }

  .part-price {
    min-width: 0;
    font-size: 14px;
  }

  .part-time {
    font-size: 10px;
  }

  .card-action {
    min-height: 34px;
    padding-inline: 10px;
  }
}

@media (min-width: 1400px) {
  .parts-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
