/* Rich Snippets Pro - Product Display Styles */

/* Main Product Container */
.rsp-product-info {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rsp-product-header {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.rsp-product-image img {
    max-width: 200px;
    height: auto;
    border-radius: 4px;
}

.rsp-product-details {
    flex: 1;
}

.rsp-product-title {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
}

.rsp-product-brand {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.rsp-product-price {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.rsp-price {
    font-size: 24px;
    font-weight: bold;
    color: #2c5aa0;
}

.rsp-availability {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.rsp-availability.rsp-instock {
    background: #d4edda;
    color: #155724;
}

.rsp-availability.rsp-outofstock {
    background: #f8d7da;
    color: #721c24;
}

.rsp-product-description {
    margin: 15px 0;
    line-height: 1.6;
    color: #555;
}

.rsp-product-meta {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
    color: #666;
}

/* Reviews Section - Mobile Optimized */
.rsp-product-reviews {
    margin: 30px 0;
    background: #fff;
}

.rsp-reviews-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.rsp-reviews-header h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

/* Reviews Summary Box */
.rsp-reviews-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
}

.rsp-average-rating {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    line-height: 1;
    min-width: 80px;
    text-align: center;
}

.rsp-rating-stars-large {
    display: flex;
    gap: 4px;
    margin-bottom: 5px;
}

.rsp-rating-stars-large .star {
    color: #ffa500;
    font-size: 24px;
}

.rsp-review-count {
    color: #666;
    font-size: 14px;
}

/* Reviews Header Row - Single line on mobile */
.reviews-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.overall-stars {
    display: flex;
    gap: 2px;
}

.overall-stars .star {
    color: #ffa500;
    font-size: 24px;
}

.reviews-count-text {
    color: #666;
    font-size: 14px;
    white-space: nowrap;
}

/* Individual Review */
.rsp-review {
    padding: 20px 0;
    border-bottom: 1px solid #e8e8e8;
}

.rsp-review:last-child {
    border-bottom: none;
}

.rsp-review-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.rsp-review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.rsp-review-rating {
    display: flex;
    gap: 2px;
}

.rsp-review-rating .star {
    color: #ffa500;
    font-size: 18px;
}

.rsp-review-rating .star.empty {
    color: #ddd;
}

.rsp-review-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
}

.rsp-review-author {
    font-weight: 600;
    color: #333;
}

.rsp-review-date {
    color: #999;
}

.rsp-review-content {
    margin-top: 10px;
}

.rsp-review-content p {
    margin: 0;
    line-height: 1.6;
    color: #4a4a4a;
    font-size: 14px;
}

.rsp-rating-stars {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rsp-rating-stars .star {
    color: #ffa500;
    font-size: 18px;
}

.rsp-rating-stars .star.empty {
    color: #ddd;
}

.rsp-rating-stars .rating-text {
    margin-left: 10px;
    color: #666;
    font-size: 14px;
}

/* Product Card - Alternative compact layout */
.rsp-product-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin: 15px 0;
}

.rsp-product-card .rsp-product-image img {
    max-width: 100px;
    height: auto;
}

.rsp-product-card .rsp-product-name {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.rsp-product-card .rsp-product-brand {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: #666;
}

.rsp-product-card .rsp-product-price {
    font-size: 16px;
    font-weight: bold;
    color: #2c5aa0;
    margin: 0 0 5px 0;
}

.rsp-product-status {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 12px;
}

.rsp-no-reviews {
    color: #999;
    font-style: italic;
    padding: 40px 20px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 4px;
}

/* Mobile Responsive - Optimized for Screenshot Design */
@media (max-width: 768px) {
    .rsp-product-info {
        padding: 15px;
        margin: 15px 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .rsp-product-header {
        flex-direction: column;
    }
    
    .rsp-product-image img {
        max-width: 100%;
    }
    
    .rsp-product-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Mobile Reviews Summary */
    .rsp-reviews-summary {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    
    .rsp-average-rating {
        font-size: 40px;
        min-width: auto;
        text-align: left;
    }
    
    /* Mobile Review Card */
    .rsp-review {
        padding: 15px 0;
    }
    
    .rsp-review-title {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .rsp-review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .rsp-review-rating .star {
        font-size: 16px;
    }
    
    .rsp-review-meta {
        font-size: 12px;
        gap: 8px;
    }
    
    .rsp-review-content p {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .rsp-product-reviews {
        margin: 20px 0;
    }
    
    .rsp-rating-stars-large .star {
        font-size: 20px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .rsp-average-rating {
        font-size: 36px;
    }
    
    .rsp-review-title {
        font-size: 14px;
    }
    
    .rsp-review-content p {
        font-size: 12px;
    }
    
    .rsp-reviews-summary {
        padding: 12px;
    }
}
