/* Styles modernes pour la page boutiques.php */

/* Header moderne avec gradient */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.shop-header-modern {
    position: relative;
    overflow: hidden;
}

.header-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0.3;
}

.z-index-1 {
    position: relative;
    z-index: 1;
}

.shop-title-modern {
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Statistiques de la boutique */
.shop-stats-modern {
    margin-top: 2rem;
}

.stat-card-modern {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    min-width: 120px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.stat-card-modern i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    margin: 0.5rem 0;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contrôles de recherche et tri */
.shop-controls-modern {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.search-box-modern {
    position: relative;
}

.search-box-modern i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    z-index: 1;
}

.search-box-modern input {
    padding-left: 45px;
    border-radius: 25px;
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s ease;
}

.search-box-modern input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.custom-select-modern {
    border-radius: 25px;
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s ease;
}

.custom-select-modern:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.view-toggle-modern {
    display: flex;
    gap: 0.5rem;
}

.btn-view {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view.active,
.btn-view:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Cartes produits modernes */
.product-card-modern {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-image-modern {
    position: relative;
    overflow: hidden;
    padding-top: 75%;
    background: #f8f9fa;
}

.product-image-modern img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card-modern:hover .product-image-modern img {
    transform: scale(1.1);
}

.product-overlay-modern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card-modern:hover .product-overlay-modern {
    opacity: 1;
}

.btn-quick-view {
    background: white;
    color: #667eea;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-quick-view:hover {
    background: #667eea;
    color: white;
    transform: scale(1.05);
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    white-space: nowrap;
}

.badge-new {
    background: #28a745;
    color: white;
}

.badge-featured {
    background: #ff6b6b;
    color: white;
}

.badge-promo {
    background: #ffc107;
    color: #333;
}

.product-body-modern {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title-modern {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5rem;
}

.product-rating-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.stars-rating {
    color: #ffc107;
}

.rating-text {
    font-size: 0.85rem;
    color: #666;
}

.product-price-modern {
    margin-bottom: 1rem;
}

.price-current {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.price-old {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.price-new {
    font-size: 1.5rem;
    font-weight: bold;
    color: #28a745;
}

.product-actions-modern {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-add-cart-modern,
.btn-favorite-modern,
.btn-share-modern {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-add-cart-modern {
    background: #667eea;
    color: white;
}

.btn-add-cart-modern:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

.btn-favorite-modern,
.btn-share-modern {
    background: #f8f9fa;
    color: #667eea;
    flex: 0 0 auto;
    width: 45px;
}

.btn-favorite-modern:hover,
.btn-share-modern:hover {
    background: #667eea;
    color: white;
}

/* Vue liste */
.products-list-view .product-item {
    flex: 0 0 100%;
    max-width: 100%;
}

.products-list-view .product-card-modern {
    flex-direction: row;
}

.products-list-view .product-image-modern {
    flex: 0 0 200px;
    padding-top: 0;
    height: 200px;
}

.products-list-view .product-body-modern {
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .shop-title-modern {
        font-size: 1.75rem;
    }
    
    .stat-card-modern {
        min-width: 100px;
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .shop-controls-modern {
        padding: 1rem;
    }
    
    .product-card-modern {
        margin-bottom: 1rem;
    }
}

