/* ==========================================
   PS SLIDER PRO - FRONTEND STYLES
   ========================================== */

/* Conteneur principal du slider */
.ps-slider-wrapper {
    width: 100%;
    margin: 40px 0;
    position: relative;
}

/* Swiper container */
.ps-swiper {
    width: 100%;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

.swiper-wrapper {
    display: flex;
}

.swiper-slide {
    height: auto;
    display: flex;
}

/* Card produit */
.ps-product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ps-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* Image produit */
.ps-product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.ps-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Contenu produit */
.ps-product-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ps-product-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
    min-height: 2.8em;
}

.ps-product-price {
    font-size: 1.3em;
    font-weight: 700;
    color: #0073aa;
    margin: 10px 0;
}

.ps-product-description {
    font-size: 0.9em;
    color: #666;
    line-height: 1.6;
    margin: 10px 0;
    flex: 1;
}

.ps-product-button {
    display: inline-block;
    padding: 12px 24px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    transition: background 0.3s ease;
    margin-top: auto;
}

.ps-product-button:hover {
    background: #005a87;
    color: #fff;
}

/* Navigation Swiper */
.swiper-button-prev,
.swiper-button-next {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    color: #0073aa;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 20px;
    font-weight: 700;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: #0073aa;
    color: #fff;
}

.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Pagination */
.swiper-pagination {
    bottom: 0;
    position: relative;
    margin-top: 20px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ddd;
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #0073aa;
    width: 30px;
    border-radius: 6px;
}
/* ==========================================
   STYLES PAR THÈME
   ========================================== */

/* Style Modern (par défaut) */
.ps-style-modern .ps-product-card {
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.ps-style-modern .ps-product-image {
    height: 280px;
    border-radius: 12px 12px 0 0;
}

.ps-style-modern .ps-product-button {
    border-radius: 25px;
    padding: 14px 28px;
}

/* Style Classic */
.ps-style-classic .ps-product-card {
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: none;
}

.ps-style-classic .ps-product-card:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 10px rgba(0,115,170,0.2);
}

.ps-style-classic .ps-product-image {
    border-bottom: 2px solid #e0e0e0;
}

.ps-style-classic .ps-product-button {
    border-radius: 0;
    background: #333;
}

.ps-style-classic .ps-product-button:hover {
    background: #000;
}

/* Style Minimal */
.ps-style-minimal .ps-product-card {
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #f0f0f0;
}

.ps-style-minimal .ps-product-card:hover {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-color: #ddd;
}

.ps-style-minimal .ps-product-image {
    height: 220px;
}

.ps-style-minimal .ps-product-title {
    font-size: 1em;
    font-weight: 500;
}

.ps-style-minimal .ps-product-button {
    background: transparent;
    color: #0073aa;
    border: 2px solid #0073aa;
    padding: 10px 20px;
}

.ps-style-minimal .ps-product-button:hover {
    background: #0073aa;
    color: #fff;
}

/* ==========================================
   MODE GRILLE
   ========================================== */

.ps-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.ps-grid-wrapper .ps-product-card {
    margin: 0;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

/* Tablette */
@media (max-width: 768px) {
    .ps-product-image {
        height: 200px;
    }
    
    .ps-product-title {
        font-size: 1em;
    }
    
    .ps-product-price {
        font-size: 1.1em;
    }
    
    .ps-product-content {
        padding: 15px;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        width: 36px;
        height: 36px;
    }
    
    .swiper-button-prev:after,
    .swiper-button-next:after {
        font-size: 16px;
    }
    
    .ps-grid-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .ps-slider-wrapper {
        margin: 20px 0;
    }
    
    .ps-product-image {
        height: 180px;
    }
    
    .ps-product-title {
        font-size: 0.95em;
        min-height: auto;
    }
    
    .ps-product-description {
        font-size: 0.85em;
    }
    
    .ps-product-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }
    
    .ps-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ps-product-card {
    animation: fadeInUp 0.5s ease-out;
}

/* Animation au chargement progressif */
.swiper-slide:nth-child(1) .ps-product-card {
    animation-delay: 0s;
}

.swiper-slide:nth-child(2) .ps-product-card {
    animation-delay: 0.1s;
}

.swiper-slide:nth-child(3) .ps-product-card {
    animation-delay: 0.2s;
}

.swiper-slide:nth-child(4) .ps-product-card {
    animation-delay: 0.3s;
}

.swiper-slide:nth-child(5) .ps-product-card {
    animation-delay: 0.4s;
}

.swiper-slide:nth-child(6) .ps-product-card {
    animation-delay: 0.5s;
}

/* ==========================================
   UTILITAIRES
   ========================================== */

.ps-slider-wrapper.loading {
    opacity: 0.6;
    pointer-events: none;
}

.ps-no-products {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.1em;
}