/**
 * Product Display Weeben - Styles
 * Version: 1.0.0
 * Author: Weeben
 */

/* ========================================
   CONTENEUR PRINCIPAL
======================================== */
.pdw-container {
    margin: 20px 0;
    width: 100%;
}

/* ========================================
   SECTION FILTRES
======================================== */
.pdw-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
    align-items: flex-end;
}

.pdw-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 180px;
}

.pdw-filter-group label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.pdw-filter-group select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.pdw-filter-group select:hover {
    border-color: #0073aa;
}

.pdw-filter-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.pdw-filter-btn, 
.pdw-reset-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    margin-top: auto;
}

.pdw-filter-btn {
    background: #0073aa;
    color: white;
}

.pdw-filter-btn:hover {
    background: #005177;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.pdw-reset-btn {
    background: #e0e0e0;
    color: #333;
}

.pdw-reset-btn:hover {
    background: #d0d0d0;
}

/* ========================================
   GRILLE DE PRODUITS
======================================== */
.pdw-grid {
    display: grid;
    gap: 25px;
    margin-bottom: 30px;
}

.pdw-columns-2 { 
    grid-template-columns: repeat(2, 1fr); 
}

.pdw-columns-3 { 
    grid-template-columns: repeat(3, 1fr); 
}

.pdw-columns-4 { 
    grid-template-columns: repeat(4, 1fr); 
}

.pdw-columns-5 { 
    grid-template-columns: repeat(5, 1fr); 
}

/* ========================================
   CARTE PRODUIT
======================================== */
.pdw-product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pdw-product-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #0073aa;
}

/* ========================================
   IMAGE PRODUIT
======================================== */
.pdw-product-image {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 1 / 1;
}

.pdw-product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.pdw-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdw-product-card:hover .pdw-product-image img {
    transform: scale(1.08);
}

/* Image secondaire au survol */
.pdw-product-image .pdw-main-image,
.pdw-product-image .pdw-second-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.4s ease;
}

.pdw-product-image .pdw-second-image {
    opacity: 0;
}

.pdw-product-card:hover .pdw-product-image .pdw-second-image {
    opacity: 1;
}

.pdw-product-card:hover .pdw-product-image .pdw-main-image {
    opacity: 0;
}

