/* Styles pour la section d'évaluation */
.rating-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 20px 0;
    max-width: 600px;
}

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

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

.rating-number {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
}

.rating-max {
    font-size: 1rem;
    color: #666;
    margin-left: 3px;
}

.rating-stars {
    color: #FA6E14;
    font-size: 1.1rem;
}

.rating-count {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.user-rating-form {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.rating-form {
    margin: 0;
}

.rating-select {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rating-select label {
    font-weight: 500;
    color: #444;
    margin: 0;
    white-space: nowrap;
}

.rating-select select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #333;
    width: auto;
    min-width: 150px;
}

.alert {
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.login-prompt {
    text-align: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.login-prompt p {
    margin-bottom: 12px;
    color: #666;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: #FA6E14;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.btn-primary:hover {
    background-color: #e85d00;
}

/* Styles pour le lien "Visitez le store" */
.store-link {
    display: inline-block;
    color: #ff6b00;
    text-decoration: none;
    margin-top: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.store-link:hover {
    color: #e65100;
    text-decoration: underline;
}

.store-link i {
    margin-right: 5px;
}

/* Styles pour les informations du magasin */
.store-info a:hover {
    text-decoration: underline !important;
    opacity: 0.8;
}

.store-info .fas, 
.store-info .fab {
    width: 20px;
    margin-right: 8px;
}

.store-info p {
    display: flex;
    align-items: center;
}

.store-info a {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.store-info a:hover .fas,
.store-info a:hover .fab {
    transform: scale(1.1);
}

/* Styles restaurés pour les images */
.product-details {
    margin: 20px 0;
}

.product-layout {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Styles pour les images */
.product-images-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 0 0 50%;
}

.main-image-container {
    width: 100%;
    max-width: 500px;
    margin-bottom: 10px;
    height: 400px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px;
}

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

.thumbnail.active {
    border-color: #007bff;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Styles pour le titre et les informations produit */
.product-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    line-height: 1.3;
}

.product-brand {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #666;
}

.product-reference {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #777;
}

/* Styles améliorés pour les boutons de partage */
.social-share-container {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
}

/* Styles pour les documents */
.documents-section {
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.document-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.document-item {
    margin: 10px 0;
}

.document-link {
    display: flex;
    align-items: center;
    color: #007bff;
    text-decoration: none;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.document-link:hover {
    background-color: #f8f9fa;
    text-decoration: none;
}

.document-link i {
    margin-right: 10px;
    color: #6c757d;
}

/* Styles pour les placeholders de chargement */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.loading-placeholder p {
    margin-top: 15px;
    color: #6c757d;
}

/* Styles pour les cartes de produits similaires et annonces */
.similar-products-section {
    margin: 25px 0;
    padding: 0 15px;
}

.section-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
    position: relative;
    padding-bottom: 8px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #FA6E14;
}

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

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

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

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

.similar-product-card {
    flex: 0 0 auto;
    width: 180px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.similar-product-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.similar-product-card h3 {
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #333;
    line-height: 1.3;
    height: 2.4rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 600;
}

.similar-product-card .brand-name {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 8px;
}

.similar-product-card .price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e91e63;
    margin-bottom: 6px;
}

.similar-product-card .location {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
}

.similar-product-card .btn {
    font-size: 0.8rem;
    padding: 6px 10px;
    width: 100%;
    border-radius: 4px;
    transition: all 0.2s ease;
    background-color: #FA6E14;
    border-color: #FA6E14;
}

.similar-product-card .btn:hover {
    background-color: #e56410;
    border-color: #e56410;
    transform: translateY(-2px);
}

/* Styles pour les notifications toast */
.toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 1000;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Media queries */
@media (max-width: 768px) {
    .rating-section {
        padding: 15px;
    }

    .rating-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .rating-number {
        font-size: 1.75rem;
    }

    .rating-stars {
        font-size: 1rem;
    }

    .rating-select {
        gap: 8px;
    }

    .rating-select select {
        width: 100%;
        min-width: 0;
    }
}
