
    <style>
        /* Styles généraux */
        body, html {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: Arial, sans-serif;
        }

        .container {
            padding: 20px;
            text-align: center;
        }

        /* Carte produit */
        .product-card {
            display: inline-block;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 15px;
            margin: 15px;
            width: 250px;
            text-align: center;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            opacity: 0; /* Démarre invisible */
            transform: translateY(20px); /* Démarre décalé */
            transition: opacity 0.5s, transform 0.5s; /* Transition pour la visibilité */
        }

        .product-card:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 16px rgba(0,0,0,0.2);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }


        .product-card.visible {
            opacity: 1; /* Deviens visible */
            transform: translateY(0); /* Remonte à sa place */
        }
        /* Images produit */
        .product-image {
            width: 100%;
            height: 150px;
            object-fit: cover;
            border-radius: 5px;
        }

        .product-title { 
            font-size: 18px;
            margin: 10px 0;
        }

        .product-category {
            font-size: 14px;
            color: #555;
            margin-bottom: 10px;
        }

        /* Prix avec promo */
        .product-price {
            font-size: 16px;
            margin-bottom: 10px;
        }

        .old-price {
            text-decoration: line-through;
            color: red;
            margin-right: 10px;
        }

        .promo-badge {
            background-color: #e74c3c;
            color: white;
            padding: 2px 6px;
            font-size: 12px;
            border-radius: 5px;
            position: absolute;
            top: 10px;
            left: 10px;
        }

        .new-badge {
            background-color: #2ecc71;
            color: white;
            padding: 2px 6px;
            font-size: 12px;
            border-radius: 5px;
            position: absolute;
            top: 10px;
            right: 10px; 
        }

        /* Icône panier et favoris */
        .icon-container {
            display: flex;
            justify-content: center;
            gap: 10px;
        }

        .icon {
            font-size: 20px;
            cursor: pointer;
            padding: 5px;
            border-radius: 50%;
            background-color: #f1f1f1;
            transition: background-color 0.3s ease;
        }

        .icon:hover {
            background-color: #ddd;
        }

        .add-to-cart-icon {
            color: #007bff;
        }

        .favorites-icon {
            color: #e74c3c;
        }

        .details-icon {
            color: #3498db;
        }

        /* Barre flottante (panier) */
        .floating-bar {
            position: fixed;
            top: 30%;
            right: -30%;
            width: 30%;
            height: 60px;
            background-color: rgba(255, 255, 255, 0.9);
            border: 1px solid #3498db;
            color: #000000;
			font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 10px;
            border-radius: 10px;
            transition: right 0.5s ease, width 0.5s ease, height 0.5s ease, top 0.5s ease;
            visibility: hidden;
            z-index: 999;
        }

        .floating-bar.open {
            right: 0;
            visibility: visible;
        }

        /* Détails du panier agrandi */
        .floating-bar.details {
            width: 60%;
            height: 350px;
            top: 10%;
            right: 20%;
            flex-direction: column;
            justify-content: flex-start;
            padding: 20px;
        }

        @media (max-width: 768px) {
            /* Adaptation pour petits écrans */
            .floating-bar {
                width: 90%;
                right: -90%;
            }

            .floating-bar.details {
                width: 90%;
                right: 5%;
                top: 10%;
                left: 5%;
            }
        }

        .floating-bar p {
            margin: 0;
            font-size: 16px;
            cursor: pointer;
        }

        .details-content {
            margin-top: 10px;
            background-color: rgba(255, 255, 255, 0.95);
            color: #000;
            width: 100%;
            height: 100%;
            padding: 10px;
            border-radius: 10px;
            overflow-y: auto;
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        table, th, td {
            border: 1px solid #ddd;
            padding: 8px;
            text-align: center;
        }

        th {
            background-color: #f2f2f2;
        }

        td img {
            width: 50px;
            height: 50px;
            object-fit: cover;
        }

        .hidden {
            display: none;
        }

        .button-group {
            display: flex;
            gap: 10px;
        }

        /* Boutons */
        .btn {
            padding: 8px 15px;
            font-size: 14px;
            border: none;
            cursor: pointer;
            border-radius: 5px;
        }

        .btn-success {
            background-color: #28a745;
            color: white;
        }

        .btn-primary {
            background-color: #007bff;
            color: white;
        }

        /* Icône suppression */
        .remove-product {
            cursor: pointer;
            color: red;
        }

        /* Modal */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.4);
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            background-color: #fff;
            padding: 20px;
            border-radius: 10px;
            width: 80%;
            max-width: 600px;
        }

        .modal-close {
            float: right;
            font-size: 24px;
            cursor: pointer;
        }

        /* Slider */
        .slider {
            position: relative;
            display: flex;
            overflow: hidden;
            margin-bottom: 20px;
        }

        .slider img {
            width: 100%;
            height: 300px;
            object-fit: cover;
            border-radius: 5px;
        }

        .slider-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background-color: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            padding: 10px;
            cursor: pointer;
            border-radius: 50%;
        }

        .slider-btn.left {
            left: 10px;
        }

        .slider-btn.right {
            right: 10px;
        }

        @media (max-width: 768px) {
            .modal-content {
                width: 90%;
            }

            .slider img {
                height: 200px;
            }
        }
		
		
					
        /* Catégories */
        .category-container {
            margin-bottom: 20px;
        }

        .category {
            display: inline-block;
            padding: 10px 20px;
            border-radius: 30px;
            margin: 0 5px;
            cursor: pointer;
            font-weight: bold;
            color: white;
            /* background-color: #007bff; */
            background-color: #428bca;
            transition: background-color 0.3s, transform 0.3s; 
        }

        .category:hover {
            background-color: #0056b3;
            transform: scale(1.05);
        }

		
    </style>
