/* Customer Review Section */
.customer_review_section {
    padding: 60px 0;
}

.review_title {
    text-align: center;
    margin-bottom: 50px;
}

.review_title h1 {
    font-size: 48px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

/* Grid Layout - 3 columns */
.review_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.review_item {
    overflow: hidden;
    display: flex;
    margin-bottom: 40px;
}

.review_item_wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    flex-grow: 1;
    position: relative;
    overflow: hidden;
}

/* Left Column */
.review_left_column {
    position: relative;
    height: 100%;
}

/* Avatar Wrapper */
.avatar_hover_wrapper {
    position: relative;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.review_user_avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

/* Overlay - Hidden by default, shown on avatar hover */
.review_overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: #00000033;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.avatar_hover_wrapper:hover .review_overlay {
    opacity: 1;
    visibility: visible;
}
.review_view_btn,
.product_more_btn {
    padding: 7px 25px;
    background-color: #A1A1A1;
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-family: var(--font-poppins);
}
.review_view_btn:hover,
.product_more_btn:hover {
    background-color: #333;
    color: #fff;
}

/* Right Column - Image */
.review_right_column {
    overflow: visible;
    position: relative;
}

/* Image Section */
.review_image_wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    overflow: hidden;
}

.review_product_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Product Hover Wrapper */
.product_hover_wrapper {
    position: relative;
    cursor: pointer;
    transition: all 0.5s ease;
}

/* Product Overlay */
.product_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFFFFFCC;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
}

.review_right_column:hover .product_overlay {
    opacity: 1;
    visibility: visible;
}

/* Expand effect when hover */
.review_right_column:hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.review_item .review_right_column {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Footer Section - User & Meta */
.review_footer {
    padding: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

/* Empty State */
.no_reviews {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #999;
}
.banner_cart {
    padding: 50px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .review_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .review_item_wrapper {
        min-height: 400px;
    }

    .review_left_column {
        padding: 25px 20px;
    }
}

@media (max-width: 768px) {
    .customer_review_section {
        padding: 40px 0;
    }

    .review_title h1 {
        font-size: 36px;
        letter-spacing: 1px;
    }

    .review_grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .review_item_wrapper {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .review_left_column {
        padding: 20px 15px;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .review_right_column {
        min-height: 250px;
    }

    .review_product_name {
        font-size: 12px;
    }

    .review_text {
        font-size: 12px;
    }

    .review_social {
        padding: 12px 15px;
        gap: 10px;
    }

    .social_icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .review_title h1 {
        font-size: 28px;
        letter-spacing: 0.5px;
    }

    .review_item {
        border-radius: 6px;
    }

    .review_item_wrapper {
        min-height: auto;
    }

    .review_left_column {
        padding: 15px 12px;
    }

    .review_right_column {
        min-height: 200px;
    }

    .review_product_name {
        font-size: 11px;
    }

    .review_text {
        font-size: 11px;
    }

    .review_see_more {
        font-size: 10px;
    }

    .review_social {
        padding: 10px 12px;
        gap: 8px;
    }

    .social_icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* Modal Styles */
.review_modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #0000008F;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.review_modal_content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
    }
    to {
        transform: scale(1);
    }
}

.review_modal_content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
 
}

#modalCaption {
    color: #fff;
    text-align: center;
    padding: 15px 20px;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.1);
}

.review_modal_close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    line-height: 1;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;

}


@media (max-width: 768px) {
    .review_modal_content {
        max-width: 95%;
    }

    .review_modal_content img {
        max-height: 70vh;
    }

    .review_modal_close {
        top: 10px;
        right: 15px;
        font-size: 40px;
        width: 40px;
        height: 40px;
    }

    #modalCaption {
        font-size: 16px;
        padding: 12px 15px;
        margin-top: 15px;
    }
}
