/* 1. Hide Original Pagination */
.infinite-scroll-module .woocommerce-pagination,
.infinite-scroll-module .pagination,
.infinite-scroll-module .et_pb_ajax_pagination_container .pagination {
    display: none !important;
}

/* 2. Skeleton Loading */
.ias-loader {
    width: 100%;
    margin: 40px 0;
    clear: both;
    display: none;
    flex-wrap: wrap;
    gap: 30px;
}

.ias-loader.visible {
    display: flex;
}

/* Skeleton Card Logic */
.ias-skeleton-card {
    flex: 1 1 250px;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.ias-skeleton-card .skeleton-img {
    width: 100%;
    aspect-ratio: 1/1;
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: ias-skeleton-loading 1.5s infinite;
    border-radius: 8px;
    margin-bottom: 15px;
}

.ias-skeleton-card .skeleton-text {
    height: 18px;
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: ias-skeleton-loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 10px;
}

.ias-skeleton-card .skeleton-text.short {
    width: 60%;
}

@keyframes ias-skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* 3. Sentinel */
.ias-sentinel {
    display: block;
    width: 100%;
    height: 50px;
    clear: both;
    pointer-events: none;
}

/* 4. Load More Button - Apple Premium Style */
.ias-load-more-wrapper {
    width: 100%;
    text-align: center;
    padding: 40px 0;
    clear: both;
    display: none;
}

.ias-load-more-btn {
    display: inline-block;
    padding: 14px 35px;
    background: rgb(131, 157, 3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 30px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.ias-load-more-btn:hover {
    transform: translateY(-2px);
    background: #fff;
    color: rgb(131, 157, 3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.15);
}

.ias-load-more-btn:active {
    transform: scale(0.98);
}

/* 5. Item Animation */
.ias-item-reveal {
    animation: iasFadeUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes iasFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 6. Reset Navigation Button */
.ias-reset-wrapper {
    width: 100%;
    margin-bottom: 30px;
    text-align: center;
    animation: iasFadeIn 0.5s ease;
}

.ias-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 20px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ias-reset-btn .material-symbols-outlined {
    font-size: 18px;
}

.ias-reset-btn:hover {
    background: #fff;
    color: rgb(131, 157, 3);
    border-color: rgb(131, 157, 3);
    box-shadow: 0 4px 12px rgba(131, 157, 3, 0.1);
}

@keyframes iasFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}