.product-detail-rating {
    margin: 1rem 0;
}

.product-detail-rating a {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #173b32;
    text-decoration: none;
}

.product-detail-rating a:hover {
    color: #087c5c;
}

.product-detail-rating span {
    display: inline-flex;
    gap: 0.15rem;
    color: #f2ad18;
    font-size: 1.15rem;
}

.product-detail-rating strong {
    font-size: 1rem;
    font-weight: 800;
}

.product-detail-rating small {
    font-size: 0.9rem;
    font-weight: 700;
    color: #526a62;
}

.product-reviews-section {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 2px solid #dce8e4;
}

.product-reviews-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-reviews-heading > div:first-child > span,
.product-rating-breakdown-heading > span,
.product-review-form-heading > span,
.published-reviews-heading > div > span {
    display: block;
    margin-bottom: 0.45rem;
    color: #087c5c;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.product-reviews-heading h2 {
    margin: 0;
    color: #092f26;
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

.product-reviews-heading p {
    max-width: 650px;
    margin: 0.8rem 0 0;
    color: #4f6860;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.7;
}

.product-rating-summary {
    min-width: 270px;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    border: 2px solid #cdded8;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(7, 73, 57, 0.08);
}

.product-rating-summary > strong {
    color: #075e4b;
    font-size: 2.7rem;
    font-weight: 900;
    line-height: 1;
}

.product-rating-summary > div {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.product-rating-stars {
    display: flex;
    gap: 0.15rem;
    color: #f2ad18;
    font-size: 1.15rem;
}

.product-rating-summary small {
    color: #526a62;
    font-size: 0.86rem;
    font-weight: 700;
}

.product-reviews-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.6fr);
    gap: 1.5rem;
    align-items: start;
}

.product-rating-breakdown,
.product-review-form-card {
    border: 2px solid #d1e0db;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(7, 73, 57, 0.08);
}

.product-rating-breakdown {
    padding: 1.6rem;
}

.product-rating-breakdown-heading h3,
.product-review-form-heading h3,
.published-reviews-heading h3 {
    margin: 0;
    color: #0a342a;
    font-size: 1.35rem;
    font-weight: 900;
}

.product-rating-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.product-rating-breakdown-row {
    display: grid;
    grid-template-columns: 52px minmax(100px, 1fr) 35px;
    align-items: center;
    gap: 0.7rem;
}

.product-rating-breakdown-row > span {
    color: #344f47;
    font-size: 0.92rem;
    font-weight: 800;
}

.product-rating-breakdown-row > span i {
    color: #f2ad18;
}

.product-rating-breakdown-row > strong {
    color: #173b32;
    font-size: 0.9rem;
    font-weight: 900;
    text-align: right;
}

.product-rating-progress {
    height: 11px;
    overflow: hidden;
    border-radius: 999px;
    background: #e6eeeb;
}

.product-rating-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f5b82e, #e89a0b);
}

.product-rating-information {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 15px;
    background: #eef8f4;
}

.product-rating-information i {
    color: #087c5c;
    font-size: 1.3rem;
}

.product-rating-information p {
    margin: 0;
    color: #36584e;
    font-size: 0.87rem;
    font-weight: 700;
    line-height: 1.55;
}

.product-review-form-card {
    padding: 1.7rem;
}

.product-review-form-heading p {
    margin: 0.7rem 0 0;
    color: #526a62;
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.6;
}

.customer-review-status {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1.3rem;
    padding: 1rem;
    border: 2px solid;
    border-radius: 16px;
}

.customer-review-status.approved {
    border-color: #8ed6bd;
    background: #eaf9f3;
    color: #087c5c;
}

.customer-review-status.pending {
    border-color: #efd082;
    background: #fff8e5;
    color: #936500;
}

.customer-review-status i {
    font-size: 1.4rem;
}

.customer-review-status > div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.customer-review-status strong {
    font-size: 0.96rem;
    font-weight: 900;
}

.customer-review-status small {
    font-size: 0.82rem;
    font-weight: 700;
}

.customer-review-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: #e8f8f1;
    color: #087c5c;
    font-size: 0.82rem;
    font-weight: 900;
}

.product-review-form {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    margin-top: 1.5rem;
}

.product-review-field {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.product-review-field > label {
    color: #173b32;
    font-size: 0.95rem;
    font-weight: 900;
}

.review-input {
    width: 100%;
    min-height: 50px;
    padding: 0.85rem 1rem;
    border: 2px solid #bfd1cb;
    border-radius: 13px;
    background: #ffffff;
    color: #102f27;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.review-input:focus {
    border-color: #087c5c;
    box-shadow: 0 0 0 4px rgba(8, 124, 92, 0.13);
}

.review-textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.product-review-help {
    color: #637970;
    font-size: 0.82rem;
    font-weight: 650;
}

.product-review-error {
    color: #b42318;
    font-size: 0.84rem;
    font-weight: 800;
}

.product-review-rating-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(110px, 1fr));
    gap: 0.6rem;
}

.product-review-rating-option {
    position: relative;
    display: flex;
    min-height: 86px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.7rem;
    border: 2px solid #c9d9d4;
    border-radius: 13px;
    background: #ffffff;
    cursor: pointer;
    transition: 0.2s ease;
}

.product-review-rating-option:hover {
    border-color: #e5a51b;
    background: #fff9e8;
}

