/* product-details.css - Scoped styles for the Product Details page */

/* Detail layout image */
.detail-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Rating summary block under main title */
.rating-summary-row {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Add-to-cart purchase row actions */
.purchase-row {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-add-detail {
    flex-grow: 1;
}

.btn-out-of-stock {
    width: 100%;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Reviews header layout */
.reviews-section-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.reviews-section-subtitle {
    font-size: 0.95rem;
    opacity: 0.8;
}

.rating-overview {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Review submission form notifications */
.review-status-msg {
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

.review-error {
    color: #9b1c1c;
    background-color: #fdf2f2;
    border: 1px solid #f8b4b4;
}

.review-success {
    color: #1e5225;
    background-color: #f3faf4;
    border: 1px solid #def7ec;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .reviews-section-title {
        font-size: 1.8rem;
    }
    
    .rating-overview {
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .detail-container {
        padding: 0 1rem;
    }

    .purchase-row {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .qty-selector {
        justify-content: center;
    }
    
    .btn-add-detail {
        width: 100%;
        padding: 1rem 0;
    }
}

@media (max-width: 480px) {
    .reviews-section-title {
        font-size: 1.6rem;
    }
}

/* Reviews Empty state classes */
.reviews-empty {
    padding: 4rem 2rem;
}

.reviews-empty-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.reviews-empty-desc {
    font-size: 0.9rem;
    opacity: 0.8;
}

.review-textarea {
    height: 120px;
    resize: vertical;
}

.btn-submit-review {
    width: 100%;
}
