/* =========================
   購物車 / 簽到 ICON
========================= */

.stats-col .circle {
    display: inline-block;
    width: 100px;
    height: 100px;
    position: relative;
    top: 10px;
    font-family: "Raleway", Helvetica, Arial, sans-serif;
    font-weight: 500;
    color: #7C7C7C;
    border-radius: 5%;
    padding: 0;
}

    .stats-col .circle .nav-link {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }

    /* 購物車數字 */
    .stats-col .circle .stats-no {
        position: absolute;
        top: 5px;
        right: 40px;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        background-color: #e04f00;
        font-family: "Raleway", Helvetica, Arial, sans-serif;
        font-size: 14px;
        font-weight: 700;
        border-radius: 50%;
        z-index: 10;
    }

    /* icon大小 */
    .stats-col .circle i {
        font-size: 42px;
    }

/* 避免購物車被推歪 */
.bi-cart4 {
    margin-right: 0 !important;
}



/* =========================
   浮動廣告
========================= */

.ad-pulse-right-bottom {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 150px;
    height: 150px;
    z-index: 9999;
    overflow: visible;
    animation: pulseAnimation 2s infinite ease-in-out;
}


.ad-close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background-color: #222;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    z-index: 10;
    transition: background 0.2s;
}

    .ad-close-btn:hover {
        background-color: #ff3333;
    }


.ad-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

    .ad-image-link img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }


@keyframes pulseAnimation {
    0% {
        transform: scale(1);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    }

    50% {
        transform: scale(1.05); /* 放大 5% */
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25); /* 放大時陰影加深 */
    }

    100% {
        transform: scale(1);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    }
}

/* 關閉按鈕 X */
.ad-close-btn {
    position: absolute;
    top: -10px;
    right: -10px;

    width: 24px;
    height: 24px;

    padding: 0;
    margin: 0;

    background-color: #222;
    color: #fff;

    border: 2px solid #fff;
    border-radius: 50%;

    cursor: pointer;

    /* X 水平垂直置中 */
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    line-height: 1;
    font-family: Arial, sans-serif;

    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    z-index: 10;

    transition: background 0.2s;
}

.ad-close-btn:hover {
    background-color: #ff3333;
}


/* =========================
   隱藏動畫
========================= */

.ad-hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}


/* =========================
   手機版
========================= */

@media (max-width: 768px) {

    .floating-ad {
        width: 260px;
        right: 10px;
        bottom: 10px;
    }

    .ad-image {
        height: 140px;
    }

    .close-btn {
        width: 22px;
        height: 22px;
    }

        .close-btn span {
            font-size: 16px;
        }

    .stats-col .circle {
        width: 70px;
        height: 70px;
    }

        .stats-col .circle i {
            font-size: 32px;
        }

        .stats-col .circle .stats-no {
            width: 24px;
            height: 24px;
            font-size: 12px;
            right: 20px;
        }
}
