/* ----------------------------------
   Add to Cart Button
   ---------------------------------- */
   .wc-block-components-product-stock-indicator.outofstock {
    color: #e74c3c !important;  /* 紅色，推薦這個色碼，很醒目 */
    font-weight: bold;          /* 加粗更清楚 */
}
.add-to-cart,
.single_add_to_cart_button {
    white-space: nowrap;
    background: linear-gradient(-45deg, #000000, #30201a, #cd3a00, rgb(255, 183, 0), #30201a, #000000);
    background-size: 600%;
    -webkit-animation: animeshine 2s linear infinite;
    animation: animeshine 2s linear infinite;
    transition: box-shadow 0.3s ease-in-out;
    box-shadow: 4px 4px 10px -2px var(--wp--preset--color--custom-gold);
    -webkit-box-shadow: 4px 4px 10px -2px var(--wp--preset--color--custom-gold);
    -moz-box-shadow: 4px 4px 10px -2px var(--wp--preset--color--custom-gold);
    border-bottom-left-radius:4px;
    border-bottom-right-radius:4px;
    border-top-left-radius:4px;
    border-top-right-radius:4px;
    margin-bottom: 0.25em !important; 
}
.wp-block-woocommerce-add-to-cart-with-options-quantity-selector{
    margin-bottom: 0.25em !important; 
    margin-right: 0.25em !important;
}

.add-to-cart:hover,
.single_add_to_cart_button:hover {
    scale: 1.01;
    box-shadow: 8px 8px 20px -4px var(--wp--preset--color--custom-gold);
    -webkit-box-shadow: 8px 8px 20px -4px var(--wp--preset--color--custom-gold);
    -moz-box-shadow: 8px 8px 20px -4px var(--wp--preset--color--custom-gold);
}

.single_add_to_cart_button.disabled {
    opacity: 0.2 !important;
    background-color: black !important;
    -webkit-animation: none !important;
    animation: none !important;
    background-image: none !important;
}

.single_add_to_cart_button.loading {
    opacity: 0.5;
    cursor: not-allowed;
}

.single_add_to_cart_button.loading:after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #000;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

a.added_to_cart {
    display: none !important;
}

.wc-block-components-sale-badge{
    color: white !important;
    background-color: #e74c3c !important;
}

.wp-block-woocommerce-mini-cart-checkout-button-block, .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
    background-color: #5c8d5c !important;
    color: white !important;
}
.wp-block-woocommerce-mini-cart-checkout-button-block:hover, .wc-block-cart__submit-button:hover, .wc-block-components-checkout-place-order-button:hover {
    background-color: #308930  !important;
    color: white !important;
}
.wp-block-woocommerce-mini-cart-cart-button-block:hover {   
    background-color: #181818 !important;
    color: white !important;
}

/* ----------------------------------
   Action Buttons
   ---------------------------------- */
.btn-action {
    position: relative;
}
.btn-action > a{
    transition: transform 0.2s;
    position: relative;
    display: block;
    padding: 0.5em 1em;
    font-size: 1.2em;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    background-size: 600%;
    -webkit-animation: animeaction 5s linear infinite;
    animation: animeaction 5s linear infinite;
}

.btn-action-a > a {
    background: linear-gradient(-45deg, #ffa63d, #ff3d3d, #000000, #000000);
}
.btn-action-b > a {
    background: linear-gradient(-45deg, #ff3d3d, #be3dff, #000000, #000000);
}

.btn-action > a:hover {
    transform: scale(1.01);
}

/* Button Shadow Effect */
.btn-action::before {
    content: '';
    background: linear-gradient(-45deg, #ffa63d, #ff3d77, #338aff, #3cf0c5);
    background-size: 600%;
    border-radius: 99999px;
    filter: blur(15px);
    transition: transform 0.2s;
    -webkit-animation: animeaction 2s linear infinite;
    animation: animeaction 7s linear infinite;
    animation-delay: 0.1s;
}

/* ----------------------------------
   AR Button
   ---------------------------------- */
.button-ar,
.button-blur {
    transition: transform 0.2s;
    position: relative;
    display: block;
    z-index: 2;
    width: 140px;
    padding: 0.5em 1em;
    font-size: 16pt;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    background: linear-gradient(-45deg, #ffa63d, #ff3d77, #338aff, #3cf0c5);
    background-size: 600%;
    -webkit-animation: anime 16s linear infinite;
    animation: anime 16s linear infinite;
}

.button-ar:hover {
    transform: scale(1.1);
}

.button-blur {
    position: absolute;
    margin-top: -1.5em;
    filter: blur(12px);
    opacity: 0.8;
    height: 1em;
    z-index: 0;
}


/* ----------------------------------
   Floating Chat Button
   ---------------------------------- */
.floating-chat-button-container {
    position: fixed;
    bottom: 42px;
    right: 8px;
    z-index: 9999;
}

.floating-chat-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: #00aa16;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease-in-out;
    animation: pulse 2s infinite ease-in-out;
}

.floating-chat-button i.bi {
    font-size: 32px;
}

.floating-chat-button:hover {
    background-color: #2fb8f2;
    transform: scale(1.05);
    animation: none;
}







/* ----------------------------------
   Product Category
   ---------------------------------- */
.taxonomy-product_cat a {
    color: white;
    background-color: #000;
    padding: 0.25em 1em;
    border-radius: 0;
    margin-bottom: 2px;
    display: inline-block;
    text-decoration: none;
}




/* ----------------------------------
   Product Showcase Image
   ---------------------------------- */
.wp-block-woocommerce-product-template .mixocreative-showcase-image {
    transition: transform 0.2s, filter 0.5s ease-in-out;
}

.wp-block-woocommerce-product-template .mixocreative-showcase-image:hover {
    transform: scale(1.1);
}








/* ==========================================================================
   12. ANIMATIONS
   ========================================================================== */

/* Spin Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Shine Animation (Add to Cart) */
@-webkit-keyframes animeshine {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes animeshine {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}


/* AR Button Animation */
@-webkit-keyframes anime {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes anime {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* Action Button Animation */
@-webkit-keyframes animeaction {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes animeaction {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* Pulse Animation (Chat Button) */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.1);
        background-color: #35c135;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
}





/* ----------------------------------
   Chat Button - Tablet & Mobile
   ---------------------------------- */
@media (max-width: 768px) {
    .floating-chat-button-container {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-chat-button {
        width: 60px;
        height: 60px;
    }
    
    .floating-chat-button i.bi {
        font-size: 28px;
    }
}