
/* Slider Styles */
.cp-slider {
    position: relative;
    margin-top: 1rem;
}

/* Ensure slider works in different contexts */
.home-latest-products .cp-slider,
.product-section .section-content .cp-slider {
    width: 100%;
}

.cp-slider-viewport {
    overflow: hidden;
    position: relative;
}

.cp-slider-track {
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease;
    will-change: transform;
}

.cp-slide {
    scroll-snap-align: start;
    background: #fff;
    flex-shrink: 0;
    max-width: 225px;
}

/* Reset for responsive */
@media (max-width: 768px) {
    .cp-slide {
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .cp-slide {
        max-width: 180px;
    }
}

.cp-slide-link {
    display: block;
}

.cp-slide-title {
    margin: 8px 0;
    font-size: 18px;
}

.cp-slide-price {
    margin: 4px 0 8px;
    font-weight: 600;
}

.cp-slide .price del {
    color: #9ca3af;
    margin-right: 6px;
}

.cp-slide .price ins {
    color: #16a34a;
    text-decoration: none;
}

.cp-slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 220px;
}

.cp-placeholder {
    width: 100%;
    height: 220px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    overflow: hidden;
}

.cp-placeholder svg {
    width: 100%;
    height: 100%;
}

.cp-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: #2c3e50;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cp-slider-btn:hover {
    background: #0b5ed7;
    color: #fff;
    border-color: #0b5ed7;
}

.cp-slider-btn.prev {
    left: -20px;
}

.cp-slider-btn.next {
    right: -20px;
}

.cp-slider-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 1rem;
    padding: 0;
}

.cp-slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.cp-slider-dots .dot.active {
    background: #0b5ed7;
    width: 24px;
}

@media (max-width: 768px) {
    .cp-slider-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .cp-slider-btn.prev {
        left: -10px;
    }
    
    .cp-slider-btn.next {
        right: -10px;
    }

    .cp-slider-dots .dot {
        width: 6px;
        height: 6px;
    }

    .cp-slider-dots .dot.active {
        width: 20px;
    }
}

