/* floating-reviews.css */

.reviews-float-widget {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    font-family: "Inter", sans-serif !important;
}

.reviews-float-button {
    background-color: #000;
    color: white;
    border: none;
    border-radius: 25px 0 0 25px;
    padding: 15px 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 120px;
    width: 45px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
}

.position-left .reviews-float-button {
    border-radius: 0 25px 25px 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    left: 0;
    right: auto;
}

.reviews-float-widget.position-left {
    left: 0;
    right: auto;
}

.reviews-float-button:hover {
    background-color: #333;
    width: 50px;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.3);
}

.position-left .reviews-float-button:hover {
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.3);
}

.float-button-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
}

.float-star-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

.reviews-float-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    white-space: nowrap;
    line-height: 1.2;
    font-size: 13px;
}

/* Modal Overlay for Reviews */
.reviews-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: none;
    animation: fadeIn 0.3s ease;
}

.reviews-modal-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.reviews-modal-content {
    background: white;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

.reviews-modal-content .review-item {
    flex-direction: row !important;
}

.reviews-modal-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 56px 14px;
    border-bottom: 1px solid #ececec;
    flex-shrink: 0;
}

.reviews-modal-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
}

.reviews-modal-logo {
    width: 124px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.reviews-modal-title {
    font-size: 23px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.2px;
    color: #1f2937;
}

.reviews-modal-close {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    position: relative;
    z-index: 1000000;
}

.reviews-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

.reviews-modal-close svg {
    width: 20px;
    height: 20px;
    fill: #333;
    pointer-events: none;
}

.reviews-modal-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Modal içindeki widget stilleri - Ana widget ile aynı */
.reviews-modal-body .product-reviews-widget {
    font-family: "Inter", sans-serif !important;
    margin: 0;
    padding: 30px;
    max-width: none;
    box-sizing: border-box;
    clear: both;
    position: relative;
    z-index: 1;
}

.reviews-modal-body .product-reviews-widget * {
    box-sizing: border-box;
}

/* Header Bölümü */
.reviews-modal-body .reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #DEDEDE;
    margin-bottom: 20px;
    padding-bottom: 15px;
    position: relative;
}

.reviews-modal-body .summary {
    flex: 1;
    position: relative;
}

.reviews-modal-body .summary-content {
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    padding: 0;
    font-family: inherit;
    color: #000 !important;
}

.reviews-modal-body .summary-content:hover {
    opacity: 0.8;
}

.reviews-modal-body .rating-summary-avg {
    display: inline-flex;
    align-items: center;
}

.reviews-modal-body .summary-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #000 !important;
}

.reviews-modal-body .summary-text span {
    color: #000 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}

.reviews-modal-body .header-chevron {
    display: flex;
    align-items: center;
}

/* Yıldızlar */
.reviews-modal-body .stars-display {
    display: inline-flex;
    gap: 2px;
}

.reviews-modal-body .star {
    font-size: 20px;
    line-height: 1;
    font-family: Arial, sans-serif;
}

.reviews-modal-body .star.filled {
    color: #FFC107;
}

.reviews-modal-body .star.empty {
    color: #E0E0E0;
}

/* Puan Dağılımı */
.reviews-modal-body .reviews-distribution {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0px 6px 14px -4px rgba(0, 0, 0, 0.14);
    z-index: 100;
    animation: fadeInDown 0.2s ease-in-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reviews-modal-body .rating-overview {
    display: flex;
    gap: 40px;
    align-items: center;
}

.reviews-modal-body .large-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 32px;
    font-weight: 600;
}

.reviews-modal-body .large-rating .star {
    font-size: 32px;
}

.reviews-modal-body .rating-bars {
    flex: 1;
    max-width: 400px;
}

.reviews-modal-body .rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 4px;
    margin: 6px 0;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.reviews-modal-body .rating-row:hover {
    background-color: rgba(255, 193, 7, 0.08);
}

.reviews-modal-body .rating-row.selected {
    background-color: rgba(255, 193, 7, 0.1);
}

.reviews-modal-body .rating-row .stars-display {
    width: 100px;
}

.reviews-modal-body .rating-row .star {
    font-size: 18px;
}

.reviews-modal-body .rating-bar {
    flex: 1;
    height: 10px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 2px;
    overflow: hidden;
}

.reviews-modal-body .rating-progress {
    height: 100%;
    background: #7B7B7B;
    border-radius: 2px;
    transition: width 0.6s ease;
}

.reviews-modal-body .rating-count {
    min-width: 40px;
    text-align: right;
    font-size: 14px;
    color: #666;
}

/* Sıralama Menüsü */
.reviews-modal-body .sort-menu {
    position: relative;
}

.reviews-modal-body .sort-button {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #666;
}

.reviews-modal-body .sort-button:hover {
    border-color: #999;
    color: #333;
}

.reviews-modal-body .sort-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 20px;
    min-width: 200px;
    box-shadow: 0px 6px 14px -4px rgba(0, 0, 0, 0.14);
    z-index: 100;
    list-style: none;
    margin: 0;
    animation: fadeInDown 0.2s ease-in-out;
}

