/* Collection Products Widget Specific Styles */

.collection-products-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.collection-products-container {
    position: relative;
    overflow: hidden;
    margin: 0 50px;
    /* Space for arrows */
}

.collection-products-scroll {
    /* Inherits from .widget-scroll-container in base.css */
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0 20px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.collection-products-scroll::-webkit-scrollbar {
    display: none;
}

.collection-products-scroll.dragging {
    cursor: grabbing;
}

.collection-product-item {
    /* Inherits from .widget-product-item in base.css */
    flex: 0 0 280px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collection-product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.collection-product-item:hover .product-image img {
    transform: scale(1.05);
}

/* Navigation Arrows - Collection Specific */
.collection-products-wrapper .collection-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 0;
    outline: none;
}

.collection-products-wrapper .collection-nav-arrow:hover {
    background: #fff;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.1);
}

.collection-products-wrapper .collection-nav-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.collection-products-wrapper .collection-nav-left {
    left: 5px;
}

.collection-products-wrapper .collection-nav-right {
    right: 5px;
}

.collection-products-wrapper .collection-nav-arrow span {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

/* Scroll Indicators - Collection Specific */
.collection-products-wrapper .collection-scroll-indicators {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 15px !important;
    padding: 0 50px !important;
}

.collection-products-wrapper .collection-scroll-indicators .scroll-dot {
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    min-height: 8px !important;
    max-width: 8px !important;
    max-height: 8px !important;
    border-radius: 50% !important;
    border: none !important;
    background: #ccc !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
}

.collection-products-wrapper .collection-scroll-indicators .scroll-dot.active {
    background: #333 !important;
}

.collection-products-wrapper .collection-scroll-indicators .scroll-dot:hover {
    background: #666 !important;
}

.collection-products-wrapper .collection-scroll-indicators .scroll-dot:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Responsive - Collection Specific */
@media (max-width: 768px) {
    .collection-products-container {
        margin: 0 40px;
    }

    .collection-product-item {
        flex: 0 0 220px;
    }

    .collection-products-wrapper .collection-nav-arrow {
        width: 40px;
        height: 40px;
    }

    .collection-products-wrapper .collection-nav-arrow span {
        font-size: 18px;
    }

    .collection-scroll-indicators {
        padding: 0 40px !important;
    }
}

@media (max-width: 480px) {
    .collection-products-container {
        margin: 0 35px;
    }

    .collection-product-item {
        flex: 0 0 180px;
    }

    .collection-products-wrapper .collection-nav-arrow {
        width: 35px;
        height: 35px;
    }

    .collection-products-wrapper .collection-nav-arrow span {
        font-size: 16px;
    }

    .collection-scroll-indicators {
        padding: 0 35px !important;
    }
}