
.cm-card {
  position: relative;
  padding: 24px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fff;
  transition: all 0.2s ease;
}

.cm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: #1a6350;
}

/* This is the key */
.cm-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-indent: -9999px; /* hide text if needed */
}

/* Keep content above background but below link */
.cm-card > * {
  position: relative;
  z-index: 1;
}

.cm-products-page {
  --cm-green: #1a6350;
  --cm-green-dark: #12493b;
  --cm-ink: #21322d;
  --cm-muted: #5e6c66;
  --cm-border: #d7e2dd;
  --cm-surface: #f5f7f6;
  --cm-stage: #eef2f0;

  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 0 56px;
}

/* Page title */
.cm-products-page .cm-page-title h1 {
  margin: 0 0 28px;
  padding: 0 0 14px;
  background: none !important;
  color: var(--cm-ink) !important;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  text-align: left;
  text-shadow: none !important;
  border-bottom: 4px solid var(--cm-green);
}

/* Section headings like Accessories / Other Accessories */
.cm-products-page .cm-section-heading {
  margin: 48px 0 22px;
}

.cm-products-page .cm-section-heading h2,
.cm-products-page .cm-section-heading h3 {
  margin: 0;
  padding: 0 0 10px;
  background: none !important;
  color: var(--cm-ink) !important;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.1;
  text-align: left;
  text-shadow: none !important;
  border-bottom: 3px solid var(--cm-green);
}

/* Product grids */
.cm-products-page .cm-product-grid {
  display: grid;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 24px;
}

.cm-products-page .cm-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cm-products-page .cm-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Product cards */
.cm-products-page .cm-product-card {
  background: #ffffff;
  border: 1px solid var(--cm-border);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(18, 73, 59, 0.08);
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cm-products-page .cm-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(18, 73, 59, 0.12);
}

/* Product title */
.cm-products-page .cm-product-title h3,
.cm-products-page .cm-product-title h4,
.cm-products-page .cm-product-title p {
  margin: 0;
  padding: 12px 16px;
  background: var(--cm-surface);
  border-radius: 12px;
  color: var(--cm-ink);
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
}

/* Image stage */
.cm-products-page .cm-product-card .cm-product-image,
.cm-products-page .cm-product-card .sv-image-portlet {
  margin: 18px 0 20px;
}

.cm-products-page .cm-product-card .cm-product-image .sv-image-portlet-content,
.cm-products-page .cm-product-card .sv-image-portlet a,
.cm-products-page .cm-product-card .sv-image-portlet {
  background: var(--cm-stage);
  border-radius: 16px;
}

.cm-products-page .cm-product-card .sv-image-portlet img {
  display: block;
  width: 100%;
  height: 240px;
  max-width: 100%;
  object-fit: contain;
  padding: 20px;
}

/* Subheads inside cards */
.cm-products-page .cm-subheading h4,
.cm-products-page .cm-subheading p,
.cm-products-page .cm-subheading strong {
  display: block;
  margin: 18px 0 10px;
  padding-bottom: 8px;
  color: var(--cm-green-dark);
  font-size: 1.125rem;
  font-weight: 700;
  border-bottom: 2px solid var(--cm-border);
}

/* Card body text */
.cm-products-page .cm-product-card p {
  margin: 0 0 12px;
  color: var(--cm-ink);
  line-height: 1.6;
}

.cm-products-page .cm-product-card ul {
  margin: 0 0 6px 1.1rem;
  padding: 0;
}

.cm-products-page .cm-product-card li {
  margin: 0 0 0.65rem;
  color: var(--cm-ink);
  line-height: 1.55;
}

.cm-products-page .cm-product-card a {
  color: var(--cm-green);
  font-weight: 600;
  text-decoration: none;
}

.cm-products-page .cm-product-card a:hover {
  text-decoration: underline;
}

/* Slightly calmer intro text if you style the top copy too */
.cm-products-page .cm-page-intro p {
  max-width: 960px;
  color: var(--cm-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 1024px) {
  .cm-products-page .cm-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .cm-products-page .cm-grid-2,
  .cm-products-page .cm-grid-3 {
    grid-template-columns: 1fr;
  }

  .cm-products-page .cm-product-card .sv-image-portlet img {
    height: 200px;
  }

  .cm-products-page .cm-page-title h1 {
    margin-bottom: 22px;
  }

  .cm-products-page .cm-section-heading {
    margin-top: 36px;
  }
}