.product-review-rating-option:has(input:checked) {
    border-color: #e5a51b;
    background: #fff6d9;
    box-shadow: 0 0 0 3px rgba(229, 165, 27, 0.15);
}

.product-review-rating-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.product-review-rating-option span {
    color: #efa912;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.product-review-rating-option small {
    color: #3e5951;
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
}

.product-review-submit-button {
    display: inline-flex;
    min-height: 53px;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.85rem 1.4rem;
    border: 2px solid #075e4b;
    border-radius: 14px;
    background: #087c5c;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s ease;
}

.product-review-submit-button:hover {
    background: #075e4b;
    transform: translateY(-1px);
}

.product-review-delete-form {
    margin-top: 1rem;
}

.product-review-delete-form button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0;
    border: 0;
    background: transparent;
    color: #b42318;
    font-size: 0.9rem;
    font-weight: 850;
    cursor: pointer;
}

.product-review-login-required {
    display: flex;
    gap: 1rem;
    margin-top: 1.4rem;
    padding: 1.4rem;
    border: 2px dashed #b9cec7;
    border-radius: 18px;
    background: #f5faf8;
}

.product-review-login-required > i {
    color: #087c5c;
    font-size: 2rem;
}

.product-review-login-required strong {
    color: #153c31;
    font-size: 1.05rem;
    font-weight: 900;
}

.product-review-login-required p {
    margin: 0.4rem 0 1rem;
    color: #526a62;
    font-size: 0.91rem;
    font-weight: 650;
}

.product-review-login-required a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #087c5c;
    font-size: 0.92rem;
    font-weight: 900;
    text-decoration: none;
}

.published-product-reviews {
    margin-top: 2rem;
    padding: 1.8rem;
    border: 2px solid #d1e0db;
    border-radius: 24px;
    background: #f8fbfa;
}

.published-reviews-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.published-reviews-heading > strong {
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    background: #e5f4ef;
    color: #087c5c;
    font-size: 0.86rem;
    font-weight: 900;
}

.published-review-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.published-review-card {
    padding: 1.5rem;
    border: 2px solid #d6e2de;
    border-radius: 19px;
    background: #ffffff;
}

.published-review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.published-review-customer {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.published-review-avatar {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 50%;
    background: #087c5c;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 900;
}

.published-review-customer > div {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.published-review-customer strong {
    color: #153c31;
    font-size: 0.98rem;
    font-weight: 900;
}

.published-review-customer small {
    color: #647a72;
    font-size: 0.8rem;
    font-weight: 700;
}

.published-review-rating {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.published-review-rating span {
    display: flex;
    gap: 0.12rem;
    color: #efa912;
}

.published-review-rating strong {
    color: #294a40;
    font-size: 0.88rem;
    font-weight: 900;
}

.published-review-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    color: #087c5c;
    font-size: 0.8rem;
    font-weight: 900;
}

.published-review-card h4 {
    margin: 1rem 0 0.55rem;
    color: #112f27;
    font-size: 1.08rem;
    font-weight: 900;
}

.published-review-content {
    color: #405b52;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.7;
}

.published-review-content p:last-child,
.published-review-staff-response p:last-child {
    margin-bottom: 0;
}

.published-review-staff-response {
    margin-top: 1rem;
    padding: 1rem;
    border-left: 5px solid #087c5c;
    border-radius: 12px;
    background: #eef8f4;
    color: #36584e;
    font-size: 0.9rem;
    font-weight: 600;
}

.published-review-staff-response > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #087c5c;
}

.published-review-staff-response strong {
    font-weight: 900;
}

.published-review-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid #dce6e2;
}

.published-review-footer button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.8rem;
    border: 2px solid #c6d8d2;
    border-radius: 10px;
    background: #ffffff;
    color: #35564c;
    font-size: 0.82rem;
    font-weight: 850;
    cursor: pointer;
}

.published-review-footer button.active {
    border-color: #087c5c;
    background: #e7f6f1;
    color: #087c5c;
}

.published-review-footer > span {
    color: #657a73;
    font-size: 0.8rem;
    font-weight: 700;
}

.published-reviews-empty {
    padding: 3rem 1.5rem;
    text-align: center;
}

.published-reviews-empty > i {
    display: block;
    margin-bottom: 1rem;
    color: #087c5c;
    font-size: 3rem;
}

.published-reviews-empty > span {
    color: #087c5c;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.published-reviews-empty h3 {
    margin: 0.5rem 0;
    color: #12372d;
    font-size: 1.4rem;
    font-weight: 900;
}

.published-reviews-empty p {
    margin: 0;
    color: #5d746c;
    font-size: 0.94rem;
    font-weight: 650;
}

@media (max-width: 991.98px) {
    .product-reviews-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-rating-summary {
        width: 100%;
    }

    .product-reviews-layout {
        grid-template-columns: 1fr;
    }

    .product-review-rating-options {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
    }
}

@media (max-width: 575.98px) {
    .product-reviews-section {
        margin-top: 2.5rem;
        padding-top: 2.5rem;
    }

    .product-rating-summary {
        min-width: 0;
    }

    .product-review-form-card,
    .product-rating-breakdown,
    .published-product-reviews {
        padding: 1.1rem;
        border-radius: 18px;
    }

    .product-review-rating-options {
        grid-template-columns: 1fr;
    }

    .published-review-header,
    .published-review-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .published-review-rating {
        width: 100%;
        justify-content: space-between;
    }

    .published-review-footer > span {
        line-height: 1.5;
    }
}
