:root {
            --primary-color: #2c3e50;
            --secondary-color: #3498db;
            --accent-color: #e74c3c;
            --text-dark: #2c3e50;
            --text-light: #7f8c8d;
            --bg-light: #ecf0f1;
            --white: #ffffff;
            --success: #27ae60;
            --shadow: 0 2px 15px rgba(0,0,0,0.1);
            --shadow-hover: 0 5px 25px rgba(0,0,0,0.15);
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            color: var(--text-dark);
            line-height: 1.6;
            background-color: #f8f9fa;
        }

        /* Hero Section */
        .hero-section {
            position: relative;
            height: 400px;
            overflow: hidden;
            margin-bottom: 3rem;
        }

        .hero-image {
            width: 100%;
            height: 100%;
            max-height: 450px;
            object-fit: cover;
            display: block;
        }

        .hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(44, 62, 80, 0.85), rgba(52, 152, 219, 0.75));
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hero-content {
            text-align: center;
            color: var(--white);
            padding: 2rem;
            max-width: 800px;
            animation: fadeInUp 1s ease;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .hero-subtitle {
            font-size: 1rem;
            font-weight: 500;
            letter-spacing: 2px;
            text-transform: uppercase;
            margin-bottom: 0.5rem;
            opacity: 0.9;
        }

        .hero-title {
            font-size: 3rem;
            font-weight: 700;
            margin-bottom: 1rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .hero-description {
            font-size: 1.1rem;
            margin-bottom: 2rem;
            opacity: 0.95;
            line-height: 1.8;
        }

        .hero-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .hero-btn {
            padding: 0.9rem 2rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: var(--transition);
            font-size: 1rem;
            border: 2px solid transparent;
        }

        .hero-btn-primary {
            background: var(--accent-color);
            color: var(--white);
        }

        .hero-btn-primary:hover {
            background: #c0392b;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
        }

        .hero-btn-secondary {
            background: transparent;
            color: var(--white);
            border-color: var(--white);
        }

        .hero-btn-secondary:hover {
            background: var(--white);
            color: var(--primary-color);
            transform: translateY(-2px);
        }

        /* Alert Messages */
        .alert-container {
            max-width: 1200px;
            margin: 2rem auto;
            padding: 0 1rem;
        }

        .alert-success {
            background: linear-gradient(135deg, #27ae60, #2ecc71);
            color: var(--white);
            padding: 1rem 1.5rem;
            border-radius: 10px;
            box-shadow: var(--shadow);
            display: flex;
            align-items: center;
            gap: 1rem;
            animation: slideInDown 0.5s ease;
        }

        @keyframes slideInDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .alert-success::before {
            content: '\f00c';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            font-size: 1.5rem;
        }

        /* Main Container */
        .main-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 2rem 1rem;
        }

        /* Category Filters */
        .category-filters {
            background: var(--white);
            padding: 1.5rem;
            border-radius: 15px;
            box-shadow: var(--shadow);
            margin-bottom: 2rem;
        }

        .category-list {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            justify-content: center;
        }

        .category-link {
            padding: 0.7rem 1.5rem;
            background: var(--bg-light);
            color: var(--text-dark);
            text-decoration: none;
            border-radius: 25px;
            font-weight: 600;
            transition: var(--transition);
            border: 2px solid transparent;
        }

        .category-link:hover,
        .category-link.active {
            background: var(--secondary-color);
            color: var(--white);
            transform: translateY(-2px);
            box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
        }

        /* Search Section */
        .search-container {
            background: var(--white);
            padding: 2rem;
            border-radius: 15px;
            box-shadow: var(--shadow);
            margin-bottom: 3rem;
        }

        .search-form {
            display: flex;
            max-width: 600px;
            margin: 0 auto;
            position: relative;
        }

        .search-input {
            flex: 1;
            padding: 1rem 1.5rem;
            border: 2px solid var(--bg-light);
            border-radius: 50px;
            font-size: 1rem;
            transition: var(--transition);
            outline: none;
        }

        .search-input:focus {
            border-color: var(--secondary-color);
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
        }

        .search-button {
            position: absolute;
            right: 5px;
            top: 50%;
            transform: translateY(-50%);
            background: var(--secondary-color);
            border: none;
            padding: 0.8rem 1.5rem;
            border-radius: 50px;
            cursor: pointer;
            transition: var(--transition);
        }

        .search-button:hover {
            background: #2980b9;
            transform: translateY(-50%) scale(1.05);
        }

        .search-button img {
            width: 24px;
            height: 24px;
            filter: brightness(0) invert(1);
        }

        /* Products Section */
        .products-section {
            margin-top: 3rem;
        }

        .category-section {
            margin-bottom: 4rem;
        }

        .category-title {
            font-size: 2rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 2rem;
            padding-bottom: 1rem;
            border-bottom: 3px solid var(--secondary-color);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .category-title::before {
            content: '';
            width: 5px;
            height: 40px;
            background: var(--accent-color);
            border-radius: 5px;
        }

        /* Desktop Carousel */
        .desktop-view {
            display: block;
        }

        .product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 2rem;
            padding: 1rem 0;
        }

        .product-card {
            background: var(--white);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }

        .product-image {
            width: 100%;
            height: 280px;
            object-fit: cover;
            transition: var(--transition);
        }

        .product-card:hover .product-image {
            transform: scale(1.05);
        }

        .product-body {
            padding: 1.5rem;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .product-name {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 0.8rem;
            min-height: 3em;
            line-height: 1.5;
        }

        .product-price {
            font-size: 1.3rem;
            color: var(--accent-color);
            font-weight: 700;
            margin-bottom: 1rem;
        }

        .product-price-label {
            font-size: 0.9rem;
            color: var(--text-light);
            font-weight: 400;
        }

        .product-actions {
            margin-top: auto;
        }

        .add-to-cart-form {
            width: 100%;
        }

        .add-to-cart-btn {
            width: 100%;
            padding: 0.9rem;
            background: linear-gradient(135deg, var(--secondary-color), #2980b9);
            color: var(--white);
            border: none;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            font-size: 1rem;
        }

        .add-to-cart-btn:hover {
            background: linear-gradient(135deg, #2980b9, var(--secondary-color));
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
        }

        /* Mobile View */
        .mobile-view {
            display: none;
        }

        .mobile-category-header {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: var(--white);
            padding: 1rem 1.5rem;
            border-radius: 10px;
            margin-bottom: 1.5rem;
            font-weight: 600;
            font-size: 1.2rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .mobile-product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 1rem;
        }

        .mobile-product-card {
            background: var(--white);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: var(--shadow);
        }

        .mobile-product-image {
            width: 100%;
            height: 180px;
            object-fit: cover;
        }

        .mobile-product-body {
            padding: 1rem;
        }

        .mobile-product-name {
            font-size: 0.95rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--text-dark);
        }

        .mobile-product-price {
            font-size: 1.1rem;
            color: var(--accent-color);
            font-weight: 700;
            margin-bottom: 0.8rem;
        }

        .mobile-add-btn {
            width: 100%;
            padding: 0.7rem;
            background: var(--secondary-color);
            color: var(--white);
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            font-size: 0.9rem;
        }

        .mobile-add-btn:hover {
            background: #2980b9;
        }

        .empty-category {
            text-align: center;
            padding: 3rem;
            background: var(--bg-light);
            border-radius: 10px;
            color: var(--text-light);
            font-size: 1.1rem;
        }

        /* Pagination */
        .pagination-container {
            margin: 3rem 0;
            display: flex;
            justify-content: center;
        }

        .pagination-nav ul {
            display: flex;
            gap: 0.5rem;
            list-style: none;
            flex-wrap: wrap;
            justify-content: center;
        }

        .pagination-nav li {
            display: inline-block;
        }

        .pagination-nav a,
        .pagination-nav span {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 45px;
            height: 45px;
            padding: 0.5rem 1rem;
            background: var(--white);
            color: var(--text-dark);
            text-decoration: none;
            border-radius: 10px;
            font-weight: 600;
            transition: var(--transition);
            box-shadow: var(--shadow);
        }

        .pagination-nav a:hover {
            background: var(--secondary-color);
            color: var(--white);
            transform: translateY(-2px);
        }

        .pagination-nav li[aria-current="page"] span {
            background: var(--secondary-color);
            color: var(--white);
        }

        .pagination-nav li[aria-disabled="true"] span {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Scroll Indicator */
        .scroll-indicator {
            text-align: center;
            padding: 2rem;
            font-size: 2rem;
            color: var(--secondary-color);
            animation: bounce 2s infinite;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0);
            }
            40% {
                transform: translateY(-10px);
            }
            60% {
                transform: translateY(-5px);
            }
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .hero-title {
                font-size: 2rem;
            }

            .hero-description {
                font-size: 1rem;
            }

            .hero-buttons {
                flex-direction: column;
                width: 100%;
            }

            .hero-btn {
                width: 100%;
                justify-content: center;
            }

            .category-title {
                font-size: 1.5rem;
            }

            .desktop-view {
                display: none;
            }

            .mobile-view {
                display: block;
            }

            .product-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
                gap: 1rem;
            }

            .search-input {
                padding: 0.9rem 1.2rem;
                font-size: 0.95rem;
            }

            .category-link {
                padding: 0.6rem 1.2rem;
                font-size: 0.9rem;
            }
        }

        @media (max-width: 480px) {
            .hero-title {
                font-size: 1.5rem;
            }

            .product-grid {
                grid-template-columns: 1fr;
            }

            .mobile-product-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
/* Category Filters Container */
.category-filters {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
}

.category-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #ec4899);
    border-radius: 16px 16px 0 0;
}

/* Select Container */
.category-select-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

/* Select Label */
.select-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #374151;
    font-size: 1.1rem;
    text-align: center;
}

.select-label i {
    color: #4f46e5;
    margin-right: 0.5rem;
}

/* Custom Select Styling */
.category-select {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-right: 3rem;
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    background-color: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234f46e5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.category-select:hover {
    border-color: #4f46e5;
    background-color: #f8fafc;
    box-shadow: 0 6px 12px rgba(79, 70, 229, 0.15);
}

.category-select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    background-color: white;
}

.category-select option {
    padding: 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    background-color: white;
    transition: background-color 0.2s;
}

.category-select option:hover {
    background-color: #f3f4f6;
}

.category-select option:checked {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    font-weight: 600;
}

.category-select option:first-child {
    color: #6b7280;
    font-style: italic;
}

/* Selected Category Display */
.selected-category-display {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.1));
    border-radius: 10px;
    border-left: 4px solid #4f46e5;
    display: none;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.3s ease;
}

