﻿body {
    background-color: #f8f9fa;
}

.card {
    transition: all 0.2s ease-in-out;
}

.card-header {
    border-bottom: 0;
}

/* Tab Styling - Matches Dashboard */
.nav-tabs .nav-link {
    color: #6c757d;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 1rem 1.5rem;
}

    .nav-tabs .nav-link.active {
        color: #0d6efd;
        border-bottom: 2px solid #0d6efd;
        background: transparent;
    }

    .nav-tabs .nav-link:hover:not(.active) {
        border-bottom: 2px solid #dee2e6;
    }

/* Table Styling */
.table th {
    font-weight: 600;
    color: #495057;
}

/* Badge Styling */
.badge {
    font-weight: 500;
}

/* Button Styling */
.btn {
    box-shadow: none !important;
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-header-tabs {
        margin: -0.5rem 0;
    }

    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
    }
}

/* Price Forecast Cards */
.display-5 {
    font-size: 2.5rem;
}

/* Product Image */
.product-image {
    transition: transform 0.3s ease;
    border: 1px solid #f0f0f0;
    padding: 0.5rem;
    background-color: white;
    aspect-ratio: 1 / 1; /* Ensures square ratio */
    width: 200px;
    height: 200px;
    overflow: hidden;
}

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .product-image:hover {
        transform: scale(1.03);
    }

/* Enhanced Product Information Styling */
.product-enhanced-content {
    line-height: 1.6;
}

/* Tab Navigation Styling */
.nav-tabs {
    border-bottom: none;
}

    .nav-tabs .nav-link {
        border: none;
        color: #495057;
        padding: 1rem 1.5rem;
        font-weight: 500;
        display: flex;
        align-items: center;
    }

        .nav-tabs .nav-link i,
        .product-enhanced-content h3 i {
            color: #0d6efd;
            margin-right: 0.75rem;
            font-size: 1.25rem;
        }

        .nav-tabs .nav-link.active {
            background-color: transparent;
            color: #0d6efd;
            border-bottom: 2px solid #0d6efd;
        }

/* Section Headers */
.product-enhanced-content .section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

    .product-enhanced-content .section-header i {
        font-size: 1.5rem;
        margin-right: 0.75rem;
        width: 2rem;
        height: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

        .product-enhanced-content .section-header i.info-icon {
            background-color: #e6f2ff;
            color: #0d6efd;
        }

        .product-enhanced-content .section-header i.feature-icon {
            background-color: #e6fff0;
            color: #198754;
        }

        .product-enhanced-content .section-header i.advice-icon {
            background-color: #fff8e6;
            color: #ffc107;
        }

/* Description content styling */
.product-description {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

    .product-description p {
        margin-bottom: 1rem;
        color: #212529;
    }

    .product-description ul,
    .product-features ul,
    .product-usage ul {
        padding-left: 1.5rem;
        margin-bottom: 1.5rem;
    }

        .product-description ul li,
        .product-features ul li,
        .product-usage ul li {
            margin-bottom: 0.5rem;
            position: relative;
        }

/* Feature styling */
.product-features ul {
    list-style-type: none;
    padding-left: 0;
}

    .product-features ul li {
        padding-left: 1.8rem;
        position: relative;
        margin-bottom: 0.75rem;
    }

        .product-features ul li::before {
            content: "✓";
            color: #198754;
            font-weight: bold;
            position: absolute;
            left: 0;
            top: 0;
        }

/* Headings inside dynamic content */
.product-description h2,
.product-description h3,
.product-description h4,
.product-features h2,
.product-features h3,
.product-features h4,
.product-usage h2,
.product-usage h3,
.product-usage h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #212529;
}

/* Tables that might be in the description */
.product-enhanced-content table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

    .product-enhanced-content table th,
    .product-enhanced-content table td {
        padding: 0.75rem;
        border: 1px solid #dee2e6;
    }

    .product-enhanced-content table th {
        background-color: #f8f9fa;
        font-weight: 600;
    }

/* Image styling if present */
.product-enhanced-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
    margin: 1rem 0;
}

/* Special sections styling */
.product-enhanced-content .highlight-box {
    background-color: #f8f9fa;
    border-left: 4px solid #0d6efd;
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0.25rem;
}

/* Better accessibility for any links */
.product-enhanced-content a {
    color: #0d6efd;
    text-decoration: none;
}

    .product-enhanced-content a:hover {
        text-decoration: underline;
    }

