.modal-overlay-carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay-carousel.active {
    display: flex !important;
    opacity: 1;
}

.modal-container {
    background: white;
    width: 900px;
    max-width: 95%;
    height: 500px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin: 0;
    display: flex;
    flex-direction: column;
}

.modal-content {
    display: flex;
    width: 100%;
    height: 100%;
}

.modal-image-wrapper {
    flex: 1.2;
    background: #f0f0f0;
    height: 100%;
    position: relative;
}

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

.modal-info {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
    box-sizing: border-box;
}

.close-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    background: rgba(0,0,0,0.1);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.modal-author-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.modal-author-name {
    font-weight: bold;
    font-size: 16px;
    color: #000;
}

.verified-icon {
    width: 16px;
    height: 16px;
}

.verified-text {
    font-size: 12px;
    color: #888;
}

.modal-stars {
    color: #c59b6c;
    font-size: 18px;
    margin-bottom: 20px;
}

.modal-review-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 0;
    margin-bottom: auto;
}

.modal-product-link {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.mini-product-thumb {
    width: 50px;
    height: 50px;
    background: #ddd;
    border-radius: 4px;
    flex-shrink: 0;
}

.product-details {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    gap: 5px;
}

.view-product-btn {
    display: inline-block;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    background: transparent;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-product-btn:hover {
    background: #f0f0f0;
    border-color: #bbb;
    color: black;
}

@media (max-width: 768px) {
    .modal-container {
        height: 90vh;
        flex-direction: column;
    }

    .modal-content {
        flex-direction: column;
        overflow-y: auto;
    }

    .modal-image-wrapper {
        flex: none;
        height: 40%;
        min-height: 250px;
    }

    .modal-info {
        flex: none;
        padding: 25px;
    }
}