/* =========================================================
   HOMEO CARE CLINIC — PRODUCT PAGES
   Used by product.php (grid) and product-single.php (detail).
   Heading sizes match the site standard: h1 2.2rem, h2 1.9rem,
   h3 1.05rem, body 0.9rem / 1.75.
   ========================================================= */
.product-page { background: var(--color-bg, #fff); }
.product-section { padding: 48px 0 64px; }
.product-container { width: min(var(--container-width, 1350px), calc(100% - 48px)); margin: 0 auto; }

.product-page__title { font-family: var(--font-heading, "Poppins", sans-serif); font-size: 2.2rem; line-height: 1.25; font-weight: 700; margin: 0 0 28px; text-align: center; }

/* ---------- Product grid (4 per row, 2 on mobile) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { text-align: center; }
.product-card__image { display: block; aspect-ratio: 1 / 1; background: var(--color-bg-alt, #f4f9fd); border: 1px solid var(--color-border, #dbe6ec); border-radius: 8px; overflow: hidden; }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card__image:hover img { transform: scale(1.04); }
.product-card__title { font-family: var(--font-heading, "Poppins", sans-serif); font-size: 1.05rem; line-height: 1.35; font-weight: 600; margin: 14px 0 4px; }
.product-card__title a { color: var(--color-text, #292929); text-decoration: none; }
.product-card__title a:hover { color: var(--color-primary, #02646f); }
.product-card__price, .product-single__price { font-size: .95rem; margin: 0; }
.product-card__price del, .product-single__price del { color: #888; margin-right: 6px; }
.product-card__price ins, .product-single__price ins { text-decoration: none; font-weight: 700; color: var(--color-primary, #02646f); }

/* ---------- Single product ---------- */
.product-breadcrumb { font-size: .8rem; color: var(--color-text-light, #4e5960); margin-bottom: 20px; }
.product-breadcrumb a { color: inherit; }
.product-single { display: grid; grid-template-columns: minmax(0, 45%) minmax(0, 1fr); gap: 40px; align-items: start; }
.product-single__media { position: relative; background: var(--color-bg-alt, #f4f9fd); border: 1px solid var(--color-border, #dbe6ec); border-radius: 8px; overflow: hidden; min-height: 200px; }
.product-single__media img { width: 100%; height: auto; display: block; }
.product-badge { position: absolute; top: 14px; left: 14px; z-index: 1; background: var(--color-primary, #02646f); color: #fff; font-size: .8rem; font-weight: 700; padding: 6px 12px; border-radius: 20px; }
.product-single__title { font-family: var(--font-heading, "Poppins", sans-serif); font-size: 2.2rem; line-height: 1.25; font-weight: 700; margin: 0 0 12px; }
.product-single__price { font-size: 1.3rem; margin-bottom: 14px; }
.product-single__lead { font-size: .9rem; line-height: 1.75; margin: 0 0 18px; }
.product-single__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.product-meta { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--color-border, #dbe6ec); font-size: .85rem; line-height: 1.9; }

.product-description, .product-related { margin-top: 48px; }
.product-description h2, .product-related h2 { font-family: var(--font-heading, "Poppins", sans-serif); font-size: 1.9rem; line-height: 1.25; font-weight: 700; margin: 0 0 16px; }
.product-description h3 { font-family: var(--font-heading, "Poppins", sans-serif); font-size: 1.05rem; font-weight: 600; margin: 22px 0 8px; }
.product-description p, .product-description li { font-size: .9rem; line-height: 1.75; color: var(--color-text-light);}
.product-description ul, .product-description ol { padding-left: 1.25rem; margin: 0; }
.product-details { border-collapse: collapse; width: 100%; max-width: 640px; font-size: .9rem; }
.product-details th, .product-details td { text-align: left; padding: 10px 12px; border: 1px solid var(--color-border, #dbe6ec); }
.product-details th { background: var(--color-bg-alt, #f4f9fd); width: 38%; }
.product-disclaimer { color: #666; font-style: italic; margin-top: 14px; }

@media (max-width: 991px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-single { grid-template-columns: 1fr; gap: 24px; }
  .product-container { width: calc(100% - 32px); }
}
