/**
 * Created: 		02/06/2025
 * Updated:			11/18/2025
 * ✅ Version 2
 * ✅ Mega Menu
 * ✅ Mega Menu Submenu
 * ✅ Mega Menu Brands
 * ✅ Phone
 * ✅ Search
 * ✅ My Account
 * ✅ Responsive
 */

/*****************
* ✅ Version 2
******************/
.rsgdx-header-merged {
	display: flex; flex-direction: row; align-items: center; gap: 20px;
}

/*****************
* ✅ Mega Menu
******************/
.rsgdx-ec-mega-menu ul#menu-header-v2 > li:first-child {
	background-color: var(--site_primary_color);
}
.rsgdx-ec-mega-menu ul#menu-header-v2 > li:first-child > a {
	color: #fff!important;
	transition: ease .2s;
}
.rsgdx-ec-mega-menu ul#menu-header-v2 > li:first-child > a:hover {
	transition: ease .2s;
	transform: scale(1.1);
}

/*****************
* ✅ Mega Menu Submenu
******************/
.rsgdx-ec-mega-menu ul.elementskit-submenu-panel li {
	transition: ease .2s;
}
.rsgdx-ec-mega-menu ul.elementskit-submenu-panel li:hover {
	background-color: var(--site_primary_color);
	color: #fff;
	transition: ease .2s;
}
.rsgdx-ec-mega-menu ul.elementskit-submenu-panel li:hover a {
	color: #fff!important;
	transition: ease .2s;
}
/*****************
* ✅ Mega Menu Brands
******************/
li.rsgdx-ec-megamenu-brands-container .elementskit-megamenu-panel {
	left: -200%;
}
body.rsgdx-wadds-topbanner-active li.rsgdx-ec-megamenu-brands-container > div.elementskit-megamenu-panel {
	top: 100%!important;
}

/*****************
* ✅ Phone
******************/
li.rsgdx-ec-menu-contact-phone > a {
	font-weight: 800!important;
	font-size: 16px!important;
	position: relative!important;
	color: var(--site_primary_color)!important;
	display: flex!important;
	flex-direction: column;
	align-items: flex-start!important;
}
li.rsgdx-ec-menu-contact-phone > a > span {
	font-weight: 500;
	opacity: 0.8;
	height: 18px;
}

/*****************
* ✅ Search
******************/
form.rsgdx-product-search {
	width: 400px; position: relative; max-width: 400px;
}
form.rsgdx-product-search input[name="search-product"] {
	border-radius: 3px; position: relative; background: none; border-color: var(--site_shade_4); color: var(--site_shade_5);
}
form.rsgdx-product-search input[name="search-product"]:focus {
	border-style: solid;
}
form.rsgdx-product-search button[type="submit"] {
	border-radius: 3px; border: none;
	height: 38px; right: 1px; top: 1px; z-index: 2;
	position: absolute; transition: ease.3s; background: var(--site_shade_4); 
}
form.rsgdx-product-search button[type="submit"]:hover {
	background-color: var(--site_primary_color); color: #fff;
}
.rsgdx-hv2-search-mobile {
	display: none;
}