.reviews-modal-body .sort-title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 16px;
    border-bottom: 1px solid #E8E8E8;
    padding-bottom: 8px;
}

.reviews-modal-body .sort-option {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 0;
    font-size: 14px;
    width: 100%;
    text-align: left;
    position: relative;
    font-family: inherit;
    color: #000 !important;
}

.reviews-modal-body .sort-option:hover {
    color: #007cba !important;
}

.reviews-modal-body .sort-option.active::after {
    content: "✓";
    position: absolute;
    right: 0;
    color: #007cba;
}

/* Yorumlar Grid */
.reviews-modal-body .reviews-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.reviews-modal-body .review-item {
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    min-height: 160px;
}

.reviews-modal-body .review-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.reviews-modal-body .review-item.has-image {
    border-radius: 15px !important;
    flex-direction: row;
    padding: 1rem;
}

.reviews-modal-body .review-item.no-image {
    flex-direction: column;
}

.reviews-modal-body .review-image {
    border-radius: 15px;
    max-width: 110px;
    height: 160px;
    overflow: hidden;
    flex-shrink: 0;
}

.reviews-modal-body .review-image img {
    height: 100%;
    object-fit: cover;
}

.reviews-modal-body .review-content {
    padding: 16px;
    flex: 1;
    display: unset;
    flex-direction: column;
}

.reviews-modal-body .review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.reviews-modal-body .reviewer-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.reviews-modal-body .reviewer-name {
    margin: 0;
    margin-bottom: 0 !important;
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

.reviews-modal-body .verified-info {
    display: flex;
    align-items: center;
    gap: 4px;
}

.reviews-modal-body .verified-badge {
    color: #000;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.reviews-modal-body .verified-text {
    font-size: 12px;
    font-weight: 400;
    color: #000;
    white-space: nowrap;
}

.reviews-modal-body .review-date {
    font-size: 12px;
    color: #73777B;
    white-space: nowrap;
}

.reviews-modal-body .review-rating {
    margin-bottom: 12px;
}

.reviews-modal-body .review-rating .star {
    font-size: 14px;
}

/* Review metadata düzeni için koruyucu kapsam (global CSS çakışmalarına karşı) */
.reviews-modal-body .review-item .review-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.reviews-modal-body .review-item .reviewer-info {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.reviews-modal-body .review-item .review-date {
    margin-top: 3px !important;
}

.reviews-modal-body .review-item .review-rating {
    margin-top: 6px !important;
    display: flex !important;
    align-items: center !important;
}

.reviews-modal-body .review-text {
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}

.reviews-modal-body .review-text p {
    margin: 0;
    color: #333;
}

/* Daha Fazla Yükle */
.reviews-modal-body .load-more-container {
    text-align: center;
    padding: 20px 0;
}

.reviews-modal-body .load-more-button {
    background: transparent;
    border: 1px solid #282828;
    color: #282828;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    font-family: inherit;
}

.reviews-modal-body .load-more-button:hover {
    background: #282828;
    color: white;
}

.reviews-modal-body .load-more-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Boş Durum */
.reviews-modal-body .no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Loading states for modal */
.reviews-modal-body #reviews-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}



.review-details .stars .star.filled path {
    fill: gold;
}





.reviews-modal-overlay .close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0 !important;
    background: rgba(17, 24, 39, 0.45);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.reviews-modal-overlay .close-btn:hover {
    background: rgba(17, 24, 39, 0.65);
}

.reviews-modal-overlay .close-btn svg {
    width: 24px;
    height: 24px;
}

.reviews-modal-overlay .close-btn svg path {
    fill: white !important;
}




/* Scroll engellemesi için */
body.reviews-modal-open {
    overflow: hidden !important;
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading state */
.loading-reviews {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 14px;
    min-height: 200px;
}

.reviews-loading-icon {
    position: relative;
    width: 36px;
    height: 36px;
}

.reviews-loading-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(17, 24, 39, 0.16);
    border-top-color: #111827;
    animation: reviewsModalSpin 0.9s linear infinite;
}

.reviews-loading-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #111827;
    transform: translate(-50%, -50%);
    animation: reviewsModalPulse 0.9s ease-in-out infinite;
}

.reviews-loading-text {
    margin: 0;
    color: #626b7a;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1px;
}

@keyframes reviewsModalSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes reviewsModalPulse {

    0%,
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.45;
        transform: translate(-50%, -50%) scale(0.75);
    }
}

