/* =========================================================
   FREE SHIPPING – PRODUCT GRID
   ========================================================= */

/* Reset base */
.page-custom-widget .block-products-list 
.products-grid 
.product-item {
    width: auto;
}

/* Desktop: 4 productos */
@media (min-width: 1025px) {
    .page-custom-widget .block-products-list 
    .products-grid 
    .product-item {
       max-width: calc((100%/5) - 20px);
    }
}

/* Tablet: 3 productos */
@media (min-width: 769px) and (max-width: 1024px) {
    .page-custom-widget .block-products-list 
    .products-grid 
    .product-item {
        max-width: calc(33.333333% - 20px);
    }
}

/* Mobile: 2 productos */
@media (max-width: 768px) {
    .page-custom-widget .block-products-list 
    .products-grid 
    .product-item {
        max-width: calc(50% - 10px);
        margin-bottom: 10px;
        margin-top: 0;
        margin-left: 0px;
    }
}

@media only screen and (max-width: 480px) {
  .page-custom-widget .toolbar-widget-sorter .toolbar-products .sorter-options {
    width: auto;
  }
}
.product-list-style-01 .widget-product-grid li{
    border-radius: 8px;
    box-shadow: none;
}

.product-list-style-01 .widget-product-grid .product-item-top .product-image-wrapper {
  padding-bottom: 100% !important;
}

/* =========================================================
   TOOLBAR / PAGINATION
   ========================================================= */
 
.page-custom-widget .toolbar-products 
.pages {
    display: block;
}

/* Footer toolbar layout */
.toolbar-products.footer {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
}

.toolbar.toolbar-products.footer .toolbar-products{
    width: auto;
}
.toolbar.toolbar-products.toolbar-widget-sorter{
    margin-bottom: 0;
}

.toolbar-products.footer .toolbar-widget-sorter .toolbar-sorter.sorter,
.toolbar-products.footer .toolbar-amount{
    display: none;
}

/* Limiter */
.toolbar-widget-sorter 
.toolbar-products 
.field.limiter {
    display: none;
}

.toolbar-products.footer 
.toolbar-products 
.field.limiter,
.toolbar-products.footer .pages{
    display: block;
}

/* Sorter */
.toolbar-sorter.sorter {
    float: left;
}

.product-item-info {
    position: relative;
}

/* Overlay del producto */
.card-overlay-link {
    position: absolute;
    top: -20px; 
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
}

/* El contenido real va arriba */
.product-item-top,
.product-item-details {
    position: relative;
    z-index: 2;
}

/* Labels Codazon quedan debajo del overlay */
.cdz-product-labels {
    position: absolute;
    z-index: 0;
}


