/* ══ LOAD MORE WRAP ══ */
.s1-load-more-wrap {
    text-align: center;
    padding: 32px 0 48px;
    width: 100%;
}

/* ══ TLAČIDLO ══ */
#s1LoadMoreBtn {
    background: rgba(212, 168, 67, 0.08);
    color: #D4A843;
    border: 0.5px solid rgba(212, 168, 67, 0.25);
    padding: 14px 40px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

#s1LoadMoreBtn:hover:not(:disabled) {
    background: rgba(212, 168, 67, 0.15);
    border-color: rgba(212, 168, 67, 0.4);
    color: #E8C55A;
    transform: translateY(-2px);
}

#s1LoadMoreBtn:disabled {
    cursor: default;
    transform: none;
}

#s1LoadMoreBtn.loading {
    background: rgba(255, 255, 255, 0.02);
    color: rgba(245, 240, 232, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

#s1LoadMoreBtn.loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(212, 168, 67, 0.3);
    border-top-color: #D4A843;
    border-radius: 50%;
    animation: s1spin 0.7s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

#s1LoadMoreBtn.no-more {
    background: rgba(255, 255, 255, 0.02);
    color: rgba(245, 240, 232, 0.35);
    border-color: rgba(255, 255, 255, 0.06);
    font-size: 13px;
}

@keyframes s1spin {
    to { transform: rotate(360deg); }
}

/* ══ PRODUKTOVÉ KARTY Z AJAX ══ */
.s1-lm-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 0.5px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: all 0.25s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.s1-lm-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(212, 168, 67, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* ══ IMAGE — matching catalog restyle ══ */
.s1-lm-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    overflow: hidden;
    height: 200px;
    border-radius: 12px 12px 0 0;
}

.s1-lm-img-wrap img {
    width: auto;
    height: auto;
    max-width: 85%;
    max-height: 180px;
    object-fit: contain;
    padding: 15px;
    display: block;
    aspect-ratio: unset;
    background: transparent;
}

.s1-lm-card:hover .s1-lm-img-wrap img {
    transform: none;
}

.s1-lm-no-img {
    width: 100%;
    height: 220px;
    background: #ffffff;
}

/* ══ INFO ══ */
.s1-lm-info {
    padding: 14px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
    align-items: center;
}

.s1-lm-info .wc-block-components-product-title,
.s1-lm-info .wc-block-components-product-title a {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #F5F0E8 !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
    display: block !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
}

.s1-lm-info .wc-block-components-product-title a:hover {
    color: #D4A843 !important;
}

.s1-lm-info .wc-block-components-product-price,
.s1-lm-info .price {
    color: #D4A843 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
    display: block !important;
}

.s1-lm-info .price del,
.s1-lm-info .price del .woocommerce-Price-amount {
    color: rgba(245, 240, 232, 0.25) !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
    margin-left: 4px !important;
}

/* ══ BUTTON — matching catalog restyle ══ */
.s1-lm-btn-wrap {
    margin-top: auto;
}

.s1-lm-btn-wrap .button,
.s1-lm-btn-wrap .wp-block-button__link {
    background: rgba(212, 168, 67, 0.08) !important;
    border: 0.5px solid rgba(212, 168, 67, 0.25) !important;
    color: #D4A843 !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    padding: 8px 16px !important;
    width: 100% !important;
    text-align: center !important;
    display: block !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    font-family: inherit !important;
}

.s1-lm-btn-wrap .button:hover,
.s1-lm-btn-wrap .wp-block-button__link:hover {
    background: rgba(212, 168, 67, 0.15) !important;
    border-color: rgba(212, 168, 67, 0.4) !important;
    color: #E8C55A !important;
}

/* Skry pôvodné WC stránkovanie */
.woocommerce-pagination,
nav.woocommerce-pagination {
    display: none !important;
}

/* ══ WARRANTY BADGE ══ */
.s1-lm-warranty {
    margin-bottom: 6px;
}

.s1-warranty-badge {
    display: inline-block;
    background: rgba(212, 168, 67, 0.08);
    border: 0.5px solid rgba(212, 168, 67, 0.25);
    color: #D4A843;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* ══ AVAILABILITY / NASKLADNENIE ══ */
.s1-lm-availability {
    margin-bottom: 6px;
}

.s1-lm-availability em {
    color: rgba(245, 240, 232, 0.4);
    font-size: 11px;
    font-style: italic;
}

/* ══ SALE BADGE ══ */
.s1-lm-card .onsale {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    background: rgba(220, 80, 60, 0.15);
    color: #E05A45;
    border: 0.5px solid rgba(220, 80, 60, 0.3);
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 768px) {
    .s1-lm-img-wrap {
        height: 160px;
    }

    .s1-lm-img-wrap img {
        max-height: 140px;
    }

    .s1-lm-info .wc-block-components-product-title,
    .s1-lm-info .wc-block-components-product-title a {
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .s1-lm-img-wrap {
        height: 130px;
    }

    .s1-lm-img-wrap img {
        max-height: 110px;
    }
}
