﻿.product-review-page {
    max-width: 1450px;
    margin: 0 auto;
    padding: 24px;
    background: #f6f7f9;
}


/* breadcrumb */

.review-breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
    font-size: 14px;
    color: #777;
}

    .review-breadcrumb a {
        color: #555;
        text-decoration: none;
    }

        .review-breadcrumb a:hover {
            color: #2874f0;
        }


/* ==================================================
   TOP REVIEW AREA
================================================== */

.review-write-section {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    margin-bottom: 25px;
}


/* PRODUCT */

.review-product-box {
    padding: 35px;
    border-right: 1px solid #eee;
}

    .review-product-box > a {
        display: block;
        width: 100%;
        height: 260px;
        margin-bottom: 25px;
    }

    .review-product-box img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.review-small-title {
    color: #777;
    font-size: 13px;
    margin-bottom: 7px;
}

.review-product-details h1 {
    font-size: 20px;
    line-height: 1.4;
    margin: 0 0 12px;
}

.review-product-sku {
    color: #777;
    font-size: 13px;
    margin-bottom: 15px;
}

.review-product-link {
    color: #2874f0;
    font-weight: 600;
    text-decoration: none;
}


/* FORM */

.write-review-box {
    padding: 35px 45px;
}

    .write-review-box h2 {
        font-size: 25px;
        margin: 0 0 5px;
    }

.write-review-subtitle {
    color: #777;
    margin-bottom: 30px;
}

.review-form-group {
    margin-bottom: 24px;
}

.review-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 9px;
}

    .review-label span {
        color: #dc3545;
    }

.review-input,
.review-textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #d5d8dc;
    border-radius: 7px;
    outline: none;
    font-size: 14px;
}

.review-textarea {
    resize: vertical;
    min-height: 140px;
}

    .review-input:focus,
    .review-textarea:focus {
        border-color: #2874f0;
        box-shadow: 0 0 0 3px rgba(40, 116, 240, .08);
    }

.review-character-info {
    margin-top: 5px;
    color: #999;
    font-size: 12px;
}


/* STARS */

.review-stars-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
}

    .review-stars-input input {
        display: none;
    }

    .review-stars-input label {
        font-size: 42px;
        color: #dcdcdc;
        cursor: pointer;
        transition: .15s;
    }

        .review-stars-input input:checked ~ label,
        .review-stars-input label:hover,
        .review-stars-input label:hover ~ label {
            color: #ff9f00;
        }


/* Submit */

.review-submit-btn {
    min-width: 180px;
    padding: 13px 25px;
    border: 0;
    border-radius: 7px;
    background: #2874f0;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}

    .review-submit-btn:hover {
        background: #1769db;
    }

    .review-submit-btn:disabled {
        opacity: .65;
        cursor: not-allowed;
    }


/* messages */

.review-success-message {
    padding: 15px 17px;
    margin-bottom: 20px;
    border-radius: 7px;
    background: #eaf7ed;
    color: #227536;
}

.review-error-message {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 7px;
    background: #fff0f0;
    color: #c62828;
}


/* login */

.review-login-required {
    text-align: center;
    padding: 65px 20px;
}

    .review-login-required p {
        color: #777;
    }

.review-login-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 13px 28px;
    background: #2874f0;
    color: #fff;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 600;
}


/* ==================================================
   CUSTOMER REVIEWS
================================================== */

.customer-reviews-section {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
}

.customer-reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
}

    .customer-reviews-header h2 {
        margin: 0;
        font-size: 22px;
    }

    .customer-reviews-header p {
        color: #777;
        margin: 5px 0 0;
    }

.overall-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 13px;
    background: #26a541;
    color: white;
    border-radius: 6px;
}

    .overall-rating strong {
        font-size: 18px;
    }


/* review card */

.customer-review-card {
    padding: 27px 30px;
    border-bottom: 1px solid #eeeeee;
}

.review-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .review-card-top h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
    }

.review-rating-badge {
    padding: 4px 8px;
    border-radius: 4px;
    background: #26a541;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.review-text {
    margin: 16px 0;
    line-height: 1.7;
    color: #333;
}

.review-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    color: #777;
    font-size: 13px;
}


/* LOAD MORE */

.load-more-review-wrapper {
    padding: 25px;
    text-align: center;
}

.load-more-review-btn {
    min-width: 220px;
    padding: 13px 25px;
    border: 1px solid #2874f0;
    border-radius: 7px;
    background: #fff;
    color: #2874f0;
    font-weight: 600;
    cursor: pointer;
}

    .load-more-review-btn:hover {
        background: #2874f0;
        color: #fff;
    }

    .load-more-review-btn:disabled {
        opacity: .6;
    }


/* Empty */

.no-customer-reviews {
    padding: 60px 20px;
    text-align: center;
}

.empty-review-star {
    font-size: 60px;
    color: #ccc;
}

