/* ========================================
   COMMERCIFY VIGNETTES 3D BUTTON EFFECT
   EFFET DE BOUTON QUI S'ENFONCE AVEC OMBRAGES
   ======================================== */

/* 🎯 VIGNETTE PRINCIPALE - EFFET 3D */
.product-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    border-radius: 0;
    background: #ffffff;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    transform: translateZ(0);
    will-change: transform;
}

/* 🎯 ÉTAT NORMAL - BOUTON "SURÉLEVÉ" */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(0, 0, 0, 0.05) 100%);
    border-radius: 0;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 🎯 HOVER - BOUTON QUI S'ENFONCE + EFFETS SPECTACULAIRES */
.product-card:hover {
    transform: translateY(4px) scale(0.98);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.15),
        0 1px 2px rgba(0, 0, 0, 0.1),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: hover-reveal 0.6s ease-out;
}

/* 🎯 HOVER - OMBRAGE INTÉRIEUR RENFORCÉ */
.product-card:hover::before {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(0, 0, 0, 0.1) 50%, 
        rgba(0, 0, 0, 0.15) 100%);
}

/* 🎯 ACTIVE - BOUTON ENFONCÉ AU MAXIMUM (remplacé par l'animation de vibration) */
.product-card:active {
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.2),
        inset 0 3px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 🎯 ACTIVE - OMBRAGE INTÉRIEUR MAXIMUM */
.product-card:active::before {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(0, 0, 0, 0.15) 50%, 
        rgba(0, 0, 0, 0.25) 100%);
}

/* 🖼️ IMAGE DE LA VIGNETTE - EFFET 3D */
.product-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
}

.product-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(0, 0, 0, 0.05) 100%);
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 🖼️ HOVER IMAGE - EFFET D'ENFONCEMENT */
.product-card:hover .product-thumb::before {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        transparent 30%, 
        rgba(0, 0, 0, 0.1) 100%);
}