.reviews-error {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Reviews grid loading state */
#reviews-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Daha fazla butonu */
#load-more-reviews {
    display: block;
    margin: 20px auto;
    padding: 12px 24px;
    background: #000;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

#load-more-reviews:hover {
    background: #333;
}

#load-more-reviews:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .reviews-float-widget {
        right: 0;
    }

    .reviews-float-widget.position-left {
        left: 0;
        right: auto;
    }

    .reviews-float-button {
        width: 40px;
        min-height: 100px;
        font-size: 13px;
        padding: 12px 6px;
    }

    .reviews-float-button:hover {
        width: 42px;
    }

    .reviews-modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 10px;
    }

    .reviews-modal-header {
        padding: 12px 48px 10px;
    }

    .reviews-modal-title {
        font-size: 18px;
    }

    .reviews-modal-logo {
        width: 106px;
    }

    .reviews-modal-overlay .close-btn {
        width: 34px;
        height: 34px;
        top: 10px;
        right: 10px;
    }

    .float-star-icon {
        width: 18px;
        height: 18px;
    }

    .reviews-float-text {
        font-size: 12px;
    }

    /* Responsive for modal */
    .reviews-modal-body .product-reviews-widget {
        padding: 20px;
    }

    .reviews-modal-body .reviews-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .reviews-modal-body .rating-overview {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .reviews-modal-body .large-rating {
        justify-content: center;
    }

    .reviews-modal-body .reviews-distribution,
    .reviews-modal-body .sort-dropdown {
        position: static;
        box-shadow: none;
        border: 1px solid #E0E0E0;
        margin-top: 15px;
    }

    .reviews-modal-body .reviews-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .reviews-modal-body .review-item {
        flex-direction: column;
    }

    .reviews-modal-body .review-image {
        height: 200px;
    }

}

