/* =========================================================
   PRODUCT PAGE
========================================================= */

.product-page-body {
    min-height: 100vh;
    padding-bottom: 110px;
}


/* =========================================================
   GLOBAL ICON
========================================================= */

.ui-icon {
    width: 20px;
    height: 20px;

    display: block;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;

    flex-shrink: 0;
}


/* =========================================================
   HEADER
========================================================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-button {
    position: relative;

    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255,255,255,.8);
    border-radius: 14px;

    background: rgba(255,255,255,.55);
    color: var(--text);

    cursor: pointer;

    text-decoration: none;

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    transition:
        transform .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.icon-button:hover {
    transform: translateY(-2px);

    background: rgba(255,255,255,.85);

    box-shadow:
        0 10px 28px rgba(70,45,60,.12);
}

.header-cart .cart-count {
    position: absolute;

    top: -5px;
    right: -5px;

    min-width: 18px;
    height: 18px;

    padding: 0 4px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #d9789b;
    color: #fff;

    border: 2px solid #fff;

    font-size: 9px;
    font-weight: 900;
}


/* =========================================================
   MAIN
========================================================= */

.product-main {
    width: min(1180px, calc(100% - 32px));

    margin: 0 auto;

    padding:
        28px
        0
        80px;
}


/* =========================================================
   BACK
========================================================= */

.back-to-products {
    width: fit-content;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 11px 17px;

    margin-bottom: 24px;

    border: 1px solid rgba(255,255,255,.85);
    border-radius: 16px;

    background: rgba(255,255,255,.58);

    color: var(--text);

    text-decoration: none;

    font-size: 13px;
    font-weight: 800;

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    box-shadow:
        0 12px 35px rgba(80,55,70,.08);

    transition: .25s ease;
}

.back-to-products:hover {
    transform: translateX(4px);

    box-shadow:
        0 16px 38px rgba(80,55,70,.13);
}

.back-to-products .ui-icon {
    width: 18px;
    height: 18px;
}


/* =========================================================
   PRODUCT DETAIL CARD
========================================================= */

.product-detail-card {
    position: relative;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 35px;

    padding: 25px;

    border: 1px solid rgba(255,255,255,.9);
    border-radius: 32px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.76),
            rgba(255,247,250,.58)
        );

    box-shadow:
        0 25px 70px rgba(80,50,65,.11),
        inset 0 1px 0 rgba(255,255,255,.95);

    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    overflow: hidden;
}

.product-detail-card::before {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    top: -160px;
    right: -100px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(240,182,200,.25),
            transparent 70%
        );

    pointer-events: none;
}


/* =========================================================
   VISUAL
========================================================= */

.product-visual {
    position: relative;

    min-height: 520px;

    display: grid;
    place-items: center;

    border-radius: 27px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 30% 25%,
            rgba(255,255,255,.95),
            transparent 28%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(240,182,200,.22),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            rgba(255,255,255,.9),
            rgba(247,229,237,.55)
        );

    border: 1px solid rgba(255,255,255,.9);
}

.product-badge {
    position: absolute;

    top: 18px;
    right: 18px;

    display: flex;
    align-items: center;
    gap: 7px;

    padding: 9px 13px;

    border-radius: 14px;

    background: rgba(255,255,255,.68);

    color: #b98552;

    font-size: 11px;
    font-weight: 900;

    backdrop-filter: blur(12px);
}

.product-badge .ui-icon {
    width: 15px;
    height: 15px;
}


.favorite-button {
    position: absolute;

    top: 18px;
    left: 18px;

    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255,255,255,.9);
    border-radius: 50%;

    background: rgba(255,255,255,.68);

    color: #b77b91;

    cursor: pointer;

    backdrop-filter: blur(12px);

    transition: .25s ease;

    z-index: 3;
}

.favorite-button:hover {
    transform: scale(1.08);
}

.favorite-button.active {
    background: #d9789b;
    color: #fff;
}

.favorite-button.active .ui-icon {
    fill: currentColor;
}


.product-image-placeholder {
    position: relative;

    width: min(75%, 390px);
    aspect-ratio: 1 / 1;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255,255,255,.98) 0%,
            rgba(255,242,247,.88) 45%,
            rgba(239,197,211,.48) 100%
        );

    border: 1px solid rgba(255,255,255,.95);

    box-shadow:
        0 30px 70px rgba(170,105,130,.14),
        inset 0 2px 10px rgba(255,255,255,.9);

    animation:
        productFloat 5s ease-in-out infinite;
}

