/* Terms Popup Styling */
#terms-popup {
    background: #fff !important;
    max-width: 800px !important;
    margin: 40px auto !important;
    position: relative !important;
}

    #terms-popup .terms-content {
        padding: 40px 50px !important;
        max-height: 70vh !important; /* 70% of viewport height */
        overflow-y: scroll !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #terms-popup h2 {
        margin-top: 0 !important;
        margin-bottom: 10px !important;
    }

    #terms-popup h4 {
        color: #666 !important;
        margin-bottom: 30px !important;
    }

    #terms-popup .lead {
        font-size: 18px !important;
        font-weight: 500 !important;
        margin-bottom: 20px !important;
    }

    #terms-popup p {
        margin-bottom: 15px !important;
        line-height: 1.6 !important;
    }

    /* Scrollbar styling */
    #terms-popup .terms-content::-webkit-scrollbar {
        width: 8px;
    }

    #terms-popup .terms-content::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    #terms-popup .terms-content::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }

        #terms-popup .terms-content::-webkit-scrollbar-thumb:hover {
            background: #555;
        }


/* Privacy Popup Styling (same as terms) */
#privacy-popup {
    background: #fff !important;
    max-width: 800px !important;
    margin: 40px auto !important;
    position: relative !important;
}

    #privacy-popup .privacy-content {
        padding: 40px 50px !important;
        max-height: 70vh !important;
        overflow-y: scroll !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #privacy-popup h2 {
        margin-top: 0 !important;
        margin-bottom: 10px !important;
    }

    #privacy-popup h4 {
        color: #666 !important;
        margin-bottom: 30px !important;
    }

    #privacy-popup p {
        margin-bottom: 15px !important;
        line-height: 1.6 !important;
    }

    /* Scrollbar styling */
    #privacy-popup .privacy-content::-webkit-scrollbar {
        width: 8px;
    }

    #privacy-popup .privacy-content::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    #privacy-popup .privacy-content::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }

        #privacy-popup .privacy-content::-webkit-scrollbar-thumb:hover {
            background: #555;
        }



/* Product Image Gallery - Add Clickable titles */
.our-collection .title-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

    .our-collection .title-link:hover {
        color: #0084ff;
    }

.our-collection .featured-img a {
    cursor: pointer;
    display: block;
}

.our-collection .featured-img img {
    transition: transform 0.3s ease;
}

.our-collection .featured-img a:hover img {
    transform: scale(1.05);
}


/* Image Popup Styling - NEED this for popup sizing, etc*/
.product-box[id^="image-popup"] {
    background: #fff !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    margin: 20px auto !important;
    position: relative !important;
    padding: 20px !important;
}

.image-popup-content {
    text-align: center !important;
    max-width: 100% !important;
    max-height: 85vh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

    .image-popup-content .popup-image {
        max-width: 100% !important;
        max-height: 75vh !important;
        height: auto !important;
        width: auto !important;
        object-fit: contain !important;
        display: block !important;
    }

    .image-popup-content .image-title {
        margin-top: 15px !important;
        color: #333 !important;
        font-size: 18px !important;
        font-weight: 500 !important;
    }



/* Magnific Popup Close Button Styling for image popups -  */
.product-box .mfp-close,
.product-box .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: 300 30px/1 "Poppins", sans-serif !important;
    text-transform: uppercase !important;
    color: #333 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    z-index: 9999 !important;
    opacity: 0.4 !important;
    padding: 0 !important;
    margin: 0 !important;
    text-decoration: none !important;
    transition: all 300ms linear 0s !important;
}

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

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

/* Remove any conflicting styles from image popups */
.product-box[id^="image-popup"] .mfp-close,
.product-box[id^="image-popup"] .custom_close {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}