/* =========================================
   REVIEW PAGE
========================================= */


/* =========================================
   HERO
========================================= */

.review-hero {
    min-height: 350px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 55px 20px;

    background:
        linear-gradient(
            rgba(255, 255, 255, 0.48),
            rgba(255, 255, 255, 0.58)
        ),
        url("images/bouquet6.png");

    background-color: #F5F0E8;
    background-size: cover, auto 170%;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;

    border-bottom: 1px solid #eeeeee;
}


.review-hero-content {
    max-width: 700px;
}


.review-small-title {
    color: #443C36;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 3px;

    margin-bottom: 12px;
}


.review-hero h1 {
    font-size: 42px;

    color: #333333;

    margin-bottom: 15px;
}


.review-hero-content > p:last-child {
    color: #333333;

    font-weight: 500;

    font-size: 16px;

    max-width: 600px;

    margin: auto;
}



/* =========================================
   REVIEW SUMMARY
========================================= */

.review-summary {
    width: 90%;
    max-width: 1100px;

    margin: 45px auto;

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1fr;

    gap: 20px;

    align-items: stretch;
}


.summary-box,
.summary-item {
    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 12px;

    padding: 25px;
}


.summary-box {
    display: flex;

    align-items: center;
}


.summary-rating {
    display: flex;

    align-items: center;

    gap: 20px;
}


.big-rating {
    font-size: 42px;

    font-weight: bold;

    color: #333333;
}


.stars,
.review-stars {
    color: #d39a3a;

    letter-spacing: 3px;
}


.summary-rating p {
    color: #888888;

    font-size: 12px;

    margin-top: 4px;
}


.summary-item {
    display: flex;

    flex-direction: column;

    justify-content: center;

    text-align: center;
}


.summary-item strong {
    font-size: 25px;

    color: #333333;

    margin-bottom: 5px;
}


.summary-item span {
    color: #888888;

    font-size: 12px;
}



/* =========================================
   SUCCESS / ERROR MESSAGE
========================================= */

.review-message-wrapper {
    width: 90%;
    max-width: 1100px;

    margin: 0 auto 25px;
}


.review-message {
    width: 100%;

    padding: 14px 18px;

    display: flex;
    align-items: center;

    gap: 10px;

    border-radius: 10px;

    font-size: 13px;

    line-height: 1.5;
}


.review-message span {
    width: 24px;
    height: 24px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-weight: bold;
}


.review-message.success {
    background: #f2faf5;

    border: 1px solid #cfe8d8;

    color: #427454;
}


.review-message.success span {
    background: #dcefe3;

    color: #427454;
}


.review-message.error {
    background: #fff5f5;

    border: 1px solid #f0d0d0;

    color: #a34a4a;
}


.review-message.error span {
    background: #f7dddd;

    color: #a34a4a;
}



/* =========================================
   REVIEWS SECTION
========================================= */

.reviews-section {
    width: 90%;
    max-width: 1250px;

    margin: auto;

    padding: 30px 0 70px;
}


.section-heading {
    text-align: center;

    margin-bottom: 40px;
}


.section-small-title {
    color: #443C36;

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 2px;

    margin-bottom: 8px;
}


.section-heading h2 {
    font-size: 32px;

    color: #333333;

    margin-bottom: 8px;
}


.section-heading p:last-child {
    color: #777777;

    font-size: 14px;
}



/* =========================================
   REVIEW GRID
========================================= */

.review-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 22px;

    align-items: stretch;
}



/* =========================================
   REVIEW CARD
========================================= */

.review-card {
    width: 100%;
    height: 100%;

    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 12px;

    padding: 25px;

    display: flex;

    flex-direction: column;

    transition: 0.3s ease;
}


.review-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, 0.07);
}



/* =========================================
   CUSTOMER INFO
========================================= */

.review-top {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 15px;
}


.customer-avatar {
    width: 45px;
    height: 45px;

    flex-shrink: 0;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #F5F0E8;

    color: #443C36;

    font-size: 16px;

    font-weight: bold;
}


.customer-info {
    min-width: 0;
}


.customer-info h3 {
    font-size: 15px;

    color: #333333;

    line-height: 1.4;

    word-break: break-word;
}


.customer-info span {
    font-size: 11px;

    color: #999999;
}


.review-stars {
    font-size: 14px;

    margin-bottom: 12px;

    white-space: nowrap;
}


.review-text {
    color: #666666;

    font-size: 13px;

    line-height: 1.7;

    margin-bottom: 18px;

    word-break: break-word;

    flex: 1;
}


.review-date {
    color: #aaaaaa;

    font-size: 11px;

    margin-top: auto;
}

.admin-review-actions {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f0e4e8;
}

.admin-review-actions button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #A9B5A0;
    border-radius: 8px;
    background: #F5F0E8;
    color: #443C36;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.admin-review-actions button:hover {
    background: #A9B5A0;
    color: #ffffff;
}



/* =========================================
   EMPTY REVIEWS
========================================= */

.empty-reviews {
    width: 100%;

    min-height: 260px;

    padding: 50px 25px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    background: #F5F0E8;

    border: 1px solid #eeeeee;

    border-radius: 14px;
}


.empty-reviews > div {
    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 15px;

    border-radius: 50%;

    background: #F5F0E8;

    font-size: 25px;
}


.empty-reviews h3 {
    color: #333333;

    font-size: 20px;

    margin-bottom: 7px;
}


.empty-reviews p {
    max-width: 420px;

    color: #888888;

    font-size: 13px;

    line-height: 1.7;
}



/* =========================================
   WRITE REVIEW
========================================= */