@keyframes productFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.visual-letter {
    font-family: Georgia, serif;

    font-size: clamp(80px, 13vw, 150px);

    font-weight: 700;

    color: rgba(205,140,162,.55);

    text-shadow:
        0 10px 35px rgba(180,100,130,.15);
}

.visual-sparkle {
    position: absolute;

    width: 28px;
    height: 28px;

    color: #d0a75b;

    opacity: .65;
}

.sparkle-one {
    top: 20%;
    right: 20%;
}

.sparkle-two {
    bottom: 20%;
    left: 20%;

    width: 22px;
    height: 22px;
}


/* =========================================================
   INFO
========================================================= */

.product-info {
    position: relative;

    z-index: 2;

    display: flex;
    flex-direction: column;

    justify-content: center;
}

.product-category {
    margin-bottom: 10px;
}

.product-category span {
    display: inline-flex;

    padding: 7px 12px;

    border-radius: 10px;

    background: rgba(217,120,155,.1);

    color: #c06d8c;

    font-size: 11px;
    font-weight: 900;
}

.product-info h1 {
    margin: 0 0 16px;

    color: var(--text);

    font-size: clamp(26px, 4vw, 43px);

    line-height: 1.45;

    font-weight: 950;
}

.product-short-description {
    max-width: 550px;

    margin: 0 0 24px;

    color: var(--muted);

    font-size: 14px;

    line-height: 2;
}


/* =========================================================
   PRICE
========================================================= */

.price-box {
    display: flex;
    flex-direction: column;

    gap: 5px;

    padding: 18px;

    margin-bottom: 13px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.72),
            rgba(255,235,243,.45)
        );

    border: 1px solid rgba(255,255,255,.9);
}

.price-label {
    color: var(--muted);

    font-size: 11px;
    font-weight: 700;
}

.price-box strong {
    color: #b96d89;

    font-size: clamp(23px, 3vw, 31px);

    font-weight: 950;
}


/* =========================================================
   AVAILABILITY
========================================================= */

.availability {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 23px;

    color: #6e8c78;

    font-size: 12px;
    font-weight: 800;
}

.availability-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #6bb681;

    box-shadow:
        0 0 0 5px rgba(107,182,129,.1);
}


/* =========================================================
   QUANTITY
========================================================= */

.quantity-section {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 15px;
}

.quantity-label {
    color: var(--text);

    font-size: 13px;
    font-weight: 900;
}

.quantity-control {
    display: flex;
    align-items: center;

    height: 45px;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,.9);
    border-radius: 14px;

    background: rgba(255,255,255,.55);
}

.quantity-control button {
    width: 45px;
    height: 45px;

    border: 0;

    background: transparent;

    color: var(--text);

    font-size: 22px;

    cursor: pointer;

    transition: .2s ease;
}

.quantity-control button:hover {
    background: rgba(217,120,155,.1);
}

.quantity-control strong {
    min-width: 40px;

    text-align: center;

    color: var(--text);

    font-size: 14px;
}


/* =========================================================
   ADD TO CART
========================================================= */

.add-to-cart-button {
    width: 100%;

    min-height: 57px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border: 0;
    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #d9789b,
            #c987a0
        );

    color: #fff;

    font-family: inherit;

    font-size: 14px;
    font-weight: 950;

    cursor: pointer;

    box-shadow:
        0 16px 35px rgba(217,120,155,.22);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.add-to-cart-button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 20px 40px rgba(217,120,155,.3);
}

.add-to-cart-button:active {
    transform: translateY(0);
}

.add-to-cart-button .ui-icon {
    width: 21px;
    height: 21px;
}


/* =========================================================
   BENEFITS
========================================================= */

.product-benefits {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin-top: 16px;
}

.benefit-item {
    display: flex;
    align-items: center;

    gap: 9px;

    padding: 12px;

    border-radius: 15px;

    background: rgba(255,255,255,.42);

    border: 1px solid rgba(255,255,255,.75);
}

.benefit-icon {
    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 10px;

    background: rgba(217,120,155,.1);

    color: #c77795;
}

.benefit-icon .ui-icon {
    width: 16px;
    height: 16px;
}

