.aisearch__results {
  position: fixed;
  z-index: 1300;
  display: none;
  max-height: min(520px, 70vh);
  overflow: auto;
  border: 1px solid #d9dde2;
  border-radius: 13px;
  background: #fff;
  color: #15181c;
  box-shadow: 0 22px 55px rgba(15, 17, 19, .22);
}

.aisearch__all {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border-top: 1px solid #dfe3e7;
  background: #15181c;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.aisearch__all:hover { background: #252a30; color: #f2b44f; }

.aisearch__dropdown-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 15px;
  border-bottom: 1px solid #e4e7ea;
  background: rgba(255, 255, 255, .96);
  font-size: 12px;
}

.aisearch__dropdown-close {
  padding: 7px 9px;
  border-radius: 7px;
  background: #eff1f3;
  color: #333a45;
  font-size: 11px;
  font-weight: 700;
}

.aisearch__dropdown-list { display: grid; }

.aisearch__results .s-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 11px 14px;
  border-bottom: 1px solid #eceef0;
  color: inherit;
  text-decoration: none;
}

.aisearch__results .s-item:last-child { border-bottom: 0; }
.aisearch__results .s-item:hover { background: #f7f8f9; }
.aisearch__results .s-item__thumb { display: grid; width: 72px; height: 58px; place-items: center; overflow: hidden; }
.aisearch__results .s-item__thumb img { width: 100%; height: 100%; object-fit: contain; }
.aisearch__results .s-item__info { min-width: 0; }
.aisearch__results .s-item__brand { margin-bottom: 3px; color: #7a8491; font: 700 9px 'IBM Plex Mono', monospace; text-transform: uppercase; }
.aisearch__results .s-item__name { overflow: hidden; color: #15181c; font-size: 13px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.aisearch__results .s-item__tags { display: flex; gap: 5px; margin-top: 6px; overflow: hidden; }
.aisearch__results .s-item__tags span { padding: 3px 6px; border-radius: 5px; background: #eff1f3; color: #59626e; font-size: 9px; white-space: nowrap; }
.aisearch__results .s-item__price-box { font-size: 13px; font-weight: 800; white-space: nowrap; }
.aisearch__results .s-empty { padding: 20px; text-align: center; }
.aisearch__results .s-empty small { display: block; margin-top: 5px; color: #737d89; }

.catalog-answer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 17, 19, .62);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.catalog-answer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.catalog-answer {
  width: min(680px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid #30363d;
  border-radius: 13px;
  background: #fff;
  color: #15181c;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
  transform: translateY(8px);
  transition: transform .18s ease;
}

.catalog-answer-backdrop.is-open .catalog-answer { transform: none; }

.catalog-answer__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 20px;
  border-bottom: 1px solid #e4e7ea;
  background: rgba(255, 255, 255, .96);
}

.catalog-answer__head strong { flex: 1; font-size: 15px; }
.catalog-answer__head span { color: #a35f00; font: 600 10px 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.catalog-answer__close { width: 34px; height: 34px; border-radius: 7px; background: #eff1f3; color: #15181c; font-size: 18px; }
.catalog-answer__body { padding: 20px; }
.catalog-answer__summary { margin: 0 0 16px; color: #4e5763; font-size: 14px; line-height: 1.6; }
.catalog-answer__status { display: inline-flex; margin-bottom: 14px; padding: 6px 10px; border-radius: 999px; font: 700 11px 'IBM Plex Mono', monospace; text-transform: uppercase; }
.catalog-answer__status.compatible { background: #e8f6ef; color: #18794e; }
.catalog-answer__status.conditional { background: #fff4df; color: #9b5d00; }
.catalog-answer__status.incompatible { background: #fff0f0; color: #b4233a; }
.catalog-answer__status.unknown { background: #eff1f3; color: #59626e; }
.catalog-answer__checks { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.catalog-answer__checks li { padding: 11px 13px; border: 1px solid #e4e7ea; border-radius: 8px; background: #f7f8f9; font-size: 13px; line-height: 1.5; }
.catalog-answer__checks b { display: block; margin-bottom: 3px; color: #15181c; }
.catalog-answer__products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.catalog-answer__product { padding: 12px; border: 1px solid #e4e7ea; border-radius: 8px; background: #fff; font-size: 12px; font-weight: 700; }

@media (max-width: 600px) {
  .aisearch__results { max-height: 62vh; }
  .aisearch__results .s-item { grid-template-columns: 54px minmax(0, 1fr); }
  .aisearch__results .s-item__thumb { width: 54px; height: 48px; }
  .aisearch__results .s-item__price-box { grid-column: 2; }
  .catalog-answer-backdrop { padding: 0; align-items: end; }
  .catalog-answer { width: 100%; max-height: 88vh; border-radius: 14px 14px 0 0; }
  .catalog-answer__body { padding: 16px; }
  .catalog-answer__products { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-answer-backdrop,
  .catalog-answer { transition: none; }
}