.write-review-section {
    background: #F5F0E8;

    padding: 70px 0;
}


.write-review-container {
    width: 90%;
    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 60px;

    align-items: center;
}


.write-review-text h2 {
    font-size: 32px;

    color: #333333;

    margin-bottom: 15px;
}


.write-review-text p:last-child {
    color: #777777;

    font-size: 14px;

    line-height: 1.8;

    max-width: 500px;
}



/* =========================================
   REVIEW FORM
========================================= */

.review-form-box {
    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 14px;

    padding: 30px;

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.05);
}


.review-form-box h3 {
    font-size: 22px;

    color: #333333;

    margin-bottom: 8px;
}



/* =========================================
   REVIEWING AS
========================================= */

.reviewing-as {
    color: #888888;

    font-size: 12px;

    margin-bottom: 25px;
}


.reviewing-as strong {
    color: #443C36;

    font-weight: 600;
}



/* =========================================
   FORM GROUP
========================================= */

.form-group {
    margin-bottom: 20px;
}


.form-group > label {
    display: block;

    color: #444444;

    font-size: 13px;

    font-weight: 600;

    margin-bottom: 8px;
}


.form-group textarea {
    width: 100%;

    min-height: 130px;

    border: 1px solid #dddddd;

    border-radius: 8px;

    padding: 12px 14px;

    outline: none;

    resize: vertical;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 13px;

    color: #555555;

    background: #ffffff;

    transition: 0.3s ease;
}


.form-group textarea:focus {
    border-color: #A9B5A0;

    box-shadow:
        0 0 0 3px
        rgba(169, 181, 160, 0.08);
}


.form-group textarea::placeholder {
    color: #aaaaaa;
}



/* =========================================
   REVIEW CHARACTER LIMIT
========================================= */

.review-limit {
    display: block;

    margin-top: 6px;

    color: #aaaaaa;

    font-size: 11px;

    text-align: right;
}



/* =========================================
   STAR RATING
========================================= */

.rating-input {
    display: flex;

    flex-direction: row-reverse;

    justify-content: flex-end;

    gap: 4px;
}


.rating-input input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}


.rating-input label {
    display: block;

    font-size: 30px;

    line-height: 1;

    color: #dddddd;

    cursor: pointer;

    margin: 0;

    transition: 0.2s ease;
}


.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
    color: #d39a3a;
}



/* =========================================
   SUBMIT BUTTON
========================================= */

.submit-review-btn {
    width: 100%;

    min-height: 44px;

    border: none;

    border-radius: 25px;

    padding: 0 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #A9B5A0;

    color: #ffffff;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.3s ease;
}


.submit-review-btn:hover {
    background: #333333;
}



/* =========================================
   LOGIN TO REVIEW
========================================= */

.login-to-review {
    min-height: 300px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 20px;
}


.login-review-icon {
    width: 60px;
    height: 60px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 16px;

    border-radius: 50%;

    background: #F5F0E8;

    font-size: 24px;
}


.login-to-review h3 {
    margin-bottom: 8px;

    font-size: 21px;

    color: #333333;
}


.login-to-review p {
    max-width: 330px;

    color: #888888;

    font-size: 13px;

    line-height: 1.7;

    margin-bottom: 20px;
}


.review-login-btn {
    min-width: 160px;

    min-height: 42px;

    padding: 0 22px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 25px;

    background: #A9B5A0;

    color: #ffffff;

    font-size: 13px;

    font-weight: 600;

    transition: 0.3s ease;
}


.review-login-btn:hover {
    background: #333333;

    color: #ffffff;
}



/* =========================================
   CART COUNT

   Navbar design itself stays in main.css.
========================================= */

.cart-btn {
    position: relative;
}


.cart-count {
    position: absolute;

    top: -5px;
    right: -5px;

    min-width: 18px;
    height: 18px;

    padding: 0 5px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background: #A9B5A0;

    color: #ffffff;

    font-size: 10px;

    font-weight: bold;

    line-height: 1;
}



/* =========================================
   RESPONSIVE - TABLET
========================================= */

@media (max-width: 1000px) {

    .review-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .review-summary {
        grid-template-columns:
            repeat(2, 1fr);
    }

}



/* =========================================
   RESPONSIVE - SMALL TABLET
========================================= */

@media (max-width: 750px) {

    .write-review-container {
        grid-template-columns: 1fr;

        gap: 35px;
    }


    .review-summary {
        grid-template-columns:
            1fr 1fr;
    }


    .write-review-text {
        text-align: center;
    }


    .write-review-text p:last-child {
        margin-left: auto;
        margin-right: auto;
    }

}



/* =========================================
   RESPONSIVE - MOBILE
========================================= */

@media (max-width: 550px) {

    .review-hero {
        min-height: 300px;

        padding: 45px 20px;
    }


    .review-hero h1 {
        font-size: 32px;
    }


    .review-hero-content > p:last-child {
        font-size: 14px;
    }


    .review-grid {
        grid-template-columns: 1fr;
    }


    .review-summary {
        grid-template-columns: 1fr;

        margin-top: 30px;
        margin-bottom: 30px;
    }


    .summary-rating {
        justify-content: center;
    }


    .summary-box {
        justify-content: center;
    }


    .reviews-section {
        padding-bottom: 50px;
    }


    .section-heading h2 {
        font-size: 28px;
    }


    .write-review-section {
        padding: 55px 0;
    }


    .write-review-text h2 {
        font-size: 27px;
    }


    .review-form-box {
        padding: 24px 20px;
    }


    .review-card {
        padding: 22px;
    }


    .rating-input label {
        font-size: 28px;
    }

}
