.products .toolbar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.35rem;
  padding: 0.4rem;
  background: #f3f6f8;
  border-radius: 1rem;
}

.products .toolbar input {
  flex: 1 1 auto;
  max-width: none;
  min-height: 2.75rem;
  border: 0;
  border-radius: 0.75rem;
  padding: 0.7rem 1rem;
  background: #fff;
  box-shadow: 0 0 0 1px #e4e8ec;
  font: inherit;
}

.products .toolbar span {
  flex: none;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  color: #5b6570;
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
}

.products .grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.products .card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  background: #fff;
  border: 1px solid #e4e8ec;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.products .card:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 129, 25, 0.35);
  box-shadow: 0 14px 32px rgba(20, 32, 41, 0.08);
}

.products .media {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  padding: 0;
  background: linear-gradient(180deg, #f7f9fb 0%, #fff 100%);
  border-bottom: 1px solid #eef1f4;
  overflow: hidden;
  box-sizing: border-box;
}

.products .media img,
.products .media .placeholder {
  position: absolute;
  inset: 12%;
  width: 76%;
  height: 76%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  margin: 0;
  display: block;
}

.products .media img.is-fitted {
  inset: auto;
  width: var(--thumb-w);
  height: var(--thumb-h);
  left: var(--thumb-l);
  top: var(--thumb-t);
  object-fit: fill;
}

.products .card:hover .media img.is-fitted {
  transform: none;
}

.products .placeholder {
  color: #5b6570;
  font-size: 0.85rem;
}

.products .body {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.85rem 0.95rem 1rem;
  flex: 1 1 auto;
}

.products .body h3 {
  margin: 0;
  color: #142029;
  font-family: var(--font-display), Outfit, sans-serif;
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-transform: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.products .body p {
  margin: 0;
  color: #5b6570;
  font-size: 0.8rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.products .body strong {
  margin-top: auto;
  padding-top: 0.35rem;
  color: #f08119;
  font-family: var(--font-display), Outfit, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

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

@media (max-width: 720px) {
  .products .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .products .media {
    height: auto;
  }

  .products .media img,
  .products .media .placeholder {
    inset: 12%;
    width: 76%;
    height: 76%;
  }

  .products .toolbar {
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .products .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}