.benefit-item div {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.benefit-item strong {
    color: var(--text);

    font-size: 10px;
}

.benefit-item small {
    color: var(--muted);

    font-size: 9px;
}


/* =========================================================
   SECTIONS
========================================================= */

.description-section,
.related-section {
    margin-top: 70px;
}

.section-heading {
    margin-bottom: 20px;
}

.section-kicker {
    display: block;

    margin-bottom: 7px;

    color: #c07892;

    font-size: 11px;
    font-weight: 900;

    letter-spacing: .4px;
}

.section-heading h2 {
    margin: 0;

    color: var(--text);

    font-size: 24px;
    font-weight: 950;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.description-card {
    padding: 25px;

    border: 1px solid rgba(255,255,255,.85);
    border-radius: 24px;

    background: rgba(255,255,255,.55);

    color: var(--muted);

    font-size: 14px;

    line-height: 2.2;

    box-shadow:
        0 15px 45px rgba(80,55,70,.07);

    backdrop-filter: blur(18px);
}


/* =========================================================
   RELATED PRODUCTS
========================================================= */

.related-products {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;
}

.related-card {
    display: block;

    padding: 13px;

    border: 1px solid rgba(255,255,255,.85);
    border-radius: 21px;

    background: rgba(255,255,255,.55);

    color: var(--text);

    text-decoration: none;

    box-shadow:
        0 15px 40px rgba(80,55,70,.07);

    transition: .25s ease;

    backdrop-filter: blur(15px);
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-image {
    aspect-ratio: 1 / 1;

    display: grid;
    place-items: center;

    margin-bottom: 12px;

    border-radius: 16px;

    background:
        radial-gradient(
            circle,
            rgba(255,255,255,.95),
            rgba(240,182,200,.25)
        );
}

.related-image .ui-icon {
    width: 35px;
    height: 35px;

    color: rgba(195,123,150,.55);
}

.related-card h3 {
    margin: 0 0 8px;

    font-size: 12px;

    line-height: 1.7;
}

.related-price {
    color: #bb708d;

    font-size: 12px;
    font-weight: 950;
}


/* =========================================================
   TOAST
========================================================= */

.product-toast {
    position: fixed;

    left: 50%;
    bottom: 95px;

    transform:
        translate(-50%, 20px);

    opacity: 0;
    visibility: hidden;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 13px 18px;

    border: 1px solid rgba(255,255,255,.9);
    border-radius: 16px;

    background: rgba(255,255,255,.82);

    color: var(--text);

    font-size: 12px;
    font-weight: 800;

    box-shadow:
        0 20px 50px rgba(70,45,60,.16);

    backdrop-filter: blur(20px);

    z-index: 10000;

    transition: .3s ease;
}

.product-toast.show {
    transform:
        translate(-50%, 0);

    opacity: 1;
    visibility: visible;
}

.product-toast .ui-icon {
    color: #68a87c;
}


/* =========================================================
   BOTTOM NAV
========================================================= */

.bottom-control-bar {
    position: fixed;

    left: 50%;
    bottom: 12px;

    transform: translateX(-50%);

    width: min(94%, 620px);
    height: 70px;

    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    align-items: center;

    padding: 7px;

    border: 1px solid rgba(255,255,255,.92);
    border-radius: 25px;

    background: rgba(255,255,255,.76);

    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    box-shadow:
        0 18px 55px rgba(70,45,60,.16),
        inset 0 1px 0 rgba(255,255,255,.95);

    z-index: 9990;
}

.bottom-control-item {
    position: relative;

    height: 56px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 3px;

    color: var(--muted);

    text-decoration: none;

    border-radius: 19px;

    font-size: 9px;
    font-weight: 800;

    transition: .25s ease;
}

.bottom-control-item:hover {
    color: var(--text);
}

.bottom-control-item.active {
    color: #c96f8f;

    background: rgba(217,120,155,.09);
}

.bottom-control-icon {
    width: 24px;
    height: 24px;

    display: grid;
    place-items: center;

    transition: transform .25s ease;
}

.bottom-control-item.active .bottom-control-icon {
    transform: translateY(-2px);
}

.bottom-control-item:hover .bottom-control-icon {
    transform: translateY(-2px);
}

.bottom-control-item .ui-icon {
    width: 20px;
    height: 20px;
}

.bottom-control-item.active .ui-icon {
    stroke-width: 2;
}

.bottom-cart-count {
    position: absolute;

    top: 5px;
    right: calc(50% - 21px);

    min-width: 16px;
    height: 16px;

    display: grid;
    place-items: center;

    padding: 0 3px;

    border-radius: 50%;

    background: #d9789b;
    color: #fff;

    font-size: 8px;
    font-weight: 900;

    border: 2px solid rgba(255,255,255,.9);
}


/* =========================================================
   DARK MODE
========================================================= */

body.dark-mode .icon-button,
body.dark-mode .back-to-products,
body.dark-mode .product-detail-card,
body.dark-mode .description-card,
body.dark-mode .related-card,
body.dark-mode .product-toast,
body.dark-mode .bottom-control-bar {
    border-color: rgba(255,255,255,.08);

    background:
        rgba(35,31,36,.78);
}

body.dark-mode .product-visual {
    background:
        radial-gradient(
            circle at 30% 25%,
            rgba(255,255,255,.08),
            transparent 28%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(217,120,155,.12),
            transparent 38%
        ),
        #211e21;
}

body.dark-mode .product-image-placeholder {
    background:
        radial-gradient(
            circle,
            rgba(60,53,59,.95),
            rgba(45,39,44,.8)
        );

    border-color: rgba(255,255,255,.08);
}

body.dark-mode .price-box,
body.dark-mode .benefit-item {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.07);
}

body.dark-mode .product-badge,
body.dark-mode .favorite-button {
    background: rgba(35,31,36,.8);
    border-color: rgba(255,255,255,.08);
}

body.dark-mode .bottom-control-bar {
    box-shadow:
        0 18px 55px rgba(0,0,0,.35);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 950px) {

    .product-detail-card {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .product-visual {
        min-height: 430px;
    }

    .product-info {
        padding: 10px;
    }

    .related-products {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}


@media (max-width: 680px) {

    .product-main {
        width: min(100% - 20px, 1180px);

        padding-top: 18px;
    }

    .product-detail-card {
        padding: 12px;

        border-radius: 25px;
    }

    .product-visual {
        min-height: 340px;

        border-radius: 20px;
    }

    .product-image-placeholder {
        width: 72%;
    }

    .product-info {
        padding: 7px;
    }

    .product-info h1 {
        font-size: 26px;
    }

    .product-short-description {
        font-size: 13px;
    }

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

    .related-products {
        display: flex;

        overflow-x: auto;

        padding-bottom: 8px;

        scroll-snap-type: x mandatory;
    }

    .related-card {
        min-width: 190px;

        scroll-snap-align: start;
    }

    .description-section,
    .related-section {
        margin-top: 50px;
    }

    .bottom-control-bar {
        bottom: 8px;

        width: calc(100% - 14px);

        height: 66px;

        border-radius: 22px;
    }

    .bottom-control-item {
        height: 52px;
    }

    .bottom-control-item > span:last-of-type {
        font-size: 8px;
    }
}


@media (max-width: 420px) {

    .brand-text small {
        display: none;
    }

    .brand-text strong {
        font-size: 13px;
    }

    .brand-icon {
        width: 35px;
        height: 35px;
    }

    .header-actions {
        gap: 5px;
    }

    .icon-button {
        width: 38px;
        height: 38px;
    }

    .product-visual {
        min-height: 300px;
    }

    .quantity-section {
        align-items: center;
    }
}

/* =========================================================
   REVIEWS
========================================================= */

.reviews-section {
    margin-top: 70px;
    scroll-margin-top: 90px;
}

.stars {
    display: inline-flex;
    flex-direction: row;
    gap: 2px;
    direction: rtl;
}

.stars .ui-icon {
    width: 16px;
    height: 16px;
    color: #d8c9cf;
    fill: currentColor;
    stroke: none;
}

.stars .ui-icon.on { color: #e5b94f; }

.stars-lg .ui-icon { width: 20px; height: 20px; }

.rating-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 10px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 700;
}

.rating-inline:hover { color: var(--text); }

.reviews-layout {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 18px;
    align-items: start;
}

.reviews-summary,
.review-form,
.review-card,
.reviews-empty {
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 24px;
    background: rgba(255, 255, 255, .62);
    box-shadow: 0 15px 45px rgba(80, 55, 70, .07);
    backdrop-filter: blur(18px);
}

.reviews-summary {
    padding: 24px;
    display: grid;
    gap: 20px;
}

.summary-score {
    display: grid;
    justify-items: center;
    gap: 6px;
    text-align: center;
}

.summary-score strong {
    font-size: 46px;
    line-height: 1;
    font-weight: 950;
    color: var(--text);
}

.summary-score small { color: var(--muted); font-size: 12.5px; }

.summary-bars { display: grid; gap: 9px; }

.bar-row {
    display: grid;
    grid-template-columns: 22px 1fr 26px;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
}

.bar-track {
    height: 8px;
    border-radius: 99px;
    background: rgba(160, 130, 145, .16);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #e5b94f, #e89ab5);
    transition: width .6s ease;
}

.review-form {
    padding: 24px;
    display: grid;
    gap: 16px;
}

.review-form h3 { margin: 0; font-size: 17px; font-weight: 900; color: var(--text); }

.review-field { display: grid; gap: 7px; }

.review-label { font-size: 12.5px; font-weight: 800; color: var(--text); }

.review-form input[type="text"],
.review-form textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid rgba(160, 130, 145, .28);
    border-radius: 16px;
    background: rgba(255, 255, 255, .8);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.review-form textarea { resize: vertical; min-height: 110px; line-height: 1.9; }

.review-form input:focus,
.review-form textarea:focus {
    border-color: #d9789b;
    box-shadow: 0 0 0 4px rgba(217, 120, 155, .15);
}

.review-form .invalid { border-color: #d64b6b !important; }

.review-error { min-height: 14px; color: #d64b6b; font-size: 11.5px; font-weight: 700; }

.review-field-foot { display: flex; justify-content: space-between; gap: 10px; }

.char-count { color: var(--muted); font-size: 11.5px; }

/* star picker: RTL row, hover/checked fills the stars after it */
.star-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    direction: ltr;
    width: max-content;
}

.star-input input { position: absolute; opacity: 0; pointer-events: none; }

.star-input label { cursor: pointer; color: #d8c9cf; transition: color .15s, transform .15s; }

.star-input label .ui-icon { width: 30px; height: 30px; fill: currentColor; stroke: none; }

.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label { color: #e5b94f; }

.star-input label:hover { transform: scale(1.15); }

.star-input input:focus-visible + label { outline: 2px solid #d9789b; outline-offset: 3px; border-radius: 6px; }

.review-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, #e89ab5, #c9688b);
    color: #fff;
    font-size: 14.5px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(201, 104, 139, .32);
    transition: transform .2s, box-shadow .2s, opacity .2s;
}

.review-submit:hover { transform: translateY(-2px); }
.review-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.reviews-list { display: grid; gap: 14px; margin-top: 18px; }

.review-card { padding: 20px 22px; display: grid; gap: 10px; animation: reviewIn .45s ease both; }

@keyframes reviewIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

.review-head { display: flex; align-items: center; gap: 12px; }

.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f6bfd2, #e5b94f);
    color: #fff;
    font-weight: 900;
    font-size: 16px;
}

.review-meta { display: grid; gap: 3px; flex: 1; min-width: 0; }
.review-meta strong { font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-meta small { color: var(--muted); font-size: 11.5px; }

.review-body { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 2.1; white-space: pre-wrap; overflow-wrap: anywhere; }

.reviews-empty { padding: 28px; text-align: center; color: var(--muted); font-size: 14px; line-height: 2; }

/* dark mode */
body.dark-mode .reviews-summary,
body.dark-mode .review-form,
body.dark-mode .review-card,
body.dark-mode .reviews-empty {
    border-color: rgba(255, 255, 255, .08);
    background: rgba(35, 31, 36, .78);
}

body.dark-mode .review-form input[type="text"],
body.dark-mode .review-form textarea {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .12);
}

body.dark-mode .stars .ui-icon,
body.dark-mode .star-input label { color: #4a4349; }
body.dark-mode .stars .ui-icon.on { color: #e5b94f; }
body.dark-mode .star-input label:hover,
body.dark-mode .star-input label:hover ~ label,
body.dark-mode .star-input input:checked ~ label { color: #e5b94f; }
body.dark-mode .bar-track { background: rgba(255, 255, 255, .1); }

@media (max-width: 760px) {
    .reviews-layout { grid-template-columns: 1fr; }
    .reviews-section { margin-top: 50px; }
}
