/* Styles pour la page Marketplace */

/* Hero marketplace */
.marketplace-hero {
    background: linear-gradient(135deg, #e67e22 0%, #2c3e50 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.marketplace-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.marketplace-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Recherche */
.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.search-group {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-group i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.search-group input,
.search-group select {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
}

.search-group input:focus,
.search-group select:focus {
    outline: 2px solid #e67e22;
}

/* Catégories de produits */
.product-categories {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.product-categories h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #2c3e50;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 25px;
}

.category-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

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

.category-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 0.85rem;
    color: #666;
}

/* Produits populaires */
.featured-products {
    padding: 50px 0;
}

.featured-products h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #2c3e50;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e67e22;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.product-image {
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.product-brand {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 8px;
}

.product-rating {
    color: #f39c12;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-rating span {
    color: #999;
    margin-left: 5px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e67e22;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1rem;
    font-weight: 400;
    margin-right: 8px;
}

.product-actions {
    padding: 15px 20px;
    display: flex;
    gap: 10px;
    border-top: 1px solid #f0f0f0;
}

.product-actions .btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Section vendre */
.sell-products {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.sell-products-banner {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.sell-products-content {
    flex: 1;
}

.sell-products-content h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.sell-products-content p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.benefits-list li {
    padding: 8px 0;
    font-size: 0.95rem;
    color: #555;
}

.benefits-list li i {
    color: #27ae60;
    margin-right: 10px;
}

.sell-products-image {
    flex: 1;
    max-width: 400px;
}

.sell-products-image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

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

/* Modal produit */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.product-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
}

/* Notification panier */
.cart-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #27ae60;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .marketplace-hero h1 {
        font-size: 1.8rem;
    }
    
    .search-inputs {
        flex-direction: column;
    }
    
    .sell-products-banner {
        flex-direction: column;
        padding: 25px;
    }
    
    .sell-products-image {
        max-width: 100%;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}
