/* GamesGu.ru — серверный умный поиск 1.1.74. */
.gg-smart-search-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 9px 11px;
  border-bottom: 1px solid #edf0f4;
  color: #25272b;
  background: #fff;
  text-decoration: none;
}

.gg-smart-search-item:last-child {
  border-bottom: 0;
}

.gg-smart-search-item:hover,
.gg-smart-search-item:focus-visible {
  background: #f6f8ff;
  color: #25272b;
}

.gg-smart-search-item__image {
  width: 52px;
  height: 52px;
  border-radius: 9px;
  overflow: hidden;
  background: #f4f5f7;
}

.gg-smart-search-item__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gg-smart-search-item__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gg-smart-search-item__body strong {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.gg-smart-search-item__body small {
  color: #8a9099;
  font-size: 11px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.gg-smart-search-item__price {
  max-width: 120px;
  color: #212529;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.gg-smart-search-item.is-out .gg-smart-search-item__price {
  color: #89909a;
  white-space: normal;
}

.gg-smart-search-state,
.gg-smart-search-page-state {
  padding: 16px;
  color: #6c757d;
  text-align: center;
  font-size: 13px;
}

.gg-smart-search-page-state {
  grid-column: 1 / -1;
}

.gg-smart-search-card__image {
  display: block;
  text-decoration: none;
}

@media (max-width: 820px) {
  .gg-smart-search-item {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 8px 9px;
    gap: 8px;
  }

  .gg-smart-search-item__image {
    width: 44px;
    height: 44px;
  }

  .gg-smart-search-item__price {
    grid-column: 2;
    max-width: none;
    margin-top: 1px;
    font-size: 12px;
    text-align: left;
  }

  #search-page-results,
  #search-page-results.products-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .gg-smart-search-card,
  .gg-smart-search-card .product-content,
  .gg-smart-search-card .product-title {
    min-width: 0 !important;
    max-width: 100% !important;
  }
}
