﻿/* ZT_MODULE_READY=1 */
/* ============================================================
   ZT â€” Cargar mÃ¡s productos por tandas
============================================================ */
.zt-products-load-more-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 14px 0 4px;
}

.products.zt-products-grid > .zt-products-load-more-wrap {
    list-style: none !important;
    display: flex !important;
    min-height: 100%;
    margin: 0 !important;
}

.products[data-zt-products-load-track] {
    overflow-anchor: none;
}

.products.zt-home-promos-slider > .zt-products-load-more-wrap,
.products.zt-home-bestsellers-slider > .zt-products-load-more-wrap,
.products.zt-home-latest-slider > .zt-products-load-more-wrap {
    flex: 0 0 calc(25% - 12px);
    max-width: calc(25% - 12px);
    min-width: calc(25% - 12px);
    scroll-snap-align: start;
}

body.single-product .zt-sp-relacionados .zt-products-grid > .zt-products-load-more-wrap {
    margin: 0 !important;
}

.zt-products-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 22px;
    border: 1px solid #d7b900;
    border-radius: 999px;
    background: #ffe000;
    color: #111;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .10);
    cursor: pointer;
    font-size: 14px;
    font-weight: 950;
    line-height: 1;
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.zt-products-load-more-card .zt-products-load-more-btn {
    flex-direction: column;
    width: 100%;
    min-height: 245px;
    padding: 16px 14px;
    border: 1px solid #ffd400;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 224, 0, .13), rgba(255, 255, 255, .92) 34%),
        #fffdf0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .07);
    color: #111;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
}

.zt-products-load-more-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: #111;
    color: #ffe000;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
}

.zt-products-load-more-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin-top: auto;
    place-items: center;
    border: 1px solid #d7b900;
    border-radius: 999px;
    background: #ffe000;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .12);
    font-size: 20px;
}

.zt-products-load-more-icon i {
    display: block;
}

.zt-products-load-more-title {
    display: block;
    max-width: 150px;
    margin: 10px auto 0;
    color: #111;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.15;
}

.zt-products-load-more-hint {
    display: block;
    max-width: 150px;
    margin: 6px auto auto;
    color: #666;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.zt-products-load-more-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .14);
}

.zt-products-load-more-btn:disabled,
.zt-products-load-more-btn.is-loading {
    cursor: wait;
    opacity: .72;
    transform: none;
}

.zt-products-load-more-btn.has-error {
    border-color: #ff2f6d;
    background: #fff;
    color: #ff2f6d;
}

