/* Product reviews (PDP) — brand #901E50 */
.pd-rating-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 12px;
    text-decoration: none;
    color: var(--text-dark, #1a1a2e);
    font-size: 14px;
}
.pd-rating-summary:hover { color: var(--brand, #901E50); }

.shop-stars { display: inline-flex; gap: 2px; color: #f59e0b; line-height: 1; }
.shop-stars--sm { font-size: 13px; }
.shop-stars--lg { font-size: 20px; }

.pd-reviews {
    margin: 32px 0 40px;
    padding: 24px 0 0;
    border-top: 1px solid var(--border, #e5e7eb);
}
.pd-reviews__title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 20px;
    color: var(--text-dark, #1a1a2e);
}
.pd-reviews__summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 28px;
}
@media (min-width: 640px) {
    .pd-reviews__summary { grid-template-columns: 160px 1fr; }
}
.pd-reviews__summary-left { text-align: center; }
@media (min-width: 640px) {
    .pd-reviews__summary-left { text-align: left; }
}
.pd-reviews__avg-num {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    color: var(--text-dark, #1a1a2e);
}
.pd-reviews__avg-label {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--text-muted, #6b7280);
}
.pd-reviews__empty-summary {
    font-size: 14px;
    color: var(--text-muted, #6b7280);
    margin: 0;
}
.pd-reviews__bar-row {
    display: grid;
    grid-template-columns: 52px 1fr 28px;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--text-muted, #6b7280);
}
.pd-reviews__bar-track {
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}
.pd-reviews__bar-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--brand, #901E50), var(--brand-light, #b84472));
    border-radius: 4px;
}
.pd-reviews__form-wrap {
    background: var(--brand-surface, #faf5f8);
    border: 1px solid var(--brand-surface-strong, #f5ebf0);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 28px;
}
.pd-reviews__form-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
}
.pd-reviews__field { margin-bottom: 14px; }
.pd-reviews__field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}
.pd-reviews__star-input { display: flex; gap: 4px; }
.pd-reviews__star-btn {
    background: none;
    border: none;
    padding: 4px;
    font-size: 24px;
    color: #d1d5db;
    cursor: pointer;
    line-height: 1;
}
.pd-reviews__star-btn.is-active,
.pd-reviews__star-btn:hover { color: #f59e0b; }
.pd-reviews__input,
.pd-reviews__textarea,
.pd-reviews__select {
    width: 100%;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}
.pd-reviews__submit {
    background: var(--brand, #901E50);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.pd-reviews__submit:hover { background: var(--brand-dark, #6d133c); }
.pd-reviews__submit:disabled { opacity: 0.6; cursor: not-allowed; }
.pd-reviews__form-msg {
    font-size: 13px;
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 8px;
}
.pd-reviews__form-msg.is-error {
    background: #fef2f2;
    color: #b91c1c;
}
.pd-reviews__form-msg.is-success {
    background: #f0fdf4;
    color: #15803d;
}
.pd-reviews__user-status {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
}
.pd-reviews__user-status--pending {
    background: #fffbeb;
    color: #b45309;
}
.pd-reviews__user-status--approved {
    background: #f0fdf4;
    color: #15803d;
}
.pd-reviews__login-hint { font-size: 14px; margin-bottom: 24px; }
.pd-reviews__login-hint a { color: var(--brand, #901E50); font-weight: 600; }
.pd-reviews__card {
    border-bottom: 1px solid var(--border, #e5e7eb);
    padding: 18px 0;
}
.pd-reviews__card:last-child { border-bottom: none; }
.pd-reviews__card-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.pd-reviews__author { font-size: 15px; }
.pd-reviews__verified {
    display: block;
    font-size: 11px;
    color: var(--brand, #901E50);
    font-weight: 600;
    margin-top: 2px;
}
.pd-reviews__card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted, #6b7280);
}
.pd-reviews__card-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px;
}
.pd-reviews__card-body {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-dark, #1a1a2e);
    margin: 0;
}
.pd-reviews__load-more {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    border: 1px solid var(--brand, #901E50);
    background: #fff;
    color: var(--brand, #901E50);
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}
.pd-reviews__load-more:hover {
    background: var(--brand-surface, #faf5f8);
}

.pd-reviews__photos-hint {
    font-size: 12px;
    color: var(--text-muted, #6b7280);
    margin: 0 0 8px;
}
.pd-reviews__file-input {
    font-size: 13px;
    max-width: 100%;
}
.pd-reviews__photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.pd-reviews__photo-preview-item {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border, #e5e7eb);
}
.pd-reviews__photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pd-reviews__photo-preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.pd-reviews__photos {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}
.pd-reviews__photo-link {
    flex: 0 0 auto;
    display: block;
    padding: 0;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 10px;
    overflow: hidden;
    background: #f9fafb;
    cursor: zoom-in;
    line-height: 0;
}
.pd-reviews__photo-img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    display: block;
    transition: transform .15s;
    pointer-events: none;
}
.pd-reviews__photo-link:hover .pd-reviews__photo-img {
    transform: scale(1.03);
}

/* Review photo lightbox */
body.pd-review-lightbox-open {
    overflow: hidden;
}
.pd-review-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.pd-review-lightbox[hidden] {
    display: none !important;
}
.pd-review-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 20, 0.88);
    cursor: pointer;
}
.pd-review-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 720px);
    max-height: min(88vh, 900px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.pd-review-lightbox__stage {
    width: 100%;
    max-height: min(78vh, 820px);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}
.pd-review-lightbox__img {
    max-width: 100%;
    max-height: min(78vh, 820px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    background: #111;
}
.pd-review-lightbox__close {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #1a1a2e;
    font-size: 18px;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pd-review-lightbox__close:hover {
    background: var(--brand-surface, #faf5f8);
    color: var(--brand, #901E50);
}
.pd-review-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a2e;
    font-size: 16px;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pd-review-lightbox__nav:hover {
    background: #fff;
    color: var(--brand, #901E50);
}
.pd-review-lightbox__nav--prev { left: -52px; }
.pd-review-lightbox__nav--next { right: -52px; }
.pd-review-lightbox__counter {
    margin: 14px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    pointer-events: none;
    text-align: center;
}
@media (max-width: 640px) {
    .pd-review-lightbox__nav--prev { left: 4px; }
    .pd-review-lightbox__nav--next { right: 4px; }
    .pd-review-lightbox__close {
        top: 8px;
        right: 8px;
    }
}

/* Order detail review link */
.od-review-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand, #901E50);
    text-decoration: none;
}
.od-review-link:hover { text-decoration: underline; }
.od-review-status {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted, #6b7280);
}
