/* Productos Slider Styles */
.jls-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Ensure swiper arrows don't cause horizontal scroll on body */
}

.jls-productos-slider {
    padding-bottom: 50px;
    /* Space for pagination */
    margin: 0 -10px;
    /* Counteract slide padding if needed, or just let swiper handle gap */
}

/* Card styles overlap with grid, but handled within slider context */
.jls-productos-slider .jls-product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Ensure uniform height in swiper */
}

.jls-productos-slider .swiper-slide {
    height: auto;
    /* Allow stretch */
    padding: 10px;
    /* spacing between slides */
    box-sizing: border-box;
}

.jls-productos-slider .jls-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.jls-productos-slider .jls-product-card-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    /* 4:3 Aspect Ratio */
    background: #f5f5f5;
    overflow: hidden;
}

.jls-productos-slider .jls-product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.jls-productos-slider .jls-product-card:hover .jls-product-card-image img {
    transform: scale(1.05);
}

.jls-productos-slider .jls-product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.jls-productos-slider .jls-product-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.jls-productos-slider .jls-product-title {
    margin: 0 0 15px;
    font-size: 18px;
    line-height: 1.3;
}

.jls-productos-slider .jls-product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.jls-productos-slider .jls-product-title a:hover {
    color: #0073aa;
}

.jls-productos-slider .jls-product-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    color: #666;
    margin-top: auto;
}

.jls-productos-slider .meta-item strong {
    color: #333;
}

/* Swiper Controls Customization */
.jls-productos-slider .swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
    transition: background 0.3s;
}

.jls-productos-slider .swiper-pagination-bullet-active {
    background: #0073aa;
}

.jls-productos-slider .swiper-button-prev,
.jls-productos-slider .swiper-button-next {
    color: #0073aa;
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.jls-productos-slider .swiper-button-prev:after,
.jls-productos-slider .swiper-button-next:after {
    font-size: 16px;
}
/* Hover Content Mode */
.jls-hover-content-mode .jls-product-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    padding: 15px;
    z-index: 10;
}

.jls-hover-content-mode .jls-product-card {
    position: relative; /* Ensure it contains the absolute content */
}

.jls-hover-content-mode .jls-product-card-image {
    padding-top: 100%; /* Make it square-ish or taller to fit the overlay */
}

.jls-hover-content-mode .jls-product-card:hover .jls-product-card-content {
    transform: translateY(0);
}

/* Responsive Spacing for Pagination Dots */
.jls-productos-slider {
    padding-bottom: 50px; /* Default reserve space for dots */
}

.jls-productos-slider .swiper-pagination {
    bottom: 0 !important; /* Ensure they stay at the bottom of the container */
}

@media (min-width: 768px) {
    .jls-productos-slider {
        padding-bottom: 60px; /* Slightly more space on tablets */
    }
}

@media (min-width: 1024px) {
    .jls-productos-slider {
        padding-bottom: 70px; /* More space on desktops */
    }
}