@media (max-width: 768px) {
    .zt-products-load-more-wrap {
        margin-top: 10px;
    }

    .zt-products-load-more-btn {
        min-height: 40px;
        padding: 0 18px;
        font-size: 13px;
    }

    .products.zt-home-promos-slider > .zt-products-load-more-wrap,
    .products.zt-home-bestsellers-slider > .zt-products-load-more-wrap,
    .products.zt-home-latest-slider > .zt-products-load-more-wrap {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
        min-width: calc(50% - 10px);
    }

    body.single-product .zt-sp-relacionados .zt-products-grid > .zt-products-load-more-wrap {
        flex: 0 0 72% !important;
    }

    .zt-products-load-more-card .zt-products-load-more-btn {
        min-height: 220px;
        padding: 12px 10px;
        font-size: 13px;
    }

    .zt-products-load-more-icon {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .zt-products-load-more-title {
        max-width: 128px;
        font-size: 14px;
    }

    .zt-products-load-more-hint {
        max-width: 128px;
        font-size: 11px;
    }
}


/* ============================================================
   ZT - Product rails: mismo tamano visual en single + home
============================================================ */
:root {
    --zt-product-rail-card-mobile: min(220px, calc(50vw - 18px));
    --zt-product-rail-card-desktop: 240px;
    --zt-product-rail-gap: 12px;
}

body.single-product .zt-sp-relacionados .zt-products-grid,
.products.zt-home-promos-slider,
.products.zt-home-bestsellers-slider,
.products.zt-home-latest-slider {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: var(--zt-product-rail-gap) !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    padding: 4px 2px 12px !important;
    grid-template-columns: none !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
}

body.single-product .zt-sp-relacionados .zt-products-grid > li.product,
body.single-product .zt-sp-relacionados .zt-products-grid > .zt-product-item,
.products.zt-home-promos-slider > li.product,
.products.zt-home-promos-slider > .zt-product-item,
.products.zt-home-bestsellers-slider > li.product,
.products.zt-home-bestsellers-slider > .zt-product-item,
.products.zt-home-latest-slider > li.product,
.products.zt-home-latest-slider > .zt-product-item {
    display: flex !important;
    flex: 0 0 var(--zt-product-rail-card-mobile) !important;
    flex-direction: column !important;
    align-self: stretch !important;
    width: var(--zt-product-rail-card-mobile) !important;
    min-width: var(--zt-product-rail-card-mobile) !important;
    max-width: var(--zt-product-rail-card-mobile) !important;
    margin: 0 !important;
    scroll-snap-align: start !important;
}

body.single-product .zt-sp-relacionados .zt-products-grid .zt-thumb-inner,
.products.zt-home-promos-slider .zt-thumb-inner,
.products.zt-home-bestsellers-slider .zt-thumb-inner,
.products.zt-home-latest-slider .zt-thumb-inner {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
}

body.single-product .zt-sp-relacionados .zt-products-grid .zt-product-title,
.products.zt-home-promos-slider .zt-product-title,
.products.zt-home-bestsellers-slider .zt-product-title,
.products.zt-home-latest-slider .zt-product-title {
    display: block !important;
    min-height: 42px !important;
    margin: 8px 0 6px !important;
}

body.single-product .zt-sp-relacionados .zt-products-grid .zt-product-title a,
.products.zt-home-promos-slider .zt-product-title a,
.products.zt-home-bestsellers-slider .zt-product-title a,
.products.zt-home-latest-slider .zt-product-title a {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-height: 1.25 !important;
}

body.single-product .zt-sp-relacionados .zt-products-grid .zt-card-actions,
.products.zt-home-promos-slider .zt-card-actions,
.products.zt-home-bestsellers-slider .zt-card-actions,
.products.zt-home-latest-slider .zt-card-actions {
    margin-top: auto !important;
}

body.single-product .zt-sp-relacionados .zt-products-grid > .zt-products-load-more-wrap,
.products.zt-home-promos-slider > .zt-products-load-more-wrap,
.products.zt-home-bestsellers-slider > .zt-products-load-more-wrap,
.products.zt-home-latest-slider > .zt-products-load-more-wrap {
    flex: 0 0 var(--zt-product-rail-card-mobile) !important;
    width: var(--zt-product-rail-card-mobile) !important;
    min-width: var(--zt-product-rail-card-mobile) !important;
    max-width: var(--zt-product-rail-card-mobile) !important;
    scroll-snap-align: start !important;
}

@media (min-width: 900px) {
    body.single-product .zt-sp-relacionados .zt-products-grid > li.product,
    body.single-product .zt-sp-relacionados .zt-products-grid > .zt-product-item,
    .products.zt-home-promos-slider > li.product,
    .products.zt-home-promos-slider > .zt-product-item,
    .products.zt-home-bestsellers-slider > li.product,
    .products.zt-home-bestsellers-slider > .zt-product-item,
    .products.zt-home-latest-slider > li.product,
    .products.zt-home-latest-slider > .zt-product-item,
    body.single-product .zt-sp-relacionados .zt-products-grid > .zt-products-load-more-wrap,
    .products.zt-home-promos-slider > .zt-products-load-more-wrap,
    .products.zt-home-bestsellers-slider > .zt-products-load-more-wrap,
    .products.zt-home-latest-slider > .zt-products-load-more-wrap {
        flex-basis: var(--zt-product-rail-card-desktop) !important;
        width: var(--zt-product-rail-card-desktop) !important;
        min-width: var(--zt-product-rail-card-desktop) !important;
        max-width: var(--zt-product-rail-card-desktop) !important;
    }
}
