/*
Theme Name: Khushboo Jewels
Theme URI: 
Author: Your Name
Author URI: 
Description: Custom WordPress Theme with WooCommerce support for Khushboo Jewels.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: khushboojewels
Tags: custom-background, custom-colors, custom-header, custom-menu, e-commerce, featured-images, threaded-comments, translation-ready
*/


.add_to_cart_button,
.is-not-purchable {
    background-color: #3B0A0A !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.added::after {
    display: none !important;
}

.added_to_cart.wc-forward {
    display: none !important;
}

/* AJAX Add to Cart Loader Spinner */
.add_to_cart_button.loading,
.single_add_to_cart_button.loading {
    color: transparent !important;
    position: relative !important;
    pointer-events: none;
}

.add_to_cart_button.loading,
.single_add_to_cart_button.loading {
    opacity: 1 !important;
}

.add_to_cart_button.loading::after,
.single_add_to_cart_button.loading::after {
    content: "";
    position: absolute;
    top: 50% !important;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: khushboo-spin 0.8s infinite linear;
}

@keyframes khushboo-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Custom WooCommerce Product Gallery Styling */
.woocommerce-product-gallery .flex-viewport {
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
}

.woocommerce-product-gallery figure.woocommerce-product-gallery__wrapper {
    margin: 0;
}

.woocommerce-product-gallery .woocommerce-product-gallery__image img {
    border-radius: 16px;
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Thumbnails */
.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
}

.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs li {
    width: calc(33.333% - 10px);
    margin: 0 !important;
    /* Override WooCommerce default float/margins */
    float: none !important;
}

.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs li img {
    border-radius: 12px;
    display: block;
    width: 100%;
    height: auto;
    opacity: 0.6;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs li img.flex-active,
.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs li img:hover {
    opacity: 1;
    border-color: #3B0A0A;
}

/* Style the gallery zoom trigger */
.woocommerce-product-gallery__trigger {
    z-index: 99 !important;
    background: #fff;
    border-radius: 50% !important;
    color: #3B0A0A;
}