/*======================================
Theme Name: Essential Med Tools
Description: Child theme for Divi
Version: 1.0
Author: Impressive by Design, LLC
Author URI: https://impressiveby.design
Template: Divi
======================================*/

.login-to-see-price { color: #e00000; font-weight: 200; text-decoration: none; font-size: 0.85em; line-height: 1em; }

.difl_imagehover .df_ihb_image_wrap { border-radius: 10px; }

.difl_product_carousel .swiper-pagination span { width: 8px; height: 8px; }

/* .df-post-title, .difl_postitem_2, .df-item-wrap p { padding: 0 20px; } */

/* Indent subcategory menu items in the sidebar */
.pa-vertical-menu .et-menu .sub-menu {
    padding-left: 15px !important; /* Indents the child list */
}

/* Style main categories (bold/larger) */
.pa-vertical-menu .et-menu > li > a {
    font-weight: 700 !important;
    font-size: 16px !important;
}

/* Style subcategories (lighter/smaller) */
.pa-vertical-menu .et-menu .sub-menu li a {
    font-weight: 400 !important;
    font-size: 14px !important;
    color: #666666 !important; /* Optional: softer color for sub-items */
}


ul.footlinks { list-style: none; margin: 0; padding: 0; }
ul.footlinks li { list-style: none; padding-left: 0; }
ul.footlinks li::before { content: none; }
ul.footlinks a { color: #717171 !important; text-decoration: none; transition: color 0.2s ease; }
ul.footlinks a:hover { color: #2C4A35 !important; }


/* =========================================================
   Responsive fixes for tablet and phone (October 2026)
   Tablet: up to 980px. Phone: up to 767px.
   ========================================================= */
/* The html:not(#emt-a):not(#emt-b) prefix raises these rules above Divi's own
   !important styles on Theme Builder pages. It always matches. */

/* ---------- Tablet and phone ---------- */
@media (max-width: 980px) {

	/* Page banner and hero titles */
	html:not(#emt-a):not(#emt-b) .et_pb_post_title .et_pb_title_container h1,
	html:not(#emt-a):not(#emt-b) .et_pb_text h1 {
		font-size: 72px !important;
		line-height: 1.05 !important;
	}
	html:not(#emt-a):not(#emt-b) .single-product .et_pb_post_title .et_pb_title_container h1 {
		font-size: 44px !important;
		line-height: 1.1 !important;
	}
	html:not(#emt-a):not(#emt-b) .single-post .et_pb_post_title .et_pb_title_container h1 {
		font-size: 56px !important;
		line-height: 1.1 !important;
	}

	/* Homepage trust bar: 2 x 2 */
	html:not(#emt-a):not(#emt-b) .home .et_pb_column_2 {
		flex-wrap: wrap !important;
		row-gap: 24px !important;
	}
	html:not(#emt-a):not(#emt-b) .home .et_pb_column_2 > .et_pb_blurb {
		flex: 0 0 calc(50% - 15px) !important;
		max-width: calc(50% - 15px) !important;
		width: auto !important;
	}

	/* Homepage category tiles: smaller labels */
	html:not(#emt-a):not(#emt-b) .home .difl_imagehover h3 {
		font-size: 28px !important;
		line-height: 1.1 !important;
	}

	/* Shop and category pages: categories as a row of chips above the products */
	html:not(#emt-a):not(#emt-b) .archive.woocommerce .et_pb_row_1_tb_body {
		flex-direction: column !important;
		flex-wrap: nowrap !important;
	}
	html:not(#emt-a):not(#emt-b) .archive.woocommerce .et_pb_column_1_tb_body,
	html:not(#emt-a):not(#emt-b) .archive.woocommerce .et_pb_column_2_tb_body {
		width: 100% !important;
		max-width: 100% !important;
		flex: 0 0 auto !important;
	}
	html:not(#emt-a):not(#emt-b) .archive.woocommerce .et_pb_widget_area { width: 100% !important; }
	html:not(#emt-a):not(#emt-b) .archive.woocommerce .widget_product_categories { width: 100% !important; display: block !important; }
	html:not(#emt-a):not(#emt-b) .archive.woocommerce .widget_product_categories ul.product-categories {
		display: flex !important;
		flex-wrap: nowrap;
		overflow-x: auto;
		gap: 8px;
		margin: 0 !important;
		padding: 0 0 8px !important;
		-webkit-overflow-scrolling: touch;
	}
	html:not(#emt-a):not(#emt-b) .archive.woocommerce .widget_product_categories ul.children { display: none !important; }
	html:not(#emt-a):not(#emt-b) .archive.woocommerce .widget_product_categories li {
		flex: 0 0 auto;
		margin: 0 !important;
		padding: 0 !important;
		list-style: none !important;
	}
	html:not(#emt-a):not(#emt-b) .archive.woocommerce .widget_product_categories li > a {
		display: inline-block;
		padding: 8px 14px;
		border: 1px solid rgba(44, 74, 53, 0.35);
		border-radius: 999px;
		white-space: nowrap;
	}
	html:not(#emt-a):not(#emt-b) .archive.woocommerce .widget_product_categories li.current-cat > a {
		background: rgb(44, 74, 53);
		border-color: rgb(44, 74, 53);
		color: #fff;
	}
	html:not(#emt-a):not(#emt-b) .archive.woocommerce .difl_productgrid ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		margin: 0 !important;
		width: 100% !important;
		column-gap: 16px !important;
	}
	html:not(#emt-a):not(#emt-b) .archive.woocommerce .difl_productgrid ul.products li.product {
		width: auto !important;
		min-width: 0 !important;
	}

	/* Blog grid: 2 columns */
	html:not(#emt-a):not(#emt-b) .difl_postgrid .df-posts-wrap.layout-grid {
		margin-left: -8px !important;
		margin-right: -8px !important;
	}
	html:not(#emt-a):not(#emt-b) .difl_postgrid article.df-post-item {
		width: 50% !important;
		padding: 0 8px 24px !important;
	}

	/* Shop: tighten the space between the category pills and the products */
	html:not(#emt-a):not(#emt-b) .archive.woocommerce .et_pb_row_1_tb_body {
		row-gap: 20px !important;
	}
	html:not(#emt-a):not(#emt-b) .archive.woocommerce .et_pb_widget_area .et_pb_widget {
		margin-bottom: 0 !important;
	}
	html:not(#emt-a):not(#emt-b) .archive.woocommerce .et_pb_section_1_tb_body {
		padding-top: 32px !important;
	}


	/* Header on tablet: logo, search, account, cart, menu on one row */
	html:not(#emt-a):not(#emt-b) .difl_advancedmenu_0_tb_header,
	html:not(#emt-a):not(#emt-b) .difl_advancedmenu_0_tb_header .df-am-container.small-device,
	html:not(#emt-a):not(#emt-b) .difl_advancedmenu_0_tb_header .df-am-container.small-device .df-am-row {
		max-width: 100% !important;
		width: 100% !important;
	}
	html:not(#emt-a):not(#emt-b) .difl_advancedmenu_0_tb_header .df-am-container.small-device .row-inner {
		display: grid !important;
		grid-template-columns: auto minmax(0, 1fr) auto auto auto !important;
		align-items: center;
		column-gap: 18px !important;
		width: 100% !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	html:not(#emt-a):not(#emt-b) .difl_advancedmenu_0_tb_header .df-am-container.small-device .df-am-col.left,
	html:not(#emt-a):not(#emt-b) .difl_advancedmenu_0_tb_header .df-am-container.small-device .df-am-col.right {
		display: contents !important;
	}
	html:not(#emt-a):not(#emt-b) .difl_advancedmenu_0_tb_header .small-device .difl_advancedmenuitem_0_tb_header { grid-column: 1; grid-row: 1; }
	html:not(#emt-a):not(#emt-b) .difl_advancedmenu_0_tb_header .small-device .difl_advancedmenuitem_2_tb_header { grid-column: 2; grid-row: 1; margin: 0 !important; width: 100% !important; }
	html:not(#emt-a):not(#emt-b) .difl_advancedmenu_0_tb_header .small-device .difl_advancedmenuitem_2_tb_header form { width: 100% !important; }
	html:not(#emt-a):not(#emt-b) .difl_advancedmenu_0_tb_header .small-device .difl_advancedmenuitem_3_tb_header { grid-column: 3; grid-row: 1; margin: 0 !important; }
	html:not(#emt-a):not(#emt-b) .difl_advancedmenu_0_tb_header .small-device .difl_advancedmenuitem_4_tb_header { grid-column: 4; grid-row: 1; margin: 0 !important; }
	html:not(#emt-a):not(#emt-b) .difl_advancedmenu_0_tb_header .small-device .difl_advancedmenuitem_1_tb_header { grid-column: 5; grid-row: 1; margin: 0 !important; }


	/* White icons on the green sticky header */
	html:not(#emt-a):not(#emt-b) .et_pb_sticky .difl_advancedmenu_0_tb_header .small-device .difl_advancedmenuitem_3_tb_header .et-pb-icon,
	html:not(#emt-a):not(#emt-b) .et_pb_sticky .difl_advancedmenu_0_tb_header .small-device .difl_advancedmenuitem_4_tb_header .cart-icon,
	html:not(#emt-a):not(#emt-b) .et_pb_sticky .difl_advancedmenu_0_tb_header .small-device .df-mobile-menu-button {
		color: #fff !important;
	}


	/* Page banners: show the whole title instead of cropping it */
	html:not(#emt-a):not(#emt-b) .et-l--body .et_builder_inner_content > .et_pb_section:first-child,
	html:not(#emt-a):not(#emt-b) .et-l--post .et_builder_inner_content > .et_pb_section:first-child {
		padding-bottom: 28px !important;
	}
	html:not(#emt-a):not(#emt-b) .et-l--body .et_builder_inner_content > .et_pb_section:first-child .et_pb_post_title,
	html:not(#emt-a):not(#emt-b) .et-l--post .et_builder_inner_content > .et_pb_section:first-child .et_pb_post_title {
		margin-bottom: 0 !important;
	}

	/* Shop product cards: use the full column width */
	html:not(#emt-a):not(#emt-b) .archive.woocommerce .difl_productgrid ul.products li.product {
		padding: 0 0 16px !important;
		margin: 0 !important;
	}
	html:not(#emt-a):not(#emt-b) .archive.woocommerce .difl_productgrid .df-product-inner-wrap {
		padding: 14px 12px 16px !important;
	}

}

/* ---------- Phone ---------- */
@media (max-width: 767px) {

	/* Header: logo, account, cart and menu on one row, search on its own row */
	html:not(#emt-a):not(#emt-b) .difl_advancedmenu_0_tb_header,
	html:not(#emt-a):not(#emt-b) .difl_advancedmenu_0_tb_header .df-am-container.small-device,
	html:not(#emt-a):not(#emt-b) .difl_advancedmenu_0_tb_header .df-am-container.small-device .df-am-row {
		max-width: 100% !important;
		width: 100% !important;
	}
	html:not(#emt-a):not(#emt-b) .difl_advancedmenu_0_tb_header .df-am-container.small-device .row-inner {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) auto auto auto !important;
		align-items: center;
		column-gap: 14px !important;
		row-gap: 10px !important;
		width: 100% !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	html:not(#emt-a):not(#emt-b) .difl_advancedmenu_0_tb_header .df-am-container.small-device .df-am-col.left,
	html:not(#emt-a):not(#emt-b) .difl_advancedmenu_0_tb_header .df-am-container.small-device .df-am-col.right {
		display: contents !important;
	}
	html:not(#emt-a):not(#emt-b) .difl_advancedmenu_0_tb_header .small-device .difl_advancedmenuitem_0_tb_header { grid-column: 1; grid-row: 1; min-width: 0; }
	html:not(#emt-a):not(#emt-b) .difl_advancedmenu_0_tb_header .small-device .difl_advancedmenuitem_0_tb_header img { max-width: 100%; height: auto; }
	html:not(#emt-a):not(#emt-b) .difl_advancedmenu_0_tb_header .small-device .difl_advancedmenuitem_3_tb_header { grid-column: 2; grid-row: 1; margin: 0 !important; }
	html:not(#emt-a):not(#emt-b) .difl_advancedmenu_0_tb_header .small-device .difl_advancedmenuitem_4_tb_header { grid-column: 3; grid-row: 1; margin: 0 !important; }
	html:not(#emt-a):not(#emt-b) .difl_advancedmenu_0_tb_header .small-device .difl_advancedmenuitem_1_tb_header { grid-column: 4; grid-row: 1; margin: 0 !important; }
	html:not(#emt-a):not(#emt-b) .difl_advancedmenu_0_tb_header .df-am-container.small-device { position: relative; }
	html:not(#emt-a):not(#emt-b) .difl_advancedmenu_0_tb_header .small-device .difl_advancedmenuitem_2_tb_header {
		position: absolute !important;
		top: calc(100% + 10px);
		left: 0;
		right: 0;
		width: 100% !important;
		margin: 0 !important;
	}
	html:not(#emt-a):not(#emt-b) .difl_advancedmenu_0_tb_header .small-device .difl_advancedmenuitem_2_tb_header form { width: 100% !important; }
	/* Hide the search row while the header is stuck to the top on scroll */
	html:not(#emt-a):not(#emt-b) .et_pb_sticky .difl_advancedmenu_0_tb_header .small-device .difl_advancedmenuitem_2_tb_header { display: none !important; }
	/* Make room for the search row at the top of each page */
	html:not(#emt-a):not(#emt-b) .et-l--post .et_builder_inner_content > .et_pb_section:first-child,
	html:not(#emt-a):not(#emt-b) .et-l--body .et_builder_inner_content > .et_pb_section:first-child {
		padding-top: 150px !important;
	}

	/* Titles */
	html:not(#emt-a):not(#emt-b) .et_pb_post_title .et_pb_title_container h1,
	html:not(#emt-a):not(#emt-b) .et_pb_text h1 {
		font-size: 46px !important;
		line-height: 1.05 !important;
	}
	html:not(#emt-a):not(#emt-b) .single-product .et_pb_post_title .et_pb_title_container h1 {
		font-size: 30px !important;
		line-height: 1.15 !important;
	}
	html:not(#emt-a):not(#emt-b) .single-post .et_pb_post_title .et_pb_title_container h1 {
		font-size: 38px !important;
		line-height: 1.1 !important;
	}

	/* Form fields: 16px stops iPhones zooming in on tap */
	html:not(#emt-a):not(#emt-b) input[type="text"], html:not(#emt-a):not(#emt-b) input[type="email"], html:not(#emt-a):not(#emt-b) input[type="tel"], html:not(#emt-a):not(#emt-b) input[type="password"],
	html:not(#emt-a):not(#emt-b) input[type="number"], html:not(#emt-a):not(#emt-b) input[type="search"], html:not(#emt-a):not(#emt-b) input[type="url"], html:not(#emt-a):not(#emt-b) select, html:not(#emt-a):not(#emt-b) textarea {
		font-size: 16px !important;
	}

	/* Homepage trust bar: icon above text */
	html:not(#emt-a):not(#emt-b) .home .et_pb_column_2 .et_pb_blurb_content {
		display: flex !important;
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 8px !important;
	}
	html:not(#emt-a):not(#emt-b) .home .et_pb_column_2 .et_pb_blurb_container { width: 100% !important; }
	html:not(#emt-a):not(#emt-b) .home .et_pb_column_2 .et_pb_module_header {
		font-size: 17px !important;
		line-height: 1.25 !important;
	}
	html:not(#emt-a):not(#emt-b) .home .et_pb_column_2 .et_pb_blurb_description {
		font-size: 14px !important;
		line-height: 1.4 !important;
	}

	/* Homepage bestsellers heading: keep clear of the slider arrows */
	html:not(#emt-a):not(#emt-b) .home .et_pb_text_2 { padding-right: 96px !important; }

	/* Homepage category tiles: 2 per row */
	html:not(#emt-a):not(#emt-b) .home .et_pb_column_6 > .difl_imagehover {
		flex: 0 0 calc(50% - 6px) !important;
		max-width: calc(50% - 6px) !important;
		width: auto !important;
	}
	html:not(#emt-a):not(#emt-b) .home .difl_imagehover h3 {
		font-size: 22px !important;
		line-height: 1.1 !important;
	}

	/* Shop and category pages: 2 products per row */
	html:not(#emt-a):not(#emt-b) .archive.woocommerce .difl_productgrid ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		column-gap: 12px !important;
	}
	html:not(#emt-a):not(#emt-b) .archive.woocommerce .difl_productgrid .woocommerce-loop-product__title {
		font-size: 16px !important;
		line-height: 1.3 !important;
	}

	/* Product page: photo first, less padding */
	html:not(#emt-a):not(#emt-b) .single-product .et_pb_column_0_tb_body { padding: 24px !important; }
	html:not(#emt-a):not(#emt-b) .single-product .et_pb_column_1_tb_body { order: -1; padding: 16px !important; }

	/* Blog: 1 column, readable post text */
	html:not(#emt-a):not(#emt-b) .difl_postgrid .df-posts-wrap.layout-grid { margin-left: 0 !important; margin-right: 0 !important; }
	html:not(#emt-a):not(#emt-b) .difl_postgrid article.df-post-item {
		width: 100% !important;
		padding: 0 0 24px !important;
	}
	html:not(#emt-a):not(#emt-b) .single-post .et_pb_post_content p,
	html:not(#emt-a):not(#emt-b) .single-post .et_pb_post_content li {
		font-size: 16px !important;
		line-height: 1.65 !important;
	}

	/* Contact form: full width */
	html:not(#emt-a):not(#emt-b) .page-id-142 .et_pb_code_0 {
		width: 100% !important;
		max-width: 100% !important;
	}

	/* My Account menu: buttons instead of a bullet list */
	html:not(#emt-a):not(#emt-b) .woocommerce-MyAccount-navigation ul {
		list-style: none !important;
		margin: 0 0 24px !important;
		padding: 0 !important;
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}
	html:not(#emt-a):not(#emt-b) .woocommerce-MyAccount-navigation li { margin: 0 !important; padding: 0 !important; }
	html:not(#emt-a):not(#emt-b) .woocommerce-MyAccount-navigation li a {
		display: block;
		padding: 12px;
		border: 1px solid rgba(44, 74, 53, 0.25);
		border-radius: 8px;
		text-align: center;
	}
	html:not(#emt-a):not(#emt-b) .woocommerce-MyAccount-navigation li.is-active a {
		background: rgb(44, 74, 53);
		border-color: rgb(44, 74, 53);
		color: #fff;
	}

	/* Footer */
	html:not(#emt-a):not(#emt-b) .et_pb_text_1_tb_footer li a,
	html:not(#emt-a):not(#emt-b) .et_pb_text_3_tb_footer li a {
		display: inline-block;
		padding: 7px 0;
	}
	html:not(#emt-a):not(#emt-b) .et_pb_text_6_tb_footer p {
		font-size: 16vw !important;
		line-height: 0.95 !important;
	}
	html:not(#emt-a):not(#emt-b) .et_pb_column_5_tb_footer {
		flex-direction: column !important;
		align-items: center !important;
		gap: 8px !important;
		text-align: center;
	}
	html:not(#emt-a):not(#emt-b) .et_pb_column_5_tb_footer .et_pb_text { width: 100% !important; }




	/* Product page: one card, no overlap into the description below */
	html:not(#emt-a):not(#emt-b) .single-product .et_pb_row_0_tb_body {
		margin-bottom: 0 !important;
		row-gap: 0 !important;
	}
	html:not(#emt-a):not(#emt-b) .single-product .et_pb_section_1_tb_body {
		margin-top: 0 !important;
	}


	/* Blog cards: smaller post titles */
	html:not(#emt-a):not(#emt-b) .difl_postgrid .df-post-title-wrap,
	html:not(#emt-a):not(#emt-b) .difl_postgrid .df-post-title-wrap :is(h1, h2, h3, h4, a) {
		font-size: 26px !important;
		line-height: 1.15 !important;
	}


	/* Contact page: full-width form */
	html:not(#emt-a):not(#emt-b) .page-id-142 .et_pb_section_1 {
		padding-top: 48px !important;
		padding-bottom: 48px !important;
	}
	html:not(#emt-a):not(#emt-b) .page-id-142 .et_pb_row_1 {
		width: 90% !important;
	}
	html:not(#emt-a):not(#emt-b) .page-id-142 .et_pb_column_1 {
		padding-right: 0 !important;
		width: 100% !important;
	}


	/* My Account menu: readable link color */
	html:not(#emt-a):not(#emt-b) .woocommerce-MyAccount-navigation li:not(.is-active) a {
		color: rgb(44, 74, 53) !important;
	}
	html:not(#emt-a):not(#emt-b) .woocommerce-MyAccount-navigation li a {
		padding: 12px 6px !important;
		white-space: nowrap;
	}

}

/* Footer bottom bar: legal links in the same color as the text */
.et_pb_text_7_tb_footer a { color: inherit !important; }
.et_pb_text_7_tb_footer a:hover { color: #2C4A35 !important; }



/* TEMP: DiviFlash 5.5.0 fix (grid + pagination). Remove when DiviFlash is rolled back or fixed. */
.difl_productgrid .df_productgrid_container ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}
.difl_productgrid .df_productgrid_container ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.difl_productgrid .df_productgrid_container ul.products.columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.difl_productgrid .df_productgrid_container ul.products::before,
.difl_productgrid .df_productgrid_container ul.products::after { display: none !important; }
.difl_productgrid .df_productgrid_container ul.products li.product {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
}
.difl_productgrid .df_productgrid_container ul.products li.product img {
  width: 100%;
  height: auto;
}
.difl_productgrid .woocommerce nav.woocommerce-pagination {
  margin-top: 50px !important;
  line-height: 1 !important;
  text-align: center;
}
.difl_productgrid .woocommerce nav.woocommerce-pagination ul.page-numbers {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.difl_productgrid .woocommerce nav.woocommerce-pagination ul.page-numbers li { float: none !important; }
.difl_productgrid .woocommerce nav.woocommerce-pagination .page-numbers {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px !important;
  font-size: 15px;
  line-height: 1;
}
.difl_productgrid .woocommerce nav.woocommerce-pagination .et-pb-icon {
  font-size: 22px !important;
  line-height: 1 !important;
}
@media (max-width: 980px) {
  .difl_productgrid .df_productgrid_container ul.products,
  .difl_productgrid .df_productgrid_container ul.products.columns-3,
  .difl_productgrid .df_productgrid_container ul.products.columns-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 479px) {
  .difl_productgrid .df_productgrid_container ul.products,
  .difl_productgrid .df_productgrid_container ul.products.columns-3,
  .difl_productgrid .df_productgrid_container ul.products.columns-5 { grid-template-columns: 1fr; }
}