/* Make important points stand out */
.product-enhanced-content strong {
    color: #212529;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-enhanced-content .row {
        margin-top: 1.5rem;
    }

    .product-enhanced-content .col-md-6:first-child {
        margin-bottom: 1.5rem;
    }
}



/* Product Reviews Styling */
.product-enhanced-content.reviews-enhanced-content {
    margin-bottom: 2rem;
}

/* Section headers - matching FAQ styles */
.reviews-enhanced-content .section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

    .reviews-enhanced-content .section-header i {
        font-size: 1.5rem;
        margin-right: 0.75rem;
        width: 2rem;
        height: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

        .reviews-enhanced-content .section-header i.review-icon {
            background-color: #f3e8ff;
            color: #6f42c1;
        }

/* Review summary section */
.reviews-enhanced-content .review-summary {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0,0,0,.125);
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075);
}

/* Star ratings */
.reviews-enhanced-content .star-rating {
    margin: 0.5rem 0;
    font-size: 1.25rem;
}

/* Rating progress bars */
.reviews-enhanced-content .rating-bar {
    margin-bottom: 0.75rem;
}

.reviews-enhanced-content .progress {
    height: 0.75rem;
    border-radius: 1rem;
    background-color: #f8f9fa;
}

.reviews-enhanced-content .progress-bar {
    border-radius: 1rem;
}

/* Review card styling */
.reviews-enhanced-content .review-card {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0,0,0,.125);
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075);
    transition: all 0.2s ease;
}

    .reviews-enhanced-content .review-card:hover {
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
    }

.reviews-enhanced-content .review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

.reviews-enhanced-content .review-title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.reviews-enhanced-content .review-meta {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

    .reviews-enhanced-content .review-meta i {
        margin-right: 0.5rem;
    }

.reviews-enhanced-content .reviewer-name {
    font-weight: 500;
    margin-right: 1rem;
}

.reviews-enhanced-content .review-date {
    color: #6c757d;
}

.reviews-enhanced-content .review-content {
    color: #212529;
    line-height: 1.6;
}

.reviews-enhanced-content .review-rating {
    color: #ffc107;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Verified purchase tag */
.reviews-enhanced-content .verified-purchase {
    display: inline-block;
    background-color: #e6fff0;
    color: #198754;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    margin-left: 0.75rem;
}

/* Helpful buttons */
.reviews-enhanced-content .helpful-section {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #dee2e6;
    display: flex;
    align-items: center;
}

.reviews-enhanced-content .helpful-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-right: 0.75rem;
}

.reviews-enhanced-content .helpful-btn {
    color: #212529;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    transition: all 0.2s ease;
}

    .reviews-enhanced-content .helpful-btn:hover {
        background-color: #e9ecef;
    }

    .reviews-enhanced-content .helpful-btn i {
        margin-right: 0.25rem;
    }

/* Load more button */
.reviews-enhanced-content .load-more-btn {
    margin-top: 1rem;
    width: 100%;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    color: #0d6efd;
    font-weight: 500;
    transition: all 0.2s ease;
}

    .reviews-enhanced-content .load-more-btn:hover {
        background-color: #e9ecef;
    }

/* Reviews filter dropdown */
.reviews-enhanced-content .reviews-filter {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reviews-enhanced-content .filter-label {
    font-weight: 500;
    color: #212529;
    margin-right: 0.75rem;
}

.reviews-enhanced-content .filter-dropdown {
    padding: 0.375rem 2rem 0.375rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background-color: #fff;
    color: #212529;
}

/* Empty reviews state */
.reviews-enhanced-content .no-reviews {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #fff;
    border-radius: 0.5rem;
    border: 1px solid rgba(0,0,0,.125);
}

    .reviews-enhanced-content .no-reviews i {
        font-size: 3rem;
        color: #6c757d;
        margin-bottom: 1rem;
    }

    .reviews-enhanced-content .no-reviews p {
        color: #6c757d;
        font-size: 1.1rem;
    }

/* Mobile optimizations */
@media (max-width: 768px) {
    .reviews-enhanced-content .review-summary {
        padding: 1rem;
    }

    .reviews-enhanced-content .review-card {
        padding: 1rem;
    }

    .reviews-enhanced-content .review-header {
        flex-direction: column;
    }

    .reviews-enhanced-content .review-meta {
        margin-top: 0.5rem;
    }

    .reviews-enhanced-content .filter-dropdown {
        width: 100%;
        margin-top: 0.5rem;
    }

    .reviews-enhanced-content .reviews-filter {
        flex-direction: column;
        align-items: flex-start;
    }
}