/* Styles pour la modale du produit */
.product-modal .modal-header {
    background: linear-gradient(135deg, #009E49, #008540);
    border-bottom: none;
    padding: 1rem;
}

.product-modal .modal-body {
    background: white;
    color: #333;
    padding: 1rem;
}

.product-modal .modal-footer {
    background: #f8f9fa;
    border-top: none;
    padding: 1rem;
}

.product-modal .product-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.product-modal .close {
    color: white;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.product-modal .close:hover {
    opacity: 1;
}

/* Styles pour le carrousel d'images */
.product-modal #productImageCarousel {
    background: rgba(0, 158, 73, 0.05);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 1rem;
}

.product-modal .carousel-item {
    height: 300px;
}

.product-modal .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.product-modal .carousel-control-prev,
.product-modal .carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(0, 158, 73, 0.7);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 10px;
}

.product-modal .carousel-control-prev:hover,
.product-modal .carousel-control-next:hover {
    background: rgba(0, 158, 73, 0.9);
}

.product-modal .carousel-indicators {
    bottom: -40px;
}

.product-modal .carousel-indicators li {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #009E49;
    opacity: 0.5;
    margin: 0 4px;
}

.product-modal .carousel-indicators li.active {
    opacity: 1;
}

/* Styles pour le prix et la description */
.product-modal .price {
    font-size: 1.25rem;
    color: #009E49;
    font-weight: 600;
    margin: 1rem 0;
    text-align: center;
}

.product-modal .description-container {
    position: relative;
    margin-bottom: 1rem;
}

.product-modal .description {
    max-height: 100px;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.product-modal .description.expanded {
    max-height: none;
}

.product-modal .read-more {
    background: none;
    border: none;
    color: #009E49;
    padding: 0;
    cursor: pointer;
    font-weight: 500;
    margin-top: 0.5rem;
}

.product-modal .read-more:hover {
    text-decoration: underline;
}

.product-modal .shop-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
}

/* Styles pour la modale d'image */
#imageModal {
    background: rgba(0, 0, 0, 0.9);
}

#imageModal .modal-content {
    background: none;
    border: none;
}

#imageModal .modal-body {
    padding: 0;
}

#imageModal img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

#imageModal .close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: white;
    font-size: 30px;
    z-index: 1050;
}

/* Styles pour les avis */
.reviews-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    font-family: Arial, sans-serif;
}

.reviews-form h4 {
    color: #2e7d32;
    font-size: 20px;
    margin-bottom: 15px;
}

.reviews-form .form-group {
    margin-bottom: 20px;
}

.reviews-form label {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.reviews-form select,
.reviews-form textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

.reviews-form select:focus,
.reviews-form textarea:focus {
    border-color: #2e7d32;
    outline: none;
}

/* Bulles de notation */
.rating-bubbles {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.rating-bubbles input {
    display: none;
}

.rating-bubbles label {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rating-bubbles input:checked ~ label,
.rating-bubbles label:hover,
.rating-bubbles label:hover ~ label {
    background-color: #2e7d32;
    color: white;
}

.reviews-form button {
    padding: 12px 25px;
    font-size: 18px;
    background-color: #2e7d32;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.reviews-form button:hover {
    background-color: #1b5e20;
}

/* Section des avis */
.reviews-section {
    margin-top: 30px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.reviews-section h3 {
    color: #2e7d32;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.reviews-section .review {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.reviews-section .review strong {
    color: #2e7d32;
    font-size: 18px;
}

.reviews-section .review span {
    font-size: 14px;
    color: #777;
    margin-left: 10px;
}

.reviews-section .rating {
    color: #FFD700;
    margin-top: 10px;
}

.reviews-section .rating i {
    margin-right: 5px;
}

/* Styles responsifs */
@media (max-width: 768px) {
    .product-modal .carousel-item {
        height: 250px;
    }
    
    .product-modal .product-title {
        font-size: 1.1rem;
    }
    
    .product-modal .carousel-control-prev,
    .product-modal .carousel-control-next {
        width: 30px;
        height: 30px;
    }
    
    .reviews-section {
        padding: 15px;
    }
    
    .reviews-form {
        padding: 15px;
    }
}
