.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-grid--small { grid-template-columns: repeat(3, 1fr); }

.product-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .15s ease, border-color .15s ease;
}
.product-card:hover { transform: translateY(-3px); border-color: var(--accent-2); }
.product-card[hidden] { display: none; }
.product-card__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.product-card__body { display: flex; flex-direction: column; gap: 6px; padding: 16px; flex: 1; }
.product-card__cat { margin: 0; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.product-card__name { margin: 0; font-size: 1rem; }
.product-card__name a:hover { color: var(--accent); }
.product-card__price { margin: 0 0 8px; color: var(--text); font-weight: 700; }
.product-card .btn { margin-top: auto; align-self: flex-start; }

.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: 56px; }
.product__image { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.product__title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.product__price { font-size: 1.5rem; font-weight: 800; color: var(--text); margin: 0 0 14px; }
.product__info p { color: var(--muted); }
.product__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 22px 0 28px; }
.product__buy label { color: var(--muted); font-size: .9rem; }
.product__buy input {
  width: 70px; margin-left: 8px; padding: 9px 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit;
}

.specs { width: 100%; border-collapse: collapse; font-size: .92rem; }
.specs th, .specs td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs th { color: var(--muted); font-weight: 500; width: 45%; }

.related__title { font-size: 1.4rem; margin-bottom: 20px; }

.search-summary { color: var(--muted); margin: 0 0 24px; }
.pager { display: flex; gap: 12px; margin-top: 32px; }

@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .product-grid, .product-grid--small { grid-template-columns: 1fr; }
}
