/* =================== Share Button Wrapper =================== */
.bgs-share-wrapper {
    position: absolute;
    top: 18px;
    right: 11px;
    z-index: 999;
}

.bgs-share-icon {
    cursor: pointer;
    background: linear-gradient(135deg, #6d1799, #6d1799);
    color: #fff;
    padding: 10px 10px;
    border-radius: 100%;
    font-size: 15px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.bgs-share-icon:hover {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* =================== Popup Overlay =================== */
 .bgs-popup-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    animation: fadeInOverlay 0.4s ease forwards;
} 

/* Popup overlay */
/* .bgs-popup-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
} */

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =================== Popup Container =================== */
/* .bgs-popup-content {
    background: #fff;
    padding: 30px 25px;
    max-width: 480px;
    margin: 10vh auto;
    border-radius: 15px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: popupScale 0.4s ease forwards;
} */
.bgs-popup-content {
    background: #fff;
    padding: 30px 25px;
    max-width: 450px;
    width: 90%;
    border-radius: 12px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* perfectly centers */
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: popupFade 0.3s ease-in-out;
}

@keyframes popupScale {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* =================== Close Button =================== */
.bgs-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 26px;
    cursor: pointer;
    color: #333;
    transition: color 0.3s;
}

.bgs-close:hover {
    color: #e74c3c;
}

/* =================== Social Icons Grid =================== */
.bgs-social-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.bgs-social-icons a {
    flex: 1 1 calc(30% - 15px);
    /* 5 icons per row */
    text-align: center;
    background: #f1f1f1;
    border-radius: 12px;
    padding: 15px;
    font-size: 24px;
    color: #555;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bgs-social-icons a i {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.bgs-social-icons a:hover {
    /* background: linear-gradient(135deg, #ff5858, #f09819); */
    /* background: linear-gradient(11deg, #8b0000, #6d262c); */
    background: linear-gradient(135deg, #6d1799, #6d1799);
    color: #fff;
    transform: translateY(-5px);
}

.bgs-social-icons a:hover i {
    transform: rotate(15deg) scale(1.2);
}

/* =================== Tooltip with Name =================== */
.bgs-social-icons a::after {
    content: attr(data-network);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
}

.bgs-social-icons a:hover::after {
    bottom: -40px;
    opacity: 1;
}

/* =================== Responsive =================== */
@media screen and (max-width: 768px) {
    .bgs-social-icons a {
        flex: 1 1 calc(33.33% - 12px);
        /* 3 icons per row */
        padding: 12px;
        font-size: 22px;
    }
}

@media screen and (max-width: 480px) {
    .bgs-social-icons a {
        flex: 1 1 calc(50% - 10px);
        /* 2 icons per row */
        font-size: 20px;
        padding: 10px;
    }
}

/* =================== Animations for icons =================== */
.bgs-social-icons a {
    animation: iconPop 0.4s ease forwards;
}

.bgs-social-icons a:nth-child(1) {
    animation-delay: 0.05s;
}

.bgs-social-icons a:nth-child(2) {
    animation-delay: 0.1s;
}

.bgs-social-icons a:nth-child(3) {
    animation-delay: 0.15s;
}

.bgs-social-icons a:nth-child(4) {
    animation-delay: 0.2s;
}

.bgs-social-icons a:nth-child(5) {
    animation-delay: 0.25s;
}

.bgs-social-icons a:nth-child(6) {
    animation-delay: 0.3s;
}

.bgs-social-icons a:nth-child(7) {
    animation-delay: 0.35s;
}

.bgs-social-icons a:nth-child(8) {
    animation-delay: 0.4s;
}

.bgs-social-icons a:nth-child(9) {
    animation-delay: 0.45s;
}

.bgs-social-icons a:nth-child(10) {
    animation-delay: 0.5s;
}

@keyframes iconPop {
    from {
        transform: translateY(20px) scale(0.7);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* =================== Extra Effects =================== */
/* .bgs-social-icons a:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(45deg);
    opacity: 0;
    transition: all 0.4s;
} */
.bgs-social-icons a:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(45deg);
    opacity: 0;
    transition: all 0.4s;
}

/* .bgs-social-icons a:hover:before {
    opacity: 1;
    top: -25%;
    left: -25%;
} */
.bgs-social-icons a:hover:before {
    opacity: 1;
    top: -25%;
    left: -125%;
}

/* =================== Popup Title =================== */
.bgs-popup-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

/* =================== Optional Description =================== */
.bgs-popup-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}
.woocommerce-js div.product div.images .woocommerce-product-gallery__trigger {
    position: absolute;
    top: 61px !important;
    right: 12px !important;
    font-size: 2em;
    z-index: 9;
    width: 36px;
    height: 36px;
    background: var(--ast-global-color-5);
    text-indent: -9999px;
    border-radius: 100%;
    box-sizing: content-box;
    backface-visibility: hidden;
    margin-top: -6px;
}