/* ============ Müşteri Değerlendirmeleri ============ */

.pd-reviews {
    margin-top: 72px;
    padding-top: 36px;
    border-top: 1px solid #E7E3DE;
}

.pd-reviews__msg {
    font-size: 14px;
    color: #4A7C59;
    background: #EEF6F0;
    border: 1px solid #D5E8DA;
    border-radius: 2px;
    padding: 12px 16px;
    margin: 0 0 20px;
}

.pd-reviews__top {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    padding: 28px 0;
    border-top: 1px solid #E7E3DE;
    border-bottom: 1px solid #E7E3DE;
}

.pd-reviews__avg {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 52px;
    font-weight: 600;
    line-height: 1;
    display: block;
    color: #202124;
}

.pd-reviews__stars {
    display: block;
    color: #D9A441;
    font-size: 18px;
    letter-spacing: 2px;
    margin: 10px 0 6px;
}

.pd-reviews__total {
    font-size: 13.5px;
    color: #666666;
}

.pd-reviews__dist {
    margin-top: 20px;
    max-width: 380px;
}

.pd-reviews__dist-row {
    display: grid;
    grid-template-columns: 62px 1fr 30px;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
}

.pd-reviews__dist-label {
    font-size: 12.5px;
    color: #666666;
}

.pd-reviews__dist-bar {
    height: 6px;
    background: #EFEDE9;
    border-radius: 3px;
    overflow: hidden;
    display: block;
}

.pd-reviews__dist-bar span {
    display: block;
    height: 100%;
    background: #D9A441;
    border-radius: 3px;
}

.pd-reviews__dist-count {
    font-size: 12.5px;
    color: #8A857C;
    text-align: right;
}

/* Müşteri fotoğrafları */
.pd-reviews__photos-title {
    font-size: 14px;
    font-weight: 600;
    color: #202124;
    margin: 0 0 12px;
}

.pd-reviews__photos-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.pd-reviews__photo {
    width: 132px;
    height: 99px;
    flex-shrink: 0;
    padding: 0;
    border: 1px solid #E7E3DE;
    border-radius: 2px;
    background: #F6F4F1;
    cursor: zoom-in;
    overflow: hidden;
    transition: border-color 180ms;
}

.pd-reviews__photo:hover {
    border-color: #8E4B55;
}

.pd-reviews__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-reviews__photos-empty {
    font-size: 13.5px;
    color: #8A857C;
}

/* Araç çubuğu: filtre + sıralama */
.pd-reviews__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 0 6px;
}

.pd-reviews__filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pd-reviews__filters button {
    font-family: inherit;
    font-size: 13px;
    color: #666666;
    background: #FFFFFF;
    border: 1px solid #E7E3DE;
    border-radius: 2px;
    padding: 8px 14px;
    cursor: pointer;
    transition: border-color 180ms, color 180ms, background 180ms;
}

.pd-reviews__filters button:hover {
    border-color: #8E4B55;
    color: #6E3540;
}

.pd-reviews__filters button.is-active {
    background: #242424;
    border-color: #242424;
    color: #FFFFFF;
}

.pd-reviews__sort select {
    font-family: inherit;
    font-size: 13px;
    color: #202124;
    border: 1px solid #E7E3DE;
    border-radius: 2px;
    background: #FFFFFF;
    padding: 9px 12px;
    cursor: pointer;
}

/* Yorum kartı */
.pd-reviews__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-top: 14px;
}

.pd-review {
    background: #FDFCFB;
    border: 1px solid #EFEDE9;
    border-radius: 2px;
    padding: 22px;
}

.pd-review__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.pd-review__avatar {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F4E8EA;
    color: #8E4B55;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50%;
}

.pd-review__who {
    flex: 1;
    min-width: 0;
}

.pd-review__who strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #202124;
}

.pd-review__verified {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    color: #4A7C59;
    background: #EEF6F0;
    border-radius: 2px;
    padding: 2px 7px;
    margin-top: 3px;
}

.pd-review__date {
    font-size: 12.5px;
    color: #9A958D;
    white-space: nowrap;
}

