/**
 * WPPrime Quick View - Frontend Styles
 *
 * @package WPPrime Quick View
 * @version 1.0.0
 */

/* ====================== QUICK VIEW BUTTON ====================== */
.wpprime-qv-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.wpprime-qv-button:hover {
    background: #135e96;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.wpprime-qv-button .icon {
    font-size: 16px;
    line-height: 1;
}

/* ====================== MODAL OVERLAY ====================== */
.wpprime-qv-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpprime-qv-modal.open {
    opacity: 1;
    visibility: visible;
}

/* ====================== MODAL CONTENT ====================== */
.wpprime-qv-modal-content {
    background: #fff;
    width: 100%;
    max-width: 1100px;
    max-height: 92vh;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.wpprime-qv-modal.open .wpprime-qv-modal-content {
    opacity: 1;
    transform: scale(1);
}

/* Close Button */
.wpprime-qv-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.wpprime-qv-close:hover {
    background: #e11d48;
    transform: rotate(90deg);
}

/* ====================== PRODUCT CONTENT ====================== */
.wpprime-qv-product {
    display: flex;
    flex-wrap: wrap;
    height: 100%;
}

.wpprime-qv-images {
    flex: 1 1 50%;
    min-width: 300px;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.wpprime-qv-images img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.wpprime-qv-modal:hover .wpprime-qv-images img {
    transform: scale(1.05);
}

.wpprime-qv-summary {
    flex: 1 1 50%;
    min-width: 300px;
    padding: 35px 40px;
    overflow-y: auto;
    max-height: 92vh;
}

/* Summary Elements */
.wpprime-qv-summary .product_title {
    font-size: 26px;
    margin: 0 0 12px 0;
    color: #1d2327;
}

.wpprime-qv-summary .price {
    font-size: 24px;
    margin: 10px 0 18px 0;
    color: #2271b1;
}

.wpprime-qv-summary .star-rating {
    margin-bottom: 15px;
}

/* Add to Cart */
.wpprime-qv-summary .cart {
    margin: 25px 0;
}

.wpprime-qv-summary .single_add_to_cart_button {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 8px;
    width: 100%;
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 1024px) {
    .wpprime-qv-product {
        flex-direction: column;
    }
    
    .wpprime-qv-images,
    .wpprime-qv-summary {
        flex: 1 1 100%;
    }
    
    .wpprime-qv-modal-content {
        max-width: 95%;
        margin: 20px;
    }
}

@media (max-width: 640px) {
    .wpprime-qv-summary {
        padding: 25px 20px;
    }
    
    .wpprime-qv-summary .product_title {
        font-size: 22px;
    }
}

/* Loading Animation */
.wpprime-qv-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}
/* Magnific Popup Custom Style */
.wpprime-qv-popup .mfp-content {
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

.wpprime-qv-popup .mfp-close {
    top: 20px;
    right: 20px;
}