
/* === TWENTY NINETEEN - WOOCOMMERCE OVERRIDES - START === */

/* Remove Twenty Nineteen's blog-width constraint */
.woocommerce .content-area .site-main,
.woocommerce-page .content-area .site-main {
    max-width: 100% !important;
    width: 100% !important;
}

/* Clearfix - .g100 contains floated children (.g25 and .g75)
   without this the .g100 wrapper collapses to zero height */
.g100::after {
    content: "";
    display: table;
    clear: both;
}

/* === TWENTY NINETEEN - WOOCOMMERCE OVERRIDES - END === */




/*	--------------------------------------------------
	:: WooCommerce Styles
	-------------------------------------------------- */


.wc_payment_methods img {width: auto !important; height: auto;}

nav.woocommerce-breadcrumb {margin: 30px 0 !important; }

.woocommerce-info a, .woocommerce-error a {color: #fff !important; } 

.woocommerce-terms-and-conditions-wrapper {display: none;}

/* -------------------------------------------------------
   Shop loop — equalize product image heights (desktop)
   ------------------------------------------------------- */

@media (min-width: 993px) {

    ul.products li.product a img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;        /* square container, sized to the column width */
        object-fit: contain;        /* no cropping — full product always visible */
        object-position: center center;
    }

}


ul.products li.product .woocommerce-loop-product__title {
	line-height: 25px !important;
	display: block;
	min-height: 73px;
}

.woocommerce-page.product-template-default .entry {
	margin-top: 50px !important;
}

/* WooCommerce buttons - Twenty Nineteen theme */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #place_order,
.wp-block-woocommerce-product-filter-clear-button button,
.wc-block-product-filter-checkbox-list__show-more,
a.wc-block-cart__submit-button
{
	background: #0059bf !important;
	color: #fff !important;
}

/* Hover state */
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #place_order:hover,
.wp-block-woocommerce-product-filter-clear-button button:hover,
.wc-block-product-filter-checkbox-list__show-more:hover,
a.wc-block-cart__submit-button:hover
{
	background: #00397a !important; 
	color: #d1e3f7  !important;
}
.wc-block-product-filter-checkbox-list__show-more {padding: 5px 10px !important; } 

ul.products  {
	padding: 20px 0 !important;
}

a.remove {
	color: #fff;
	line-height: 17px !important;
	text-decoration: none !important;
}


/* === WOOCOMMERCE INPUT AND BUTTON RESET - END === */

button.dgwt-wcas-search-submit,
button.wc-block-product-filter-removable-chips__remove {
	background: transparent !important;
}


/* Revert my previous flex changes - let FiboSearch
   use its own absolute positioning system */
.dgwt-wcas-search-form {
    display: block !important;
    position: relative !important;
}

/* Input fills the full width with padding-right
   to leave room for the icon */
.dgwt-wcas-search-input {
    width: 100% !important;
    padding-right: 40px !important;
    order: unset !important;
    box-sizing: border-box !important;
}

/* Pin the icon to the right, vertically centered */
button.dgwt-wcas-search-submit {
    position: absolute !important;
    right: 8px !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    float: none !important;
    order: unset !important;
}

/* === FIBOSEARCH - ICON POSITION RIGHT - END === */


/* === FILTER FIXES (override Marie's aggressive button styles) === */

.min, .max {
	border: 1px solid !important;
	font-size: 14px !important;
	padding: 8px  !important;
	width: auto !important;
	max-width: 75px !important;
}



/* === WOOCOMMERCE PRODUCT TABS - START === */

/* Remove default WooCommerce tab styling */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none;
    display: flex;
    gap: 4px;
    border-bottom: 3px solid #0059bf !important;
}

/* Remove the default ::before squiggle line WooCommerce adds */
.woocommerce div.product .woocommerce-tabs ul.tabs::before {
    display: none !important;
    border: none !important;
}

/* Each tab */

.woocommerce-tabs.wc-tabs-wrapper h2 {
	display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: #0059bf !important;
    border: 1px solid #0059bf !important;
    border-bottom: none !important;
    border-radius: 6px 6px 0 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
    bottom: -1px;
}

/* Tab link */
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 10px 20px !important;
    font-size: 15px;
    font-weight: 600;
    color: #444 !important;
    text-decoration: none !important;
    text-transform: none;
    white-space: nowrap;
}

/* Tab hover */
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: #00397a !important;
    background: transparent;
}

/* Active tab */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: #00397a !important;
    border-color: #00397a !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #fff !important;
}

/* Tab content panel - border on 3 sides to match the tab line */
.woocommerce div.product .woocommerce-tabs .panel {
    border: 1px solid #00397a !important;
    border-top: none !important;
    padding: 20px !important;
    margin: 0 !important;
}

/* === WOOCOMMERCE PRODUCT TABS - END === */


/* WOO SIDEBAR WIDGETS STYLING */
.widget {
	background-color: #f0eded;
	margin: 0 0 24px;
	padding: 10px;
	border: none !important;
}

.facetwp-reset {
	background-color: #ccc !important;
	color: #000 !important; 
}
.facetwp-reset:hover {
	background-color: #00397a !important;
	color: #fff !important; 
}

.facetwp-facet input.facetwp-search {background-color: #fff !important;}
.facetwp-facet input.facetwp-search, .facetwp-facet input.facetwp-location {
	padding-right: 30px !important;
}


/* Breadcrumb + FiboSearch row */
.ezm-breadcrumb-search-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.ezm-breadcrumb-wrap {
    flex: 1 1 auto;
}

.ezm-fibosearch-wrap {
    flex: 0 0 auto;
    min-width: 220px;
    max-width: 340px;
    width: 100%;
}

/* Optional: keep the search input from overflowing */
.ezm-fibosearch-wrap .dgwt-wcas-search-wrapp {
    width: 100%;
}

/* Responsive: stack on small screens */
@media ( max-width: 600px ) {
    .ezm-breadcrumb-search-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .ezm-fibosearch-wrap {
        min-width: 100%;
        max-width: 100%;
    }
}