/*****************
* ✅ Mini Cart
******************/
.rsgdx-hv2-minicart .rsgdx-mini-cart-wrapper .ast-mini-cart-empty {
	display: none !important;
}
.rsgdx-hv2-minicart .rsgdx-mini-cart-wrapper {
	position: relative; display: inline-block;
}
.rsgdx-hv2-minicart .rsgdx-mini-cart-wrapper .rsgdx-cart-toggle {
	display: flex; align-items: center; text-decoration: none; position: relative; border-radius: 100%; background: var(--site_shade_2); height: 40px; width: 40px; border: 1px solid var(--site_primary_color); color: var(--site_primary_color); text-align: center; transition: ease .3s;
}
.rsgdx-hv2-minicart .rsgdx-mini-cart-wrapper .rsgdx-cart-toggle:hover {
	background: var(--site_primary_color); border-color: var(--site_shade_5); transition: ease .3s; color: var(--site_shade_5)!important;
}
.rsgdx-hv2-minicart .rsgdx-mini-cart-wrapper .cart-count {
	background: var(--site_primary_color); color: var(--site_shade_5); border-radius: 50%; min-width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; margin-left: 5px; position: absolute; top: -5px; right: -5px;
}
.rsgdx-hv2-minicart .rsgdx-mini-cart-wrapper .cart-icon {
	width: 100%;
}
.rsgdx-hv2-minicart .rsgdx-mini-cart-wrapper .rsgdx-mini-cart-content {
	position: fixed; right: -100%; top: 50px; width: 100%; max-width: 400px; height: 80vh; background: var(--site_shade_2); color: var(--site_shade_6); padding: 20px 20px 60px 20px; z-index: 99999; transition: right 0.3s ease-in-out; box-shadow: -2px 0 5px rgba(0,0,0,0.1); overflow-y: auto; overflow-x: hidden;
}
.rsgdx-hv2-minicart .rsgdx-mini-cart-wrapper .rsgdx-mini-cart-content.active {
	right: 0; transition: ease .3s;
}
.rsgdx-hv2-minicart .rsgdx-mini-cart-wrapper .rsgdx-mini-cart-content a {
	color: var(--site_shade_6);
}
.rsgdx-hv2-minicart .rsgdx-mini-cart-wrapper .rsgdx-mini-cart-content a:hover {
	color: var(--site_primary_color);
}
.rsgdx-hv2-minicart .rsgdx-mini-cart-wrapper .rsgdx-mini-cart-content.active .rsgdx-mini-cart-bg {
	content: ''; position: fixed; inset: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: -1;
}
.rsgdx-hv2-minicart .rsgdx-mini-cart-wrapper .rsgdx-mini-cart-content .mini-cart-header {
	z-index: 2; position: relative;
}
.rsgdx-hv2-minicart .rsgdx-mini-cart-wrapper .rsgdx-mini-cart-content h4 {
	color: var(--site_shade_5); border-bottom: 1px solid var(--site_shade_4); padding-bottom: 20px; margin-bottom: 20px; text-align: center;
}
.rsgdx-hv2-minicart .rsgdx-mini-cart-wrapper .rsgdx-mini-cart-content .rsgdx-mini-cart-browse {
	position: relative; margin-top: 20px; text-align: center; width: 100%;
}
.rsgdx-hv2-minicart .rsgdx-mini-cart-wrapper .rsgdx-mini-cart-content .close-mini-cart {
	padding: 0; text-align: center; width: 30px; height: 30px; left: 0; top: 0; transition: ease .3s; position: absolute; font-size: 20px; z-index: 2;
}
.rsgdx-hv2-minicart .rsgdx-mini-cart-wrapper .rsgdx-mini-cart-content .woocommerce-mini-cart__buttons {
	display: none;
}
.rsgdx-hv2-minicart .rsgdx-mini-cart-inner-buttons {
	display: flex; 
	flex-direction: row; 
	flex-wrap: nowrap; 
	align-items: center; gap: 10px;
}
.rsgdx-hv2-minicart .rsgdx-mini-cart-inner-buttons a {
	padding: 10px;
	width: 100%;
	text-align: center;
	font-size: 15px;
}
.rsgdx-hv2-minicart .rsgdx-mini-cart-wrapper li.woocommerce-mini-cart-item {
	padding: 10px; display: flex; flex-direction: column; gap: 10px; align-items: center; border-bottom: 1px solid var(--site_shade_4); margin-bottom: 10px;
}
.rsgdx-hv2-minicart .rsgdx-mini-cart-wrapper li.woocommerce-mini-cart-item::before,
.rsgdx-hv2-minicart .rsgdx-mini-cart-wrapper li.woocommerce-mini-cart-item::after {
	display: none;
}
.rsgdx-hv2-minicart .rsgdx-mini-cart-wrapper li.woocommerce-mini-cart-item a:nth-child(1) {
	position: absolute; left: 0; border: 1px solid var(--site_primary_color); z-index: 2; top: 0; background: var(--site_primary_color); color: var(--site_shade_5); opacity: 0; pointer-events: none;
}
.rsgdx-hv2-minicart .rsgdx-mini-cart-wrapper li.woocommerce-mini-cart-item a:nth-child(1) .ast-close-svg {
	color: var(--site_shade_5);
}
.rsgdx-hv2-minicart .rsgdx-mini-cart-wrapper li.woocommerce-mini-cart-item a:nth-child(2) img {
	position: relative; width: 50px; height: 50px; border-radius: 10px; inset: 0; margin: 0; transform: none;
}
.rsgdx-hv2-minicart .rsgdx-mini-cart-wrapper li.woocommerce-mini-cart-item .variation .variation-Bundledproducts {
	width: 100%; margin: 0;
}
.rsgdx-hv2-minicart .rsgdx-mini-cart-wrapper li.woocommerce-mini-cart-item .variation .variation-Bundledproducts ul {
	margin: 0;
}
.rsgdx-hv2-minicart .rsgdx-mini-cart-wrapper li.woocommerce-mini-cart-item .quantity {
	color: var(--site_primary_color); font-weight: 800;
	text-align: right !important; 
	position: relative !important;
	left: 0 !important; 
	top: 0 !important;
	font-size: 15px;
}
.rsgdx-hv2-minicart .rsgdx-mini-cart-wrapper li.woocommerce-mini-cart-item .quantity .woocommerce-Price-amount.amount {
	font-size: 15px;
}
.rsgdx-hv2-minicart .rsgdx-mini-cart-wrapper .woocommerce-mini-cart__total.total {
	font-weight: 800; font-size: 20px;
}
.rsgdx-hv2-minicart .rsgdx-mini-cart-wrapper li.woocommerce-mini-cart-item.woocommerce-mini-cart-item.woosb-cart-item.woosb-cart-parent.woosb-item-parent {
	align-items: flex-start; flex-direction: column; text-align: left;
}
.elementor-editor-active .rsgdx-mini-cart-content {
	display: none!important;
}

