:root {
  --ink: #1f1d1a;
  --muted: #6c675f;
  --paper: #f7f7f5;
  --card: #ffffff;
  --line: #e2e0da;
  --accent: #2f46c8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.shop {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.shop__title {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
}

.product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1.25rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(31, 29, 26, 0.1);
}

.product-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1.1rem 1.2rem;
}

.product-card__tag {
  align-self: flex-start;
  padding: 0.1rem 0.5rem;
  font-size: 0.75rem;
  color: var(--accent);
  background: #e8ebfb;
  border-radius: 4px;
}

.product-card__name {
  margin: 0.6rem 0 0.35rem;
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}

.product-card__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
}

.product-card__price {
  font-weight: 650;
}

.product-card__button {
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  text-decoration: none;
}

.product-card__button:hover {
  background: #2438a6;
}

.product-card__button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
