body {
    font-family: 'Karla', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5F5F5;
}



.product-container {
    display: grid;
    grid-template-columns: 120px 1fr 1fr;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 3px;
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

.image-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.image-gallery img, .image-gallery video {
    width: 100%;
    min-height: 120px;
    max-height: 120px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 5px;
}

.main-image {
    position: relative;
    min-height: 20px !important;
    max-height: 560px !important; 
}

.main-image img {
    width: 85%;
    min-height: 20px !important;
    max-height: 560px !important; 
    object-fit: cover;
    height: auto;
    border-radius: 5px;
}

.discount-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgb(198, 47, 47);
    color: white;
    padding: 5px 10px;
    font-size: 10px;
    font-weight: 550;
    border-radius: 3px;
}

.product-details {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.breadcrumb {
    font-size: 14px;
    color: gray;
}

h1 {
    font-size: 22px;
    margin: 0;
}

.price {
    font-size: 20px;
    font-weight: bold;
}

.discounted-price {
    color: #DC7928;
}

.original-price {
    text-decoration: line-through;
    color: gray;
    margin-left: 10px;
}

.stock-status {
    color: rgb(226, 225, 225);
    font-weight: bold;
    background-color: rgb(75, 155, 75);
    width: 200px;
    border-radius: 3px;
    font-size: 12px;
    padding: 5px;
    text-align: center;
}

.highlight {
    font-size: 14px;
}

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

.quantity button {
    width: 30px;
    height: 30px;
    background: #ddd;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

.quantity input {
    width: 40px;
    text-align: center;
    font-size: 16px;
}

.buttons {
    display: flex;
    gap: 10px;
}

.buttons button {
    width: 28%;
    font-family: 'Karla', sans-serif;
}

.add-to-cart, .buy-now {
    padding: 10px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    /* width: 200px; */
    color: white;
    border-radius: 3px;
}

.add-to-cart {
    background-color: #005f8d;
    color: #FFF;
    cursor: pointer;
    transition: .2s linear;
}
.add-to-cart:hover {
    background-color: transparent;
    color: #984f14;
    border: 1px solid #984f14;
    border-radius: 7px;
}

.buy-now {
    background-color: #984f14;
    transition: .2s linear;
}

.buy-now:hover {
    background-color: #ad5b18;
    border-radius: 7px;
}

.wishlist-compare {
    font-size: 14px;
    color: gray;
}

.id {
    font-size: 15px;
    color: gray;
}

/* Styles améliorés pour la section de partage - Version simplifiée */
.sharing {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 1px 0;
}

.share {
    font-weight: 560;
    font-size: 17px;
    color: rgb(63, 63, 63);
    margin-bottom: 5px;
}

.share-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-btn {
    font-size: 26px; /* Icônes plus grandes */
    color: #666;
    transition: transform 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.share-btn:hover {
    transform: scale(1.2);
}

.share-btn.facebook:hover {
    color: #3b5998;
}

.share-btn.whatsapp:hover {
    color: #25D366;
}

.share-btn.instagram:hover {
    color: #C13584;
}

 

/* Décrire l'article */

.details {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    flex-wrap: wrap;
    padding: 20px;
}

.titleprod {
    font-size: 18px;
}

.infoprod {
    width: 420px;
    text-align: center;
}

.decrire {
    font-size: 15px;
    flex-direction: column;
    display: flex;
}
.sellerinfo {
    margin-top: 0;
}

/* Related prods */

.slidesprods {
    display: flex;
    transition : transform 0.5s ease-in-out;
}

.relateprod {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    align-items: center;
}

.relates {
    max-width: 230px;
    flex : 1 1 calc(20% - 10px);
    padding: 15px;
    position: relative;
    transition: box-shadow 0.3s ease-in-out;
    box-sizing: border-box;
}

.relates img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.relates:hover {
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.promo {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgb(198, 47, 47);
    color: white;
    padding: 5px 8px;
    font-size: 10px;
    font-weight: 550;
    border-radius: 3px;
  }

  .notes {
    font-size: 14px;
    margin: 5px 0;
  }

.heart {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    color: gray;
    cursor: pointer;
    background: #ddd;
    padding: 5px;
    border-radius: 50%;
  }

.location {
    font-size: 14px;
  }
  
  .rating {
    font-size: 13px;
  }
  
  .categorie {
    font-size: 12px;
    color: gray;
    margin-top: 5px;
  }


  .prices {
    margin: 5px 0;
  }
  
  .newprice {
    color: #DC7928;
    font-size: 15px;
    font-weight: bold;
  }
  
  .oldprice {
    text-decoration: line-through;
    color: gray;
    margin-left: 5px;
  }
  
  .cart {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    background: #ddd;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s;
}

.descrip {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    border: none;
    width: 100%;
    padding: 8px 12px;
    opacity: 0;
    background-color: #DC7928;
    color: #fff;
    transition: opacity 0.2s ease-in-out;
    font-family: 'Inter', sans-serif;
    z-index: 100;
  }
  
  .relates:hover .descrip {
    opacity: 1;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 100;
  
  }
  
  .relates:hover .heart {
    background-color: #DC7928;
    color: #fff;
  }

  .prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
}

.titlerelate {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    width: 20%;
}



@media screen and (min-width:1200px) {
    .image-gallery
    {
        max-height: 560px !important; 
        overflow-y: auto !important;
    }
}
@media screen and (max-width:2000px) {
    .image-gallery
    {
        max-height: 560px !important; 
        overflow-y: auto !important;
    }
}
@media screen and (max-width:1170px) {
    .image-gallery
    {
        max-height: 520px !important; 
        overflow-y: auto !important;
    }
}
@media screen and (max-width:1090px) {
    .image-gallery
    {
        max-height: 480px !important; 
        overflow-y: auto !important;
    }
}
@media screen and (max-width:1030px) {
    .image-gallery
    {
        max-height: 430px !important; 
        overflow-y: auto !important;
    }
}
@media screen and (max-width:950px) {
    .image-gallery
    {
        max-height: 390px !important; 
        overflow-y: auto !important;
    }
}
@media screen and (max-width:870px) {
    .image-gallery
    {
        max-height: 360px !important; 
        overflow-y: auto !important;
    }
}
@media screen and (max-width:850px) {
    .image-gallery
    {
        height: auto !important; 
        overflow-y: auto !important;
    }
}
/* Ajouter cette règle pour les mobiles */
@media screen and (max-width: 498px) {
    .product-container {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .image-gallery {
        flex-direction: row;
        order: 2;
        overflow-x: auto;
    }

    .image-gallery img, .image-gallery video {
        min-width: 80px !important;
        max-width: 80px !important;
        min-height: 80px !important;
        max-height: 80px !important;
        flex-shrink: 0;
    }

    .main-image {
        order: 1;
    }

    .main-image img {
        width: 100% !important;
    }

    .product-details {
        order: 3;
    }

    .quantity {
        justify-content: center;
    }

    .buttons {
        flex-direction: column;
        gap: 10px;
    }
}

/* Version tablette */
@media screen and (min-width: 499px) and (max-width: 850px) {
    .product-container {
        grid-template-columns: 100px 1fr;
    }

    .product-details {
        grid-column: span 2;
    }
}