/* Витрина на главной. ТЗ 2026-08-26, п.3.
   Расширяет язык темы: стеклянные панели, градиентные заголовки, тёмный фон.
   Собственного визуального языка не вводит — блок должен читаться как часть
   сайта, а не как вставленный чужой магазин. */

.storefront { margin-top: 40px; }

.st-block {
  padding: 24px;
  border-radius: 18px;
  margin-bottom: 24px;
}

.st-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.st-block__title { margin: 0; }

.st-block__all {
  flex: 0 0 auto;
  font-size: 14px;
  white-space: nowrap;
}

/* ── Категории ─────────────────────────────────────────────────────────
   Цветная кромка слева кодирует площадку, а не украшает: по ней плитка
   опознаётся быстрее, чем по тексту. */
.st-cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.st-cat__link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-left: 3px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .035);
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.st-cat--psn .st-cat__link        { border-left-color: #2f6fed; }
.st-cat--steam .st-cat__link      { border-left-color: #66c0f4; }
.st-cat--game_topup .st-cat__link { border-left-color: #f0a500; }

.st-cat__link:hover,
.st-cat__link:focus-visible {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .18);
  transform: translateY(-2px);
}

.st-cat__label { font-size: 16px; font-weight: 600; color: #fff; }
.st-cat__hint  { font-size: 13px; color: rgba(255, 255, 255, .55); }
.st-cat__from  { margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, .82); }

/* ── Сетка товаров ────────────────────────────────────────────────── */
.st-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.st-card__link {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .035);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}

.st-card__link:hover,
.st-card__link:focus-visible {
  border-color: rgba(255, 255, 255, .2);
  transform: translateY(-2px);
}

.st-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: linear-gradient(140deg, rgba(47, 111, 237, .22), rgba(255, 255, 255, .04));
}

.st-card__media img { width: 100%; height: 100%; object-fit: cover; }

.st-card__initials {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .6);
  text-transform: uppercase;
}

.st-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 16px;
  flex: 1 1 auto;
}

.st-card__kicker {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}

.st-card__name { font-size: 15px; font-weight: 600; color: #fff; }

.st-card__meta {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.st-card__price { font-size: 15px; font-weight: 600; color: #fff; }
.st-card__old   { font-size: 13px; color: rgba(255, 255, 255, .4); }

.st-card__stock {
  font-size: 12px;
  color: #7ddc9a;
}

.st-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e0483d;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.st-card--sale .st-card__body { padding-top: 16px; }

/* ── Герой: поиск и действия ──────────────────────────────────────── */
.hero__search {
  display: flex;
  gap: 8px;
  margin: 20px 0 16px;
  max-width: 460px;
}

.hero__search input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font-size: 15px;
}

.hero__search input::placeholder { color: rgba(255, 255, 255, .45); }

.hero__search input:focus-visible,
.hero__search button:focus-visible {
  outline: 2px solid #2f6fed;
  outline-offset: 2px;
}

.hero__search button {
  flex: 0 0 auto;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: background .18s ease;
}

.hero__search button:hover { background: rgba(255, 255, 255, .16); }

.hero__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero__link {
  color: rgba(255, 255, 255, .7);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 15px;
}

.hero__link:hover { color: #fff; }

@media (max-width: 680px) {
  .st-block { padding: 18px 16px; }
  .st-block__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero__search { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .st-cat__link,
  .st-card__link { transition: none; }
  .st-cat__link:hover,
  .st-card__link:hover { transform: none; }
}
