/* =============================================
   PMD VIP SHOES - Custom Styles
   ============================================= */

/* :root Variables */
:root {
    --primary-color: #000000;
    --secondary-color: #D4AF37;
    --accent-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
}

/* Typography */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary-color);
}

.text-playfair {
    font-family: 'Playfair Display', serif;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    z-index: 9999 !important; /* Z-index très élevé pour être au-dessus de tout */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease;
    text-decoration: none;
    pointer-events: auto !important; /* S'assurer que le bouton est cliquable */
}

.whatsapp-float:hover {
    color: #fff;
    background-color: #128C7E;
    transform: scale(1.1);
    text-decoration: none;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

.navbar-brand {
    font-size: 1.1rem !important;
    font-weight: 700;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--secondary-color) !important;
}

.nav-link {
    font-weight: 400 !important;
    font-size: 0.85rem !important;
    padding: 0.25rem 0.5rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

.nav-link.active {
    color: var(--secondary-color) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--secondary-color);
}

/* Dropdown menus */
.dropdown-menu {
    font-size: 0.8rem !important;
    padding: 0.25rem 0 !important;
}

.dropdown-item {
    padding: 0.25rem 0.75rem !important;
    font-size: 0.8rem !important;
}

/* Search form */
.form-control-sm {
    font-size: 0.8rem !important;
    padding: 0.25rem 0.5rem !important;
}

.btn-sm {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
}

/* Cart badge */
#cart-count {
    font-size: 0.7rem !important;
    padding: 0.15rem 0.3rem !important;
    min-width: 1.2rem !important;
    height: 1.2rem !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #333333 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png') repeat;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: var(--bg-light);
}

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

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

/* Désactiver le zoom sur les images produits vedettes en mode mobile */
@media (max-width: 768px) {
    .product-card:hover .product-image img,
    .product-card .product-image img,
    .product-image img {
        transform: none !important;
        scale: 1 !important;
        zoom: 1 !important;
        filter: none !important;
        transition: none !important;
    }
    
    .product-card:hover,
    .product-card {
        transform: none !important;
        scale: 1 !important;
        zoom: 1 !important;
    }
    
    /* Forcer tous les états possibles */
    .product-card * img,
    .product-card:hover * img,
    section .product-card img,
    section .product-card:hover img {
        transform: none !important;
        scale: 1 !important;
        zoom: 1 !important;
    }
    
    /* CONFIGURATION POUR VISIBILITÉ COMPLÈTE DES IMAGES EN MOBILE */
    .product-image {
        height: auto !important;
        min-height: 280px !important;
        max-height: 400px !important;
        overflow: visible !important;
        position: relative !important;
        background: #f8f9fa !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .product-image img {
        width: 100% !important;
        height: 100% !important;
        min-height: 280px !important;
        max-height: 400px !important;
        object-fit: contain !important; /* Garder contain pour voir l'image complète */
        object-position: center !important;
        display: block !important;
        margin: 0 !important;
        border-radius: 8px !important;
        padding: 10px !important;
        box-sizing: border-box !important;
    }
    
    /* Assurer que le conteneur parent n'écrase pas l'image */
    .product-card {
        overflow: visible !important;
    }
    
    /* Pour les tablettes */
    @media (max-width: 768px) and (min-width: 481px) {
        .product-image {
            min-height: 260px !important;
            max-height: 350px !important;
        }
        
        .product-image img {
            min-height: 260px !important;
            max-height: 350px !important;
        }
    }
    
    /* Pour les petits écrans mobiles */
    @media (max-width: 480px) {
        .product-image {
            min-height: 240px !important;
            max-height: 320px !important;
        }
        
        .product-image img {
            min-height: 240px !important;
            max-height: 320px !important;
            padding: 8px !important;
        }
    }
    
    /* Pour les très petits écrans */
    @media (max-width: 360px) {
        .product-image {
            min-height: 220px !important;
            max-height: 300px !important;
        }
        
        .product-image img {
            min-height: 220px !important;
            max-height: 300px !important;
            padding: 6px !important;
        }
    }
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-decoration: none;
    display: block;
}

.product-title:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.product-price .original-price {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 10px;
}

/* Buttons */
.btn-vip {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-vip:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-outline-vip {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-outline-vip:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Category Cards */
.category-card {
    background: linear-gradient(135deg, var(--primary-color), #333333);
    color: white;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    opacity: 0.1;
    transition: all 0.5s ease;
}

.category-card:hover::before {
    top: -30%;
    left: -30%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.category-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Features Section */
.feature-box {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: var(--secondary-color);
    opacity: 0.3;
    font-family: 'Playfair Display', serif;
}

.testimonial-rating {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1050;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.cart-sidebar.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    display: none;
}

.cart-overlay.active {
    display: block;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top-color: var(--secondary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer */
footer {
    background: var(--primary-color) !important;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color) !important;
}

/* Back to Top Button */
#backToTop {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 1000;
}

#backToTop:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .product-image {
        height: 200px;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        left: 20px;
    }
    
    .category-card {
        padding: 30px 15px;
    }
    
    .category-icon {
        font-size: 2rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Form Styles */
.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.form-check-input:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: var(--primary-color);
}

.alert-danger {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
    color: white;
}

/* Badge Styles */
.badge-vip {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: 600;
}

/* Price Display */
.price-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.price-display small {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* VIP Section */
.vip-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0;
    position: relative;
}

.vip-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/luxury-pattern.png') repeat;
    opacity: 0.1;
}

.vip-content {
    position: relative;
    z-index: 1;
}

/* Loading State */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
}

.loading-spinner-large {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top-color: var(--secondary-color);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 20px;
}
