.review-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #746363a6;
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.review-modal-overlay.active {
    display: flex;
}

body.no-scroll {
    overflow: hidden;
}

.modal-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 1002;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 1002;
    padding: 20px;
}

.nav-prev { left: 20px; }
.nav-next { right: 20px; }

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    z-index: 1001;
}

.modal-image-col {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-info-col {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.modal-reviewer-name {
    font-weight: 700;
    font-size: 16px;
}

.modal-date {
    margin-left: auto;
    font-size: 12px;
    color: #888;
}

.modal-review-title {
    font-size: 18px;
    font-weight: 700;
    margin: 10px 0;
}

.modal-review-body {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
}

.modal-product-box {
    margin-top: auto;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.mp-image {
    width: 50px;
    height: 50px;
}

.mp-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mp-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.modal-gallery-strip {
    width: 100%;
    height: 100px;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 10px 0;
    z-index: 1002;
    overflow-x: auto;
    display: flex;
    justify-content: center;
}

.gallery-track {
    display: flex;
    gap: 10px;
    padding: 0 20px;
}

.gallery-thumb {
    width: 60px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    opacity: 0.6;
}

.gallery-thumb:hover {
    opacity: 1;
}

.gallery-thumb.active {
    border-color: #e93992;
    opacity: 1;
}

@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
        height: 70vh;
        width: 95%;
    }

    .modal-image-col {
        height: 50%;
    }

    .modal-info-col {
        height: 50%;
        padding: 20px;
    }

    .modal-nav {
        padding: 10px;
        font-size: 30px;
    }

    .nav-prev { left: 5px; }
    .nav-next { right: 5px; }

    .modal-gallery-strip {
        justify-content: flex-start;
    }
}