/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */

/*
.header-top-block #search_widget {
	display: none;
}
*/

#header #_desktop_logo .logo {
    max-height: 75px;
    width: 100%;
}

#header #_mobile_logo .logo {
    max-height: 43px;
    margin-top: 6px;
}

/* Header Video */
#header_custom {
    overflow: hidden;
    width: 100%;
    position: relative;
    min-height: 400px;
}

#header_custom video {
    z-index: 0;
    position: absolute;
    width: 100vw;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 767px) {
    #header_custom video {
        width: 250vw;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
}

/*
#header_custom .pattern {
    z-index: 1;
    background: url(../img/pattern.png) repeat;
    width: 100%;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
*/

#header_custom .layer {
    z-index: 1;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #000;
    opacity: .5;
}

#header_custom .text {
    text-align: center;
    margin-top: 80px;
    margin-bottom: 80px;
    z-index: 2;
    position: relative;
    color: #fff;
}

#header_custom #search_widget {
    width: 50vw;
    position: absolute; /* Mudamos para absolute */
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 100px; /* Removemos as margens */
}
@media (max-width: 767px) {
    #header_custom #search_widget {
        width: 90vw;
        margin-top: 150px;
    }
}

#header_custom form input[type=text] {
    padding: 15px 25px;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
    width: 100%;
}

#header_custom form button[type=submit] {
    right: 10px;
}

/*
#ess_custom_search {
    background: url(../img/banner-bg.jpg) no-repeat center center;
    background-size: cover;
    padding: 100px 0;
    margin: 0;
    width: 100%;
    text-align: center;
    position: relative;
}

#ess_custom_search .layer {
    z-index: 0;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #000;
    opacity: .5;
}

#ess_custom_search h1, #ess_custom_search h2 {
    color: #fff;
    z-index: 1;
    position: relative;
}

#ess_custom_search h1 {
    font-size: 3.2rem;
    margin-bottom: 15px;
}

#ess_custom_search h2 {
    font-size: 1rem;
    font-weight: 500;
    opacity: .8;
    text-transform: uppercase;
}

@media (max-width: 767px) {
    #ess_custom_search h1 {
        font-size: 2.8rem;
    }
    
    #ess_custom_search h2 {
        font-size: .7rem;
    }
}

#ess_custom_search #search_widget {
    width: 50vw;
    position: relative;
    margin: 30px auto 0;
}

@media (max-width: 767px) {
    #ess_custom_search #search_widget {
        width: 90vw;
    }
}

#ess_custom_search form input[type=text] {
    padding: 15px 25px;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
    width: 100%;
}

#ess_custom_search form button[type=submit] {
    right: 10px;
}
*/

/* Footer Video (TXR) */
#ess_custom_banner_txr {
    overflow: hidden;
    width: 100%;
    position: relative;
    min-height: 400px;
}

#ess_custom_banner_txr video {
    z-index: 0;
    position: absolute;
    width: 100vw;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 767px) {
    #ess_custom_banner_txr video {
        width: 250vw;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
}

/*
#ess_custom_banner_txr .pattern {
    z-index: 1;
    background: url(../img/pattern.png) repeat;
    width: 100%;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
*/

#ess_custom_banner_txr .layer {
    z-index: 1;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #000;
    opacity: .5;
}

#ess_custom_banner_txr .text {
    text-align: center;
    margin-top: 80px;
    margin-bottom: 80px;
    z-index: 2;
    position: relative;
    color: #fff;
}


/* Quotes */
#header .header-nav #quotesCart .quotes_cart a#quotes-cart-link {
	background: #000000;
	/*background: rgba(0,0,0,0.5);*/
	color: #a4a3a3;
}
/* End Quotes */
/* Out of stock message styling */
.product-out-of-stock {
    margin: 15px 0;
}

.out-of-stock-message {
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
    padding: 12px 16px;
    border-radius: 4px;
    font-weight: 500;
    margin: 0;
    font-size: 14px;
    text-align: center;
}

/* Hide price when out of stock */
.product-prices.hidden-out-of-stock {
    display: none !important;
}

/* Force show price when available */
.product-prices:not(.hidden-out-of-stock) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.js-product-prices:not(.hidden-out-of-stock) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure the message appears properly */
.product-out-of-stock {
    display: block;
}

/* More specific selectors to override any theme CSS */
.product-price-and-shipping .product-prices:not(.hidden-out-of-stock),
.product-prices .product-price:not(.hidden-out-of-stock),
.product-prices .current-price:not(.hidden-out-of-stock) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Override any parent hiding */
.product-information .product-prices:not(.hidden-out-of-stock),
.product-details .product-prices:not(.hidden-out-of-stock),
.product-form .product-prices:not(.hidden-out-of-stock) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force show all price related elements */
.product-prices:not(.hidden-out-of-stock) * {
    display: inherit !important;
    visibility: inherit !important;
    opacity: inherit !important;
}