/*
Theme Name: AWI
Theme URI: http://staging.awpserver.com/z_wordpress_boilerplate/
Author: Adventure Web Interactive
Author URI: http://www.advp.com/
Description: Adventure Web Interactive custom boilerplate WordPress theme
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, left-sidebar, right-sidebar, custom-menu, editor-style, full-width-template, blog
Text Domain: awi
*/

/* =WordPress Core (Custom)
-------------------------------------------------------------- */
.alignnone { display: inline-block; margin: 5px 20px 20px 0; vertical-align: middle; }
.aligncenter, div.aligncenter { display: block; margin: 5px auto 20px auto; }
.alignright { display: inline-block; float: right; margin: 5px 0 20px 20px; }
.alignleft { display: inline-block; float: left; margin: 5px 20px 20px 0; }
.aligncenter { display: block; margin: 5px auto 20px auto; }
img[style*='float']:first-child + h1, img[style*='float']:first-child + h2, img[style*='float']:first-child + h3, img[style*='float']:first-child + h4, img.alignleft:first-child + h1, img.alignleft:first-child + h2, img.alignleft:first-child + h3, img.alignleft:first-child + h4, img.alignright:first-child + h1, img.alignright:first-child + h2, img.alignright:first-child + h3, img.alignright:first-child + h4 { margin-top: 0; }
a img.alignright { float: right; margin: 5px 0 20px 20px; }
a img.alignnone { margin: 5px 20px 20px 0; }
a img.alignleft { float: left; margin: 5px 20px 20px 0; }
a img.aligncenter { display: block; margin: 5px auto 20px auto; }
.wp-caption { background: #fff; border: 1px solid #ccc; max-width: 100%; padding: 5px 5px 10px; text-align: center; }
.wp-caption.alignnone { margin: 5px 20px 20px 0; }
.wp-caption.alignleft { margin: 5px 20px 20px 0; }
.wp-caption.alignright { margin: 5px 0 20px 20px; }
.wp-caption img { border: 0 none; height: auto; margin: 0; max-width: 100%; padding: 0; width: auto; }
.wp-caption p.wp-caption-text, .wp-caption dd.wp-caption-text.gallery-caption  { font-size: 11px; line-height: 1.2; margin: 0; padding: 5px 0 0; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }
.screen-reader-text:focus { background-color: #f1f1f1; border-radius: 3px; box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); clip: auto !important; color: #21759b; display: block; font-size: 14px; font-size: 0.875rem; font-weight: bold; height: auto; left: 5px; line-height: normal; padding: 15px 23px 14px; text-decoration: none; top: 5px; width: auto; z-index: 100000; }
.navigation { margin: 0 0 20px; display: block; }
.navigation .alignleft, .navigation .alignright { width: 50%; margin: 0; display: block; }
.navigation .alignright { text-align: right; }
.pagination { margin: 0 0 20px; text-align: center; }
.page-numbers { padding: 0 1px; }
.wp-posts-list, .wp-search-list { margin: 0; padding: 0; list-style: none; }
.wp-posts-list > li:nth-child(n+2), .wp-search-list > li:nth-child(n+2) { margin-top: 30px; }
.sticky, .bypostauthor { padding: 20px; background: #f1f1f1; }
.postmetadata-list { margin: 0 0 10px; padding: 0; font-size: 0; list-style: none; }
.postmetadata-list > li { padding-right: 6px; font-size: .75rem; line-height: 1.2; display: inline-block; }
.postmetadata-list > li:nth-child(n+2) { padding-left: 6px; border-left-width: 1px; border-left-style: solid; }
.postmetadata-list > li:last-child { margin-top: 4px; padding: 0; display: block; border: none; }
#searchform input:nth-child(n+2) { margin-top: 10px; }
p#checkout_checkbox_field {
    margin: 14px 0px 12px 0px;
}
@media only screen and (max-width: 767px) { img.alignnone, img.aligncenter, img.alignright, img.alignleft, a > img.alignnone, a > img.aligncenter, a > img.alignright, a > img.alignleft, .wp-caption, .wp-caption.alignnone, .wp-caption.alignleft, .wp-caption.alignright { display: block; margin: 0 auto 20px; float: none; } }
@media only screen and (max-width: 567px) { .postmetadata-list > li, .postmetadata-list > li:nth-child(n+2) { margin-top: 2px; padding: 0; display: block; border: none; } .search-results-url { display: none; } }

.yith_ywraq_add_item_browse_message a {
    color: #2d5c1e;
    font-weight: bold;
}

.product-column-action .yith-ywraq-add-to-quote a.add-request-quote-button, .product-column-action .yith-ywraq-add-to-quote a.add-request-quote-button:hover {
    color: #2d5c1e !important;
    background: transparent !important;
    text-transform: uppercase;
}
.article--woocommerce.shop-category-section{
	margin-top:20px;
}

.article--woocommerce .shop-category-list{
	margin-top:20px;
}
.post-type-archive-product .page-description {
    margin-bottom: 20px;
}

/* --- CRITICAL: Fix for Overlap and Layout Alignment --- */
/* Target the form with high specificity and ensure Flexbox is dominant */
.product-column-add-cart form.cart {
    display: flex !important; /* Force Flexbox, as theme may be overriding */
    align-items: center !important; /* Vertically centers the items */
    gap: 10px !important; /* Increased space for visibility, adjust as needed */
    width: auto; /* Ensure the container is full width if needed */
    box-sizing: border-box;
}

/* Ensure the quantity input does not shrink or grow to cause overlap */
.product-column-add-cart form.cart .quantity {
    /* Prevents the quantity input from shrinking (flex-shrink: 0) */
    /* and sets it to a fixed size (flex: 0 0 60px) */
    flex: 0 0 60px !important; 
    margin: 0 !important; /* Remove any external margins */
    width: 60px !important; /* Explicit width */
}

.product-column-add-cart form.cart .quantity .qty {
    /* Ensure the inner input element also conforms */
    width: 100% !important; 
    height: 58px !important; 
    line-height: 38px !important;
    padding: 0 10px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    box-sizing: border-box; /* Crucial for padding/border not adding to total width */
    margin-right: 5px;
}


/* --- Button Styling (Kept mostly as yours, but adjusted for Flex) --- */
.product-column-add-cart form.cart .button,
.product-column-add-cart form.cart .button.yith-ywraq-add-to-quote {
    /* Ensure the button uses its defined content width */
    flex-grow: 1; /* Allow the button to take up remaining space if desired */
    /*min-width: 120px;*/ /* Or use min-width if you want it to be smaller */
    
    /* Copy the key visual styles from the YITH button */
    width: 95px !important;
    background-color: #2d5c1e !important;
    color: #fff !important;
    border: 1px solid #2d5c1e !important;
    border-radius: 4px !important;
    padding: 10px 10px !important; 
    text-transform: uppercase !important; 
    font-size: 14px !important;
    font-weight: bold !important;
    height: 58px !important; /* Match quantity height */
    line-height: 18px !important; /* Adjust based on padding/height to center text */
}
 

.product-column-add-cart form.cart .button:hover,
.product-column-add-cart form.cart .button.yith-ywraq-add-to-quote:hover {
    background-color: #132e0a !important; 
    border-color: #132e0a !important;
}




