/* Related products on PDP — fill the row, not skinny Bacola cards */

html body.single-product .related.products {
  max-width: 1180px !important;
  width: min(1180px, calc(100% - 2rem)) !important;
  margin: 1.6rem auto 2.2rem !important;
  padding: 1.5rem 0 0 !important;
  border-top: 1px solid #eee6dc;
  background: transparent !important;
  float: none !important;
}
html body.single-product .related.products .klb-title,
html body.single-product .related.products .module-header {
  margin: 0 0 1.05rem !important;
  padding: 0 !important;
  text-align: left !important;
}
html body.single-product .related.products h2,
html body.single-product .related.products h4,
html body.single-product .related.products .entry-title {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-weight: 500 !important;
  font-size: clamp(1.55rem, 2.4vw, 1.9rem) !important;
  color: #2f3d2a !important;
  text-transform: none !important;
  letter-spacing: -0.02em;
  margin: 0 !important;
}

html body.single-product .related.products .products,
html body.single-product .related.products div.products,
html body.single-product .related.products ul.products,
html body.single-product .related.products .products.column-4 {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1rem !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

html body.single-product .related.products .product,
html body.single-product .related.products li.product,
html body.single-product .related.products .products .product {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  flex: none !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fffef8 !important;
  border: 1px solid #eee6dc !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 18px rgba(18, 10, 8, 0.04);
  grid-template-columns: none !important;
}
html body.single-product .related.products .product-wrapper,
html body.single-product .related.products .product-type-1 {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body.single-product .related.products .thumbnail-wrapper {
  width: 100% !important;
  max-width: none !important;
  height: 220px !important;
  margin: 0 !important;
  padding: 0.7rem !important;
  background: #f7f2eb !important;
  overflow: hidden;
}
html body.single-product .related.products .thumbnail-wrapper a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 100% !important;
}
html body.single-product .related.products .thumbnail-wrapper img,
html body.single-product .related.products .product img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

html body.single-product .related.products .content-wrapper {
  width: 100% !important;
  padding: 0.85rem 1rem 1.05rem !important;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
html body.single-product .related.products .product-title,
html body.single-product .related.products h3.product-title {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: 1.12rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  height: auto !important;
  max-height: none !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
}
html body.single-product .related.products .product-title a {
  color: #2f3d2a !important;
  text-decoration: none !important;
}
html body.single-product .related.products .price {
  font-family: Montserrat, system-ui, sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 650 !important;
  color: #2f3d2a !important;
  margin: 0.15rem 0 0 !important;
  white-space: nowrap;
}
html body.single-product .related.products .product-buttons,
html body.single-product .related.products .product-fade-block,
html body.single-product .related.products .add_to_cart_button,
html body.single-product .related.products .product-cart-button,
html body.single-product .related.products .product-available,
html body.single-product .related.products .product-unit,
html body.single-product .related.products .product-rating,
html body.single-product .related.products .onsale,
html body.single-product .related.products .badge {
  display: none !important;
}

@media (max-width: 991px) {
  html body.single-product .related.products .products,
  html body.single-product .related.products div.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  html body.single-product .related.products .thumbnail-wrapper {
    height: 180px !important;
  }
}
@media (max-width: 520px) {
  html body.single-product .related.products .products,
  html body.single-product .related.products div.products {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.7rem !important;
  }
}
