/* Eldesa catálogo v3
 * No tocar position/transform: Flatsome fade_in_back usa
 * img.back-image.show-on-hover.absolute.fill (opacity 0 hasta hover).
 */
body.archive .product-small .box-image,
body.woocommerce-shop .product-small .box-image,
body.woocommerce.archive .product-small .box-image,
body.search-results .product-small .box-image {
  aspect-ratio: 1 / 1;
  background: #fff;
  overflow: hidden;
}

body.archive .product-small .box-image img,
body.woocommerce-shop .product-small .box-image img,
body.woocommerce.archive .product-small .box-image img,
body.search-results .product-small .box-image img {
  object-fit: contain !important;
  object-position: center center !important;
  padding: 12px;
  box-sizing: border-box;
}

.product-small .box-text .name.product-title,
.product-small .box-text .product-title,
.woocommerce-loop-product__title {
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hasta 1199px: 2 columnas para que la card no apriete la foto */
@media only screen and (max-width: 1199px) {
  .products.large-columns-4 > .product-small.col,
  .products.medium-columns-3 > .product-small.col {
    flex-basis: 50% !important;
    max-width: 50% !important;
  }
}

/* Desktop real */
@media only screen and (min-width: 1200px) {
  html {
    background-color: #fff;
  }

  .container,
  #header .flex-row.container,
  .header-inner.container,
  .header-main .container,
  .header-bottom .container,
  .row.category-page-row {
    max-width: 100% !important;
    width: 100%;
    box-sizing: border-box;
  }

  .category-page-row {
    padding-left: 28px;
    padding-right: 28px;
  }

  .header-inner.container,
  #header .container,
  .header-main .container,
  .header-bottom .container {
    padding-left: 28px;
    padding-right: 28px;
    box-sizing: border-box;
  }

  .category-page-row > .col.large-3 {
    flex: 0 0 260px !important;
    max-width: 260px !important;
    width: 260px !important;
    padding-right: 20px;
    box-sizing: border-box;
  }

  .category-page-row > .col.large-9 {
    flex: 1 1 auto !important;
    max-width: none !important;
    width: auto !important;
  }

  .products.row .product-small.col {
    padding: 12px !important;
  }
}

@media only screen and (min-width: 1200px) and (max-width: 1399px) {
  .products.large-columns-4 > .product-small.col {
    flex-basis: 33.333% !important;
    max-width: 33.333% !important;
  }
}