@media (max-width: 480px) {



    .reviews-modal-header {
        padding: 10px 44px 8px;
    }

    .reviews-modal-title {
        font-size: 16px;
    }

    .reviews-modal-logo {
        width: 98px;
    }

    .reviews-modal-overlay .close-btn {
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
    }

    .reviews-float-widget {
        right: 0;
    }

    .reviews-float-widget.position-left {
        left: 0;
        right: auto;
    }

    .reviews-float-button {
        width: 35px;
        min-height: 90px;
        font-size: 12px;
        padding: 10px 5px;
    }

    .reviews-modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }

    .reviews-modal-header {
        padding: 12px 15px;
    }

    .reviews-modal-title {
        font-size: 18px;
    }

    .float-star-icon {
        width: 16px;
        height: 16px;
    }

    .reviews-float-text {
        font-size: 11px;
    }

    .reviews-modal-body .product-reviews-widget {
        padding: 15px;
    }

    .reviews-modal-body .reviews-grid {
        gap: 10px;
    }

    .reviews-modal-body .review-item {
        margin: 0 -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        flex-direction: column;
        min-height: auto;
    }

    .reviews-modal-body .review-image {
        height: 200px;
        order: 1;
    }

    .reviews-modal-body .review-content {
        order: 2;
        padding: 16px;
        display: flex;
        flex-direction: column;
    }

    .reviews-modal-body .review-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 12px;
    }

    .reviews-modal-body .reviewer-info {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;
    }

    .reviews-modal-body .reviewer-name {
        display: block;
        margin: 0;
        font-size: 16px;
        font-weight: 600;
        color: #000;
    }

    .reviews-modal-body .verified-info {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .reviews-modal-body .verified-badge {
        display: block;
        color: #000;
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    .reviews-modal-body .verified-text {
        display: block;
        font-size: 12px;
        font-weight: 400;
        color: #000;
        white-space: nowrap;
    }

    .reviews-modal-body .review-date {
        display: block;
        font-size: 12px;
        color: #73777B;
        white-space: nowrap;
    }

    .reviews-modal-body .review-rating {
        display: block;
        margin-bottom: 12px;
    }

    .reviews-modal-body .review-rating .stars-display {
        display: inline-flex;
        gap: 2px;
    }

    .reviews-modal-body .review-rating .star {
        display: inline-block;
        font-size: 14px;
    }

    .reviews-modal-body .review-text {
        display: block;
        font-size: 14px;
        line-height: 1.5;
        flex: 1;
    }

    .reviews-modal-body .review-text p {
        display: block;
        margin: 0;
        color: #333;
    }

    .reviews-modal-body .summary-content {
        font-size: 14px;
    }

    .reviews-modal-body .star {
        font-size: 18px;
    }

    .reviews-modal-body .large-rating {
        font-size: 28px;
    }

    .reviews-modal-body .large-rating .star {
        font-size: 28px;
    }

    .reviews-modal-body .rating-row .star {
        font-size: 16px;
    }

}


/* --- YENİ KART GÖRÜNÜMLÜ REVIEW DETAIL MODAL --- */
.review-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.review-detail-modal .modal-content {
    background: white;
    width: 100%;
    max-width: 400px;
    /* Resimdeki kart genişliği */
    max-height: 90vh;
    border-radius: 28px;
    /* Resimdeki kalın yuvarlak köşeler */
    padding: 16px;
    /* Resimdeki dış beyaz çerçeve boşluğu */
    position: relative;
    animation: modalSlideIn 0.3s ease;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Scrollbar gizleme (daha temiz kart görünümü için) */
.review-detail-modal .modal-content::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.review-detail-modal .close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
}

.review-detail-modal .close-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.review-detail-modal .grid-item-wrap {
    display: flex;
    flex-direction: column;
}

.review-detail-modal .item-img {
    width: 100%;
    height: 420px;
    /* Resmin uzunluğu */
    border-radius: 20px;
    /* İç resmin köşeleri */
    overflow: hidden;
    margin-bottom: 20px;
}

.review-detail-modal .item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-detail-modal .main {
    padding: 0 8px 12px 8px;
    /* İçeriğe sağdan soldan hafif boşluk */
    display: flex;
    flex-direction: column;
}

.review-detail-modal .title-name {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
    font-family: "Inter", sans-serif;
}

.review-detail-modal .stars {
    margin-bottom: 16px;
}

.review-detail-modal .stars svg,
.review-detail-modal .star {
    width: 20px !important;
    height: 20px !important;
    font-size: 20px;
}

.review-detail-modal .stars .star.filled path,
.review-detail-modal .stars svg path {
    fill: #FFBE00 !important;
    /* Yıldızları sarı yap */
}

.review-detail-modal .pre-wrap {
    font-size: 15px;
    color: #4a4a4a;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: "Inter", sans-serif;
}

/* --- YILDIZ VE TARİH HİZALAMASI İÇİN YENİ KODLAR --- */
.review-detail-modal .stars-date-container {
    display: flex;
    justify-content: space-between;
    /* Birini sola, diğerini sağa yaslar */
    align-items: center;
    /* Dikeyde ortalar */
    margin-bottom: 16px;
}

.review-detail-modal .stars-date-container .stars {
    margin-bottom: 0;
    /* Eski alttan boşluğu sıfırlıyoruz, container halledecek */
}

.review-detail-modal .review-date-detail {
    font-size: 13px;
    color: #73777B;
    font-family: "Inter", sans-serif;
}

/* --- Floating modal: yeni özet + galeri görünümü --- */
.reviews-modal-body .reviews-header {
    align-items: stretch;
    gap: 18px;
    flex-direction: column;
}

.reviews-modal-body .sort-menu {
    width: 100%;
}

.reviews-modal-body .sort-button {
    width: 100%;
}

.reviews-modal-body .summary-layout {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.reviews-modal-body .summary-score-column {
    min-width: 130px;
}

.reviews-modal-body .summary-average {
    font-size: 50px;
    line-height: 1;
    font-weight: 800;
    color: #000;
    margin-bottom: 8px;
}

.reviews-modal-body .summary-stars {
    position: relative;
    width: max-content;
    margin-bottom: 10px;
}

.reviews-modal-body .summary-stars .stars-outline,
.reviews-modal-body .summary-stars .stars-filled {
    display: flex;
    gap: 2px;
}

.reviews-modal-body .summary-stars .stars-filled {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
}

.reviews-modal-body .summary-stars .star.empty {
    color: #d9d9d9;
}

.reviews-modal-body .summary-stars .star.filled {
    color: #f7b500;
}

.reviews-modal-body .summary-review-count {
    font-size: 23px;
    font-weight: 500;
    color: #000;
}

.reviews-modal-body .summary-bars-column {
    flex: 1;
    max-width: 520px;
    min-width: 260px;
}

.reviews-modal-body .summary-bars-column .rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 9px;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.reviews-modal-body .summary-bars-column .rating-number {
    width: 12px;
    font-size: 20px;
    line-height: 1;
    color: #111;
}

.reviews-modal-body .summary-bars-column .rating-bar {
    height: 12px;
    background: #e9e9e9;
    border-radius: 3px;
}

.reviews-modal-body .summary-bars-column .rating-progress {
    background: #000;
    border-radius: 3px;
}

.reviews-modal-body .reviews-photo-gallery-track {
    width: 100%;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    padding-bottom: 4px;
}

.reviews-modal-body .reviews-photo-gallery {
    position: relative;
}

.reviews-modal-body .reviews-photo-loading {
    position: absolute;
    right: 10px;
    bottom: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.reviews-modal-body .reviews-photo-gallery.is-loading .reviews-photo-loading {
    opacity: 1;
    transform: scale(1);
}

.reviews-modal-body .reviews-photo-spinner {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #d8d8d8;
    border-top-color: #111;
    animation: reviewsPhotoSpin 0.7s linear infinite;
}

.reviews-modal-body .reviews-photo-nav {
    display: none;
}

@keyframes reviewsPhotoSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 1024px) {
    .reviews-modal-body .reviews-photo-gallery-track {
        gap: 10px;
    }

    .reviews-modal-body .reviews-photo-item {
        flex: 0 0 calc((100% - 80px) / 9);
        width: calc((100% - 80px) / 9);
        height: 110px;
    }

    .reviews-modal-body .reviews-photo-gallery {
        padding: 0 42px;
    }

    .reviews-modal-body .reviews-photo-nav {
        display: inline-flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        border: 1px solid rgba(255, 255, 255, 0.75);
        background: rgba(255, 255, 255, 0.58);
        color: #111;
        border-radius: 999px;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
        z-index: 3;
        cursor: pointer;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .reviews-modal-body .reviews-photo-nav:hover {
        transform: translateY(-50%) scale(1.04);
    }

    .reviews-modal-body .reviews-photo-nav svg {
        width: 20px;
        height: 20px;
        display: block;
        flex-shrink: 0;
    }

    .reviews-modal-body .reviews-photo-nav.prev {
        left: 4px;
    }

    .reviews-modal-body .reviews-photo-nav.next {
        right: 4px;
    }

    .reviews-modal-body .reviews-photo-nav.disabled {
        opacity: 0;
        pointer-events: none;
    }
}

.reviews-modal-body .reviews-photo-gallery-track::-webkit-scrollbar {
    display: none;
}

/* --- Yorum satır düzeni: İsim+Doğrulanmış, Tarih, Yıldız --- */
.reviews-modal-body .review-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 8px;
}

.reviews-modal-body .reviewer-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.reviews-modal-body .reviewer-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.reviews-modal-body .verified-info {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.reviews-modal-body .verified-badge {
    width: 12px;
    height: 12px;
    color: #111;
}

.reviews-modal-body .verified-text {
    font-size: 12px;
    color: #111;
    font-weight: 500;
}

.reviews-modal-body .review-date {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.2;
    margin-top: 0;
}

.reviews-modal-body .review-rating {
    display: flex;
    align-items: center;
    margin: 6px 0 12px;
}

.reviews-modal-body .review-rating .stars-display {
    gap: 2px;
}

@media (max-width: 768px) {
    .reviews-modal-body .reviewer-name {
        font-size: 15px;
    }

    .reviews-modal-body .verified-badge {
        width: 11px;
        height: 11px;
    }

    .reviews-modal-body .verified-text,
    .reviews-modal-body .review-date {
        font-size: 11px;
    }
}

.reviews-modal-body .reviews-photo-item {
    flex: 0 0 118px;
    width: 118px;
    height: 118px;
    border-radius: 0;
    overflow: hidden;
    background: #f3f3f3;
    border-radius: 15px;
}

.reviews-modal-body .reviews-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .reviews-modal-body .summary-layout {
        gap: 12px;
        align-items: flex-start;
    }

    .reviews-modal-body .summary-average {
        font-size: 40px;
    }

    .reviews-modal-body .summary-review-count {
        font-size: 18px;
    }

    .reviews-modal-body .summary-bars-column {
        min-width: 0;
    }

    .reviews-modal-body .summary-bars-column .rating-number {
        font-size: 15px;
    }

    .reviews-modal-body .reviews-photo-item {
        flex-basis: 92px;
        width: 92px;
        height: 92px;
    }
}

@media (max-width: 520px) {
    .reviews-modal-body .summary-layout {
        gap: 10px;
    }

    .reviews-modal-body .summary-score-column {
        text-align: center;
        justify-items: center;
        min-width: 98px;
    }

    .reviews-modal-body .summary-average {
        font-size: 30px;
    }

    .reviews-modal-body .summary-review-count {
        font-size: 14px;
    }

    .reviews-modal-body .summary-stars .star svg {
        width: 16px;
        height: 16px;
    }

    .reviews-modal-body .summary-bars-column .rating-row {
        gap: 8px;
    }

    .reviews-modal-body .summary-bars-column .rating-number {
        font-size: 14px;
    }

    .reviews-modal-body .summary-bars-column .rating-bar {
        height: 10px;
    }

    .reviews-modal-body .reviews-photo-item {
        flex-basis: 82px;
        width: 82px;
        height: 82px;
    }
}


/* --- Yorum Yaz Butonu ve Footer --- */
.reviews-actions-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9e9e9;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .reviews-actions-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
}

.write-review-container {
    /* Butonu ortalamak için kapsayıcıya stil veriyoruz */
    display: flex;
    justify-content: center;
}

.write-review-button,
.load-more-button {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    font-family: inherit;
}

.write-review-button:hover,
.load-more-button:hover {
    background: #333;
}

/* --- Yorum Yazma Formu Modal --- */
.review-form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.review-form-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
}

