.aoe-unified-search {
  --aoe-surface: #ffffff;
  --aoe-border: #d8dee7;
  --aoe-border-strong: #b8c2d3;
  --aoe-text: #172033;
  --aoe-muted: #5f6f89;
  --aoe-product: #005f73;
  --aoe-vehicle: #ba3f1d;
  --aoe-shadow: 0 16px 40px rgba(12, 25, 44, 0.14);
  --aoe-results-product-bg: #ffffff;
  --aoe-results-product-text: var(--aoe-text);
  --aoe-results-product-border: var(--aoe-border);
  --aoe-results-vehicle-bg: #ffffff;
  --aoe-results-vehicle-text: var(--aoe-text);
  --aoe-results-vehicle-border: var(--aoe-border);

  position: relative;
  width: 100%;
  max-width: none;
}

.aoe-unified-search__bar {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  position: relative;
}

.aoe-unified-search__input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--aoe-border-strong);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  line-height: 1.3;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
  color: var(--aoe-text);
}

.aoe-unified-search__button {
  border: 1px solid var(--aoe-border-strong);
  border-radius: 14px;
  background: #1f4b8f;
  color: #ffffff;
  min-width: 48px;
  padding: 0 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: filter 120ms ease;
}

.aoe-unified-search__button:hover {
  filter: brightness(1.05);
}

.aoe-unified-search__button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(77, 106, 163, 0.18);
}

.aoe-unified-search__icon {
  width: 18px;
  height: 18px;
  display: block;
}

.aoe-unified-search__input:focus {
  outline: none;
  border-color: #4d6aa3;
  box-shadow: 0 0 0 3px rgba(77, 106, 163, 0.16);
}

.aoe-unified-search__results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 9999;
  display: none;
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid var(--aoe-border);
  border-radius: 14px;
  background: var(--aoe-surface);
  box-shadow: var(--aoe-shadow);
}

.aoe-unified-search__results.is-visible {
  display: block;
}

.aoe-unified-search__item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.8rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid #eef2f8;
  transition: background-color 120ms ease;
}

.aoe-unified-search__item--product {
  background: var(--aoe-results-product-bg, var(--aoe-surface));
  border-color: var(--aoe-results-product-border, var(--aoe-border));
  color: var(--aoe-results-product-text, var(--aoe-text));
}

.aoe-unified-search__item--vehicle {
  background: var(--aoe-results-vehicle-bg, var(--aoe-surface));
  border-color: var(--aoe-results-vehicle-border, var(--aoe-border));
  color: var(--aoe-results-vehicle-text, var(--aoe-text));
}

.aoe-unified-search__item:last-child {
  border-bottom: none;
}

.aoe-unified-search__item:hover {
  background: #f8fbff;
}

.aoe-unified-search__thumb {
  width: 72px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: #edf2fb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aoe-unified-search__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aoe-unified-search__body {
  min-width: 0;
}

.aoe-unified-search__body--product,
.aoe-unified-search__body--vehicle {
  color: inherit;
}

.aoe-unified-search__title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.55rem;
}

.aoe-unified-search__title {
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--aoe-text);
}

.aoe-unified-search__title--product,
.aoe-unified-search__title--vehicle {
  color: inherit;
}

.aoe-unified-search__badge {
  flex-shrink: 0;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.2rem 0.52rem;
}

.aoe-unified-search__badge--product {
  background: rgba(0, 95, 115, 0.12);
  color: var(--aoe-product);
}

.aoe-unified-search__badge--vehicle {
  background: rgba(186, 63, 29, 0.12);
  color: var(--aoe-vehicle);
}

.aoe-unified-search__price {
  margin-top: 0.2rem;
  font-size: 0.91rem;
  color: #1d4f0d;
  font-weight: 700;
}

.aoe-unified-search__meta {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--aoe-muted);
}

.aoe-unified-search__empty {
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  color: var(--aoe-muted);
}

.aoe-unified-results {
  width: 100%;
  --aoe-results-columns-gap: 20px;
  --aoe-results-rows-gap: 20px;
  --aoe-results-card-bg: #ffffff;
  --aoe-results-card-text: var(--aoe-text);
  --aoe-results-card-border: var(--aoe-border);
  --aoe-results-card-radius: 12px;
  --aoe-results-card-padding: 13px;
  --aoe-results-price-product: #1d4f0d;
  --aoe-results-price-vehicle: #1f4b8f;
  --aoe-results-product-bg: var(--aoe-results-card-bg);
  --aoe-results-product-text: var(--aoe-results-card-text);
  --aoe-results-product-border: var(--aoe-results-card-border);
  --aoe-results-vehicle-bg: var(--aoe-results-card-bg);
  --aoe-results-vehicle-text: var(--aoe-results-card-text);
  --aoe-results-vehicle-border: var(--aoe-results-card-border);
}