/* 🖼️ IMAGE PRINCIPALE - TRANSITION DOUCE */
.card-img-top {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* 🖼️ HOVER IMAGE - LÉGÈRE ROTATION 3D */
.product-card:hover .card-img-top {
    transform: translateZ(0) scale(1.02) rotateX(2deg);
}

/* 🎯 CONTENU DE LA VIGNETTE - EFFET 3D */
.product-body {
    position: relative;
    z-index: 2;
    background: transparent;
    border-radius: 0;
    padding: 16px;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 🎯 HOVER CONTENU - OMBRAGE INTÉRIEUR */
.product-card:hover .product-body {
    background: transparent;
}

/* 🎯 TITRE DE LA VIGNETTE - EFFET 3D */
.product-title {
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: none;
}

/* 🎯 HOVER TITRE - EFFET D'ENFONCEMENT */
.product-card:hover .product-title {
    color: #0f172a;
    text-shadow: none;
    transform: translateY(-1px);
}

/* 🎯 PRIX - EFFET 3D */
.product-price {
    font-weight: 700;
    color: #dc2626;
    font-size: 1.1em;
    text-shadow: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 🎯 HOVER PRIX - EFFET D'ENFONCEMENT */
.product-card:hover .product-price {
    color: #b91c1c;
    text-shadow: none;
    transform: translateY(-1px);
}

/* 🎯 BADGES ET TAGS - EFFET 3D */
.product-tags {
    position: relative;
    z-index: 3;
}

/* 🎯 DESCRIPTION - CONTRASTE OPTIMAL */
.product-description {
    color: #4a5568;
    font-size: 0.9em;
    line-height: 1.4;
    text-shadow: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 🎯 HOVER DESCRIPTION */
.product-card:hover .product-description {
    color: #2d3748;
    text-shadow: none;
}

/* 🎯 CATÉGORIE - CONTRASTE OPTIMAL */
.product-category {
    color: #718096;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 🎯 HOVER CATÉGORIE */
.product-card:hover .product-category {
    color: #4a5568;
    text-shadow: none;
}

.badge {
    background: #e2e8f0;
    color: #2d3748;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: none;
}

/* 🎯 HOVER BADGES - EFFET D'ENFONCEMENT */
.product-card:hover .badge {
    background: #cbd5e0;
    color: #1a202c;
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(1px);
    text-shadow: none;
}

/* 🎯 BOUTONS D'ACTION - EFFET 3D */
.product-actions {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 🎯 HOVER ACTIONS - APPARITION AVEC EFFET 3D */
.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* 🎯 BOUTONS D'ACTION INDIVIDUELS */
.product-actions .btn {
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    border-radius: 0;
    transform: translateZ(0);
}

/* 🎯 HOVER BOUTONS - EFFET D'ENFONCEMENT */
.product-actions .btn:hover {
    transform: translateY(1px);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 🎯 ACTIVE BOUTONS - ENFONCEMENT MAXIMUM */
.product-actions .btn:active {
    transform: translateY(2px);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.25),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 📱 OPTIMISATIONS SMARTPHONES */
@media (max-width: 768px) {
    .product-card {
        border-radius: 0;
    }
    
    .product-card:hover {
        transform: translateY(2px) scale(0.99);
    }
    
    .product-card:active {
        transform: translateY(3px) scale(0.97);
    }
    
    .product-thumb {
        border-radius: 0;
    }
    
    .product-body {
        border-radius: 0;
        padding: 12px;
    }
}

/* 🎯 OPTIMISATIONS PERFORMANCE */
.scrolling .product-card {
    transition: none;
}

.scrolling .product-card:hover {
    transform: none;
}

/* 🎯 DARK MODE SUPPORT - CONTRASTE PARFAIT */
@media (prefers-color-scheme: dark) {
    .product-card {
        background: #1a202c;
        box-shadow: 
            0 4px 8px rgba(0, 0, 0, 0.4),
            0 2px 4px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }
    
    .product-card:hover {
        box-shadow: 
            0 2px 4px rgba(0, 0, 0, 0.5),
            0 1px 2px rgba(0, 0, 0, 0.4),
            inset 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    .product-body {
        background: transparent;
    }
    
    .product-title {
        color: #f7fafc !important;
        text-shadow: none;
        font-weight: 600;
    }
    
    .product-card:hover .product-title {
        color: #ffffff !important;
        text-shadow: none;
    }
    
    .product-price {
        color: #fbb6ce !important;
        text-shadow: none;
    }
    
    .product-card:hover .product-price {
        color: #f687b3 !important;
        text-shadow: none;
    }
    
    .product-description {
        color: #e2e8f0 !important;
        text-shadow: none;
    }
    
    .badge {
        background: #4a5568 !important;
        color: #f7fafc !important;
        text-shadow: none;
    }
}

/* 🎯 ACCESSIBILITÉ - REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    .product-card,
    .product-card::before,
    .product-thumb::before,
    .card-img-top,
    .product-body,
    .product-title,
    .product-price,
    .badge,
    .product-actions,
    .product-actions .btn {
        transition: none;
        transform: none;
    }
    
    .product-card:hover {
        transform: none;
    }
    
    .product-card:active {
        transform: none;
    }
}

/* 🎯 EFFET SPÉCIAL - ONDULATION AU CLIC */
.product-card {
    position: relative;
    overflow: hidden;
}

/* Effet de vibration accentué au clic - VERSION ULTRA-OPTIMISÉE */
.product-card:active {
    animation: vibration-click 0.2s ease-out;
    border: 4px solid #09c2de !important;
    box-shadow: 
        0 0 0 2px rgba(9, 194, 222, 0.3),
        0 0 20px rgba(9, 194, 222, 0.4) !important;
}

@keyframes vibration-click {
    0% { transform: translateY(6px) scale(0.96) translateX(0); }
    25% { transform: translateY(6px) scale(0.96) translateX(-1px); }
    50% { transform: translateY(6px) scale(0.96) translateX(1px); }
    75% { transform: translateY(6px) scale(0.96) translateX(-0.5px); }
    100% { transform: translateY(6px) scale(0.96) translateX(0); }
}

/* ⚡ EFFET 1: AURA MAGNÉTIQUE - VERSION ULTRA-OPTIMISÉE */
.product-card::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: rgba(9, 194, 222, 0.3);
    border: 2px solid rgba(9, 194, 222, 0.6);
    border-radius: 0;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.product-card:hover::after {
    opacity: 1;
    transform: scale(1.02);
}

/* 🌟 EFFET 2: GLOW SIMPLE - VERSION ULTRA-OPTIMISÉE */
.product-card:hover {
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.15),
        0 1px 2px rgba(0, 0, 0, 0.1),
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 0 15px rgba(9, 194, 222, 0.3);
}


/* 🎆 ANIMATION PRINCIPALE DE RÉVÉLATION - VERSION ULTRA-OPTIMISÉE */
@keyframes hover-reveal {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
}

/* 🎯 FINAL TOUCH - OMBRAGE EXTERNE DOUX - OPTIMISÉ (supprimé filter coûteux) */

/* 🔄 ÉTAT DE CHARGEMENT - BORDURE ÉLÉGANTE */
.product-card.loading {
    border: 4px solid #09c2de !important;
    box-shadow: 
        0 0 0 2px rgba(9, 194, 222, 0.3),
        0 0 20px rgba(9, 194, 222, 0.4) !important;
    animation: loading-pulse 1.5s ease-in-out infinite;
}

@keyframes loading-pulse {
    0% {
        border-color: #09c2de;
        box-shadow: 
            0 0 0 2px rgba(9, 194, 222, 0.3),
            0 0 20px rgba(9, 194, 222, 0.4);
    }
    50% {
        border-color: #0dd9ff;
        box-shadow: 
            0 0 0 2px rgba(13, 217, 255, 0.5),
            0 0 25px rgba(13, 217, 255, 0.6);
    }
    100% {
        border-color: #09c2de;
        box-shadow: 
            0 0 0 2px rgba(9, 194, 222, 0.3),
            0 0 20px rgba(9, 194, 222, 0.4);
    }
}

/* Supprimé filter drop-shadow coûteux GPU */
