/* Zmiany są celowo ograniczone do katalogu generowanego przez shortcode. */
.keo-product-cards .cfk-products ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(28px, 4vw, 56px) clamp(18px, 3vw, 38px);
  margin: 0 !important;
  padding: 0 !important;
}

.keo-product-cards .cfk-products ul.products::before,
.keo-product-cards .cfk-products ul.products::after {
  display: none !important;
  content: none !important;
}

.keo-product-cards .cfk-products ul.products li.product {
  display: flex;
  float: none !important;
  flex-direction: column;
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 0 14px !important;
  color: #111;
  font-family: Inter, Arial, sans-serif;
}

.keo-product-cards .cfk-products ul.products li.product > a {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.keo-product-cards .cfk-products ul.products li.product img {
  width: 100% !important;
  aspect-ratio: 4 / 5;
  margin: 0 0 16px !important;
  object-fit: cover;
  object-position: center;
  background: #f5f3f0;
}

.keo-product-cards .cfk-products .woocommerce-loop-product__title {
  min-height: 2.8em;
  margin: 0 0 8px !important;
  color: #111;
  font-size: clamp(17px, 1.35vw, 21px) !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  text-transform: none;
}

.keo-product-cards .cfk-products ul.products li.product .price {
  display: block;
  order: 3;
  margin: auto 0 0 !important;
  color: #111 !important;
  font-size: 16px !important;
  font-weight: 600;
  line-height: 1.45;
}

.keo-product-cards .cfk-products ul.products li.product .product-categories,
.keo-product-cards .cfk-products ul.products li.product .qodef-woo-product-categories {
  margin: 0 0 8px;
  color: #66717b;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: .04em;
}

.keo-product-cards .cfk-products ul.products li.product .button {
  align-self: flex-start;
  margin-top: 14px !important;
}

.keo-product-cards .cfk-filter__categories {
  gap: 12px 22px;
  margin-bottom: clamp(38px, 6vw, 72px);
}

.keo-product-cards .cfk-filter__button {
  min-height: 42px;
  color: #58728d;
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.35;
}

.keo-product-cards .cfk-filter__button.is-active {
  color: #1f3d59;
  font-weight: 600;
}

/* Usuwa wykryty w audycie drugi widżet produktów tylko na stronie z nowym katalogiem. */
.keo-has-cennik.keo-hide-duplicate-catalog .elementor-widget-woocommerce-products {
  display: none !important;
}

@media (max-width: 900px) {
  .keo-product-cards .cfk-products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .keo-product-cards .cfk-products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 28px;
  }

  .keo-product-cards .cfk-products ul.products li.product {
    padding-bottom: 8px !important;
  }

  .keo-product-cards .cfk-products ul.products li.product img {
    margin-bottom: 10px !important;
  }

  .keo-product-cards .cfk-products .woocommerce-loop-product__title {
    min-height: 3.9em;
    margin-bottom: 6px !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
  }

  .keo-product-cards .cfk-products ul.products li.product .price {
    font-size: 13px !important;
    line-height: 1.35;
  }

  .keo-product-cards .cfk-products ul.products li.product .product-categories,
  .keo-product-cards .cfk-products ul.products li.product .qodef-woo-product-categories {
    margin-bottom: 6px;
    font-size: 10px;
    line-height: 1.35;
  }

  .keo-product-cards .cfk-products ul.products li.product .button {
    width: 100%;
    margin-top: 10px !important;
    padding: 10px 6px !important;
    font-size: 12px !important;
    text-align: center;
  }

  .keo-product-cards .cfk-filter__categories {
    justify-content: flex-start;
    gap: 8px 16px;
    margin-bottom: 34px;
  }

  .keo-product-cards .cfk-filter__button {
    min-height: 44px;
  }

  .keo-has-cennik.keo-mobile-spacing .elementor-widget-spacer .elementor-spacer-inner {
    height: min(56px, 12vw) !important;
  }
}
