/**
 * Custom Styles for Buy Now & Select Options Buttons
 * Primary Color: #b0c836
 */

/* ========================================= */
/* BASE STYLES & WIDTH (Crucial for 100%) */
/* ========================================= */
/* Select the anchor tags specifically within the product grid item */
.woocommerce ul.products li.product .cbn-buy-now-btn,
.woocommerce ul.products li.product .cbn-select-options-btn {
    /* Set both buttons to 100% width and override theme width settings */
    width: 100% !important; 
    
    /* Ensure no margins or padding are squeezing the button */
    padding: 10px 15px !important;
    margin-top: 10px !important; /* Increase separation */
    margin-bottom: 0 !important;
    
    text-align: center !important; 
    box-sizing: border-box; 
    display: block !important; 
    
    font-size: 14px; 
    line-height: 1.5;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Also ensure the theme's wrapper for the button doesn't restrict width */
.woocommerce ul.products li.product .button {
    /* Reset theme's default settings if they are affecting width */
    width: 100% !important;
    display: block !important;
}


/* ========================================= */
/* 1. SIMPLE PRODUCT: BUY NOW Button Styling */
/* Black Text, Primary Background, 100% Width */
/* ========================================= */
.woocommerce ul.products li.product .cbn-buy-now-btn {
    background-color: #b0c836 !important; /* Primary Color */
    color: #ffffff !important; /* Black Text */
    border: 2px solid #b0c836 !important; 
    border-radius: 4px !important; /* Standard non-rounded border */
}

.woocommerce ul.products li.product .cbn-buy-now-btn:hover {
    background-color: #92a82c !important; /* Slightly darker primary color on hover */
    color: #ffffff !important; /* White text on hover for better visibility */
    border-color: #92a82c !important; 
    box-shadow: none !important;
}


/* ========================================= */
/* 2. VARIABLE PRODUCT: SELECT OPTIONS & BUY NOW Styling */
/* Primary Text, Transparent Background, Rounded Primary Border, 100% Width */
/* ========================================= */
.woocommerce ul.products li.product .cbn-select-options-btn {
    background-color: transparent !important; /* Transparent Background */
    color: #b0c836 !important; /* Primary Text Color */
    border: 2px solid #b0c836 !important; /* Primary Color Border */
    border-radius: 20px !important; /* Rounded Border */
}

.woocommerce ul.products li.product .cbn-select-options-btn:hover {
    background-color: #b0c836 !important; /* Fill with primary color on hover */
    color: #ffffff !important; /* White Text on hover */
    box-shadow: none !important;
}

/* Fix for the extra button wrapper found in some themes/plugins */
.product-actions-inner {
    width: 100% !important;
}