/* Product reviews & Q&A — shared by shop and main site */
.shop-pe { margin-top: 4px; }

.shop-pe__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.shop-pe__tab {
    border: 1px solid #e8edf3;
    background: #fafbfc;
    color: #475569;
    padding: 10px 18px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: all .15s;
}

.shop-pe__tab.is-active,
.shop-pe__tab:hover {
    background: #fff7ed;
    border-color: #fdba74;
    color: #c2410c;
}

.shop-pe__panel { display: none; }
.shop-pe__panel.is-active { display: block; }

.shop-pe__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.shop-pe__btn {
    border: none;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(249, 115, 22, .25);
}

.shop-pe__btn:hover { filter: brightness(1.05); }
.shop-pe__btn--ghost {
    background: #fff;
    color: #475569;
    border: 1px solid #e2e8f0;
    box-shadow: none;
}

.shop-pe__hint,
.shop-pe__empty {
    color: #64748b;
    font-size: 13px;
    margin: 0;
}

.shop-pe-rating-overview {
    display: grid;
    grid-template-columns: minmax(120px, 160px) 1fr;
    gap: 20px;
    margin-bottom: 20px;
    padding: 16px;
    background: #fafbfc;
    border-radius: 12px;
    border: 1px solid #eef2f6;
}

@media (max-width: 560px) {
    .shop-pe-rating-overview { grid-template-columns: 1fr; }
}

.shop-pe-rating-overview__score {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.shop-pe-rating-overview__score strong {
    font-size: 36px;
    color: #f59e0b;
    line-height: 1;
}

.shop-pe-rating-overview__score span { color: #64748b; font-size: 13px; }
.shop-pe-rating-overview__score small { color: #94a3b8; font-size: 12px; margin-top: 4px; }

.shop-pe-bar {
    display: grid;
    grid-template-columns: 32px 1fr 28px;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
    color: #64748b;
}

.shop-pe-bar__track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.shop-pe-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 4px;
}

.shop-pe-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 2px;
}

.shop-pe-stars button,
.shop-pe-stars span {
    border: none;
    background: none;
    color: #cbd5e1;
    font-size: 28px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.shop-pe-stars button.is-on,
.shop-pe-stars span.is-on { color: #f59e0b; }

.shop-pe-stars--sm button,
.shop-pe-stars--sm span { font-size: 16px; cursor: default; }
.shop-pe-stars--readonly button { pointer-events: none; }

.shop-pe-card {
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    background: #fff;
}

.shop-pe-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.shop-pe-card__author { font-weight: 700; color: #0f172a; font-size: 13px; }
.shop-pe-card__date { color: #94a3b8; font-size: 12px; margin-right: auto; }
.shop-pe-card__title { margin: 0 0 6px; font-size: 14px; color: #334155; }
.shop-pe-card__body { font-size: 14px; line-height: 1.75; color: #475569; }
.shop-pe-card__question { font-weight: 500; }

.shop-pe-badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    background: #ecfdf5;
    color: #059669;
}

.shop-pe-badge--official {
    background: #fff7ed;
    color: #c2410c;
    margin-bottom: 6px;
}

.shop-pe-reply,
.shop-pe-answer {
    margin-top: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border-right: 3px solid #f59e0b;
    font-size: 13px;
    color: #475569;
}

.shop-pe-reply strong,
.shop-pe-answer time {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}

.shop-pe__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin: 12px 0 6px;
}

.shop-pe__input,
.shop-pe__textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
}

.shop-pe__input--captcha { max-width: 120px; display: inline-block; vertical-align: middle; }
.shop-pe__captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.shop-pe__error { color: #dc2626; font-size: 13px; min-height: 18px; }

.shop-pe-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.shop-pe-modal.is-open { display: flex; }

.shop-pe-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .45);
}

.shop-pe-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, .15);
}

@media (min-width: 640px) {
    .shop-pe-modal { align-items: center; padding: 20px; }
    .shop-pe-modal__dialog { border-radius: 16px; max-height: 85vh; }
}

.shop-pe-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #eef2f6;
}

.shop-pe-modal__header h3 { margin: 0; font-size: 16px; color: #0f172a; }

.shop-pe-modal__close {
    border: none;
    background: none;
    font-size: 24px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
}

.shop-pe-modal__body {
    padding: 16px 18px;
    overflow-y: auto;
    flex: 1;
}

.shop-pe-modal__footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 14px 18px;
    border-top: 1px solid #eef2f6;
}

body.shop-pe-modal-open { overflow: hidden; }

.shop-pe__no-rating { color: #64748b; font-size: 13px; margin: 0 0 12px; }
.shop-pe__logged-hint { font-size: 13px; color: #64748b; margin-bottom: 8px; }

.shop-pe__success {
    color: #059669;
    font-size: 14px;
    padding: 10px 12px;
    background: #ecfdf5;
    border-radius: 8px;
    margin-bottom: 12px;
}

.tab-content .shop-pe { border: none; padding: 0; background: transparent; }