.selected-category-display.active {
    display: flex;
}

.category-display-text {
    font-size: 1rem;
    color: #374151;
    font-weight: 500;
}

.category-display-text .category-name {
    color: #4f46e5;
    font-weight: 600;
    margin-left: 0.25rem;
}

.btn-clear-filter {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    border: 1px solid rgba(79, 70, 229, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-clear-filter:hover {
    background: rgba(79, 70, 229, 0.2);
    color: #4f46e5;
    text-decoration: none;
}

/* Filter Count Badge */
.filter-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

/* Category Icons (Optional Enhancement) */
.category-select option[value*="scolaire"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236b7280' viewBox='0 0 24 24'%3E%3Cpath d='M12 14l9-5-9-5-9 5 9 5z'/%3E%3Cpath d='M12 14l6.16-3.422a12.083 12.083 0 01.665 6.479A11.952 11.952 0 0012 20.055a11.952 11.952 0 00-6.824-2.998 12.078 12.078 0 01.665-6.479L12 14z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 14l9-5-9-5-9 5 9 5zm0 0l6.16-3.422a12.083 12.083 0 01.665 6.479A11.952 11.952 0 0012 20.055a11.952 11.952 0 00-6.824-2.998 12.078 12.078 0 01.665-6.479L12 14zm-4 6v-7.5l4-2.222'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.5rem center;
    background-size: 1rem;
    padding-left: 2rem;
}

.category-select option[value*="bureau"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236b7280' viewBox='0 0 24 24'%3E%3Cpath d='M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.5rem center;
    background-size: 1rem;
    padding-left: 2rem;
}

.category-select option[value*="informatique"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236b7280' viewBox='0 0 24 24'%3E%3Cpath d='M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.5rem center;
    background-size: 1rem;
    padding-left: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-filters {
        padding: 1.25rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .category-select {
        padding: 0.875rem 1.25rem;
        padding-right: 2.5rem;
        font-size: 0.95rem;
    }
    
    .select-label {
        font-size: 1rem;
        margin-bottom: 0.625rem;
    }
    
    .selected-category-display {
        padding: 0.875rem 1.25rem;
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .category-filters {
        padding: 1rem 1.25rem;
        border-radius: 12px;
    }
    
    .category-select {
        padding: 0.75rem 1rem;
        padding-right: 2.5rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Focus Animation */
.category-select:focus {
    animation: focusPulse 0.5s ease;
}

@keyframes focusPulse {
    0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(79, 70, 229, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

/* Loading State (Optional) */
.category-select.loading {
    opacity: 0.7;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Ccircle class='opacity-25' cx='12' cy='12' r='10' stroke='%234f46e5' stroke-width='4'%3E%3C/circle%3E%3Cpath class='opacity-75' fill='%234f46e5' d='M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z'%3E%3C/path%3E%3C/svg%3E");
    background-size: 1.25rem;
}
