@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Roboto', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #000;
}

a {
    text-decoration: none;
    color: inherit;
}

.description-produit {
    margin-top: 80px;
    padding: 10px 1%;
    background-color: #fff;
    line-height: 1.5;
}

.produit-container {
    display: flex;
    gap: 10px;
    max-width: 1800px;
    margin: 0 auto;
    align-items: flex-start;
}

.lesdeux {
    display: flex;
    flex-direction: column;
}

.produit-image {
    flex: 0 0 380px;
    padding: 10px;
    border-radius: 12px;
}

.produit-image img {
    max-width: 100%;
    width: 380px;
    height: 380px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 5px;
}

.images-supplementaires {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.images-supplementaires img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.images-supplementaires img:hover {
    transform: scale(1.05);
    border-color: #f1c40f;
    box-shadow: 0 4px 8px rgba(241, 196, 15, 0.2);
}

.favoris-section {
    padding: 10px;
    border-top: 1px solid #eee;
    text-align: center;
}

.btn-favori {
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
    font-size: 1rem;
    padding: 8px 15px;
    transition: all 0.3s;
}

.btn-favori:focus {
    color: #ff4757;
}

.favori-actif,
.favori-actif:focus {
    color: #ff4757;
}

.btn-favori i {
    margin-right: 3px;
}

.produit-details {
    flex: 1;
    max-width: 1000px;
    padding: 10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.produit-nom {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 25px;
    color: #000;
}

.prix-et-note {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.normal-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #151335;
    margin-left: 10px;
}

.price-display {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    padding-left: 5px;
    padding-top: 5px;
}

.etoiles {
    display: flex;
    align-items: center;
    gap: 3px;
}

.etoiles i {
    color: #f1c40f;
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.flash-badge {
    background-color: #ff4757;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-left: 10px;
    font-weight: bold;
}

.flash-badge-small {
    background-color: #ff4757;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7em;
    margin-left: 5px;
    font-weight: bold;
}

.nombre-commentaires {
    font-size: 0.9rem;
    color: #999;
    margin-left: 5px;
}

.note-text {
    font-size: 0.8rem;
    color: #999;
}

.attribut-groupe {
    margin-bottom: 15px;
}

.attribut-groupe h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #000;
}

.couleurs-options,
.tailles-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-box {
    display: inline-block;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.color-box:hover {
    border-color: #ddd;
}

.color-box.active {
    border-color: #f1c40f;
}

.color-box .tooltip {
    visibility: hidden;
    width: auto;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    white-space: nowrap;
}

.color-box .tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.color-box:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.tailles-options {
    gap: 8px;
}

.taille-option {
    padding: 6px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.taille-option:active {
    background-color: #151335;
    color: white;
    border-color: #fff;
    border: 2px solid #fff;
}

.taille-option.active {
    background-color: #151335;
    color: white;
    border-color: #ffffff;
    font-weight: 500;
    border-radius: 8px;
}

.description-container {
    margin: 5px 0;
    transition: all 0.3s ease;
    max-height: 9em;
    overflow: hidden;
}

.description-container.expanded {
    max-height: none;
}

.titre-description {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #000;
}

.description-point {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #333;
}

.highlight {
    color: #000;
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-afficher-plus {
    display: none;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    cursor: pointer;
    background: none;
    border: none;
    color: #000;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.btn-afficher-plus:hover {
    color: #f1c40f;
}

.btn-afficher-plus i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.Methode {
    flex: 0 0 250px;
    padding: 5px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
    margin-top: 40px;
}

.vendeur-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
    text-align: center;
    background-color: #f8f8f8;
    padding: 10px;
    border-radius: 8px;
}

.vendeur-header {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    gap: 10px;
    border-bottom: 1px solid #ddd;
}

.vendeur-header i {
    color: #151335;
}

.vendeur-nom {
    font-weight: 600;
    color: #000;
}

.btn-voir-boutique {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #000;
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid #ddd;
    margin-bottom: 5px;
}

.livraison-info {
    text-align: center;
}

.details-livraison p {
    font-size: 0.95rem;
}

.total-livraison {
    font-size: 0.95rem;
    color: #e74c3c;
    font-weight: bold;
}

.estimation-livraison {
    margin-top: 10px;
}

.date-estimee {
    font-size: 0.95rem;
}

.prix2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
}

.quantite-input {
    width: 80px;
    padding: 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.quantite-input:focus {
    outline: none;
    border-color: #f1c40f;
}

.btn-ajouter-panier,
.btn-ajouter-panier2 {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.btn-ajouter-panier {
    background-color: #151335;
    color: white;
}

.btn-ajouter-panier:active {
    background-color: #1e1a4a;
}

.btn-ajouter-panier2 {
    background-color: #f1c40f;
    color: #000;
}

.btn-ajouter-panier2:active {
    background-color: #ffc800;
}

.error-message {
    display: none;
    background-color: #fadbd8;
    color: #e74c3c;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    border-left: 4px solid #e74c3c;
    animation: fadeIn 0.3s ease-out;
}

.stock-epuise {
    padding: 15px;
    background-color: #fadbd8;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    color: #e74c3c;
    text-align: center;
    margin-bottom: 15px;
}

.stock-epuise p {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.details-produit {
    max-width: 1400px;
    margin: 30px auto;
    padding: 10px 20px;
    background-color: #ffffff;
}

.details-produit h2 {
    font-size: 1.3rem;
    color: #000;
    margin-bottom: 10px;
    display: inline-block;
}

.info__table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 6px;
    overflow: hidden;
}

.info__table th,
.info__table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.info__table th {
    background-color: #f9f9f9;
    color: #000;
    font-weight: 500;
    width: 30%;
}

.info__table tr:last-child td {
    border-bottom: none;
}

.info__table tr:hover td {
    background-color: #fafafa;
}

.produits-similaires {
    background-color: #fff;
    padding: 5px;
}

.produits-similaires h2 {
    font-size: 1.3rem;
    color: #000;
    margin-bottom: 10px;
    margin-left: 20px;
}

.produits-similaires-desktop {
    position: relative;
}

.desktop-container {
    display: flex;
    align-items: center;
    position: relative;
}

.arrow {
    background-color: #151335;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    z-index: 2;
    width: 40px;
    height: 40px;
}

.arrow i {
    font-size: 1.3rem;
    color: #fff;
}

.arrow:active {
    background-color: #fff;
}

.arrow i:active {
    color: #151335;
}

.left-arrow {
    margin-right: 10px;
}

.right-arrow {
    margin-left: 10px;
}

.desktop-scroller {
    overflow: hidden;
    flex-grow: 1;
}

.desktop-page {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.desktop-page.active {
    display: block;
}

.produits-similaires-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.produit-similaire {
    overflow: hidden;
    transition: box-shadow 0.3s;
    width: 190px;
}

.produit-similaire:active {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.image-container {
    position: relative;
    display: inline-block;
}

.image-container img {
    width: 100%;
}

.discount-badge {
    position: absolute;
    background: #151335;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-left: 5px;
    top: 0;
    right: 0;
    z-index: 10;
}

.produit-similaire p {
    font-size: 0.8rem;
    overflow: hidden;
    margin-top: 5px;
}

.lesetoiles {
    margin-top: 5px;
    font-size: 0.8rem;
    color: #f1c40f;
    margin-bottom: 5px;
}

.lesetoiles span {
    color: #000;
    font-size: 0.75rem;
}

.note1 {
    color: #999;
    font-size: 13px;
}

.current-price1,
.normal-price1 {
    font-weight: bold;
    color: #000;
    font-size: 0.9rem;
}

.old-price1 {
    font-size: 0.75rem;
    color: #888;
    text-decoration: line-through;
    margin-left: 6px;
    margin-top: 5px;
}

#section-similaires .desktop-page,
#section-recommandations .desktop-page {
    display: none;
}

#section-similaires .desktop-page.active,
#section-recommandations .desktop-page.active {
    display: block;
}

.similaires-desktop .desktop-scroller,
.recommandations-desktop .desktop-scroller {
    overflow: hidden;
}

.similaires-scroller-tablet,
.similaires-scroller-mobile,
.recommandations-scroller-tablet,
.recommandations-scroller-mobile {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.similaires-scroller-tablet::-webkit-scrollbar,
.similaires-scroller-mobile::-webkit-scrollbar,
.recommandations-scroller-tablet::-webkit-scrollbar,
.recommandations-scroller-mobile::-webkit-scrollbar {
    display: none;
}

.produits-similaires2 {
    background-color: #fff;
    margin-top: 30px;
}

.produits-similaires2 h2 {
    font-size: 1.3rem;
    color: #000;
    margin-bottom: 10px;
    margin-left: 20px;
}

.no-similar-products {
    text-align: center;
    font-style: italic;
    color: #888;
    margin: 20px 0;
}

.produits-similaires-wrapper.tablet,
.produits-similaires-wrapper.mobile {
    display: none;
}

.commentaires-section {
    max-width: 1400px;
    margin: 30px auto;
    padding: 20px;
    background-color: #ffffff;
}

.commentaires-section h2 {
    font-size: 1.3rem;
    color: #000;
    display: inline-block;
    margin-bottom: 10px;
}

.commentaires-section p {
    font-size: 0.9rem;
}

.commentaire {
    display: flex;
    padding: 5px;
    border-radius: 5px;
    margin-bottom: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.com {
    font-size: 0.8rem;
    text-align: center;
    font-style: italic;
    color: #333;
}

.avatar {
    text-align: center;
    flex: 0 0 100px;
    margin-right: 20px;
}

.avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f1c40f;
}

.avatar p {
    font-size: 0.9rem;
    color: #000;
    font-weight: 500;
}

.rating-displaymmm {
    margin: auto 0px;
}

.rating-displaymmm p {
    margin-bottom: 5px;
    font-size: 0.8rem;
}

.rating-displaymmm .fa-star {
    margin-bottom: 10px;
    color: #f1c40f;
    font-size: 0.8rem;
}

.modale {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    backdrop-filter: blur(3px);
}

.modale-contenu {
    background-color: white;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: modalopen 0.4s ease-out;
}

@keyframes modalopen {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.fermer-modale {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 1.8rem;
    color: #151335;
    cursor: pointer;
    transition: color 0.3s;
    background: none;
    border: none;
    padding: 0;
}

.fermer-modale:hover {
    color: #151335;
}

.modale-contenu h2 {
    color: #151335;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    padding-right: 30px;
}

.modale-contenu h2 i {
    color: #f1c40f;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #000;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.form-group label i {
    color: #f1c40f;
    width: 20px;
    text-align: center;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #f1c40f;
    box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.2);
}

.adresse-groupe {
    display: flex;
    gap: 10px;
}

.adresse-groupe input {
    flex: 1;
    min-width: 0;
}

#localiser-adresse {
    background-color: #f1c40f;
    color: #151335;
    border: none;
    padding: 0 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    white-space: nowrap;
}

#localiser-adresse:hover {
    background-color: #ffc800;
    transform: translateY(-1px);
}

#localiser-adresse i {
    font-size: 0.9rem;
}

.btn-commander {
    width: 100%;
    background-color: #151335;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-commander:active {
    background-color: #1e1a4a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-commander i {
    font-size: 1.1rem;
}

@media (max-width: 480px) {
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Poppins', 'Roboto', sans-serif;
    }

    body {
        background-color: #f5f5f5;
        color: #333;
        overflow-x: hidden;
    }

    .description-produit {
        margin-top: 0;
        padding: 10px 0%;
        display: flex;
        flex-direction: column;
        margin-bottom: 10px;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .produit-container {
        display: flex;
        text-align: center;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        max-width: 100%;
    }

    .lesdeux {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .produit-image {
        flex: 0;
        padding: 0 10px;
        display: flex;
        text-align: center;
        justify-content: center;
        flex-direction: column;
        border-radius: 0px;
    }

    .produit-image img {
        max-width: 100%;
        width: 250px;
        height: 250px;
        object-fit: contain;
        border-radius: 8px;
        margin: auto;
    }

    .images-supplementaires {
        display: flex;
        gap: 1px;
        flex-wrap: wrap;
        padding-top: 10px;
    }

    .images-supplementaires img {
        max-width: 100%;
        width: 70px;
        height: 70px;
        object-fit: cover;
        border-radius: 6px;
        border: 1px solid #e0e0e0;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .images-supplementaires img:hover {
        transform: none;
        border-color: #f1c40f;
        box-shadow: 0 4px 8px rgba(241, 196, 15, 0.2);
    }

    .favoris-section {
        padding: 10px;
        border-top: 1px solid #eee;
        text-align: center;
    }

    .btn-favori {
        background: none;
        border: none;
        color: #000;
        cursor: pointer;
        font-size: 1rem;
        padding: 8px 15px;
        transition: all 0.3s;
        display: inline-flex;
    }

    .btn-favori:focus {
        color: #ff4757;
    }

    .favori-actif,
    .favori-actif:focus {
        color: #ff4757;
    }

    .btn-favori i {
        margin-right: 3px;
        padding-right: 5px;
    }

    .produit-details {
        flex: 1;
        max-width: none;
        padding: 0 10px;
        box-shadow: none;
        margin-top: 10px;
        text-align: left;
        border-radius: 0px;
    }

    .produit-nom {
        font-size: 0.95rem;
        font-weight: 600;
        margin-bottom: 10px;
        margin-top: 0px;
        color: #000;
        text-align: left;
    }

    .prix-et-note {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 5px;
        margin-bottom: 0px;
        padding-bottom: 5px;
        border-bottom: 1px solid #e0e0e0;
    }

    .normal-price {
        font-size: 1.1rem;
        font-weight: 700;
        color: #151335;
        margin-left: 5px;
    }

    .price-display {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .old-price {
        text-decoration: line-through;
        color: #999;
        font-size: 0.8rem;
        padding-left: 5px;
    }

    .etoiles {
        display: flex;
        align-items: center;
        gap: 2px;
    }

    .etoiles i {
        color: #f1c40f;
        font-size: 0.8rem;
        padding-top: 5px;
    }

    .nombre-commentaires {
        font-size: 0.8rem;
        color: #999;
        margin-left: 5px;
    }

    .note-text {
        font-size: 0.8rem;
        color: #999;
    }

    .attributs-section {
        padding-top: 10px;
    }

    .attribut-groupe {
        margin-top: 10px;
        margin-bottom: 15px;
    }

    .attribut-groupe h4 {
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 5px;
        color: #000;
    }

    .couleurs-options,
    .tailles-options {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        padding: 5px;
    }

    .color-box {
        width: 30px;
        height: 30px;
    }

    .taille-option {
        padding: 6px 12px;
        border: 2px solid #e0e0e0;
        border-radius: 5px;
        font-size: 0.8rem;
        cursor: pointer;
        transition: all 0.3s ease;
        background-color: #f9f9f9;
    }

    .taille-option:active {
        background-color: #151335;
        color: white;
        border-color: #fff;
        border: 2px solid #fff;
    }

    .taille-option.active {
        background-color: #151335;
        color: white;
        border-color: #ffffff;
        font-weight: 500;
        border-radius: 8px;
    }

    .description-container {
        margin: 10px 0;
        max-height: 6em;
    }

    .description-point {
        margin-bottom: 5px;
        font-size: 0.8rem;
    }

    .highlight {
        font-size: 0.9rem;
    }

    .btn-afficher-plus {
        font-size: 0.75rem;
    }

    .Methode {
        max-width: 100%;
        flex: 0 0 180%;
        padding: 10px;
        border-radius: 8px;
        border: 1px solid #ddd;
        text-align: center;
        margin-top: 5px;
        margin: auto;
        align-items: center;
        justify-content: center;
    }

    .vendeur-info {
        text-align: left;
        margin-bottom: 15px;
        padding: 15px;
    }

    .vendeur-header {
        font-size: 0.9rem;
    }

    .btn-voir-boutique {
        font-size: 0.9rem;
    }

    .total-livraison {
        font-size: 0.9rem;
    }

    .prix2 {
        font-size: 0.9rem;
    }

    .quantite-input {
        width: 60px;
        padding: 5px;
        font-size: 0.8rem;
    }

    .btn-ajouter-panier,
    .btn-ajouter-panier2 {
        padding: 10px;
        font-size: 0.8rem;
    }

    .Bouton {
        display: flex;
        flex-direction: column;
        margin: auto;
        padding: auto;
        text-align: center;
        justify-content: center;
        align-items: center;
    }

    .error-message {
        padding: 10px;
        font-size: 0.7rem;
        margin-right: 10px;
    }

    .stock-epuise p {
        font-size: 0.8rem;
    }

    .details-produit {
        max-width: 1400px;
        margin: 5px auto;
        padding: 5px 10px;
        margin-bottom: 10px;
    }

    .details-produit h2 {
        font-size: 1rem;
        margin-bottom: 0px;
    }

    .info__table th,
    .info__table td {
        padding: 10px;
        font-size: 0.8rem;
    }

    .info__table th {
        width: 40%;
    }

    .produits-similaires {
        padding: 10px 0;
    }

    .produits-similaires h2 {
        font-size: 1rem;
        padding-left: 10px;
    }

    .produits-similaires-desktop {
        display: none;
    }

    .produits-similaires-wrapper.mobile {
        display: block;
    }

    .produits-similaires-wrapper.mobile .page {
        grid-template-columns: repeat(2, 1fr);
    }

    .produits-similaires-wrapper .produits-scroller {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        gap: 0px;
        padding: 0;
        overflow: hidden;
    }

    .produits-similaires-wrapper .page {
        scroll-snap-align: start;
        flex: 0 0 calc(100% - 20px);
        display: grid;
        gap: 5px;
        padding: 0 5px;
    }

    .produit-similaire {
        width: 100%;
    }

    .discount-badge {
        font-size: 0.75em;
    }

    .produit-similaire p {
        font-size: 0.75rem;
        margin-top: 0px;
    }

    .display3 {
        display: flex;
        align-items: center;
        font-size: 0.8rem;
        color: #f1c40f;
        gap: 2px;
        padding: 5px 0;
    }

    .display3 span {
        color: #000;
        margin-left: 3px;
        font-size: 0.7rem;
    }

    .note3 {
        color: #999;
        font-size: 13px;
    }

    .current-price3,
    .normal-price3 {
        font-weight: bold;
        color: #000;
        font-size: 0.9rem;
    }

    .old-price3 {
        font-size: 0.7rem;
        color: #888;
        text-decoration: line-through;
        margin-left: 6px;
        margin-top: 5px;
    }

    .no-similar-products {
        font-size: 0.8rem;
    }

    .pagination-buttons2 {
        padding-top: 5px;
        display: flex;
        justify-content: center;
        gap: 5px;
        margin-top: 5px;
        padding-bottom: 5px;
    }

    .pagination-buttons2 .dot {
        width: 5px;
        height: 5px;
        background: #ddd;
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s;
    }

    .pagination-buttons2 .dot.active {
        background: #151335;
        transform: scale(1.2);
    }

    .commentaires-section {
        max-width: 1400px;
        margin: 10px auto;
        padding: 10px;
        background-color: #ffffff;
    }

    .commentaires-section h2 {
        font-size: 1rem;
        padding-top: 5px;
        margin-bottom: 10px;
    }

    .commentaires-section p {
        font-size: 0.8rem;
        margin-top: 5px;
    }

    .com {
        font-size: 0.8rem;
    }

    .commentaire {
        padding: 5px;
        margin-bottom: 5px;
    }

    .avatar {
        flex: 0 0 100px;
    }

    .avatar img {
        width: 60px;
        height: 60px;
        border: 1px solid #f1c40f;
    }

    .avatar p {
        font-size: 0.8rem;
    }

    .rating-displaymmm p {
        font-size: 0.8rem;
    }

    .rating-displaymmm .fa-star {
        font-size: 0.8rem;
    }

    .modale {
        font-size: 0.7rem;
    }

    .modale-contenu {
        padding: 20px;
        width: 90%;
        max-width: 500px;
    }

    .modale-contenu h2 {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .modale-contenu h2 i {
        font-size: 0.9rem;
    }

    .fermer-modale {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 0.8rem;
        margin-bottom: 7px;
    }

    .form-group label i {
        font-size: 0.9rem;
    }

    .form-group input {
        padding: 10px;
        font-size: 0.8rem;
    }

    .adresse-groupe button {
        padding: 10px 15px;
    }

    .btn-commander {
        padding: 10px;
        font-size: 0.9rem;
    }

    .btn-commander i {
        font-size: 1rem;
    }
}

@media (min-width: 481px) and (max-width: 900px) {
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Poppins', 'Roboto', sans-serif;
    }

    body {
        background-color: #f5f5f5;
        color: #333;
        overflow-x: hidden;
    }

    .description-produit {
        margin-top: 0;
        padding: 10px 1%;
        display: flex;
        flex-direction: column;
        margin-bottom: 20px;
        line-height: 1.3;
    }

    .produit-container {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .lesdeux {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .produit-image {
        flex: 0;
        padding: 0 10px;
        display: flex;
        text-align: center;
        justify-content: center;
        flex-direction: column;
        border-radius: 0px;
    }

    .produit-image img {
        max-width: 100%;
        width: 250px;
        height: 250px;
        object-fit: contain;
        border-radius: 8px;
        margin: auto;
    }

    .images-supplementaires {
        display: flex;
        gap: 1px;
        flex-wrap: wrap;
        padding-top: 10px;
    }

    .images-supplementaires img {
        max-width: 100%;
        width: 70px;
        height: 70px;
        object-fit: cover;
        border-radius: 6px;
        border: 1px solid #e0e0e0;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .images-supplementaires img:hover {
        transform: none;
        border-color: #f1c40f;
        box-shadow: 0 4px 8px rgba(241, 196, 15, 0.2);
    }

    .favoris-section {
        padding: 10px;
        border-top: 1px solid #eee;
        text-align: center;
    }

    .btn-favori {
        background: none;
        border: none;
        color: #000;
        cursor: pointer;
        font-size: 1rem;
        padding: 8px 15px;
        transition: all 0.3s;
        display: inline-flex;
    }

    .btn-favori:focus {
        color: #ff4757;
    }

    .favori-actif,
    .favori-actif:focus {
        color: #ff4757;
    }

    .btn-favori i {
        margin-right: 3px;
        padding-right: 5px;
    }

    .produit-details {
        flex: 1;
        max-width: none;
        padding: 0 10px;
        border-radius: 0px;
        box-shadow: none;
        margin-top: 10px;
    }

    .produit-nom {
        font-size: 0.95rem;
        font-weight: 600;
        margin-bottom: 10px;
        margin-top: 0px;
        color: #000;
    }

    .prix-et-note {
        display: flex;
        align-items: center;
        gap: 5px;
        margin-bottom: 0px;
        padding-bottom: 5px;
        border-bottom: 1px solid #e0e0e0;
    }

    .normal-price {
        font-size: 1.1rem;
        font-weight: 700;
        color: #151335;
        margin-left: 5px;
    }

    .price-display {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .old-price {
        text-decoration: line-through;
        color: #999;
        font-size: 0.8rem;
        padding-left: 5px;
        padding-top: 0px;
    }

    .etoiles {
        display: flex;
        align-items: center;
        gap: 2px;
    }

    .etoiles i {
        color: #f1c40f;
        font-size: 0.9rem;
    }

    .nombre-commentaires {
        font-size: 0.8rem;
        color: #999;
        margin-left: 5px;
    }

    .note-text {
        font-size: 0.8rem;
        color: #999;
    }

    .attributs-section {
        padding-top: 10px;
    }

    .attribut-groupe {
        margin-bottom: 10px;
        margin-top: 10px;
    }

    .attribut-groupe h4 {
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 5px;
        color: #000;
    }

    .couleurs-options,
    .tailles-options {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        padding: 5px;
    }

    .color-box {
        width: 30px;
        height: 30px;
    }

    .taille-option {
        padding: 6px 12px;
        border: 2px solid #e0e0e0;
        border-radius: 5px;
        font-size: 0.8rem;
        cursor: pointer;
        transition: all 0.3s ease;
        background-color: #f9f9f9;
    }

    .taille-option:active {
        background-color: #151335;
        color: white;
        border-color: #fff;
        border: 2px solid #fff;
    }

    .taille-option.active {
        background-color: #151335;
        color: white;
        border-color: #ffffff;
        font-weight: 500;
        border-radius: 8px;
    }

    .description-container {
        margin: 10px 0;
        max-height: 7em;
    }

    .description-point {
        margin-bottom: 8px;
        font-size: 0.8rem;
    }

    .highlight {
        font-size: 0.9rem;
    }

    .btn-afficher-plus {
        font-size: 0.8rem;
    }

    .Methode {
        max-width: 100%;
        flex: 0 0 180%;
        padding: 10px;
        border-radius: 0px;
        background: #ffffff;
        text-align: center;
        margin-top: 5px;
        margin: auto;
        align-items: center;
        justify-content: center;
        border: 1px solid #ddd;
        border-radius: 5px;
    }

    .vendeur-info {
        text-align: center;
        margin-bottom: 15px;
        padding: 15px;
    }

    .vendeur-header {
        font-size: 0.9rem;
        justify-content: center;
    }

    .btn-voir-boutique {
        font-size: 0.9rem;
        justify-content: center;
    }

    .livraison-info {
        text-align: left;
        margin-bottom: 10px;
        background-color: #eee;
        padding: 10px;
        border-radius: 8px;
    }

    .livraison-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
        color: #333;
    }

    .livraison-prix {
        font-size: 0.9rem;
        color: #000;
        font-weight: bold;
        border-bottom: 1px solid #ddd;
    }

    .livraison-prix span {
        color: #000;
        font-size: 0.8rem;
        font-weight: normal;
    }

    .livraison-distance {
        font-size: 13px;
        color: #7f8c8d;
        margin-top: 5px;
    }

    .loading-livraison {
        color: #7f8c8d;
        font-size: 14px;
    }

    .error-livraison {
        color: #e74c3c;
        font-size: 14px;
    }

    .livraison-delai {
        font-size: 0.8rem;
        color: #000;
        margin-top: 10px;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

    .livraison-delai span {
        color: #000;
        font-weight: bold;
        font-size: 0.9rem;
    }

    .prix2 {
        font-size: 0.9rem;
    }

    .quantite-input {
        width: 60px;
        padding: 5px;
        font-size: 0.8rem;
    }

    .btn-ajouter-panier,
    .btn-ajouter-panier2 {
        padding: 10px;
        font-size: 0.8rem;
    }

    .Bouton {
        display: flex;
        flex-direction: column;
        margin: auto;
        padding: auto;
        text-align: center;
        justify-content: center;
        align-items: center;
    }

    .stock-epuise p {
        font-size: 0.85rem;
    }

    .details-produit {
        max-width: 1400px;
        margin: 5px auto;
        padding: 5px 15px;
        margin-bottom: 20px;
    }

    .details-produit h2 {
        font-size: 1rem;
        margin-bottom: 3px;
    }

    .info__table th,
    .info__table td {
        padding: 10px;
        font-size: 0.8rem;
    }

    .info__table th {
        width: 30%;
    }

    .produits-similaires {
        padding: 10px 0;
    }

    .produits-similaires h2 {
        font-size: 1rem;
        padding-left: 15px;
        padding-bottom: 5px;
    }

    .produits-similaires-desktop {
        display: none;
    }

    .produits-similaires-wrapper.mobile {
        display: none;
    }

    .produits-similaires-wrapper.tablet {
        display: block;
        background-color: #fff;
        gap: 10px;
    }

    .produits-similaires-wrapper.tablet .page {
        grid-template-columns: repeat(3, 1fr);
        background-color: #fff;
        padding-left: 20px;
    }

    .produits-similaires-wrapper .produits-scroller {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        gap: 0px;
        padding: 0;
        background-color: #ffffff;
        overflow: hidden;
    }

    .produits-similaires-wrapper .page {
        scroll-snap-align: start;
        flex: 0 0 calc(100% - 20px);
        display: grid;
        gap: 5px;
        padding: 0 5px;
    }

    .image-container img {
        width: 190px;
        height: 190px;
        position: relative;
        object-fit: cover;
    }

    .produit-similaire p {
        font-size: 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .rating-display2 {
        font-size: 0.8rem !important;
        color: #f1c40f !important;
        margin-top: 5px !important;
        display: flex !important;
        align-items: center !important;
    }

    .rating-display2 span {
        color: #000;
        margin-left: 5px;
    }

    .note2 {
        font-size: 0.8rem !important;
        color: #000 !important;
        display: flex !important;
        align-items: center !important;
        padding-top: 5px !important;
        padding-right: 10px !important;
    }

    .price-display2 {
        margin-top: 5px !important;
        background-color: #ffffff !important;
        display: flex !important;
    }

    .old-price2 {
        text-decoration: line-through !important;
        color: #999 !important;
        font-size: 0.7rem !important;
        display: inline-block !important;
        margin-right: 0px !important;
        padding-left: 5px !important;
        padding-top: 2px !important;
    }

    .current-price2 {
        color: #000 !important;
        font-size: 0.95rem !important;
        font-weight: bold !important;
    }

    .normal-price2 {
        color: #000 !important;
        font-size: 0.95rem !important;
        font-weight: bold !important;
    }

    .pagination-buttons3 {
        padding-top: 5px;
        display: flex;
        justify-content: center;
        gap: 5px;
        margin-top: 5px;
        padding-bottom: 5px;
    }

    .pagination-buttons3 .dot {
        width: 6px;
        height: 6px;
        background: #ddd;
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s;
    }

    .pagination-buttons3 .dot.active {
        background: #151335;
        transform: scale(1.2);
    }

    .no-similar-products {
        font-size: 0.8rem;
        text-align: center;
        font-style: italic;
        color: #333;
    }

    .commentaires-section {
        max-width: 1400px;
        margin: 10px auto;
        padding: 10px;
    }

    .commentaires-section h2 {
        font-size: 1rem;
        padding-top: 5px;
    }

    .commentaires-section p {
        font-size: 0.85rem;
    }

    .com {
        font-size: 0.8rem;
    }

    .commentaire {
        padding: 5px;
        margin-bottom: 5px;
    }

    .avatar {
        flex: 0 0 100px;
    }

    .avatar img {
        width: 60px;
        height: 60px;
        border: 1px solid #f1c40f;
    }

    .avatar p {
        font-size: 0.85rem;
    }

    .rating-displaymmm p {
        font-size: 0.8rem;
    }

    .rating-displaymmm .fa-star {
        font-size: 0.8rem;
    }

    .modale {
        font-size: 0.8rem;
    }

    .modale-contenu {
        padding: 20px;
        width: 90%;
        max-width: 500px;
    }

    .modale-contenu h2 {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .modale-contenu h2 i {
        font-size: 1rem;
    }

    .fermer-modale {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 0.8rem;
        margin-bottom: 7px;
    }

    .form-group label i {
        font-size: 0.9rem;
    }

    .form-group input {
        padding: 10px;
        font-size: 0.8rem;
    }

    .adresse-groupe button {
        padding: 10px 15px;
    }

    .btn-commander {
        padding: 10px;
        font-size: 0.9rem;
    }

    .btn-commander i {
        font-size: 1rem;
    }
}