.infinite-product-slider-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    white-space: nowrap;
    padding: 1rem 0;
}

.infinite-product-slider {
    display: flex;
    gap: 1rem;
    animation: scroll 40s linear infinite;
    margin: 0 16px;
}

.product-slide {
    flex: 0 0 auto;
    width: 220px;
    scroll-snap-align: start;
    text-align: center;
    background: var(--wp--preset--color--base, #fff);
    border: 1px solid var(--wp--preset--color--border, #ddd);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-slide:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.product-slide img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.product-slide:hover img {
    transform: scale(1.05);
}

.product-title {
    margin-bottom: .5em;
    padding: 0;
    font-weight: 700;
    font-size: 17px;
    color: var(--ast-global-color-2);
    white-space: normal;       
    overflow-wrap: break-word;   
    word-wrap: break-word;    
    display: -webkit-box;
    word-break: break-word;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    -webkit-line-clamp: 2;
    

}

.product-price {
    display: block;
    color: var(--ast-global-color-2);
    text-align: left;   
    line-height: 1.3;
    margin-bottom: .5em;
    font-size: 17px;    
}

.slider-add-to-cart {
    display: inline-block;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    background: var(--wp--preset--color--primary, #0071a1);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease;
}

.slider-add-to-cart:hover {
    background: var(--wp--preset--color--secondary, #005177);
    color: #fff;
}
.infinite-product-slider-skeleton {
    display: flex;
}
.infinite-product-slider-skeleton .product-slide {
    display: flex;
    flex-direction: column;    
    width: 200px;
    margin: 10px;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 10px;
    animation: pulse 1.5s infinite;
}

.skeleton-image {
    width: 100%;
    height: 150px;
    background: #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
}

.skeleton-title,
.skeleton-price {
    width: 80%;
    height: 16px;
    background: #e0e0e0;
    border-radius: 4px;
    margin: 6px 0;
}

@keyframes pulse {
    0% {
        background-color: #f0f0f0;
    }
    50% {
        background-color: #e0e0e0;
    }
    100% {
        background-color: #f0f0f0;
    }
}

