/* Product Premium Styles extracted from product.blade.php */

.share-options .share-btn {
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.share-options .input-group {
    max-width: 100%;
}

#copy-success {
    margin-top: 0.5rem;
    display: block;
}

/* Already Added Button Styling */
.add-to-cart-btn.already-added {
    opacity: 0.7;
    pointer-events: none;
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    cursor: not-allowed;
}

.add-to-cart-btn.already-added:hover {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

/* Modern-Classical Review Styles */
.review-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.review-summary {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.average-rating-display h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-family: Georgia, serif;
}

.average-rating-display .stars {
    font-size: 1.5rem;
    color: #ffc107;
}

.rating-bars .rating-bar-item {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.rating-bars .rating-label {
    font-weight: 500;
    color: #495057;
    min-width: 50px;
    font-size: 0.9rem;
}

.rating-bars .progress {
    background-color: #e9ecef;
    border-radius: 4px;
}

.rating-bars .progress-bar {
    border-radius: 4px;
}

.rating-bars .rating-count {
    font-weight: 600;
    color: #6c757d;
    min-width: 30px;
    text-align: right;
    font-size: 0.9rem;
}

.review-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.review-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.review-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0;
}

.review-header {
    margin-bottom: 15px;
}

.reviewer-info h6 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.reviewer-info small {
    font-size: 0.85rem;
    color: #6c757d;
}

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

.review-content p {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.no-reviews {
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.no-reviews h5 {
    color: #6c757d;
    font-family: Georgia, serif;
    font-weight: 600;
}

.no-reviews p {
    color: #adb5bd;
    font-size: 0.95rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .review-section {
        padding: 20px;
    }

    .review-summary {
        padding: 20px;
    }

    .average-rating-display h2 {
        font-size: 2.5rem;
    }

    .review-item {
        padding: 20px;
    }

    .reviewer-info img {
        width: 40px;
        height: 40px;
    }
}

/* Infinite Scroll Loading States */
#reviews-loading {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    margin: 20px 0;
}

#reviews-loading .spinner-border {
    width: 2rem;
    height: 2rem;
    border-width: 0.2em;
}

#no-more-reviews {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin: 20px 0;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

/* Smooth transitions for new reviews */
.review-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for multiple reviews */
.review-item:nth-child(odd) {
    animation-delay: 0.1s;
}

.review-item:nth-child(even) {
    animation-delay: 0.2s;
}

/* Enhanced Review Section Styles */
.review-section-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 20px;
}

.reviews-list-modern {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 15px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.reviews-list-modern ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    padding: 5px 0;
}

.reviews-list-modern::-webkit-scrollbar {
    height: 6px;
}

.reviews-list-modern::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.reviews-list-modern::-webkit-scrollbar-thumb {
    background: #c5c5c5;
    border-radius: 3px;
    transition: background 0.2s;
}

.reviews-list-modern::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.review-item-modern {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    min-width: 320px;
    max-width: 360px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(20px);
    animation: fadeInRight 0.5s ease forwards;
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.review-item-modern:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.review-item-modern .comment-items {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.review-item-modern .user-img img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.review-item-modern .user-content {
    flex: 1;
}

.review-item-modern .user-info h6 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.review-item-modern .rating-stars {
    display: flex;
    gap: 2px;
    font-size: 0.9rem;
}

.review-item-modern p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 10px;
    color: #495057;
}

.no-reviews-modern {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.no-reviews-modern h5 {
    color: #6c757d;
    font-family: Georgia, serif;
    font-weight: 600;
    margin-bottom: 10px;
}

.no-reviews-modern p {
    color: #adb5bd;
    font-size: 0.95rem;
    margin: 0;
}

/* Responsive adjustments for enhanced reviews */
@media (max-width: 768px) {
    .review-section-modern {
        padding: 20px;
        margin-top: 15px;
    }

    .review-item-modern .comment-items {
        flex-direction: column;
        gap: 12px;
    }

    .review-item-modern .user-img img {
        width: 40px;
        height: 40px;
    }

    .review-item-modern {
        min-width: 280px;
        max-width: 300px;
    }
}

/* WhatsApp-style Letter Avatar */
.letter-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    font-family: Georgia, serif;
    text-transform: uppercase;
    border: 2px solid #f8f9fa;
    flex-shrink: 0;
}