/* ==========================================================================
   Products — front page cards and the product page.
   Scoped to .product-cards (the view wrapper) and .product-card (one item),
   so nothing here leaks into Commerce admin or cart markup.
   ========================================================================== */

.product-cards {
  display: grid;
  gap: 2rem;
}

/* Same breakpoints as the theme's .grid-3, so the cards line up with the
   services cards below them: three across, two on tablets, one on phones. */
@media (min-width: 1024px) { .product-cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) and (max-width: 1023px) { .product-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .product-cards { grid-template-columns: 1fr; } }

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--gray-100, #f4f4f4);
  border-radius: 4px;
  overflow: hidden;
  height: 100%;
}

.product-card__media { display: block; }

.product-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #fff;
}

.product-card__image--empty { background: var(--gray-200, #e5e5e5); }

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
}

.product-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0;
}

.product-card__title a {
  color: inherit;
  text-decoration: none;
}

/* The amount sits in a green band, as on the printed flyer, so the eye
   lands on the price before the copy. */
.product-card__price,
.product-page__price {
  display: inline-block;
  align-self: flex-start;
  background: var(--green, #1b7f3b);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
  border-radius: 4px;
  margin: 0;
}

.product-card__price {
  font-size: 1.5rem;
  padding: 0.3rem 0.75rem;
}

.product-card__summary {
  margin: 0;
  color: var(--gray-700, #444);
  font-size: 0.95rem;
}

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

.product-card__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Product page ────────────────────────────────────────── */
.product-page { padding: clamp(2rem, 5vw, 4rem) 0; }

.product-page__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

@media (max-width: 800px) {
  .product-page__inner { grid-template-columns: 1fr; }
}

.product-page__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  background: #fff;
}

.product-page__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0 0 0.5rem;
}

.product-page__price {
  font-size: 2rem;
  padding: 0.4rem 1rem;
  margin: 0 0 1.5rem;
}

.product-page__copy { line-height: 1.6; }
.product-page__copy ul { padding-left: 1.25rem; }

.product-page__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
