/* Customer Reviews Page Styles - Enhanced */

/* Page Header - Dark Gradient Style (matching the image) */
.page-title {
    color: #2c3e50;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #d73f15, #ff6b4a);
    border-radius: 2px;
}

.page-description {
    color: #7f8c8d;
    font-size: 22px;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 400;
    line-height: 1.6;
}

/* Statistics Section - Dark Gradient Header Style */
.reviews-stats-section {
    margin-bottom: 40px;
    padding: 20px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #4a5568 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.reviews-stats-section .container {
    position: relative;
    z-index: 2;
}

.reviews-stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(52, 73, 94, 0.8) 100%);
    z-index: 1;
}

.stats-card {
    border: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f7931e, #ffcc02);
}

.stats-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.stats-card .card-body {
    padding: 10px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stats-card h3 {
    color: #ffffff;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stats-card small {
    color: #f7931e;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Star ratings in dark header */
.stats-card .fa-star {
    color: #f7931e;
    font-size: 24px;
    margin: 0 2px;
    text-shadow: 0 0 10px rgba(247, 147, 30, 0.5);
}

.stats-card .rating-display {
    margin: 15px 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
}

/* Dark header title styling */
.reviews-stats-section h2 {
    color: #ffffff;
    font-size: 36px;
    font-weight: 800;
    text-align: left;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.reviews-stats-section .section-subtitle {
    color: #f7931e;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Center rating display */
.center-rating {
    text-align: center;
    padding: 20px;
}

.center-rating .rating-number {
    color: #f7931e;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.center-rating .rating-out-of {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin-left: 5px;
}

.center-rating .stars {
    margin: 10px 0;
}

/* Right side text */
.review-summary {
    text-align: right;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

.review-summary .based-on {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.review-summary .review-count {
    color: #f7931e;
    font-weight: 800;
}

.review-summary .btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.review-summary .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #f7931e;
    color: #f7931e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Remove summer decorations */
.reviews-stats-section .container::before,
.reviews-stats-section .container::after {
    display: none;
}

.stats-card::after {
    display: none;
}

/* Sidebar Styles */
.sidebar {
    margin-bottom: 30px;
}

.sidebar .panel {
    border: none;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar .panel:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.sidebar .panel-heading {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border: none;
    padding: 18px 20px;
    position: relative;
}

.sidebar .panel-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, #d73f15, #ff6b4a);
}

.sidebar .panel-title {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.sidebar .panel-body {
    padding: 25px 20px;
    background: #fff;
}

/* Form Styles */
.sidebar .form-group {
    margin-bottom: 25px;
}

.sidebar .form-group:last-child {
    margin-bottom: 0;
}

.sidebar label {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.sidebar .form-control {
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    height: auto;
    line-height: 1.4;
}

.sidebar .form-control:focus {
    border-color: #d73f15;
    outline: none;
    box-shadow: 0 0 0 3px rgba(215, 63, 21, 0.1);
    background: #fff;
}

.sidebar .btn {
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    width: 100%;
}

.sidebar .btn-primary {
    background: linear-gradient(135deg, #d73f15, #ff6b4a);
    color: white;
    box-shadow: 0 4px 15px rgba(215, 63, 21, 0.3);
}

.sidebar .btn-primary:hover {
    background: linear-gradient(135deg, #c23612, #e55a41);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(215, 63, 21, 0.4);
}

.sidebar .btn-default {
    background: #fff;
    border: 2px solid #ecf0f1;
    color: #7f8c8d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sidebar .btn-default:hover {
    background: #ecf0f1;
    color: #2c3e50;
    border-color: #bdc3c7;
    transform: translateY(-1px);
}

/* Rating Distribution */
.rating-bar-item {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.rating-bar-item:hover {
    background: rgba(215, 63, 21, 0.05);
    transform: translateX(5px);
}

/* Filter validation states */
.form-control.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-control.success {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Filter summary */
.filter-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #d73f15;
}

.filter-summary h6 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
}

.filter-summary .filter-item {
    display: inline-block;
    background: #d73f15;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin: 2px;
    font-weight: 600;
}

/* Select dropdown improvements */
.sidebar select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23666' d='m2 0-2 2h4zm0 5 2-2h-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
}

/* Date input improvements */
.sidebar input[type="date"] {
    position: relative;
    color: #2c3e50;
}

.sidebar input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

/* Rating filter specific styling */
#filter-rating option {
    padding: 8px 12px;
    font-size: 16px;
    background: #fff;
    color: #2c3e50;
}

#filter-rating option:checked {
    background: #d73f15;
    color: #fff;
}

/* Reviews Content */
.reviews-content {
    padding-left: 25px;
}

.reviews-list {
    margin-bottom: 40px;
}

/* Review Items */
.review-item {
    border: none;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    overflow: hidden;
    background: #fff;
    position: relative;
    animation: fadeInUp 0.5s ease;
}

.review-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d73f15, #ff6b4a);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.review-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.review-item:hover::before {
    opacity: 1;
}

.review-item .panel-body {
    padding: 30px;
}

/* Product Information */
.review-product {
    text-align: center;
    padding-right: 20px;
    position: relative;
}

.pagination .active {
    background-color: transparent;
}

.product-image {
    width: 100%;
    max-width: 140px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 3px solid #f8f9fa;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-image:hover {
    transform: scale(1.05);
    border-color: #d73f15;
    box-shadow: 0 8px 25px rgba(215, 63, 21, 0.2);
}

.product-name {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 16px;

}


.product-name a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.product-name a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #d73f15, #ff6b4a);
    transition: width 0.3s ease;
}

.product-name a:hover {
    color: #d73f15;
}

.product-name a:hover::after {
    width: 100%;
}

.product-model {
    font-size: 16px;
    margin-bottom: 8px;
    color: #7f8c8d;
    font-weight: 500;
}

.product-price {
    font-size: 24px;
    font-weight: 800;
    color: #d73f15;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Review Content */
.review-content {
    padding-left: 20px;
}

.review-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
    position: relative;
}

.review-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #d73f15, #ff6b4a);
}

.review-author {
    color: #2c3e50;
    font-weight: 800;
    margin-bottom: 10px;
    font-size: 24px;
    position: relative;
}

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

.review-rating .fa-star {
    font-size: 22px;
    margin-right: 3px;
    transition: all 0.3s ease;
}

.review-rating .text-warning {
    color: #f39c12 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.review-rating .text-muted {
    color: #bdc3c7 !important;
}

.rating-text {
    margin-left: 10px;
    color: #7f8c8d;
    font-weight: 600;
    font-size: 18px;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 12px;
}

.review-date {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 8px;
    font-weight: 500;
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 15px;
    display: inline-block;
}

.review-text {
    margin-top: 15px;
    line-height: 1.7;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 400;
}

.review-text p {
    margin-bottom: 15px;
}

.review-helpful {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #f8f9fa;
}

.review-helpful small {
    color: #7f8c8d;
    font-size: 16px;
    font-weight: 500;
}

/* Labels */
.label-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

/* Read More/Less Links */
.read-more,
.read-less {
    color: #d73f15;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-size: 16px;
}

.read-more::after,
.read-less::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d73f15;
    transition: width 0.3s ease;
}

.read-more:hover,
.read-less:hover {
    color: #c23612;
}

.read-more:hover::after,
.read-less:hover::after {
    width: 100%;
}

/* No Reviews State */
.no-reviews {
    margin-top: 40px;
}

.no-reviews .panel {
    border: none;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.no-reviews .panel-body {
    padding: 80px 40px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.no-reviews .fa {
    color: #bdc3c7;
    margin-bottom: 25px;
    opacity: 0.7;
}

.no-reviews h3 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 32px;
}

.no-reviews p {
    color: #7f8c8d;
    font-size: 20px;
    margin: 0;
    font-weight: 400;
}

/* Pagination */
.pagination {
    margin: 40px 0;
    justify-content: center;
}

.pagination>li>a,
.pagination>li>span {
    color: #2c3e50;
    background: #fff;
    border: 2px solid #ecf0f1;
    padding: 10px 16px;
    margin: 0 4px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-size: 16px;
}

.pagination>li>a:hover,
.pagination>li>span:hover {
    color: white;
    background: linear-gradient(135deg, #d73f15, #ff6b4a);
    border-color: #d73f15;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(215, 63, 21, 0.3);
}

.pagination>.active>a,
.pagination>.active>span {
    color: white;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-color: #2c3e50;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

/* Results Text */
.text-right {
    text-align: right;
    color: #7f8c8d;
    font-size: 18px;
    margin-top: 20px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 991px) {
    .col-md-9.reviews-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    .col-md-3.sidebar {
        margin-bottom: 20px;
    }

    .review-item {
        margin: 10px 0;
        width: 100%;
    }

    .review-product {
        text-align: center;
        margin-bottom: 20px;
        padding: 20px 15px;
        background: #f8f9fa;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .product-image {
        display: block;
        margin: 0 auto 15px;
        width: 120px;
        height: 120px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .product-info {
        text-align: center;
        width: 100%;
    }

    .product-name {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 8px;
        line-height: 1.3;
        text-align: center;
    }

    .product-model {
        font-size: 14px;
        color: #666;
        margin-bottom: 5px;
        text-align: center;
    }

    .product-price {
        font-size: 20px;
        font-weight: 700;
        color: #d73f15;
        margin-bottom: 0;
        text-align: center;
    }

    .review-content {
        padding: 15px;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .row {
        margin-left: 0;
        margin-right: 0;
    }

    .col-md-9.reviews-content,
    .col-md-3.sidebar {
        padding-left: 0;
        padding-right: 0;
    }

    .reviews-list {
        padding: 0;
        margin: 0;
    }

    /* Remove any existing margins that might cause overflow */
    .review-item {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .review-item .panel-body {
        margin: 0;
        padding: 0;
        width: 100%;
        box-sizing: border-box;
    }

    /* Ensure proper column behavior */
    .col-md-3.review-product,
    .col-md-9.review-content {
        width: 100%;
        float: none;
        display: block;
        padding-left: 0;
        padding-right: 0;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .reviews-content {
        padding: 0 5px;
    }

    .review-item {
        margin: 15px 0;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
        border: none;
        border-radius: 15px;
        overflow: hidden;
    }

    .review-item .panel-body {
        padding: 0;
    }

    .review-product {
        display: block;
        text-align: center;
        padding: 20px;
        margin-bottom: 0;
        background: #f8f9fa;
        border-radius: 0;
        border-bottom: 2px solid #e9ecef;
    }

    .product-image {
        width: 100px;
        height: 100px;
        margin: 0 auto 15px;
        border-radius: 10px;
    }

    .product-info {
        text-align: center;
        width: 100%;
    }

    .product-name {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 8px;
        line-height: 1.2;
        text-align: center;
    }

    .product-name a {
        color: #333;
        text-decoration: none;
        display: block;
        padding: 5px 0;
    }

    .product-name a:hover {
        color: #d73f15;
        text-decoration: underline;
    }

    .product-model {
        font-size: 13px;
        color: #666;
        margin-bottom: 5px;
        text-align: center;
    }

    .product-price {
        font-size: 18px;
        font-weight: 700;
        color: #d73f15;
        margin-bottom: 0;
        text-align: center;
    }

    .review-content {
        padding: 20px;
        text-align: left;
        background: white;
    }

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

    .review-author {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 8px;
        color: #333;
        text-align: center;
    }

    .review-rating {
        margin-bottom: 8px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    .review-rating .fa-star {
        font-size: 16px;
    }

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

    .review-date {
        font-size: 12px;
        color: #999;
        margin-bottom: 8px;
        text-align: center;
    }

    .label-success {
        font-size: 11px;
        padding: 3px 8px;
        border-radius: 12px;
        background: #28a745;
        color: white;
        margin-top: 5px;
        display: inline-block;
    }

    .review-text {
        font-size: 14px;
        line-height: 1.5;
        margin: 15px 0;
        text-align: left;
    }

    .review-helpful {
        font-size: 12px;
        color: #666;
        text-align: center;
        margin-top: 10px;
    }

    .pagination {
        justify-content: center;
        margin: 20px 0;
    }

    .text-right {
        text-align: center !important;
        margin-top: 10px;
    }

    .text-left {
        text-align: center !important;
    }
}

@media (max-width: 576px) {
    .container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding-left: 10px;
        padding-right: 10px;
    }

    .reviews-stats-section .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Ensure no horizontal scrolling */
    body {
        overflow-x: hidden;
    }

    .review-item {
        margin: 10px 5px;
        width: calc(100% - 10px);
    }

    .review-product {
        padding: 15px;
        text-align: center;
    }

    .product-image {
        width: 80px;
        height: 80px;
        margin: 0 auto 12px;
        border-radius: 8px;
    }

    .product-name {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .product-model {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .product-price {
        font-size: 16px;
    }

    .review-content {
        padding: 15px;
    }

    .review-author {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .review-rating {
        gap: 3px;
    }

    .review-rating .fa-star {
        font-size: 14px;
    }

    .rating-text {
        font-size: 13px;
    }

    .review-text {
        font-size: 13px;
        line-height: 1.4;
        margin: 12px 0;
    }

    .review-helpful {
        font-size: 11px;
        margin-top: 8px;
    }

    .pagination>li>a {
        padding: 8px 12px;
        font-size: 14px;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .col-sm-6.text-left,
    .col-sm-6.text-right {
        width: 100%;
        text-align: center !important;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 5px;
        padding-right: 5px;
    }

    .review-item {
        margin: 8px 0;
        border-radius: 10px;
    }

    .review-product {
        padding: 12px;
    }

    .product-image {
        width: 70px;
        height: 70px;
        margin: 0 auto 10px;
    }

    .product-name {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .product-model {
        font-size: 11px;
        margin-bottom: 3px;
    }

    .product-price {
        font-size: 15px;
    }

    .review-content {
        padding: 12px;
    }

    .review-author {
        font-size: 15px;
        margin-bottom: 5px;
    }

    .review-rating .fa-star {
        font-size: 13px;
    }

    .rating-text {
        font-size: 12px;
    }

    .review-text {
        font-size: 12px;
        line-height: 1.3;
        margin: 10px 0;
    }

    .review-helpful {
        font-size: 10px;
        margin-top: 6px;
    }

    .label-success {
        font-size: 10px;
        padding: 2px 6px;
    }
}

/* Loading Indicator */
#loading-indicator {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

#loading-indicator .fa-spinner {
    color: #d73f15;
    margin-bottom: 15px;
    animation: spin 1s linear infinite;
}

#loading-indicator p {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* AJAX Transitions */
#reviews-content {
    transition: opacity 0.3s ease;
}

#reviews-content.loading {
    opacity: 0.5;
}

/* Form Enhancements for AJAX */
#filter-form .form-control:focus {
    border-color: #d73f15;
    box-shadow: 0 0 0 3px rgba(215, 63, 21, 0.1);
}

#sort-select:focus,
#order-select:focus {
    border-color: #d73f15;
    box-shadow: 0 0 0 3px rgba(215, 63, 21, 0.1);
}

/* Smooth transitions for content updates */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Pagination hover effects for AJAX */
.pagination>li>a:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Success message styling */
.ajax-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    font-weight: 600;
}

/* Error message styling */
.ajax-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    font-weight: 600;
}

/* Improved button states */
.btn:focus {
    box-shadow: 0 0 0 3px rgba(215, 63, 21, 0.2);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Smooth scrolling enhancement */
html {
    scroll-behavior: smooth;
}

/* Single Statistics Box */
.single-stats-box {

    width: 98%;
}

.single-stats-box .card-body {
    padding: 40px 30px;
}

.single-stats-box .row {
    align-items: center;
}

.single-stats-box .stat-item {
    text-align: center;
    padding: 20px;
}

.single-stats-box .stat-item h3 {
    color: #ffffff;
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.single-stats-box .stat-item small {
    color: #f7931e;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.single-stats-box .center-rating {
    text-align: center;
    padding: 20px;
}

.single-stats-box .rating-display {
    margin-bottom: 15px;
}

.single-stats-box .rating-number {
    color: #f7931e;
    font-size: 72px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.single-stats-box .rating-out-of {
    color: #ffffff;
    font-size: 36px;
    font-weight: 600;
    margin-left: 5px;
    vertical-align: top;
}

.single-stats-box .stars {
    margin: 15px 0;
}

.single-stats-box .stars .fa-star {
    color: #f7931e;
    font-size: 32px;
    margin: 0 4px;
    text-shadow: 0 0 10px rgba(247, 147, 30, 0.5);
}



/* Responsive adjustments for single box */
@media (max-width: 768px) {
    .single-stats-box .card-body {
        padding: 30px 20px;
    }

    .single-stats-box .stat-item,
    .single-stats-box .center-rating {
        margin-bottom: 20px;
        padding: 15px;
    }

    .single-stats-box .rating-number {
        font-size: 56px;
    }

    .single-stats-box .rating-out-of {
        font-size: 28px;
    }

    .single-stats-box .stat-item h3 {
        font-size: 44px;
    }

    .single-stats-box .stat-item small {
        font-size: 16px;
    }

    .single-stats-box .stars .fa-star {
        font-size: 28px;
        margin: 0 3px;
    }
}

@media (max-width: 576px) {
    .single-stats-box .rating-number {
        font-size: 48px;
    }

    .single-stats-box .rating-out-of {
        font-size: 24px;
    }

    .single-stats-box .stat-item h3 {
        font-size: 36px;
    }

    .single-stats-box .stat-item small {
        font-size: 14px;
    }

    .single-stats-box .stars .fa-star {
        font-size: 24px;
        margin: 0 2px;
    }
}

/* Mobile Touch Optimizations */
@media (max-width: 768px) {

    /* Improve touch targets */
    .product-name a {
        display: block;
        padding: 5px 0;
        min-height: 44px;
        line-height: 1.2;
    }

    .review-item {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border: none;
        margin: 20px;
    }

    .review-item:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    /* Better visual separation */
    .review-product {
        border-bottom: 1px solid #e9ecef;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    /* Improved button styling */
    .read-more {
        background: #f8f9fa;
        color: #d73f15;
        padding: 5px 10px;
        border-radius: 4px;
        text-decoration: none;
        font-weight: 600;
        display: inline-block;
        margin-top: 5px;
    }

    .read-more:hover {
        background: #e9ecef;
        color: #d73f15;
        text-decoration: none;
    }

    /* Verified badge improvements */
    .label-success {
        background: #28a745;
        color: white;
        padding: 3px 8px;
        border-radius: 12px;
        font-size: 11px;
        font-weight: 600;
        margin-left: 10px;
    }
}

@media (max-width: 576px) {
    .review-product {
        border-bottom: 2px solid #e9ecef;
        padding-bottom: 12px;
        margin-bottom: 12px;
    }

    .product-name a {
        min-height: 40px;
        padding: 3px 0;
    }

    .review-item {
        margin: 15px;
        border-radius: 12px;
    }

    .review-item .panel-body {
        padding: 12px;
    }

    /* Stack layout improvements */
    .review-rating {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .review-rating .fa-star {
        margin-right: 1px;
    }

    .rating-text {
        margin-left: 0;
    }

    .review-date {
        margin-top: 5px;
    }

    .label-success {
        margin-left: 0;
        margin-top: 5px;
    }
}

/* Ultra-small mobile optimizations */
@media (max-width: 480px) {
    .review-product {
        padding: 10px;
        margin-bottom: 10px;
    }

    .product-image {
        width: 70px;
        height: 70px;
        margin-bottom: 8px;
    }

    .product-name {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .product-name a {
        min-height: 36px;
        padding: 2px 0;
    }

    .review-item .panel-body {
        padding: 10px;
    }

    .review-rating {
        gap: 5px;
    }

    .review-rating .fa-star {
        font-size: 12px;
    }

    .rating-text {
        font-size: 11px;
    }

    .review-text {
        font-size: 11px;
        line-height: 1.3;
    }

    .read-more {
        padding: 3px 6px;
        font-size: 11px;
        margin-top: 3px;
    }

    .label-success {
        font-size: 9px;
        padding: 2px 5px;
    }
}