.pd-review__stars {
    color: #D9A441;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.pd-review__title {
    font-size: 15px;
    font-weight: 600;
    color: #202124;
    margin: 0 0 8px;
}

.pd-review__text {
    font-size: 14px;
    line-height: 1.65;
    color: #4A4A4C;
    margin: 0 0 14px;
    overflow-wrap: break-word;
}

.pd-review__images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.pd-review__img {
    width: 92px;
    height: 69px;
    padding: 0;
    border: 1px solid #E7E3DE;
    border-radius: 2px;
    background: #F6F4F1;
    cursor: zoom-in;
    overflow: hidden;
}

.pd-review__img:hover {
    border-color: #8E4B55;
}

.pd-review__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-review__foot {
    display: flex;
    justify-content: flex-end;
}

.pd-review__helpful {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    font-size: 12.5px;
    color: #8A857C;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 2px;
    transition: color 180ms, background 180ms;
}

.pd-review__helpful:hover {
    color: #6E3540;
    background: #F4E8EA;
}

.pd-review__helpful.is-active {
    color: #8E4B55;
    font-weight: 600;
}

.pd-reviews__empty {
    color: #666666;
    padding: 24px 0;
}

/* Değerlendirme yaz */
.pd-reviews__write {
    margin-top: 26px;
    text-align: center;
}

.pd-reviews__write-btn {
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 500;
    color: #FFFFFF;
    background: #242424;
    border: 0;
    border-radius: 2px;
    height: 50px;
    padding: 0 32px;
    cursor: pointer;
    transition: background 200ms;
}

.pd-reviews__write-btn:hover {
    background: #8E4B55;
}

.pd-reviews__login {
    font-size: 14px;
    color: #666666;
}

.pd-reviews__login a {
    color: #8E4B55;
    text-decoration: none;
    font-weight: 500;
}

.pd-reviews__login a:hover {
    text-decoration: underline;
}

/* Modal */
.pd-modal {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pd-modal[hidden] {
    display: none;
}

.pd-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 18, 20, 0.6);
}

.pd-modal__card {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    overflow-y: auto;
    background: #FFFFFF;
    border-radius: 4px;
    padding: 32px;
}

.pd-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    color: #666666;
    cursor: pointer;
    border-radius: 50%;
}

.pd-modal__close:hover {
    background: #F7F5F2;
}

.pd-modal__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    font-weight: 500;
    color: #202124;
    margin: 0 0 4px;
}

.pd-modal__sub {
    font-size: 13.5px;
    color: #8A857C;
    margin: 0 0 22px;
}

.pd-review-form__row {
    margin-bottom: 18px;
}

.pd-review-form__row label {
    display: block;
    font-size: 13.5px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 8px;
}

.pd-review-form__stars {
    display: flex;
    gap: 6px;
}

.pd-review-form__stars button {
    font-family: inherit;
    font-size: 26px;
    color: #D8D3CB;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
    transition: color 120ms;
}

.pd-review-form__stars button.is-active,
.pd-review-form__stars button.is-hover {
    color: #D9A441;
}

.pd-review-form__row input[type="text"],
.pd-review-form__row textarea {
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    color: #202124;
    border: 1px solid #D8D3CB;
    border-radius: 2px;
    padding: 11px 13px;
    box-sizing: border-box;
    resize: vertical;
}

.pd-review-form__row input[type="text"]:focus,
.pd-review-form__row textarea:focus {
    outline: none;
    border-color: #8E4B55;
}

.pd-review-form__row input[type="file"] {
    font-size: 13px;
}

.pd-review-form__hint {
    font-size: 12px;
    color: #8A857C;
    font-weight: 400;
    margin: 6px 0 0;
}

.pd-review-form__note {
    font-size: 12.5px;
    color: #8A857C;
    margin: 14px 0 0;
}

.pd-reviews__write-btn--submit {
    width: 100%;
}

/* Responsive */
@media (max-width: 899px) {
    .pd-reviews__top {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .pd-reviews__list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 599px) {
    .pd-reviews {
        margin-top: 56px;
    }

    .pd-review {
        padding: 18px;
    }
}
