
/* Gold Urbanowicz - podkategorie po aktualizacji 1.7.8.11 */
#subcategories ul.subcategories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#subcategories ul.subcategories-list > li {
  width: auto !important;
  min-width: 150px;
  flex: 1 1 150px;
  max-width: 220px;
  margin: 0 !important;
}

#subcategories .subcategory-name {
  display: block;
  text-align: center;
  padding: 10px 14px;
  margin: 0;
}

/* Gold Urbanowicz - większe kafelki produktów */
#js-product-list .product-miniature .thumbnail-container {
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

#js-product-list .product-miniature .product-thumbnail img {
  width: 100%;
  height: auto;
  max-width: 300px;
}

/* Gold Urbanowicz - 3 większe produkty w rzędzie */
#js-product-list .products {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

#js-product-list .product-miniature {
  flex: 0 0 calc((100% - 36px) / 3);
  max-width: calc((100% - 36px) / 3);
  margin: 0 !important;
}

#js-product-list .product-miniature .thumbnail-container {
  width: 100%;
  max-width: none;
  margin: 0;
}

#js-product-list .product-miniature .product-thumbnail {
  display: block;
  width: 100%;
}

#js-product-list .product-miniature .product-thumbnail img {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
}

@media (max-width: 767px) {
  #js-product-list .product-miniature {
    flex: 0 0 calc((100% - 12px) / 2);
    max-width: calc((100% - 12px) / 2);
  }

  #js-product-list .products {
    gap: 12px;
  }
}

/* Gold Urbanowicz - wymuszenie 3 dużych kafelków */
#js-product-list .products > div,
#js-product-list .products > article,
#js-product-list .products .js-product {
  flex: 0 0 33.333333% !important;
  max-width: 33.333333% !important;
  width: 33.333333% !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
}

#js-product-list .product-miniature,
#js-product-list .product-miniature .thumbnail-container {
  width: 100% !important;
  max-width: 100% !important;
}

#js-product-list .product-miniature .product-thumbnail img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

@media (max-width: 767px) {
  #js-product-list .products > div,
  #js-product-list .products > article,
  #js-product-list .products .js-product {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
  }
}

/* Gold Urbanowicz - stałe 3 kolumny produktów */
#js-product-list .products.row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#js-product-list .products.row > * {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
}

#js-product-list .product-miniature,
#js-product-list .thumbnail-container {
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 767px) {
  #js-product-list .products.row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

@media (max-width: 480px) {
  #js-product-list .products.row {
    grid-template-columns: 1fr !important;
  }
}

/* Gold Urbanowicz - FINAL: 3 produkty w rzędzie */
#js-product-list .products.row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  column-gap: 16px !important;
  row-gap: 16px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#js-product-list .products.row > .js-product {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
}

#js-product-list .products.row > .js-product .product-miniature,
#js-product-list .products.row > .js-product .thumbnail-container {
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 767px) {
  #js-product-list .products.row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  #js-product-list .products.row {
    grid-template-columns: 1fr !important;
  }
}
