/* Conteneur principal */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Lato', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 20px;
    padding: 12px 15px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex; /* Pour une seule ligne */
    align-items: center;
    gap: 5px; /* Espacement entre les éléments */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.breadcrumb a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: #FF6B35;
}

.breadcrumb span {
    color: #666;
}

/* Conteneur principal du produit */
.product-main-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Section des images */
.product-images-container {
    flex: 1;
    min-width: 300px;
}

.main-image-container {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    background-color: #f9f9f9;
    padding: 15px;
    border: 1px solid #eee;
}

.main-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid #eee;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    border-color: #FF6B35;
    transform: translateY(-3px);
}

.thumbnail.active {
    border-color: #FF6B35;
}

/* Section des informations */
.product-info-container {
    flex: 1.5;
    min-width: 300px;
}

.product-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}

.product-brand, .product-reference {
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.product-brand a {
    color: #FF6B35;
    text-decoration: none;
    font-weight: 500;
}

.product-brand a:hover {
    text-decoration: underline;
}

/* Boutons de partage */
.social-share-container {
    margin: 20px 0;
}

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

.share-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s, background-color 0.3s;
}

.share-button:hover {
    transform: translateY(-3px);
}

.facebook {
    background-color: #3b5998;
}

.twitter {
    background-color: #1da1f2;
}

.linkedin {
    background-color: #0077b5;
}

.copy-link {
    background-color: #6c757d;
    border: none;
    cursor: pointer;
}

/* Bouton wishlist */
.wishlist-container {
    margin: 15px 0;
}

.wishlist-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border: 2px solid #FF6B35;
    background-color: white;
    color: #FF6B35;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.wishlist-btn:hover {
    background-color: #FF6B35;
    color: white;
}

.wishlist-btn.in-wishlist {
    background-color: #FF6B35;
    color: white;
}

/* Prix et informations */
.product-details-info {
    margin: 20px 0;
    padding: 18px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #FF6B35;
}

.product-details-info p {
    margin-bottom: 12px;
    font-size: 1.1em;
}

.product-details-info p:last-child {
    margin-bottom: 0;
}

.price {
    font-size: 1.3em;
    font-weight: 700;
    color: #FF6B35;
}

.login-link {
    color: #FF6B35;
    text-decoration: none;
    font-weight: 500;
}

.login-link:hover {
    text-decoration: underline;
}

/* Section évaluation */
.rating-section {
    margin: 30px 0;
    padding: 25px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.rating-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.average-rating {
    display: flex;
    align-items: baseline;
}

.rating-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FF6B35;
}

.rating-max {
    font-size: 1.2rem;
    color: #666;
}

.rating-stars {
    color: #FFD700;
    font-size: 1.3rem;
}

.rating-count {
    color: #666;
    font-size: 0.95rem;
}

/* Conteneur principal du contenu */
.content-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.description-section {
    flex: 3;
    min-width: 300px;
}

.store-section {
    flex: 1;
    min-width: 300px;
}

/* Vidéos YouTube */
.youtube-videos {
    margin: 30px 0;
}

.video-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Section des magasins */
.store-section {
    margin: 30px 0;
    padding: 25px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.store-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.store-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.store-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.store-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.store-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.store-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 6px;
}

.store-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.store-location {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.store-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #FF6B35;
    margin: 12px 0;
}

.store-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.contact-button {
    flex: 1;
    min-width: 120px;
    padding: 8px 12px;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.phone {
    background-color: #f8f9fa;
    color: #333;
}

.phone:hover {
    background-color: #e9ecef;
}

.whatsapp {
    background-color: #25D366;
    color: white;
}

.whatsapp:hover {
    background-color: #128C7E;
}

/* Lien vers la section des magasins */
.stores-link {
    color: #FF6B35;
    text-decoration: none;
    transition: color 0.3s, text-decoration 0.3s;
}

.stores-link:hover {
    color: #e85a2a;
    text-decoration: underline;
}

/* Produits similaires */
.similar-products-section {
    margin: 30px 0;
    padding: 25px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.similar-products-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.similar-products-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0 20px;
    scrollbar-width: thin;
    scrollbar-color: #FF6B35 #f0f0f0;
}

.similar-products-container::-webkit-scrollbar {
    height: 8px;
}

.similar-products-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.similar-products-container::-webkit-scrollbar-thumb {
    background-color: #FF6B35;
    border-radius: 10px;
}

.similar-product {
    min-width: 200px;
    max-width: 250px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    background-color: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.similar-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.similar-product img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
}

.similar-product-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 10px 0;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar-product-brand {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .product-main-container {
        flex-direction: column;
    }
    
    .product-images-container, .product-info-container {
        width: 100%;
    }
    
    .rating-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .store-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .thumbnail {
        width: 70px;
        height: 70px;
    }
    
    .product-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .breadcrumb {
        flex-wrap: wrap;
        font-size: 0.8rem;
        padding: 8px 10px;
    }
    
    .product-main-container,
    .rating-section,
    .store-section,
    .similar-products-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .main-image-container {
        padding: 10px;
    }
    
    .main-image {
        max-height: 300px;
    }
    
    .thumbnail-container {
        justify-content: flex-start;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .product-title {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    
    .product-brand, .product-reference {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .store-list {
        grid-template-columns: 1fr;
    }
    
    .similar-product {
        min-width: 160px;
        max-width: 200px;
    }
    
    .share-button {
        width: 35px;
        height: 35px;
    }
    
    .store-contact {
        flex-direction: column;
        gap: 8px;
    }
    
    .contact-button {
        width: 100%;
    }
    
    .rating-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 0 10px;
    }
    
    .product-main-container,
    .rating-section,
    .store-section,
    .similar-products-section {
        padding: 12px;
        border-radius: 8px;
    }
    
    .main-image {
        max-height: 250px;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .product-title {
        font-size: 1.3rem;
    }
    
    .product-details-info {
        padding: 12px;
    }
    
    .product-details-info p {
        font-size: 1em;
    }
    
    .price {
        font-size: 1.2em;
    }
    
    .similar-product {
        min-width: 140px;
        padding: 8px;
    }
    
    .similar-product img {
        height: 120px;
    }
    
    .similar-product-name {
        font-size: 0.9rem;
    }
    
    .similar-product-brand {
        font-size: 0.8rem;
    }
    
    .store-name {
        font-size: 1.1rem;
    }
    
    .store-price {
        font-size: 1.2rem;
    }
    
    .rating-section h2,
    .store-section h2,
    .similar-products-section h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
}