.pdw-product-image .pdw-main-image img,
.pdw-product-image .pdw-second-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   BADGES
======================================== */
.pdw-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pdw-badge-sale {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.pdw-badge-stock {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    top: 50px;
}

.pdw-badge-soldes {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    left: auto;
    right: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* ========================================
   ACTIONS RAPIDES
======================================== */
.pdw-product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.pdw-product-card:hover .pdw-product-actions {
    opacity: 1;
    transform: translateX(0);
}

.pdw-product-actions button, 
.pdw-product-actions a {
    width: 42px;
    height: 42px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #666;
    text-decoration: none;
}

.pdw-product-actions button:hover, 
.pdw-product-actions a:hover {
    background: #0073aa;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.pdw-product-actions button.active {
    background: #e74c3c;
    color: white;
}

.pdw-product-actions button.active svg {
    fill: currentColor;
}

.pdw-product-actions svg {
    width: 20px;
    height: 20px;
}

/* Bouton panier au survol */
.pdw-product-actions .pdw-cart-hover {
    width: 42px;
    height: 42px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #666;
}

.pdw-product-actions .pdw-cart-hover:hover {
    background: #27ae60;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.pdw-product-actions .pdw-cart-hover.loading {
    opacity: 0.7;
    cursor: wait;
}

.pdw-product-actions img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ========================================
   CONTENU PRODUIT
======================================== */
.pdw-product-content {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pdw-product-title {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}

.pdw-product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pdw-product-title a:hover {
    color: #0073aa;
}

.pdw-product-rating {
    margin-bottom: 10px;
}

.pdw-product-rating .star-rating {
    font-size: 14px;
}

.pdw-product-price {
    font-size: 20px;
    font-weight: 700;
    color: #0073aa;
    margin: 10px 0 15px;
}

.pdw-product-price del {
    font-size: 16px;
    color: #999;
    font-weight: 400;
    margin-right: 8px;
}

.pdw-product-price ins {
    text-decoration: none;
    color: #e74c3c;
}

/* ========================================
   BOUTON AJOUTER AU PANIER
======================================== */
.pdw-product-cart {
    margin-top: auto;
}

.pdw-product-cart button,
.pdw-product-cart a.button {
    width: 100%;
    padding: 12px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.pdw-product-cart button:hover,
.pdw-product-cart a.button:hover {
    background: #005177;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.pdw-product-cart button.added {
    background: #27ae60;
}

.pdw-product-cart button.loading {
    opacity: 0.7;
    cursor: wait;
}

/* ========================================
   CAROUSEL SWIPER
======================================== */
.pdw-carousel {
    padding: 0 60px 70px 60px;
    margin-bottom: 30px;
    position: relative;
}

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

.pdw-carousel .swiper-slide .pdw-product-card {
    width: 100%;
    height: 100%;
}

/* Boutons de navigation Swiper */
.pdw-carousel .swiper-button-prev,
.pdw-carousel .swiper-button-next {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    color: #0073aa;
    top: 40%;
    margin-top: 0;
}

.pdw-carousel .swiper-button-prev {
    left: 5px;
}

.pdw-carousel .swiper-button-next {
    right: 5px;
}

.pdw-carousel .swiper-button-prev:after,
.pdw-carousel .swiper-button-next:after {
    font-size: 18px;
    font-weight: 900;
}

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

.pdw-carousel .swiper-button-prev.swiper-button-disabled,
.pdw-carousel .swiper-button-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Pagination Swiper */
.pdw-carousel .swiper-pagination {
    bottom: 0;
    position: relative;
    margin-top: 30px;
}

.pdw-carousel .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #0073aa;
    opacity: 0.3;
    transition: all 0.3s;
}

.pdw-carousel .swiper-pagination-bullet-active {
    opacity: 1;
    width: 30px;
    border-radius: 5px;
}

/* ========================================
   BOUTON LOAD MORE
======================================== */
.pdw-load-more-wrapper {
    text-align: center;
    margin: 40px 0 20px;
}

.pdw-load-more-btn {
    padding: 14px 40px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    min-width: 200px;
}

.pdw-load-more-btn:hover {
    background: #005177;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.pdw-load-more-btn:disabled,
.pdw-load-more-btn.loading {
    opacity: 0.6;
    cursor: wait;
    background: #999;
}

.pdw-load-more-btn.loading {
    position: relative;
}

.pdw-load-more-btn.loading:after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: pdw-spin 0.8s linear infinite;
}

/* ========================================
   LOADING / SPINNER
======================================== */
.pdw-loading {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.9);
    position: relative;
}

.pdw-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: pdw-spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes pdw-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   MESSAGE AUCUN PRODUIT
======================================== */
.pdw-no-products {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #666;
    background: #f8f8f8;
    border-radius: 8px;
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes pdw-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.pdw-wishlist.pulse {
    animation: pdw-pulse 0.3s ease-in-out;
}

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

.pdw-product-card {
    animation: fadeIn 0.5s ease-out;
}

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

/* Tablettes */
@media (max-width: 1024px) {
    .pdw-columns-4, 
    .pdw-columns-5 { 
        grid-template-columns: repeat(3, 1fr); 
    }
    
    .pdw-filters {
        gap: 12px;
    }
    
    .pdw-filter-group {
        min-width: 150px;
    }
    
    .pdw-carousel .swiper-button-prev,
    .pdw-carousel .swiper-button-next {
        width: 40px;
        height: 40px;
    }
}

/* Tablettes portrait */
@media (max-width: 768px) {
    .pdw-grid { 
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .pdw-filters {
        padding: 15px;
        gap: 10px;
    }
    
    .pdw-filter-group {
        flex: 1 1 45%;
        min-width: 120px;
    }
    
    .pdw-filter-btn, 
    .pdw-reset-btn {
        flex: 1 1 100%;
    }
    
    .pdw-product-title {
        font-size: 14px;
    }
    
    .pdw-product-price {
        font-size: 18px;
    }
    
    .pdw-carousel .swiper-button-prev {
        left: 5px;
    }
    
    .pdw-carousel .swiper-button-next {
        right: 5px;
    }
    
    .pdw-load-more-btn {
        min-width: 160px;
        padding: 12px 30px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .pdw-grid { 
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pdw-filters {
        flex-direction: column;
        padding: 12px;
    }
    
    .pdw-filter-group {
        width: 100%;
        min-width: auto;
    }
    
    .pdw-filter-btn, 
    .pdw-reset-btn {
        width: 100%;
    }
    
    .pdw-product-content {
        padding: 15px;
    }
    
    .pdw-product-title {
        font-size: 15px;
    }
    
    .pdw-product-actions {
        opacity: 1;
        transform: translateX(0);
    }
    
    .pdw-carousel .swiper-button-prev,
    .pdw-carousel .swiper-button-next {
        width: 35px;
        height: 35px;
    }
    
    .pdw-carousel .swiper-button-prev:after,
    .pdw-carousel .swiper-button-next:after {
        font-size: 16px;
    }
    
    .pdw-load-more-btn {
        width: 100%;
        min-width: auto;
    }
}

/* ========================================
   ACCESSIBILITÉ
======================================== */
.pdw-filter-btn:focus,
.pdw-reset-btn:focus,
.pdw-load-more-btn:focus,
.pdw-product-actions button:focus,
.pdw-product-actions a:focus,
.pdw-product-cart button:focus {
    outline: 2px solid #000000
    outline-offset: 2px;
}

/* ========================================
   COMPATIBILITÉ WOOCOMMERCE
======================================== */
.pdw-product-card .woocommerce-loop-product__title {
    font-size: inherit;
    margin: 0;
}

.pdw-product-card .price {
    margin: 0;
}

.pdw-product-card .star-rating {
    margin: 0;
}

.pdw-product-card .added_to_cart {
    margin-top: 10px;
    display: inline-block;
}

/* ========================================
   UTILITAIRES
======================================== */
.pdw-hidden {
    display: none !important;
}

.pdw-text-center {
    text-align: center;
}

/* ========================================
   NOTIFICATIONS
======================================== */

/* ========================================
   VARIABLES CSS PERSONNALISABLES
======================================== */
:root {
    /* Notification Success (Succès - Ajouté) */
    --pdw-notif-success-bg: #27ae60;
    --pdw-notif-success-color: #ffffff;
    --pdw-notif-success-border: transparent;
    
    /* Notification Error (Erreur) */
    --pdw-notif-error-bg: #e74c3c;
    --pdw-notif-error-color: #ffffff;
    --pdw-notif-error-border: transparent;
    
    /* Notification Info (Retiré des favoris) */
    --pdw-notif-info-bg: #3498db;
    --pdw-notif-info-color: #ffffff;
    --pdw-notif-info-border: transparent;
    
    /* Paramètres généraux */
    --pdw-notif-border-radius: 4px;
    --pdw-notif-padding: 16px 24px;
    --pdw-notif-font-size: 14px;
    --pdw-notif-font-weight: 600;
    --pdw-notif-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    --pdw-notif-max-width: 400px;
}

/* ========================================
   NOTIFICATIONS
======================================== */
.pdw-notification {
    position: fixed;
    z-index: 99999;
    padding: var(--pdw-notif-padding);
    border-radius: var(--pdw-notif-border-radius);
    box-shadow: var(--pdw-notif-shadow);
    font-size: var(--pdw-notif-font-size);
    font-weight: var(--pdw-notif-font-weight);
    animation: pdw-slideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: var(--pdw-notif-max-width);
    border: 2px solid transparent;
}

.pdw-notification.top-left {
    top: 20px;
    left: 20px;
}

.pdw-notification.top-right {
    top: 20px;
    right: 20px;
}

.pdw-notification.bottom-left {
    bottom: 20px;
    left: 20px;
}

.pdw-notification.bottom-right {
    bottom: 20px;
    right: 20px;
}

.pdw-notification.top-center {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.pdw-notification.success {
    background: var(--pdw-notif-success-bg);
    color: var(--pdw-notif-success-color);
    border-color: var(--pdw-notif-success-border);
}

.pdw-notification.error {
    background: var(--pdw-notif-error-bg);
    color: var(--pdw-notif-error-color);
    border-color: var(--pdw-notif-error-border);
}

.pdw-notification.info {
    background: var(--pdw-notif-info-bg);
    color: var(--pdw-notif-info-color);
    border-color: var(--pdw-notif-info-border);
}

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

@keyframes pdw-slideInCenter {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.pdw-notification.top-center {
    animation: pdw-slideInCenter 0.3s ease-out;
}
@keyframes pdw-slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pdw-notification.top-center {
    animation: pdw-slideInCenter 0.3s ease-out;
}

@keyframes pdw-slideInCenter {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Style Deux - Notifications */
.pdw-style-deux ~ .pdw-notification,
.pdw-container.pdw-style-deux ~ .pdw-notification {
    border-radius: 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 28px;
}

/* Style Trois - Notifications */
.pdw-style-trois ~ .pdw-notification,
.pdw-container.pdw-style-trois ~ .pdw-notification {
    border-radius: 0;
    background: #000;
    color: white;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 16px 30px;
}

.pdw-style-trois ~ .pdw-notification.error {
    background: #000;
    border-left: 4px solid #e74c3c;
}

/* ========================================
   STYLE DEUX (inspiré de deuxchaussures.com)
======================================== */

/* Container avec fond gris clair */
.pdw-container.pdw-style-deux {
    background: #f8f8f8;
    padding: 30px 20px;
}

/* Grille plus aérée */
.pdw-style-deux .pdw-grid {
    gap: 30px;
}

/* Carte produit style Deux */
.pdw-style-deux .pdw-product-card {
    background: white;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.pdw-style-deux .pdw-product-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Image avec ratio différent */
.pdw-style-deux .pdw-product-image {
    aspect-ratio: 3 / 4 !important;
    background: #fafafa;
}

.pdw-style-deux .pdw-product-image img {
    object-fit: cover;
}

/* Badge style Deux - coins arrondis */
.pdw-style-deux .pdw-badge {
    border-radius: 20px !important;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    top: 10px;
    left: 10px;
}

.pdw-style-deux .pdw-badge-sale {
    background: #e74c3c !important;
    color: white !important;
}

/* Actions toujours visibles en bas de l'image */
.pdw-style-deux .pdw-product-actions {
    position: absolute;
    bottom: 10px;
    right: 10px;
    left: auto;
    top: auto;
    flex-direction: row;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.pdw-style-deux .pdw-product-card:hover .pdw-product-actions {
    opacity: 1;
    transform: translateY(0);
}

.pdw-style-deux .pdw-product-actions button,
.pdw-style-deux .pdw-product-actions a {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Masquer les boutons si désactivés */
.pdw-product-actions:empty {
    display: none !important;
}

.pdw-product-actions button.pdw-hidden,
.pdw-product-actions a.pdw-hidden {
    display: none !important;
}

/* Contenu produit */
.pdw-style-deux .pdw-product-content {
    padding: 20px 15px;
    text-align: center;
}

.pdw-style-deux .pdw-product-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pdw-style-deux .pdw-product-title a {
    color: #333;
}

.pdw-style-deux .pdw-product-title a:hover {
    color: #e74c3c;
}

/* Prix style Deux */
.pdw-style-deux .pdw-product-price {
    font-size: 18px;
    font-weight: 700;
    margin: 12px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pdw-style-deux .pdw-product-price del {
    font-size: 16px;
    color: #999;
    font-weight: 400;
    text-decoration: line-through;
}

.pdw-style-deux .pdw-product-price ins {
    text-decoration: none;
    color: #e74c3c;
    font-weight: 700;
}

/* Bouton panier style Deux */
.pdw-style-deux .pdw-product-cart button,
.pdw-style-deux .pdw-product-cart a.button {
    background: transparent !important;
    color: #333 !important;
    border: 2px solid #333 !important;
    border-radius: 0 !important;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.pdw-style-deux .pdw-product-cart button:hover,
.pdw-style-deux .pdw-product-cart a.button:hover {
    background: #333 !important;
    color: white !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Bouton Charger Plus style Deux */
.pdw-style-deux .pdw-load-more-btn {
    background: white !important;
    color: #333 !important;
    border: 2px solid #333 !important;
    border-radius: 0 !important;
    padding: 14px 40px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
}

.pdw-style-deux .pdw-load-more-btn:hover {
    background: #333 !important;
    color: white !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Filtres style Deux */
.pdw-style-deux .pdw-filters {
    background: white !important;
    border-radius: 0 !important;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.pdw-style-deux .pdw-filter-group select {
    border: 1px solid #ddd;
    border-radius: 0;
    padding: 12px 15px;
    font-size: 14px;
}

.pdw-style-deux .pdw-filter-btn {
    background: #333 !important;
    color: white !important;
    border-radius: 0 !important;
    padding: 12px 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
}

.pdw-style-deux .pdw-filter-btn:hover {
    background: #000 !important;
    transform: none !important;
}

.pdw-style-deux .pdw-reset-btn {
    background: transparent !important;
    color: #333 !important;
    border: 2px solid #333 !important;
    border-radius: 0 !important;
    padding: 10px 30px;
}

.pdw-style-deux .pdw-reset-btn:hover {
    background: #333 !important;
    color: white !important;
}

/* Notes produit */
.pdw-style-deux .pdw-product-rating {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

.pdw-style-deux .star-rating {
    color: #ffa500;
}

/* Responsive Deux */
@media (max-width: 768px) {
    .pdw-style-deux .pdw-grid {
        gap: 20px;
    }
    
    .pdw-style-deux .pdw-product-content {
        padding: 15px 10px;
    }
    
    .pdw-style-deux .pdw-product-title {
        font-size: 14px;
    }
    
    .pdw-style-deux .pdw-product-actions {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   STYLE TROIS (Deux Premium)
======================================== */

/* Container */
.pdw-container.pdw-style-trois {
    background: #ffffff;
    padding: 0;
}

/* Grille serrée */
.pdw-style-trois .pdw-grid {
    gap: 15px;
}

/* Carte produit minimaliste */
.pdw-style-trois .pdw-product-card {
    background: white;
    border: 1px solid #e8e8e8 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: visible !important;
}

.pdw-style-trois .pdw-product-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    border-color: transparent !important;
    z-index: 10;
}

/* Image carrée stricte */
.pdw-style-trois .pdw-product-image {
    aspect-ratio: 1 / 1 !important;
    background: #fafafa;
    position: relative;
    overflow: hidden;
}

.pdw-style-trois .pdw-product-image img {
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pdw-style-trois .pdw-product-card:hover .pdw-product-image img {
    transform: scale(1.12);
}

/* Badge minimaliste */
.pdw-style-trois .pdw-badge {
    border-radius: 0 !important;
    padding: 8px 14px;
    font-size: 10px;
    font-weight: 800;
    top: 15px;
    left: 15px;
    letter-spacing: 1.5px;
}

.pdw-style-trois .pdw-badge-sale {
    background: #000 !important;
    color: white !important;
}

.pdw-style-trois .pdw-badge-stock {
    background: #666 !important;
    color: white !important;
    top: 55px;
}

/* Actions overlay complet */
.pdw-style-trois .pdw-product-actions {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 3;
}

.pdw-style-trois .pdw-product-card:hover .pdw-product-actions {
    opacity: 1;
    transform: scale(1);
}

.pdw-style-trois .pdw-product-actions button,
.pdw-style-trois .pdw-product-actions a {
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.pdw-style-trois .pdw-product-actions button:hover,
.pdw-style-trois .pdw-product-actions a:hover {
    background: #000;
    color: white;
    transform: scale(1.15) rotate(10deg);
}

.pdw-style-trois .pdw-wishlist.active {
    background: #e74c3c !important;
    color: white !important;
}

/* Contenu épuré */
.pdw-style-trois .pdw-product-content {
    padding: 18px 12px;
    text-align: left;
}

.pdw-style-trois .pdw-product-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.3;
}

.pdw-style-trois .pdw-product-title a {
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.pdw-style-trois .pdw-product-title a:hover {
    color: #666;
}

/* Prix clean */
.pdw-style-trois .pdw-product-price {
    font-size: 16px;
    font-weight: 700;
    margin: 8px 0;
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    gap: 8px;
    color: #000 !important;
}

.pdw-style-trois .pdw-product-price del {
    font-size: 14px;
    color: #999;
    font-weight: 400;
    text-decoration: line-through;
}

.pdw-style-trois .pdw-product-price ins {
    text-decoration: none;
    color: #e74c3c;
    font-weight: 700;
}

/* Rating minimaliste */
.pdw-style-trois .pdw-product-rating {
    margin-bottom: 8px;
    display: flex;
    justify-content: flex-start;
}

.pdw-style-trois .star-rating {
    font-size: 12px;
    color: #000;
}

/* Bouton panier invisible par défaut */
.pdw-style-trois .pdw-product-cart {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
}

.pdw-style-trois .pdw-product-card:hover .pdw-product-cart {
    opacity: 1;
    transform: translateY(0);
}

.pdw-style-trois .pdw-product-cart button,
.pdw-style-trois .pdw-product-cart a.button {
    background: #000 !important;
    color: white !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    width: 100%;
}

.pdw-style-trois .pdw-product-cart button:hover,
.pdw-style-trois .pdw-product-cart a.button:hover {
    background: #333 !important;
    color: white !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Bouton Load More minimaliste */
.pdw-style-trois .pdw-load-more-wrapper {
    margin: 60px 0 40px;
}

.pdw-style-trois .pdw-load-more-btn {
    background: #000 !important;
    color: white !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 16px 50px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.4s ease;
}

.pdw-style-trois .pdw-load-more-btn:hover {
    background: #333 !important;
    color: white !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Filtres minimalistes */
.pdw-style-trois .pdw-filters {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #e8e8e8 !important;
    border-radius: 0 !important;
    padding: 30px 0;
    box-shadow: none !important;
    margin-bottom: 40px;
}

.pdw-style-trois .pdw-filter-group {
    min-width: 150px;
}

.pdw-style-trois .pdw-filter-group label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: #000;
}

.pdw-style-trois .pdw-filter-group select {
    border: 1px solid #000;
    border-radius: 0;
    padding: 12px 15px;
    font-size: 13px;
    font-weight: 500;
    background: white;
    color: #000;
}

.pdw-style-trois .pdw-filter-group select:focus {
    border-color: #000;
    box-shadow: none;
}

.pdw-style-trois .pdw-filter-btn {
    background: #000 !important;
    color: white !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 12px 35px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 11px;
    font-weight: 700;
}

.pdw-style-trois .pdw-filter-btn:hover {
    background: #333 !important;
    transform: none !important;
    box-shadow: none !important;
}

.pdw-style-trois .pdw-reset-btn {
    background: white !important;
    color: #000 !important;
    border: 1px solid #000 !important;
    border-radius: 0 !important;
    padding: 11px 35px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 11px;
    font-weight: 700;
}

.pdw-style-trois .pdw-reset-btn:hover {
    background: #000 !important;
    color: white !important;
}

/* Responsive Trois */
@media (max-width: 768px) {
    .pdw-style-trois .pdw-grid {
        gap: 10px;
    }
    
    .pdw-style-trois .pdw-product-content {
        padding: 12px 8px;
    }
    
    .pdw-style-trois .pdw-product-title {
        font-size: 13px;
    }
    
    .pdw-style-trois .pdw-product-price {
        font-size: 14px;
    }
    
    .pdw-style-trois .pdw-product-cart {
        opacity: 1;
        transform: translateY(0);
    }
    
    .pdw-style-trois .pdw-product-actions {
        opacity: 0;
    }
}