/*
Theme Name:   	Sinatra Child Theme
Theme URI:    	https://github.com/stuartduff/storefront-child-theme
Author:       	Stuart Duff
Author URI:     http://stuartduff.com
Template:     	sinatra
Description:  	This is a blank child theme for WooThemes StoreFront theme
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:  	sinatra
Tags:         	black, white, light, two-columns, left-sidebar, right-sidebar, responsive-layout, custom-background, custom-colors, custom-header, custom-menu, featured-images, full-width-template, threaded-comments, accessibility-ready
This theme, like WordPress, is licensed under the GPL. 
FontAwesome License: SIL Open Font License - http://scripts.sil.org/OFL
Images License: GNU General Public License v2 or later
*/


/*
 * AKHerb StyleSheet.
 */
 

.si-search-visible .si-search-simple {
    width: 400px ;
}
 
.si-header-widgets .si-search-simple .si-search-form input {
    font-size: 48px;
}

.woocommerce ul.products li.product a img {
    margin: 0;
    background-color: #fafafa;
}

#woocommerce_widget_cart-1{
    border:  1px solid #fafafa;
    padding: 10px;
}

/* Custom Product Buttons - Always Visible Add to Cart and Buy Now */
.akherb-product-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.akherb-product-buttons a.button {
    flex: 1 1 45%;
    min-width: 120px;
    margin: 0;
    padding: 10px 15px;
    text-align: center;
    font-size: 14px;
    line-height: 1.4;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.akherb-product-buttons a.akherb-add-to-cart {
    background-color: #2c3e50;
    color: #ffffff;
    border: 2px solid #2c3e50;
}

.akherb-product-buttons a.akherb-add-to-cart:hover {
    background-color: #34495e;
    border-color: #34495e;
}

.akherb-product-buttons a.akherb-buy-now {
    background-color: #27ae60;
    color: #ffffff;
    border: 2px solid #27ae60;
}

.akherb-product-buttons a.akherb-buy-now:hover {
    background-color: #2ecc71;
    border-color: #2ecc71;
}

/* Loading state for buttons */
.akherb-product-buttons a.button.loading {
    opacity: 0.6;
    cursor: wait;
}

.akherb-product-buttons a.button.loading::after {
    content: "...";
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .akherb-product-buttons {
        gap: 6px;
    }

    .akherb-product-buttons a.button {
        flex: 1 1 100%;
        min-width: 100%;
        padding: 12px 15px;
        font-size: 15px;
    }
}

/* Ensure buttons show on product grid items */
.woocommerce ul.products li.product .akherb-product-buttons {
    opacity: 1;
    visibility: visible;
    position: relative;
    transform: none;
}

/* Disable default WooCommerce/Theme hover effects on product items */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product button.button,
.woocommerce ul.products li.product .product-inner .button,
.woocommerce ul.products li.product .product-info .button {
    display: none !important;
}

/* Only show our custom buttons */
.woocommerce ul.products li.product .akherb-product-buttons a.button {
    display: inline-block !important;
}

/* Remove any hover transforms or overlays from parent theme */
.woocommerce ul.products li.product:hover .button:not(.akherb-add-to-cart):not(.akherb-buy-now),
.woocommerce ul.products li.product .product-inner:hover .button:not(.akherb-add-to-cart):not(.akherb-buy-now),
.woocommerce ul.products li.product:hover .product-info .button:not(.akherb-add-to-cart):not(.akherb-buy-now) {
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
}

/* Disable any product overlay effects */
.woocommerce ul.products li.product .product-overlay,
.woocommerce ul.products li.product .product-inner-overlay {
    display: none !important;
}

/* Single Product Page Buy Now Button - Match Add to Cart styling */
.single-product-buy-now {
    margin-left: 15px !important;
    background-color: #27ae60;
    color: #ffffff;
    border-color: #27ae60;
}

.single-product-buy-now:hover {
    background-color: #2ecc71;
    border-color: #2ecc71;
    color: #ffffff;
}

.single-product-buy-now.loading {
    opacity: 0.6;
    cursor: wait;
}

.wc-block-components-radio-control__input {
    float: left;
    margin: 10px 20px 0 0;
}

.wc-block-components-radio-control__label-group{
    width: 50%;
}


/* Mobile adjustments for Buy Now button */
@media (max-width: 768px) {
    .single-product-buy-now {
        margin-left: 5px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Match Add to Cart button padding on mobile */
    .single_add_to_cart_button {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}