/* ================================================================
   COMPACT & STABLE PRODUCT SLIDER
   ================================================================ */

.rp-product-slider-wrapper {
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 15px;
    position: relative;
    overflow: visible;
}

.rp-slider-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #111;
    text-align: left;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    position: relative;
}

.rp-slider-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #fcb800;
}

/* Initial state before Slick loads - Horizontal scroll */
.rp-product-slider {
    display: flex !important;
    overflow-x: auto;
    gap: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
}

.rp-product-slider::-webkit-scrollbar {
    display: none;
}

.rp-product-slider .product-card {
    flex: 0 0 280px !important;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    display: flex !important;
    flex-direction: column;
}

.rp-product-slider .product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: #fcb800;
}

/* Image */
.rp-product-slider .product-image {
    height: 200px;
    margin-bottom: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

.rp-product-slider .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Info */
.rp-product-slider .product-info {
    text-align: left;
}

.rp-product-slider .product-title {
    font-size: 14px;
    font-weight: 600;
    height: 40px;
    overflow: hidden;
    margin-bottom: 8px;
    color: #333;
}

.rp-product-slider .product-price {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
}

.rp-product-slider .add-to-cart-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #111;
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s;
}

.rp-product-slider .add-to-cart-btn:hover {
    background: #fcb800;
    color: #000;
}

/* Slick Arrows Styling */
.rp-product-slider.slick-initialized {
    overflow: visible;
}

.rp-product-slider .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    z-index: 5;
    font-size: 0;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.rp-product-slider .slick-prev { left: -20px; }
.rp-product-slider .slick-next { right: -20px; }

.rp-product-slider .slick-prev::before { content: '<'; font-size: 20px; font-weight: bold; font-family: monospace; }
.rp-product-slider .slick-next::before { content: '>'; font-size: 20px; font-weight: bold; font-family: monospace; }

@media (max-width: 576px) {
    .rp-product-slider .product-card {
        flex: 0 0 220px !important;
    }
}
