
/* =========================================
   BRANDBAZAR - CUSTOMER REVIEWS
   Premium blush pink / burgundy theme
========================================= */

.reviews-section {
    padding: 90px 5%;
    background:
        radial-gradient(ellipse at 10% 10%, #fcecf1 0%, transparent 38%),
        #fff8fa;
    color: #30212a;
}

.reviews-container {
    max-width: 1180px;
    margin: 0 auto;
}

/* Homepage heading */

.homepage-reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
    margin-bottom: 38px;
}

.homepage-reviews-title {
    max-width: 650px;
}

.reviews-eyebrow {
    display: inline-block;
    color: #a04468;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.homepage-reviews-title h2 {
    margin: 10px 0 9px;
    color: #34202a;
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.15;
}

.homepage-reviews-title p {
    margin: 0;
    color: #887780;
    font-size: 14px;
    line-height: 1.8;
}

.homepage-reviews-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Average rating box */

.reviews-summary {
    min-width: 125px;
    padding: 15px 19px;
    text-align: center;
    background: #fff;
    border: 1px solid #f0dce4;
    border-radius: 17px;
    box-shadow: 0 8px 24px rgba(100, 40, 65, .045);
}

.reviews-summary strong {
    display: block;
    color: #34202a;
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    line-height: 1.1;
}

.review-stars {
    color: #c99443;
    font-size: 17px;
    letter-spacing: 2px;
    line-height: 1.8;
}

.reviews-summary small {
    display: block;
    margin-top: 5px;
    color: #907d86;
    font-size: 10px;
    line-height: 1.5;
}

/* Write review button */

.homepage-write-review {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid #90264e;
    border-radius: 30px;
    background: #90264e;
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
    transition: .25s ease;
    white-space: nowrap;
}

.homepage-write-review:hover {
    background: #701a3a;
    border-color: #701a3a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(112, 26, 58, .16);
}

/* Review cards grid */

.homepage-review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.review-card {
    min-width: 0;
    padding: 25px;
    background: #fff;
    border: 1px solid #f0dce4;
    border-radius: 19px;
    box-shadow: 0 9px 28px rgba(100, 40, 65, .045);
    transition: transform .25s ease, box-shadow .25s ease;
}

.homepage-review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 32px rgba(100, 40, 65, .09);
}

.homepage-review-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f8e5ec;
    border: 1px solid #f1d4df;
    color: #90264e;
    font-size: 17px;
    font-weight: 800;
}

.review-author {
    display: grid;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.review-author strong {
    color: #35232c;
    font-size: 14px;
    font-weight: 800;
}

.review-author span {
    color: #a18f97;
    font-size: 11px;
}

.review-quote-icon {
    color: #f0dce4;
    font-family: Georgia, serif;
    font-size: 55px;
    line-height: .8;
}

.homepage-review-card .review-stars {
    margin-top: 18px;
}

.homepage-review-text {
    min-height: 75px;
    margin: 12px 0 17px;
    color: #75646c;
    font-size: 13px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.review-product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-top: 13px;
    border-top: 1px solid #f5e8ed;
    color: #90264e;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.review-product-link:hover {
    color: #701a3a;
    text-decoration: underline;
}

/* Empty state */

.homepage-reviews-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 310px;
    padding: 45px 25px;
    text-align: center;
    background:
        radial-gradient(circle at top, #fff0f5, transparent 65%),
        #fff;
    border: 1px solid #f0dce4;
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(100, 40, 65, .045);
}

.empty-review-icon {
    display: grid;
    place-items: center;
    width: 65px;
    height: 65px;
    margin-bottom: 17px;
    border-radius: 50%;
    background: #f8e5ec;
    color: #90264e;
    font-size: 25px;
}

.homepage-reviews-empty h3 {
    margin: 10px 0;
    color: #34202a;
    font-family: 'Playfair Display', serif;
    font-size: clamp(23px, 3vw, 29px);
}

.homepage-reviews-empty > p {
    max-width: 560px;
    margin: 0 auto 22px;
    color: #887780;
    font-size: 13px;
    line-height: 1.8;
}

.empty-review-button {
    min-width: 185px;
}

.review-approval-note {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 17px;
    color: #9a858f;
    font-size: 11px;
}

.review-approval-note i {
    color: #a04468;
}

/* Product page review section */

.reviews-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 34px;
}

.reviews-heading h2 {
    margin: 9px 0;
    color: #34202a;
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4vw, 40px);
}

.reviews-heading p,
.write-review-card > p {
    color: #887780;
    line-height: 1.7;
    font-size: 13px;
}

.reviews-layout {
    display: grid;
    grid-template-columns: 1.35fr .8fr;
    gap: 28px;
    align-items: start;
}

.reviews-list {
    display: grid;
    gap: 14px;
}

.write-review-card,
.reviews-empty {
    background: #fff;
    border: 1px solid #f0dce4;
    border-radius: 18px;
    padding: 23px;
    box-shadow: 0 8px 28px rgba(109, 41, 64, .04);
}

.write-review-card {
    position: sticky;
    top: 20px;
}

.write-review-card h3 {
    color: #34202a;
    font-family: 'Playfair Display', serif;
    font-size: 27px;
    margin: 8px 0;
}

.review-form {
    display: grid;
    gap: 10px;
}

.review-form > label {
    color: #49343e;
    font-size: 13px;
    font-weight: 700;
    margin-top: 5px;
}

.review-form input[type="text"],
.review-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ead8df;
    border-radius: 10px;
    padding: 13px;
    background: #fffafb;
    color: #34202a;
    font: inherit;
    font-size: 13px;
}

.review-form textarea {
    resize: vertical;
    min-height: 120px;
}

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.rating-input input {
    position: absolute;
    opacity: 0;
}

.rating-input label {
    color: #dfd2d7;
    font-size: 29px;
    cursor: pointer;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
    color: #c99443;
}

.review-submit {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 0;
    border-radius: 999px;
    background: #90264e;
    color: #fff;
    padding: 14px 20px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}

.review-submit:hover {
    background: #701a3a;
}

.review-alert {
    padding: 13px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 13px;
}

.review-alert.success {
    background: #eaf7ef;
    color: #24633a;
}

.review-alert.error {
    background: #fff0f0;
    color: #a12d38;
}

.review-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.reviews-empty {
    text-align: center;
    padding: 40px 22px;
}

.review-form input:focus,
.review-form textarea:focus {
    outline: 2px solid rgba(142, 40, 80, .18);
    border-color: #90264e;
}

/* Responsive */

@media (max-width: 900px) {
    .homepage-review-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .homepage-reviews-header {
        align-items: flex-start;
    }

    .homepage-reviews-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 760px) {
    .reviews-section {
        padding: 58px 5%;
    }

    .homepage-reviews-header,
    .reviews-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .homepage-reviews-actions {
        flex-direction: row;
        align-items: center;
        width: 100%;
    }

    .reviews-layout {
        grid-template-columns: 1fr;
    }

    .write-review-card {
        position: static;
        grid-row: 1;
    }
}

@media (max-width: 600px) {
    .homepage-review-grid {
        grid-template-columns: 1fr;
    }

    .homepage-reviews-actions {
        flex-wrap: wrap;
    }

    .reviews-summary {
        flex: 1;
    }

    .homepage-write-review {
        flex: 1;
    }

    .review-card,
    .write-review-card {
        padding: 19px;
    }

    .homepage-reviews-empty {
        min-height: 280px;
        padding: 32px 18px;
    }
}
