.store-page {
  padding: 0 0 88px;
}

.store-container {
  width: min(calc(100% - 32px), 1200px);
  margin-inline: auto;
}

.store-heading {
  padding: 40px 0 22px;
}

.category-title {
  margin: 0 0 22px;
  color: #211d43;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 270px));
  justify-content: start;
  align-items: stretch;
  gap: 18px;
  width: 100%;
}

.product-card {
  width: 100%;
  max-width: 270px;
  min-width: 0;
  border: 1px solid #dde3ef;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(30, 41, 59, .07);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.product-card:hover {
  border-color: #cbd5ea;
  box-shadow: 0 12px 24px rgba(30, 41, 59, .1);
}

.product-card {
  position: relative;
  z-index: auto;
  transform: none;
  filter: none;
  perspective: none;
  isolation: auto;
  will-change: auto;
}

.product-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3f6fb;
}

.product-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  padding: 14px;
}

.product-card__category {
  display: block;
  overflow: hidden;
  color: #6d5dd3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.3;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-card .product-card__name {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  margin: 7px 0 12px;
  color: #282442;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
}

.product-card .product-card__price {
  color: #4058e8;
  font-size: 19px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.product-card__meta span {
  color: #6d6a83;
  font-size: 12px;
  white-space: nowrap;
}

.product-card .btn-buy-now {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 13px;
}

.product-card .btn-buy-now:disabled {
  cursor: not-allowed;
  opacity: .7;
}

.product-card .btn-buy-now:focus-visible {
  outline: 3px solid rgba(64, 88, 232, .25);
  outline-offset: 3px;
}

.store-empty {
  grid-column: 1 / -1;
  padding: 36px 0;
}

@media (max-width: 900px) {
  .store-container {
    width: min(calc(100% - 32px), 1200px);
  }

  .store-heading {
    padding: 30px 0 16px;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .product-card {
    max-width: none;
  }
}

@media (max-width: 576px) {
  .store-container {
    width: min(calc(100% - 24px), 1200px);
  }

  .store-heading {
    padding: 24px 0 16px;
  }

  .category-title {
    margin-bottom: 16px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-card {
    min-width: 0;
    max-width: none;
    border-radius: 12px;
  }

  .product-card__image {
    aspect-ratio: 16 / 10;
  }

  .product-card__body {
    padding: 12px;
  }

  .product-card .product-card__name {
    min-height: 39px;
    margin: 6px 0 10px;
    font-size: 14px;
    line-height: 1.3;
  }

  .product-card .product-card__price {
    font-size: 18px;
  }

  .product-card__meta {
    margin-bottom: 11px;
  }

  .product-card .btn-buy-now {
    min-height: 40px;
    padding-inline: 8px;
    font-size: 12px;
  }
}
