.shops-page {
  padding-top: 10px;
}

.shops-hero {
  margin-bottom: 18px;
}

.shops-hero__content {
  max-width: 860px;
}

.shops-hero__title {
  margin-top: 10px;
}

.shops-hero__lead {
  margin-top: 10px;
  max-width: 720px;
  color: #8ea0be;
}

html[data-theme="light"] .shops-hero__lead {
  color: #64748b;
}

.shops-filters-bar {
  margin-bottom: 18px;
  padding: 16px;
  display: grid;
  grid-template-columns:
    minmax(260px, 1.6fr)
    minmax(160px, 0.8fr)
    minmax(160px, 0.8fr)
    minmax(180px, 0.9fr)
    minmax(220px, 1fr)
    auto;
  gap: 12px;
  align-items: end;
}

.shops-filters-bar__group {
  min-width: 0;
}

.shops-filters-bar__label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #9aa9c4;
}

html[data-theme="light"] .shops-filters-bar__label {
  color: #64748b;
}

.shops-results__top {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shops-results__meta {
  font-size: 14px;
  color: #9aa9c4;
}

html[data-theme="light"] .shops-results__meta {
  color: #64748b;
}

/* 6-col grid */
.shops-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.shops-grid.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.shops-loadmore {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

/* ── Loader ─────────────────────────────────────────────────────── */
.shops-grid-loader {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 320px;
  width: 100%;
}

.shops-grid-loader__brick {
  position: relative;
  width: 48px;
  height: 48px;
  animation: brick-spin 1s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  filter: drop-shadow(0 0 12px rgba(250, 204, 21, 0.35));
}

.shops-grid-loader__brick::before {
  content: '';
  position: absolute;
  inset: 8px 0 0 0;
  border-radius: 5px;
  background: #facc15;
}

.shops-grid-loader__brick::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 10px;
  border-radius: 4px;
  background: #fde047;
  box-shadow: -12px 0 0 #fde047, 12px 0 0 #fde047;
}

.shops-grid-loader__label {
  font-size: 13px;
  font-weight: 700;
  color: #6b7fa0;
}

html[data-theme="light"] .shops-grid-loader__label {
  color: #94a3b8;
}

@keyframes brick-spin {
  0%   { transform: rotate(0deg)   scale(1); }
  25%  { transform: rotate(90deg)  scale(1.08); }
  50%  { transform: rotate(180deg) scale(1); }
  75%  { transform: rotate(270deg) scale(1.08); }
  100% { transform: rotate(360deg) scale(1); }
}

/* ── Shop card ──────────────────────────────────────────────────── */
.shop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 14px;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.shop-card--linked {
  cursor: pointer;
}

.shop-card--linked:hover {
  transform: translateY(-3px);
}

/* Overlay fills the entire card — makes the whole thing clickable */
.shop-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Everything above the overlay — pointer-events off so overlay receives clicks */
.shop-card__head,
.shop-card__body {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

/* Top section: logo + name + country + stars — grows to push body down */
.shop-card__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  flex: 1;
}

.shop-card__logo-wrap {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}

html[data-theme="light"] .shop-card__logo-wrap {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.18);
}

.shop-card__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  background: #fff;
}

.shop-card__logo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  font-size: 20px;
  display: grid;
  place-items: center;
}

.shop-card__name {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-heading);
}

html[data-theme="light"] .shop-card__name {
  color: #0f172a;
}

.shop-card__country {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}

html[data-theme="light"] .shop-card__country {
  background: #f1f5f9;
  border-color: rgba(148, 163, 184, 0.18);
  color: #64748b;
}

.shop-card__stars-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.shop-card__stars {
  color: #facc15;
  font-size: 11px;
  letter-spacing: 1px;
  line-height: 1;
}

.shop-card__rating-text {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}

html[data-theme="light"] .shop-card__rating-text {
  color: #64748b;
}

/* Stats — pinned to bottom via border-top separator */
.shop-card__body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

html[data-theme="light"] .shop-card__body {
  border-top-color: rgba(148, 163, 184, 0.12);
}

.shop-card__stat {
  text-align: center;
}

.shop-card__stat-value {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  font-family: var(--font-heading);
}

html[data-theme="light"] .shop-card__stat-value {
  color: #0f172a;
}

.shop-card__stat-label {
  margin-top: 2px;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
}

html[data-theme="light"] .shop-card__stat-label {
  color: #64748b;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1600px) {
  .shops-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1280px) {
  .shops-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .shops-filters-bar { grid-template-columns: 1fr 1fr; }
  .shops-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .shops-filters-bar { grid-template-columns: 1fr; }
  .shops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

@media (max-width: 420px) {
  .shops-grid { grid-template-columns: 1fr; }
}
