/* Custom CSS pour MarketPlace Pro - Thème Violet-Orange-Rose */

:root {
    /* Nouvelle palette violet-orange-rose */
    --primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #f97316 50%, #ec4899 100%);
    --primary-violet: #8b5cf6;
    --primary-orange: #f97316;
    --primary-pink: #ec4899;

    /* Variations de la palette principale */
    --violet-400: #a78bfa;
    --violet-500: #8b5cf6;
    --violet-600: #7c3aed;
    --orange-400: #fb923c;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --pink-400: #f472b6;
    --pink-500: #ec4899;
    --pink-600: #db2777;

    /* Grays restent inchangés */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* Couleurs personnalisées Bootstrap override avec nouveau thème */
.btn-warning, .btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-warning:hover, .btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #ea580c 50%, #db2777 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.btn-warning:focus, .btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25);
}

.text-warning {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.bg-warning {
    background: var(--primary-gradient) !important;
}

/* Nouveaux boutons avec thème dégradé */
.btn-gradient-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-weight: 600;
}

.btn-gradient-primary:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #ea580c 50%, #db2777 100%);
    color: white;
}

.btn-outline-gradient {
    background: transparent;
    border: 2px solid transparent;
    background-image: var(--primary-gradient);
    background-origin: border-box;
    background-clip: content-box, border-box;
    color: var(--primary-violet);
}

/* Header personnalisé avec nouveau thème */
.navbar-dark .navbar-nav .nav-link {
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link:hover {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Hover effects */
.hover-bg-secondary-dark:hover {
    background-color: var(--gray-600) !important;
}

/* Cards de produits */
.product-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.product-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.product-image {
    transition: transform 0.3s ease;
    overflow: hidden;
}

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

/* Hero section avec nouveau dégradé */
.hero-section {
    background: var(--primary-gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

/* Category cards */
.category-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
}

.category-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.category-card .card-img-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.category-card:hover .card-img-overlay::before {
    background: rgba(0, 0, 0, 0.2);
}

/* Badges de produits avec nouveau thème */
.badge-bestseller {
    background: var(--primary-gradient) !important;
    color: white;
}

.badge-nouveau {
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%) !important;
    color: white;
}

.badge-promo {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    color: white;
}

.badge-artisanal {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    color: white;
}

.badge-tendance {
    background: linear-gradient(135deg, var(--pink-500) 0%, var(--pink-600) 100%) !important;
    color: white;
}

/* Rating stars */
.rating-stars {
    color: #fbbf24;
}

.rating-stars.empty {
    color: var(--gray-300);
}

/* Price styling */
.price-current {
    color: var(--gray-900);
    font-weight: 700;
    font-size: 1.25rem;
}

.price-original {
    color: var(--gray-500);
    text-decoration: line-through;
    font-size: 0.875rem;
}

/* Form controls styling */
.form-control:focus {
    border-color: var(--orange-400);
    box-shadow: 0 0 0 0.2rem rgba(251, 146, 60, 0.25);
}

.form-select:focus {
    border-color: var(--orange-400);
    box-shadow: 0 0 0 0.2rem rgba(251, 146, 60, 0.25);
}

/* Search bar styling */
.search-form .form-select {
    border-radius: 0.375rem 0 0 0.375rem;
    background-color: var(--gray-100);
    color: var(--gray-900);
}

.search-form .form-control {
    border-radius: 0;
    border-left: none;
    border-right: none;
}

.search-form .btn {
    border-radius: 0 0.375rem 0.375rem 0;
}

/* Wishlist heart icon */
.wishlist-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: white;
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
}

.product-card:hover .wishlist-btn {
    opacity: 1;
}

.wishlist-btn:hover {
    background-color: #fef2f2;
    color: #dc2626;
}

/* Status badges */
.status-delivered {
    background-color: #dcfce7 !important;
    color: #166534 !important;
}

.status-shipped {
    background-color: #dbeafe !important;
    color: #1e40af !important;
}

.status-processing {
    background-color: #fef3c7 !important;
    color: #92400e !important;
}

.status-cancelled {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
}

/* Checkout steps */
.checkout-step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.875rem;
}

.checkout-step.completed {
    background-color: #22c55e;
    color: white;
}

.checkout-step.current {
    background-color: var(--orange-500);
    color: white;
}

.checkout-step.pending {
    background-color: var(--gray-300);
    color: var(--gray-600);
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .product-card {
        margin-bottom: 1rem;
    }
}

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

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

/* Loading spinner */
.spinner-custom {
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--orange-400);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success/Error messages */
.alert-success {
    background-color: #dcfce7;
    border-color: #bbf7d0;
    color: #166534;
}

.alert-danger {
    background-color: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

.alert-warning {
    background-color: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

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

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}
