/* ============================================
   product section — Subtitle + Title + Grid
   ============================================ */

.section-product {
  background-color: rgb(var(--color-background));
  position: relative;
}

.section-product__inner {
  width: 100%;
  max-width: 1520px;
  margin: 50px auto;
}

.section-product__heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-product__subtitle {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  color: #4aab3d;
  margin: 0 0 12px;
  position: relative;
  display: inline-block;
  padding-left: 28px;
}
.section-product__subtitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 2px;
  background-color: #4aab3d;
}

.section-product__title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: rgb(var(--color-foreground));
  margin: 0;
}

@media (max-width: 767px) {
  .section-product__heading { margin-bottom: 24px; }
  .section-product__title { font-size: 30px; }
  .section-product__subtitle { font-size: 13px; padding-left: 20px; }
  .section-product__subtitle::before { width: 14px; }
}

/* ============================================
   Grid — CSS variables drive column count
   平板端（≤1199px）使用与 PC 相同的列数（按用户选 columns_desktop）
   只有移动端（≤767px）降为 1 列
   ============================================ */
.section-product__grid {
  display: grid;
  grid-template-columns: repeat(var(--cols-desktop, 4), minmax(0, 1fr));
  gap: var(--grid-gap, 30px);
  row-gap: var(--grid-gap, 30px);
}

@media (max-width: 767px) {
  .section-product__grid {
    grid-template-columns: repeat(var(--cols-mobile, 1), minmax(0, 1fr));
    row-gap: 20px;
  }
}

/* ============================================
   Product card — matches pbmit-blog-style-1:
   image (white bg) + title + Read More text link
   ============================================ */
.product-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background-color: transparent;
  overflow: hidden;
  border-radius: 10px;
}

.product-card__media {
  position: relative;
  width: 100%;
  padding: 20px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #ffffff;
}

.product-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-card__body {
  padding: 30px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background-color: #fff;
}

.product-card__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  margin: 0;
  color: rgb(var(--color-foreground));
  text-transform: none;
  letter-spacing: 0;
}

.product-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-card__title a:hover {
  color: #4aab3d;
}

.product-card__action {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: rgb(var(--color-foreground));
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-card__action:hover {
  color: #4aab3d;
}

@media (max-width: 767px) {
  .product-card__title { font-size: 16px; }
  .product-card__body { padding: 16px 4px 4px; gap: 10px; }
}
