/* Catalogue canvases only: do not alter single galleries or editorial images.
   These selectors also cover AJAX-inserted WoodMart cards without extra JS. */
.wd-product-wrapper > .product-element-top,
.product-wrapper > .product-element-top {
  aspect-ratio: 1 / 1;
  height: auto;
  background: #fff;
  overflow: hidden;
}
.product-wrapper > .product-element-top > .product-image-link,
.product-wrapper > .product-element-top > .wd-product-img-hover {
  display: block;
  width: 100%;
  height: 100%;
}
.product-wrapper > .product-element-top > .product-image-link img,
.product-wrapper > .product-element-top > .wd-product-img-hover img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  box-sizing: border-box;
  padding: clamp(8px, 2%, 16px);
}
/* Intrinsic two-column layout remains readable inside narrow product cards. */
.hwv4-card-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
  width: 100%;
  min-width: 0;
  margin: 12px 0;
  padding: 0;
  text-align: start;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.4;
}
.hwv4-card-specs .hwv4-card-spec {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 7px 0;
  border-bottom: 1px solid var(--brdcolor-gray-300, #e9e9e9);
}
.hwv4-card-specs .hwv4-card-spec dt {
  order: 2;
  margin: 3px 0 0;
  color: var(--color-gray-500, #6c6c6c);
  font-size: 0.92em;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.hwv4-card-specs .hwv4-card-spec dd {
  order: 1;
  margin: 0;
  color: var(--color-gray-900, #242424);
  font-size: 1em;
  font-weight: 650;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .hwv4-card-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 8px;
    margin-block: 9px;
    font-size: 11px;
  }
  .hwv4-card-specs .hwv4-card-spec {
    padding-block: 6px;
  }
}
