/* Jilumine Product Slider v2.1 */

.jps-wrapper {
    position: relative;
    width: 100%;
    margin: 40px auto;
    padding: 10px 0 50px;
    box-sizing: border-box;
    overflow: visible;
}

/* Scène 3D */
.jps-scene {
    perspective: 1100px;
    perspective-origin: 50% 50%;
    width: 100%;
    overflow: visible;
}

/* Conteneur slides — position relative, hauteur auto */
.jps-slider {
    position: relative;
    width: 100%;
    min-height: 420px;
    transform-style: preserve-3d;
    padding: 20px 0 10px;
    box-sizing: border-box;
}

/* Chaque slide positionné en absolu */
.jps-slide {
    position: absolute;
    top: 0;
    box-sizing: border-box;
    transition:
        transform 0.6s cubic-bezier(0.33, 1.08, 0.68, 1),
        opacity   0.5s ease,
        left      0.6s cubic-bezier(0.33, 1.08, 0.68, 1);
    transform-origin: center center;
    cursor: pointer;
    will-change: transform, opacity, left;
}

/* Card */
.jps-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
    transition: box-shadow 0.4s ease;
}

.jps-slide.jps-active .jps-card {
    box-shadow: 0 20px 55px rgba(0,0,0,0.22);
}

/* Image */
.jps-img-link {
    position: relative;
    display: block;
    overflow: hidden;
}

.jps-img {
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.jps-slide.jps-active:hover .jps-img {
    transform: scale(1.04);
}

/* Badge */
.jps-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 11px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.jps-badge-sale { background: #e74c3c; color: #fff; }
.jps-badge-new  { background: #27ae60; color: #fff; }

/* Info — visible uniquement sur slide actif */
.jps-info {
    overflow: visible;
    max-height: 0;
    opacity: 0;
    padding: 0 16px;
    transition:
        max-height 0.55s cubic-bezier(0.33, 1.08, 0.68, 1),
        opacity    0.4s ease,
        padding    0.3s ease;
}

.jps-slide.jps-active .jps-info {
    max-height: 320px;
    opacity: 1;
    padding: 18px 16px;
}

.jps-title {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
}
.jps-title a { color: #333; text-decoration: none; }
.jps-title a:hover { color: #c8a96e; }

.jps-rating { text-align: center; margin-bottom: 7px; }
.jps-rating .star-rating { font-size: 12px; }

.jps-price {
    text-align: center;
    margin-bottom: 14px;
    font-weight: 700;
    font-size: 17px;
    color: #222;
}
.jps-price del { color: #bbb; font-weight: 400; font-size: 13px; margin-right: 5px; }
.jps-price ins { text-decoration: none; color: #e74c3c; }

.jps-cart .button,
.jps-cart .add_to_cart_button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 11px 16px;
    background: transparent;
    color: #27ae60;
    border: 2px solid #27ae60;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
    text-transform: uppercase;
}
.jps-cart .button:hover,
.jps-cart .add_to_cart_button:hover {
    background: #27ae60;
    color: #fff;
}

/* Navigation */
.jps-nav {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.90);
    backdrop-filter: blur(6px);
    border: none;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    font-size: 19px;
    cursor: pointer;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 14px rgba(0,0,0,0.13);
    transition: background 0.2s, color 0.2s, transform 0.2s;
    padding: 0;
    color: #444;
}
.jps-nav:hover {
    background: #c8a96e;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}
.jps-prev { left: 8px; }
.jps-next { right: 8px; }
.jps-nav:disabled { opacity: 0.18; cursor: not-allowed; transform: translateY(-50%); }

/* Dots */
.jps-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 20px;
}
.jps-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}
.jps-dot.active {
    background: #c8a96e;
    transform: scale(1.5);
}

.jps-empty { text-align: center; color: #bbb; padding: 40px; }

@media (max-width: 600px) {
    .jps-nav { width: 36px; height: 36px; font-size: 15px; }
}
