/* Products page */

.page-banner {
  animation: bannerFadeIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes bannerFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.products .section-head h2 { color: var(--ink); font-size: clamp(1.35rem, 3vw, 1.875rem); font-weight: 600; }
.products .section-head p { color: var(--ink); font-size: 1.0625rem; }
.products .section-head { margin-bottom: 44px; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.product:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 44px rgba(36, 16, 74, 0.14);
  border-color: rgba(94, 44, 165, 0.35);
}
.product-media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--pale-water); }
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.product:hover .product-media img {
  transform: scale(1.08);
}
.product-body { display: flex; flex: 1; flex-direction: column; padding: 24px 20px 22px; text-align: center; }
/* Reserve two lines for titles and subtitles so every row lines up across cards */
.product h3 { display: grid; place-items: center; min-height: 2.6em; color: var(--ink); font-size: .9375rem; font-weight: 800; line-height: 1.3; }
.product-use { display: grid; place-items: center; min-height: 2.9em; margin-top: 4px; color: #666; font-size: .75rem; font-weight: 600; line-height: 1.45; letter-spacing: .5px; text-transform: uppercase; }
.product-desc { margin-top: 10px; font-size: .8125rem; line-height: 1.6; color: var(--ink); }
.product-specs { display: grid; justify-items: center; gap: 8px; margin-top: auto; padding-block: 18px; color: var(--ink); font-size: .875rem; font-weight: 600; }
.product-specs span:last-child {
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(94,44,165,.08);
  color: var(--action-violet);
  font-size: .8125rem;
  font-weight: 700;
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
}
.product:hover .product-specs span:last-child {
  background: var(--action-violet);
  color: #fff;
  transform: scale(1.04);
}
.product .btn {
  min-height: 46px;
  padding-block: 10px;
  border-radius: 8px;
  font-size: .875rem;
  background: var(--action-violet);
  transition: background-color 0.25s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
}
.product .btn:hover {
  background: #4A2285;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(94, 44, 165, 0.3);
}
.product .btn:active {
  transform: translateY(0);
}

@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .product-grid { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; } }