.review-form-modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    transform: translateY(20px);
}

.review-form-modal-content .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
}

.review-form-modal-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 8px;
}

.review-form-modal-content p {
    margin-bottom: 24px;
    color: #666;
}

#new-review-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

#new-review-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

#new-review-form input[type="text"],
#new-review-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 15px;
    color: #333;
}

.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.star-rating-input input[type="radio"] {
    display: none;
}

.star-rating-input label {
    font-size: 22px !important;
    color: #424242;
    cursor: pointer;
    transition: color 0.2s;
    margin-bottom: 0;
}

.star-rating-input input[type="radio"]:checked~label,
.star-rating-input label:hover,
.star-rating-input label:hover~label {
    color: #FFC107;
}

#new-review-form .button-primary {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    background: #000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#new-review-form .spinner {
    visibility: hidden;
    float: none;
    margin-left: 8px;
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    border-top-color: #fff;
    animation: reviewsPhotoSpin 0.7s linear infinite;
    vertical-align: middle;
}

#new-review-form .spinner.is-active {
    visibility: visible;
}

#new-review-form .button-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
}

/* --- Buton İkonları --- */
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.icon-button svg {
    width: 18px;
    height: 18px;
}

/* --- Modern Resim Yükleme Alanı --- */
.image-upload-wrapper {
    margin-top: 8px;
}

.image-upload-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 140px;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    position: relative;
    overflow: hidden;
    background-color: #f9fafb;
}

.image-upload-box:hover {
    border-color: #d1d5db;
    background-color: #f3f4f6;
}

.upload-initial-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #6b7280;
    text-align: center;
    padding: 20px;
}

.upload-icon {
    width: 40px;
    height: 40px;
    color: #9ca3af;
}

.upload-text {
    font-weight: 600;
    font-size: 14px;
}

.upload-hint {
    font-size: 12px;
    color: #9ca3af;
}

.upload-preview-state {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
    padding: 0rem !important;
}

.remove-image-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* --- Toast Bildirimi (Apple Tarzı) --- */
.review-toast-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-150%);
    background-color: rgba(40, 40, 40, 0.95);
    color: #fff;
    padding: 12px 20px;
    border-radius: 999px;
    /* Hap şeklinde */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100002;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 14px;
    font-weight: 500;
}

.review-toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.review-toast-notification .toast-icon {
    font-size: 16px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.review-toast-notification.success .toast-icon {
    background-color: #34c759;
}

.review-toast-notification.error .toast-icon {
    background-color: #ff3b30;
}

