/* Decrease the font-size of the WooCommerce Categories displayed on emcomsys.com/solutions/ 21068876-hc (rf) */
.products .woocommerce-loop-category__title {
	font-size: 1.0rem;
}
/* change product title font size  | 21069850-hc/zd bk */
h2.woocommerce-loop-product__title {
  font-size: 1.0rem;
}
/* Ensure full-size header image on mobile */
@media (max-width: 768px) {
    .site-header {
        background-size: cover;  /* Ensures the image covers the area */
        background-position: top center; /* Keeps the top of the image visible */
        height: auto; /* Remove any fixed height */
    }

    .site-header img {
        width: 100%;
        height: auto;
    }
}
/* EWS */
/* Header Fix By EWS */
.has-header-image .custom-header-media img, .has-header-video .custom-header-media video, .has-header-video .custom-header-media iframe {
    position: absolute !important;
}

@media screen and (min-width: 48em) {
}
    


/*
.custom-header {
    padding: 0px 0px 70px 0px;
} */

/* MOBILE HEIGHT */
@media screen and (max-width: 47.99em) {

    /* Force image to center back in mobile */
    .has-header-image .custom-header-media img,
    .has-header-video .custom-header-media video {
        left: 0 !important;
    }
}

/* HEADER WRAPPER HEIGHT FIX */
.has-header-image.twentyseventeen-front-page .custom-header,
.has-header-video.twentyseventeen-front-page .custom-header,
.has-header-image.home.blog .custom-header,
.has-header-video.home.blog .custom-header {
    display: table;
    height: 32vh; /* Matches mobile height */
}


#wp-custom-header {
	height: auto !important;
  background: black;
}
	
/* Header Position Fix */

body:not(.home) .custom-header {
  display: none !important;
}

.site-header {
	display: flex;
	flex-direction: column-reverse;
}

@media (max-width: 768px) {
	body.home .site-header {
		overflow-x: hidden;
	}
}

.navigation-top {
	position: relative !important;
}

#masthead .custom-header {
	padding-bottom: 0;
	height: auto !important;
}

#masthead .custom-header .custom-header-media {
	height: 100% !important;
	position: relative !important;
	width: 100vw !important;
}

.has-header-image .custom-header-media img {
	width: 100% !important;
  min-width: auto;
  justify-self: anchor-center;
  display: block;
  position: relative !important;
}

/* Search Fix for Mobile */

@media screen and (max-width: 480px) {
	
	.woocommerce-result-count {
		display: block;
    width: 100%;
    margin-bottom: 0;
	}
	
	form.woocommerce-ordering {
		display: block;
    width: 100%;
    margin-bottom: 20px;
	}
	
	form.woocommerce-ordering .orderby {
		width: 100%;
	}
	
}

	
	@media screen and (max-width: 500px) {
		
		body, button, input, select, textarea {
			font-size: 0.9375rem;
		}
	}


/* Sticky Header Nav */

.site-header {
	position: sticky;
    top: var(--wp-admin--admin-bar--height, 0);
    z-index: 9;
}

@media screen and (max-width: 600px) {
	.site-header {
		top: 0;
	}
}

.admin-bar .site-navigation-fixed.navigation-top {
        top: 0 !important;
}

.custom-header-media {
	height: fit-content !important;	
}

.twentyseventeen-front-page article:not(.has-post-thumbnail):not(:first-child) {
	border: 0 !important;
}

.has-header-image.twentyseventeen-front-page .custom-header, .has-header-video.twentyseventeen-front-page .custom-header, .has-header-image.home.blog .custom-header, .has-header-video.home.blog .custom-header {
	height: auto !important;
	aspect-ratio: 3/2;
	width: 100% !important;
}

/* Mobile Menu Color Fix */

:not( .mejs-button ) > button:hover, :not( .mejs-button ) > button:focus, input[type="button"]:hover, input[type="button"]:focus, input[type="submit"]:hover, input[type="submit"]:focus {
	background: initial;
}

.menu-toggle:focus {
	outline: none;
}


/* Home Card Fix */

.wp-block-woocommerce-featured-product[data-product-id="5820"] {
    min-height: auto !important;
    padding: 40px 0;
}

.wp-block-woocommerce-featured-product[data-product-id="5820"] img {
    object-fit: cover !important;
}

body.home .wp-block-spacer {
	height: 0.87em !important;
	font-size: 40px;
}

/* Grid Text Height Fix */
.wp-block-file:not(.wp-element-button) {
	min-height: calc(1.5em * 2);
}


body.post-type-archive-product .products li.product-category.product:has(a[aria-label*="JANUS Products"]),
.products li.product-category.product:has(a[aria-label*="RATH Products"]) {
    display: none !important;
}

body.post-type-archive-product .products li.product-category.product:has(a[aria-label*="Telephones & Intercoms"]) {
    clear: initial;
		margin-right: 0;
}