    body {
        background: #f9f9f9;
        font-family: 'Segoe UI', sans-serif;
    }

    .top-banner {
        background: #fff;
        padding: 15px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #eee;
        letter-spacing: .4px;
    }

    .clickable {
        cursor: pointer;
    }

    .brand {
        font-size: 1.2rem;
        font-weight: bold;
        color: #333;
    }

    .actions i {
        font-size: 1.3rem;
        margin-left: 15px;
        cursor: pointer;
        color: #555;
        transition: color 0.2s;
    }

    .actions i:hover {
        color: #ff6b01;
    }

    .product-container {
        background: #fff;
        border-radius: 12px;
        padding: 20px;
        margin: 10px auto;
        max-width: 1200px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .product-title {
        font-size: 1.4rem;
        font-weight: 600;
    }

    .product-price {
        font-size: 1.5rem;
        font-weight: bold;
        color: #ff9800;
    }

    .product-meta {
        font-size: 0.9rem;
        color: #666;
    }

    .product-meta .etat {
        color: #ff9800;
        font-weight: 600;
    }


    .product-images {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: -37px;
        margin-left: -25px;
        margin-right: -25px;
    }

    .product-images img {
        border-radius: 8px;
        width: 300%;
        height: 100%;
        object-fit: cover;
    }

    .thumbnails {
        display: flex;
        gap: 10px;
        justify-content: center;
    }

    .thumbnails img {
        width: 85px;
        height: 100px;
        object-fit: cover;
        border-radius: 6px;
        cursor: pointer;
        border: 2px solid transparent;
        transition: border 0.2s;
    }

    .thumbnails img.active,
    .thumbnails img:hover {
        border-color: #ff9800;
    }

    .btn-wrapper {
        text-align: center;
        margin-top: 20px;
    }

    .btn-ajout {
        background: #ff9800;
        color: #fff;
        border: none;
        border-radius: 30px;
        padding: 12px 25px;
        font-size: 1rem;
        font-weight: bold;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .btn-ajout:hover {
        background: #e68900;
    }

    .cta-bar {
        position: sticky;
        bottom: 0;
        background: #fff;
        border-top: 1px solid #ddd;
        padding: 12px 15px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
        z-index: 1000;
    }

    .btn-commande {
        flex: 1;
        background: #ff9800;
        color: #fff;
        border: none;
        border-radius: 30px;
        padding: 12px 15px;
        font-size: 1rem;
        font-weight: bold;
        text-align: center;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
        cursor: pointer;
    }

    .btn-commande:hover {
        background: #e68900;
    }

    .similar-products h4 {
        font-weight: 600;
        /* lighter font weight */
        margin-top: -20px;
        margin-right: 270px;
        /* adjust the margin-right value as needed */
        font-size: 15px !important;
        text-align: right;
        /* align the text to the right */
        white-space: nowrap;
        transform: translateY(-5px);
        /* move the element slightly upwards */
    }

    .similar-products h6 {
        font-weight: 200 !important;
        font-size: 12px !important;
        white-space: nowrap;
        max-width: 12ch;
        /* Set the maximum width to 12 characters */
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .text-primary {
        font-weight: bold;
        font-size: 15px;
        /* Adjust the font size as needed */
        width: 50px;
        /* Adjust the width as needed */
        white-space: nowrap;
    }

    .similar-carousel {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        /* fluide iOS */
    }

    .similar-carousel::-webkit-scrollbar {
        display: none;
        /* supprime scrollbar */
    }

    .sim-card {
        flex: 0 0 auto;
        /* évite que les cartes prennent 100% */
        scroll-snap-align: start;
        width: 110px;
        height: 158px;

        /* taille fixe lisible en mobile */
    }

    .sim-card .card {
        border-radius: 10px;
        transition: transform 0.2s;
        height: 100%;
    }

    .sim-card .card:hover {
        transform: translateY(-4px);
    }

    .sim-card img {
        height: 80px;
        object-fit: cover;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }

    .clickable {
        cursor: pointer;
    }

    .top-banner .brand {
        font-weight: 700;
        letter-spacing: .4px;
    }

    @media (max-width: 576px) {
        .top-banner .brand {
            max-width: 100px;
            font-size: 1rem;
        }

        .top-banner .actions i {
            font-size: 1.2rem;
        }
    }

    .share-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
    }

    .share-modal-content {
        background: #fff;
        padding: 20px;
        border-radius: 10px;
        width: 90%;
        max-width: 300px;
        text-align: center;
    }

    .social-buttons a {
        color: inherit;
    }

    .description {
        margin-top: 15px;
        line-height: 1.6;
        font-size: 15px;
        color: #333;
    }


    .truncate {
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        /* nombre de lignes visibles */
        -webkit-box-orient: vertical;
    }

    /* ================= Drawer global ================= */
    .drawer-bottom {
        position: fixed;
        bottom: -100%;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        display: flex;
        align-items: flex-end;
        justify-content: center;
        transition: bottom 0.4s ease, opacity 0.3s ease;
        z-index: 9999;
        opacity: 0;
        pointer-events: none;
    }

    .drawer-bottom.active {
        bottom: 0;
        opacity: 1;
        pointer-events: all;
    }

    /* ================= Contenu ================= */
    .drawer-content {
        background: #fff;
        width: 100%;
        max-height: 95%;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        padding: 20px;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
        position: relative;
        animation: slideUp 0.4s cubic-bezier(.25, 1.3, .5, 1);
    }

    /* Animation */
    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }

    /* Header */
    .drawer-content h3 {
        text-align: center;
        font-size: 16px;
        font-weight: bold;
        margin-bottom: 16px;
    }

    /* ================= Section produit ================= */
    .recap-produit {
        display: flex;
        gap: 12px;
        background: #fff;
        border-radius: 10px;
        padding: 12px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
        margin-bottom: 20px;
    }

    .recap-produit img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 8px;
    }

    .recap-info {
        flex: 1;
    }

    .produit-nom {
        font-weight: bold;
        font-size: 14px;
        margin-bottom: 4px;
    }

    .recap-quantite {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 8px 0;
        font-size: 13px;
    }

    .quantity-controls {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .quantity-controls button {
        width: 28px;
        height: 28px;
        border: none;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
        color: #fbb03b;
        font-size: 16px;
        cursor: pointer;
    }

    .quantity-controls input {
        width: 40px;
        border: none;
        text-align: center;
        background: transparent;
        font-size: 14px;
    }

    .produit-prix {
        font-weight: bold;
        font-size: 14px;
        margin-top: 4px;
    }

    .frais-livraison {
        font-size: 13px;
        color: #444;
    }

    /* ================= Total ================= */
    .recap-total {
        display: flex;
        justify-content: space-between;
        font-size: 15px;
        color: #ff9900;
        margin-bottom: 20px;
        padding: 10px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    /* ================= Infos client ================= */
    .recap-client {
        background: #fff;
        padding: 16px;
        border-radius: 8px;
        margin-bottom: 20px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    }

    .recap-client h4 {
        font-size: 14px;
        font-weight: bold;
        margin-bottom: 10px;
        align-items: center;
    }

    .recap-client p {
        margin: 8px 0;
        font-size: 13px;
    }

    /* ================= Paiement ================= */
    .paiement {
        text-align: center;
        font-size: 13px;
        color: #444;
        margin-bottom: 16px;
    }

    .paiement .delai {
        color: #0077ff;
        font-size: 12px;
    }

    /* ================= Bouton ================= */
    .btn-valider {
        width: 100%;
        padding: 14px;
        background: linear-gradient(to right, #ff9900, #ffb84d);
        border: none;
        border-radius: 25px;
        color: white;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        transition: opacity 0.3s;
    }

    .btn-valider:hover {
        opacity: 0.9;
    }



    /* ================= Contenu ================= */
    .drawer-content {
        background: #fff;
        width: 100%;
        max-height: 95%;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        padding: 24px;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
        animation: slideUp 0.4s cubic-bezier(.25, 1.3, .5, 1);
        position: relative;
    }

    /* Poignée en haut */
    .drawer-content::before {
        content: "";
        width: 40px;
        height: 4px;
        background: #ccc;
        border-radius: 2px;
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
    }


    /* ================= Header ================= */
    .drawer-content h3 {
        text-align: center;
        font-size: 16px;
        font-weight: bold;
        margin: 16px 0 4px 0;
    }

    .drawer-content .subtitle {
        text-align: center;
        font-size: 13px;
        color: #666;
        margin-bottom: 20px;
    }

    /* ================= Inputs ================= */
    .drawer-content input,
    .drawer-content select {
        width: 100%;
        padding: 12px;
        margin-bottom: 16px;
        border: none;
        border-bottom: 2px solid #fbb03b;
        outline: none;
        background: #fff;
        font-size: 14px;
        border-radius: 6px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        transition: border-color 0.3s;
    }

    .drawer-content input:focus,
    .drawer-content select:focus {
        border-color: #ff9900;
    }

    /* ================= Quantité ================= */
    .quantity-container {
        margin-bottom: 16px;
    }

    .quantity-container label {
        display: block;
        font-size: 14px;
        margin-bottom: 8px;
    }

    .quantity-controls {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .quantity-controls button {
        width: 36px;
        height: 36px;
        border: none;
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
        color: #fbb03b;
        font-size: 20px;
        cursor: pointer;
    }

    .quantity-controls input {
        width: 50px;
        text-align: center;
        border: none;
        background: transparent;
        font-size: 16px;
    }

    /* ================= Texte paiement ================= */
    .paiement {
        text-align: center;
        font-size: 13px;
        margin: 20px 0;
        color: #444;
    }

    /* ================= Bouton suivant ================= */
    .btn-suivant {
        width: 100%;
        padding: 14px;
        background: linear-gradient(to right, #fbb03b, #ffb84d);
        border: none;
        border-radius: 25px;
        color: white;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        transition: opacity 0.3s;
    }

    .btn-suivant:hover {
        opacity: 0.9;
    }

    .custom-alert-container {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 2000;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .custom-alert {
        background: #4CAF50;
        /* vert succès */
        color: #fff;
        padding: 12px 18px;
        border-radius: 6px;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        animation: fadeIn 0.3s ease;
    }

    .custom-alert i {
        font-size: 16px;
    }

    .custom-alert.fade-out {
        animation: fadeOut 0.4s forwards;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fadeOut {
        from {
            opacity: 1;
            transform: translateY(0);
        }

        to {
            opacity: 0;
            transform: translateY(-10px);
        }
    }