.no-customer-reviews h3 {
    margin: 8px 0;
}

.no-customer-reviews p {
    color: #777;
}
.review-image-input {
    width: 100%;
    margin-top: 8px;
}

.optional-label {
    font-size: 13px;
    font-weight: 400;
    color: #777;
}

.review-image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.review-preview-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 7px;
}

.customer-review-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

    .customer-review-images a {
        display: block;
    }

.customer-review-image {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 7px;
    cursor: pointer;
}

    .customer-review-image:hover {
        opacity: 0.9;
    }
/* =========================================
   REVIEW SUCCESS MODAL
========================================= */

.review-success-dialog {
    max-width: 500px;
    margin: 20px auto;
}

.review-modern-success-modal {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .22), 0 4px 14px rgba(15, 23, 42, .08);
}


/* CLOSE */

.review-modern-success-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 300;
    cursor: pointer;
    z-index: 2;
    transition: background .2s ease, color .2s ease;
}

    .review-modern-success-close:hover {
        background: #e5e7eb;
        color: #111827;
    }


/* BODY */

.review-modern-success-body {
    padding: 43px 38px 35px;
    text-align: center;
}


/* ICON */

.review-modern-success-icon {
    width: 74px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 21px;
    border-radius: 50%;
    background: #ecfdf3;
}

    .review-modern-success-icon span {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #16a34a;
        color: #fff;
        font-size: 26px;
        font-weight: 700;
    }


/* TITLE */

.review-modern-success-body h3 {
    margin: 0 0 9px;
    color: #111827;
    font-size: 25px;
    font-weight: 750;
    line-height: 1.35;
}

.review-modern-success-message {
    margin: 0 0 24px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}


/* APPROVAL BOX */

.review-modern-approval {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 27px;
    padding: 16px 17px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #f7faff;
    text-align: left;
}

.review-modern-approval-icon {
    width: 25px;
    height: 25px;
    min-width: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    border-radius: 50%;
    background: #3f7df2;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.review-modern-approval strong {
    display: block;
    margin-bottom: 3px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
}

.review-modern-approval p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.55;
}


/* BUTTON */

.review-modern-success-btn {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 9px;
    background: #3f7df2;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease, transform .1s ease;
}

    .review-modern-success-btn:hover {
        background: #2f69d9;
        box-shadow: 0 6px 18px rgba(63, 125, 242, .24);
    }

    .review-modern-success-btn:active {
        transform: translateY(1px);
    }
/* =========================================
   REVIEW IMAGES
========================================= */

.review-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0;
}

    .review-images a {
        display: block;
        text-decoration: none;
    }

.review-image-thumb {
    width: 90px;
    height: 90px;
    display: block;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

    .review-image-thumb:hover {
        transform: translateY(-2px);
        border-color: #3f7df2;
        box-shadow: 0 4px 12px rgba(0,0,0,.10);
    }
.review-honeypot {
    position: absolute !important;
    left: -99999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 600px) {
    .review-preview-image {
        width: 80px;
        height: 80px;
    }

    .customer-review-image {
        width: 90px;
        height: 90px;
    }

    .review-success-modal {
        padding: 28px 20px 24px;
    }

        .review-success-modal h2 {
            font-size: 23px;
        }

        .review-success-modal p {
            font-size: 15px;
        }

    .review-success-continue {
        width: 100%;
    }
}

/* ==================================================
   MOBILE
================================================== */

@media (max-width: 767px) {

    .product-review-page {
        padding: 10px;
    }

    .review-write-section {
        grid-template-columns: 1fr;
    }

    .review-product-box {
        border-right: 0;
        border-bottom: 1px solid #eee;
        padding: 20px;
        display: grid;
        grid-template-columns: 110px 1fr;
        gap: 18px;
        align-items: center;
    }

        .review-product-box > a {
            height: 110px;
            margin: 0;
        }

    .review-product-details h1 {
        font-size: 16px;
    }

    .write-review-box {
        padding: 24px 18px;
    }

        .write-review-box h2 {
            font-size: 21px;
        }

    .customer-reviews-header {
        padding: 20px 18px;
    }

        .customer-reviews-header h2 {
            font-size: 19px;
        }

    .customer-review-card {
        padding: 22px 18px;
    }

    .review-stars-input label {
        font-size: 38px;
    }

    .review-success-dialog {
        margin: 15px;
    }

    .review-modern-success-modal {
        border-radius: 15px;
    }

    .review-modern-success-body {
        padding: 40px 22px 26px;
    }

    .review-modern-success-icon {
        width: 66px;
        height: 66px;
        margin-bottom: 18px;
    }

        .review-modern-success-icon span {
            width: 39px;
            height: 39px;
            font-size: 22px;
        }

    .review-modern-success-body h3 {
        font-size: 22px;
    }

    .review-modern-approval {
        padding: 14px;
    }
}