.aoe-unified-results .aoe-unified-search__card {
  display: grid;
  grid-template-columns: minmax(140px, 200px) minmax(0, 1fr);
  gap: 1rem;
  border: 1px solid var(--aoe-results-card-border, var(--aoe-border));
  border-radius: var(--aoe-results-card-radius, 12px);
  background: var(--aoe-results-card-bg, #ffffff);
  color: var(--aoe-results-card-text, var(--aoe-text));
  padding: var(--aoe-results-card-padding, 13px);
}

.aoe-unified-results .aoe-unified-search__card--product {
  background: var(--aoe-results-product-bg, var(--aoe-results-card-bg, #ffffff));
  border-color: var(--aoe-results-product-border, var(--aoe-results-card-border, var(--aoe-border)));
  color: var(--aoe-results-product-text, var(--aoe-results-card-text, var(--aoe-text)));
}

.aoe-unified-results .aoe-unified-search__card--vehicle {
  background: var(--aoe-results-vehicle-bg, var(--aoe-results-card-bg, #ffffff));
  border-color: var(--aoe-results-vehicle-border, var(--aoe-results-card-border, var(--aoe-border)));
  color: var(--aoe-results-vehicle-text, var(--aoe-results-card-text, var(--aoe-text)));
}

.aoe-unified-results .aoe-unified-search__card-media {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.aoe-unified-results .aoe-unified-search__card-image-link {
  display: block;
  width: 100%;
}

.aoe-unified-results .aoe-unified-search__card-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.aoe-unified-results .aoe-unified-search__card-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.aoe-unified-results .aoe-unified-search__badge-row {
  display: flex;
  justify-content: flex-start;
}

.aoe-unified-results .aoe-unified-search__badge-row--product {
  justify-content: flex-start;
}

.aoe-unified-results .aoe-unified-search__badge-row--vehicle {
  justify-content: flex-start;
}

.aoe-unified-results .aoe-unified-search__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.75rem;
}

.aoe-unified-results .aoe-unified-search__title a {
  color: inherit;
  text-decoration: none;
}

.aoe-unified-results .aoe-unified-search__price-group {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 0.35rem 0.7rem;
}

.aoe-unified-results .aoe-unified-search__price--was,
.aoe-unified-results .aoe-unified-search__price--was-product,
.aoe-unified-results .aoe-unified-search__price--was-vehicle {
  text-decoration: line-through;
  opacity: 0.72;
}

.aoe-unified-results .aoe-unified-search__sku,
.aoe-unified-results .aoe-unified-search__stock,
.aoe-unified-results .aoe-unified-search__meta {
  font-size: 0.88rem;
  line-height: 1.35;
}

.aoe-unified-results .aoe-unified-search__actions {
  margin-top: 0.2rem;
}

.aoe-unified-results .aoe-unified-search__button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 1rem;
  border: 1px solid var(--aoe-border-strong);
  border-radius: 10px;
  background: #1f4b8f;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.aoe-unified-results .aoe-unified-search__button-link:hover {
  filter: brightness(1.05);
}

.aoe-unified-results .aoe-unified-search__button-link--vehicle {
  background: #4a6c2f;
}

.aoe-unified-results__title {
  margin: 0 0 0.8rem;
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--aoe-text);
}

.aoe-unified-results__count {
  margin-bottom: 0.8rem;
  color: var(--aoe-muted);
  font-size: 0.92rem;
}

.aoe-unified-results__list {
  display: grid;
  grid-template-columns: repeat(var(--aoe-results-columns, 1), minmax(0, 1fr));
  column-gap: var(--aoe-results-columns-gap, 20px);
  row-gap: var(--aoe-results-rows-gap, 20px);
}

.aoe-unified-results__list .aoe-unified-search__card--product .aoe-unified-search__title,
.aoe-unified-results__list .aoe-unified-search__card--vehicle .aoe-unified-search__title {
  color: inherit;
}

.aoe-unified-results .aoe-unified-search__card:hover {
  background: #f8fbff;
}

.aoe-unified-results .aoe-unified-search__title-row {
  align-items: flex-start;
}

.aoe-unified-results .aoe-unified-search__badge {
  white-space: nowrap;
}

.aoe-unified-results .aoe-unified-search__title {
  color: var(--aoe-results-card-text, var(--aoe-text));
}

.aoe-unified-results .aoe-unified-search__price--product {
  color: var(--aoe-results-price-product, #1d4f0d);
}

.aoe-unified-results .aoe-unified-search__price--vehicle {
  color: var(--aoe-results-price-vehicle, #1f4b8f);
}

.aoe-unified-results .aoe-unified-search__price--is-product {
  color: var(--aoe-results-price-product, #1d4f0d);
}

.aoe-unified-results .aoe-unified-search__price--is-vehicle {
  color: var(--aoe-results-price-vehicle, #1f4b8f);
}

.aoe-unified-results .aoe-unified-search__price--was-product,
.aoe-unified-results .aoe-unified-search__price--was-vehicle {
  color: var(--aoe-muted);
}

.aoe-unified-results .aoe-unified-search__button-link--product {
  background: #1f4b8f;
}

.aoe-unified-results .aoe-unified-search__button-link--vehicle {
  background: #4a6c2f;
}

.aoe-unified-results__pagination {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.aoe-unified-results__pagination {
  --aoe-pagination-gap: 14px;
  --aoe-pagination-font-size: 1rem;
  --aoe-pagination-color: #ffffff;
  --aoe-pagination-bg: #d8d8db;
  --aoe-pagination-border: #d8d8db;
  --aoe-pagination-hover-color: #ffffff;
  --aoe-pagination-hover-bg: #d76a12;
  --aoe-pagination-hover-border: #d76a12;
  --aoe-pagination-active-color: #ffffff;
  --aoe-pagination-active-bg: #d76a12;
  --aoe-pagination-active-border: #d76a12;
  --aoe-pagination-disabled-color: #ffffff;
  --aoe-pagination-disabled-bg: #dddddf;
  --aoe-pagination-disabled-border: #dddddf;
  justify-content: center;
  gap: var(--aoe-pagination-gap);
}

.aoe-unified-results .aoe-unified-search__meta {
  color: var(--aoe-muted);
}

.aoe-unified-results__empty,
.aoe-unified-results--empty {
  padding: 0.9rem 1rem;
  border: 1px solid var(--aoe-border);
  border-radius: 12px;
  color: var(--aoe-muted);
}

.aoe-unified-results__pagination {
  margin-top: 1rem;
}

.aoe-unified-results__page {
  text-decoration: none;
  border: 1px solid var(--aoe-pagination-border);
  border-radius: 6px;
  min-width: 54px;
  min-height: 54px;
  padding: 0.45rem 0.75rem;
  color: var(--aoe-pagination-color);
  background: var(--aoe-pagination-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--aoe-pagination-font-size);
  line-height: 1;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.aoe-unified-results__page:hover {
  color: var(--aoe-pagination-hover-color);
  background: var(--aoe-pagination-hover-bg);
  border-color: var(--aoe-pagination-hover-border);
}

.aoe-unified-results__page--current {
  color: var(--aoe-pagination-active-color);
  background: var(--aoe-pagination-active-bg);
  border-color: var(--aoe-pagination-active-border);
}

.aoe-unified-results__page--ellipsis,
.aoe-unified-results__page--disabled {
  cursor: default;
}

.aoe-unified-results__page--disabled {
  color: var(--aoe-pagination-disabled-color);
  background: var(--aoe-pagination-disabled-bg);
  border-color: var(--aoe-pagination-disabled-border);
  opacity: 0.75;
}

.aoe-unified-results__page--ellipsis {
  min-width: 40px;
  background: transparent;
  border-color: transparent;
  color: var(--aoe-muted);
}

.aoe-unified-results__page--arrow {
  min-width: 54px;
  font-size: 1.6rem;
}

@media (max-width: 680px) {
  .aoe-unified-results__list {
    grid-template-columns: 1fr;
  }

  .aoe-unified-search__bar {
    gap: 0.4rem;
  }

  .aoe-unified-search__button {
    min-width: 44px;
    padding: 0 0.72rem;
  }

  .aoe-unified-search__item {
    grid-template-columns: 56px 1fr;
    gap: 0.65rem;
  }

  .aoe-unified-search__thumb {
    width: 56px;
    height: 48px;
  }

  .aoe-unified-search__title {
    font-size: 0.9rem;
  }

  .aoe-unified-results .aoe-unified-search__card {
    grid-template-columns: 1fr;
  }

  .aoe-unified-results__page {
    min-width: 46px;
    min-height: 46px;
  }
}