/*****************
* ✅ My Account
******************/
.rsgdx-header-merged a.rsgdx-hv2-account-link {
 	display: flex; flex-direction: row; align-items: center; position: relative; color: #ffffff; gap: 5px; font-size: 13px;
}
.rsgdx-header-merged a.rsgdx-hv2-account-link:hover {
	color: var(--site_primary_color);
}
.rsgdx-header-merged a.rsgdx-hv2-account-link img {
	height: 40px; width: 40px; border-radius: 100%; object-fit: contain; object-position: center; background: #ffffff;
	border: 1px solid #ffffff;
	transition: ease .3s;
}
.rsgdx-header-merged a.rsgdx-hv2-account-link:hover img {
	border-color: var(--site_primary_color); transition: ease .3s;
}





/*****************
* ✅ Responsive
******************/
@media only screen and (max-width: 1200px) {

	/* My Account */
	.rsgdx-header-merged a.rsgdx-hv2-account-link {
		font-size: 13px;
	}
	.rsgdx-header-merged a.rsgdx-hv2-account-link img {
		height: 35px; width: 35px;
	}

	/* Mini Cart */
	.rsgdx-hv2-minicart .rsgdx-mini-cart-wrapper .rsgdx-cart-toggle {
		height: 35px; width: 35px;
	}

	/* Search */
	.rsgdx-hv2-search form.rsgdx-product-search {
		width: 300px;
	}

	/* ETA */
	.rsgdx-hv2-eta .rsgdx-weta-result .rsgdx-weta-result__value {
		font-size: 13px;
	}
}

@media only screen and (max-width: 1135px) {

	/* Phone */
	li.rsgdx-ec-menu-contact-phone {
		display: none;
	}

}

@media only screen and (max-width: 1024px) {
	
	/* Mega Menu Brands */
	li.rsgdx-ec-megamenu-brands-container .elementskit-megamenu-panel {
		padding-top: 0px;
		max-width: 340px;
		left: 0;
	}

	/* Phone */
	li.rsgdx-ec-menu-contact-phone {
		display: list-item;
	}

	/* Search */
	.rsgdx-hv2-search form.rsgdx-product-search {
		display: none;
	}

	/* Search Mobile */
	.rsgdx-hv2-search-mobile {
		display: block;
	}
	
}

@media only screen and (max-width: 900px) {

	/* My Account */
	.rsgdx-header-merged a.rsgdx-hv2-account-link span {
		display: none;
	}
	
}

@media only screen and (max-width: 540px) {

	/* Search Mobile */
	.rsgdx-hv2-search-mobile form.rsgdx-product-search {
		width: 250px;
	}

	/* ETA */
	.rsgdx-hv2-eta {
		display: none;
	}

	/* Mini Cart */
	.rsgdx-mini-cart-inner .rsgdx-wapi--.woocommerce-mini-cart-item .quantity {
		text-align: right !important; 
		position: relative !important;
		left: 0 !important; 
		top: 0 !important;
		font-size: 15px !important;
	}
	.rsgdx-hv2-minicart .rsgdx-mini-cart-wrapper li.woocommerce-mini-cart-item .quantity .woocommerce-Price-amount.amount {
		font-size: 15px !important;
	}
		
}

@media only screen and (max-width: 350px) {

	/* Search Mobile */
	.rsgdx-hv2-search-mobile {
		max-width: 200px!important;
	}
	.rsgdx-hv2-search-mobile form.rsgdx-product-search {
		width: 200px;
	}
		
}