/* Magnific Popup Close Button Styling */
.mfp-close,
.custom_close {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 44px !important;
    height: 44px !important;
    line-height: 44px !important;
    text-align: center !important;
    font-size: 28px !important;
    font-weight: 300 !important;
    color: #333 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    z-index: 1046 !important;
    opacity: 0.65 !important;
    padding: 0 !important;
    margin: 0 !important;
    text-decoration: none !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

    .mfp-close:hover,
    .custom_close:hover {
        opacity: 1 !important;
        color: #000 !important;
    }

    .mfp-close:active,
    .custom_close:active {
        top: 1px !important;
    }

/* Ensure close button works on image popups */
.product-box[id^="image-popup"] .mfp-close,
.product-box[id^="image-popup"] .custom_close {
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    top: 10px !important;
    right: 10px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}
