/* === WooCommerce Product Sweeper Styles === */

.wps-sweeper-container {
    margin-top: 20px;
    width: 100%;
}

.wps-scroll {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.wps-scroll::-webkit-scrollbar {
    height: 8px;
}

.wps-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.wps-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.wps-scroll::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.wps-scroll.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.wps-products {
    list-style: none;
    margin: 0 0 4px 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.wps-products > li {
    display: inline-block;
    margin-right: 1px;
}

.wps-product-card {
    font-size: 15px;
    background: #fff;
    border-radius: 8px;
    color: #6a6a6a;
    display: inline-flex;
    align-items: center;
    height: 130px;
    width: max-content;
    white-space: nowrap;
    line-height: 1.4;
    padding: 0 15px 0 5px;
    position: relative;
    margin: 0 15px 10px 0;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.wps-product-card img {
    height: 130px;
    width: 130px;
    margin-right: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 4px;
}

.wps-product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 250px;
}

.wps-product-title {
    font-weight: 500;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
}

.wps-product-tags {
    font-size: 12px;
    opacity: 0.8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wps-product-card::before,
.wps-product-card::after {
    display: none;
}

.wps-product-card:hover {
    background-color: #f8f8f8;
    color: #333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wps-product-card {
        height: 100px;
        padding: 0 10px 0 5px;
    }
    
    .wps-product-card img {
        height: 100px;
        width: 100px;
    }
    
    .wps-product-info {
        max-width: 180px;
    }
    
    .wps-product-title {
        font-size: 14px;
    }
    
    .wps-product-tags {
        font-size: 11px;
    }
}

/* Elementor editor compatibility */
.elementor-editor-active .wps-scroll {
    overflow-x: visible;
}
