/* ============================================================================
   Epsie Shop - Styles personnalisés
   ============================================================================ */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* ============================================================================
   Global Styles
   ============================================================================ */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

main {
    min-height: calc(100vh - 200px);
}

/* ============================================================================
   Navbar
   ============================================================================ */

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

/* ============================================================================
   Cards
   ============================================================================ */

.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* ============================================================================
   Buttons
   ============================================================================ */

.btn {
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* ============================================================================
   Product Cards
   ============================================================================ */

.product-card {
    height: 100%;
    transition: all 0.3s ease;
}

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

.product-card .card-img-top {
    transition: transform 0.3s ease;
}

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

/* ============================================================================
   Category Cards
   ============================================================================ */

.category-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    background-color: var(--primary-color);
    color: white;
}

.category-card:hover .card-title,
.category-card:hover .card-text {
    color: white;
}

.category-card:hover i {
    color: white !important;
}

/* ============================================================================
   Forms
   ============================================================================ */

.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
}

/* ============================================================================
   Alerts
   ============================================================================ */

.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ============================================================================
   Tables
   ============================================================================ */

.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* ============================================================================
   Badges
   ============================================================================ */

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* ============================================================================
   Hero Section
   ============================================================================ */

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero::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 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
}

/* ============================================================================
   Feature Icons
   ============================================================================ */

.feature-icon {
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ============================================================================
   Cart
   ============================================================================ */

.cart-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    max-width: 100px;
    border-radius: 10px;
}

.cart-summary {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ============================================================================
   Product Detail
   ============================================================================ */

.product-image-gallery {
    display: flex;
    gap: 10px;
}

.product-image-main {
    flex: 1;
}

.product-image-main img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-image-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-image-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.product-image-thumbnails img:hover,
.product-image-thumbnails img.active {
    border-color: var(--primary-color);
}

/* ============================================================================
   Reviews
   ============================================================================ */

.review-card {
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin-bottom: 15px;
    background-color: var(--light-color);
    border-radius: 10px;
}

.rating-stars {
    color: var(--warning-color);
}

/* ============================================================================
   Loading Spinner
   ============================================================================ */

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ============================================================================
   Responsive
   ============================================================================ */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .cart-item img {
        max-width: 80px;
    }
    
    .product-image-gallery {
        flex-direction: column;
    }
    
    .product-image-thumbnails {
        flex-direction: row;
    }
}

/* ============================================================================
   Animations
   ============================================================================ */

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

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

/* ============================================================================
   Utilities
   ============================================================================ */

.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
