.product-detail-page {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
}

.product-images {
    display: flex;
    flex-direction: column; /* empile les enfants verticalement */
    align-items: center;
    margin-bottom: 1rem; /* espace sous le conteneur de l'image */
}

.main-image-container {
    width: 100%; /* prend la largeur maximale */
    height: 250px; /* hauteur fixe pour l'image principale */
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-images .main-product-image {
    max-width: 100%; /* assure que l'image ne dépasse pas la largeur du conteneur */
    max-height: 100%; /* assure que l'image ne dépasse pas la hauteur du conteneur */
    object-fit: contain; /* assure que toute l'image est visible, en la contenant dans les dimensions du conteneur */
}

.product-thumbnails-container {
    width: 100%; /* prend la largeur maximale */
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.product-rating {
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1rem;
    margin-bottom: 1rem;
}



.product-details .product-sku-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-details .product-sku,
.product-details .product-category {
    margin: 0;
    font-size: 0.7rem;
}



.product-description-short {
    margin-bottom: 1rem;
    font-size: 0.7rem;
}

/*Quantité + bouton cart*/


.quantity-input-group {
    display: flex;
    align-items: stretch; /* Assure que les boutons et l'input sont de la même hauteur */
    width: auto; /* S'adapte à la taille de son contenu */
}

/* Style pour les boutons de décrémentation et d'incrémentation */
.quantity-input-group .btn-decrement,
.quantity-input-group .btn-increment {
    padding: 0.375rem 0.75rem;
    margin-right: 0.2rem;
    background-color: #fff;
    color: #000;
    border: 1px solid #ccc;
    cursor: pointer; /* Change le curseur en main lorsque survole les boutons */
}

/* Style pour l'input de quantité */
.quantity-input-group .quantity-input {
    flex-grow: 0; /* Empêche l'input de grandir */
    width: 50px; /* Largeur fixe de l'input */
    text-align: center;
    margin: 0 5px; /* Ajoute un petit espace entre les boutons et l'input */
}

/* Style pour le bouton d'ajout au panier */
.btn-add-to-cart {
    background-color: red;
    color: #fff;
    border: none;
    padding: 0.375rem 1rem; /* Ajuste le padding pour correspondre à la hauteur des autres éléments */
    white-space: nowrap; /* Empêche le texte de passer à la ligne suivante */
    margin-left: 10px; /* Ajoute un peu d'espace entre l'input et le bouton */
}


/* TABS  INFOO  DESCRIPTION AVIS */
.product-tabs .nav-tabs {
    flex-wrap: nowrap; /* Empêche les onglets de passer à la ligne */
    white-space: nowrap; /* Empêche les titres des onglets de passer à la ligne */
}

/* Ajuster la taille de la police pour les petits écrans sans empiler les onglets */
@media (max-width: 991px) {
    .product-tabs .nav-link {
        padding: 0.25rem 0.5rem; /* Ajuster le padding */
    }
}

/* Vous pouvez ajuster encore plus pour les très petits écrans si nécessaire */
@media (max-width: 576px) {
    .product-tabs .nav-link {
        font-size: 0.7rem; /* Réduire encore la taille de la police */
        padding: 0.25rem 0.5rem; /* Ajuster le padding */
    }
}

.product-tabs .nav-item {
    margin-bottom: -2px;
}

.product-tabs .nav-link {
    border: 1px solid transparent;
    border-radius: 0.25rem 0.25rem 0 0;
    color: #007bff;
    padding: 0.5rem 1rem;
    margin-right: 2px; /* Ajoute un petit espace entre les onglets */
    display: block;
    text-decoration: none; /* Supprime le soulignement des liens */
}

.product-tabs .nav-link:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
    text-decoration: none; /* Supprime le soulignement des liens au survol */
}

.product-tabs .nav-link.active {
    color: #495057;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    margin-bottom: -1px; /* Alignement précis avec le contenu de l'onglet */
}



/* Styles pour le contenu de l'onglet */
.tab-content>.tab-pane {
    padding: 1rem;
}



.info-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px; /* Arrondit les coins du tableau */
    overflow: hidden;
}

.info-table th, .info-table td {
    border-top: none;
    padding: 0.5rem;
    border-bottom: 1px solid #ddd;
}

.info-table tr:first-child th, .info-table tr:first-child td {
    border-top: 1px solid #ddd;
}

@media (min-width: 768px) { /* Pour les écrans de taille moyenne et plus grande */
    .info-table th, .info-table td {
        width: 25%;
    }
}
.info-table tr:first-child th:first-child,
.info-table tr:first-child td:first-child {
    border-top-left-radius: 10px; /* Arrondit le coin supérieur gauche */
}

.info-table tr:first-child th:last-child,
.info-table tr:first-child td:last-child {
    border-top-right-radius: 10px; /* Arrondit le coin supérieur droit */
}

.info-table tr:last-child th:first-child,
.info-table tr:last-child td:first-child {
    border-bottom-left-radius: 10px; /* Arrondit le coin inférieur gauche */
}

.info-table tr:last-child th:last-child,
.info-table tr:last-child td:last-child {
    border-bottom-right-radius: 10px; /* Arrondit le coin inférieur droit */
}




/* Styles pour les AVIS -------------------------- */
.review-rating {
    color: #ffc107; /* Couleur des étoiles */
    display: flex;
    align-items: center;
}

.review-rating .fa {
    color: #e4e5e9; /* Couleur des étoiles non sélectionnées */
}

.review-rating .checked {
    color: #ffc107; /* Couleur des étoiles sélectionnées */
}

.single-review .review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.single-review {
    border: 1px solid #ddd;
    padding: 5px;
    margin-bottom: 15px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-text {
    font-style: italic
    padding-top: 10px;
}

.review-user {
    font-size: 0.7rem;
    color: #666;
    font-weight: bold;
    margin-right: 10px;
}

/* Styles pour le formulaire d'avis */
.add-review h4 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.rating > input {
    display: none;
}

.rating > label {
    font-size: 30px;
    color: #ddd;
    cursor: pointer;
}

.rating > input:checked ~ label {
    color: #ffc107;
}

.rating > input:checked + label:hover,
.rating > input:checked ~ label:hover,
.rating > label:hover ~ input:checked ~ label {
    color: #ffdb70;
}

.rating > label:active {
    position: relative;
    top: 2px;
}

.product-detail-page .form-group {
    margin-bottom: 15px;
}

.form-control {
    border-radius: 0;
    border: 1px solid #ddd;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Styles for review stars in single review */
.review-stars {
    display: flex;
    direction: ltr; /* Ensure stars are from left to right */
}

.review-stars .fa-star  {
    font-size: 1rem; /* Adjust the size of the stars */
    margin-left: 5px; /* Add space between stars */
    color: #ddd; /* Default star color */
}

.review-stars .fa-star.checked {
    color: #ffc107; /* Color for active stars */
}





/* Styles for review stars in add-review */
.review-starsComment {
    display: flex;
    justify-content: flex-start;
    direction: rtl;
    float: left;
}

.review-starsComment input[type="radio"] {
    display: none;
}

.review-starsComment label {
    color: #ddd;
    font-size: 20px;
    padding: 0 5px;
    cursor: pointer;
}

.review-starsComment input[type="radio"]:checked ~ label,
.review-stars label:hover,
.review-stars label:hover ~ label {
    color: #ffc107;
}


/* RELATED PRODUCTS -------------------------------*/

#related-products .card {
    border: none;
    transition: all 0.3s ease;
}

#related-products .card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#related-products .card-img-top, #recently-viewed-products .card-img-top {
    width: 100%; /* l'image prendra la largeur totale de la carte */
    height: 160px; /* Hauteur fixe pour toutes les images pour uniformiser */
    object-fit: contain; /* l'image couvrira toute la zone, coupée si nécessaire */
}

#related-products .card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

#related-products .card-title a {
    color: black; /* Change la couleur du texte du lien en noir */
    text-decoration: underline; /* Ajoute une ligne de soulignement */
}

#related-products .card-title a:hover {
    color: black; /* Garde la couleur du texte du lien en noir au survol */
    text-decoration: underline; /* Maintient la ligne de soulignement au survol */
}

#related-products .card-body {
    display: flex;
    flex-direction: column; /* empile les éléments verticalement */
    justify-content: center; /* centre les éléments verticalement dans la card */
    align-items: center; /* centre les éléments horizontalement dans la card */
    padding: 0.5rem;
    height: 100%; /* assure que le corps de la card remplit la hauteur restante */
}

#related-products .card-body .mt-auto {
    margin-top: auto; /* pousse les éléments vers le bas si nécessaire */
}

#related-products .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

#related-products .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

@media (max-width: 576px) {
    #related-products .card-img-top {
        height: auto;
    }
}


/* FAQ ----------------*/

.product-detail-page .faq-container {
    margin-top: 10px;
}

.product-detail-page .faq-container .single-faq {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
}

.product-detail-page .faq-container .faq-question {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.product-detail-page .faq-container .faq-answer {
    color: #555;
    line-height: 1.5;
}

/* Zoom */

.main-image-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.main-product-image {
    display: block;
    width: 100%;
    height: auto;
}

.magnifier {
    position: absolute;
    width: 100px; /* Largeur de la loupe */
    height: 100px; /* Hauteur de la loupe */
    border: 2px solid #ccc;
    background: white;
    pointer-events: none;
    display: none;
}

/* End Zoom */