/* Existing CSS */

.off-canvas-right .mfp-content, .off-canvas-left .mfp-content {
	--drawer-width: 100vw!important;
}

.mfp-content .dropdown {
	width: 100%;
}

.dropdown-menu {
    background: #FFF;
    list-style: none;
    position: relative;
    min-width: 350px;
    padding: 0px 0 !important;
}

.dropdown.has-block {
	width: 100%;
}

.dropdown-menu.level-2 a {
    padding: 4px 30px !important;
}

.dropdown-menu a {
	padding: 10px 60px 10px 30px!important;
    display: flex;
    align-items: center;
}

.dropdown-menu li {
    position: relative;
    margin: 0 !important;
	position: unset;
	font-size: 15px!important;
	border-bottom: solid 1px #EDECEC;
	display: flex!important;
	align-items: center;
	min-height: 55px;
	line-height: normal;
}



@media(min-width: 850px) {
	.bullet-mega:hover > .dropdown-item {
		text-decoration: underline;
	}
}
/*
@media(min-width: 850px) {
	.dropdown-item {
		opacity: 0.5;
	}

	.bullet-mega:hover > .dropdown-menu .dropdown-item {
		opacity: 1;
	}

	.bullet-mega:hover > .dropdown-item {
		opacity: 1!important;
		text-decoration: underline;
	}

	.current-ul-active > .dropdown-item {
		opacity: 1!important;
	}
	
	.level-1:hover > .bullet-mega .dropdown-item {
		opacity: 0.5;
	}

	.level-1:hover .level-2 .dropdown-item {
		opacity: 1!important;
	}	
}
*/


.dropdown-menu .dropdown-submenu {
    display: none;
    position: absolute;
    left: 98%;
    top: 0;
    border-left: solid 1px #DEDEDE;
}

.dropdown-menu .dropdown-submenu-left {
    right: 100%;
    left: auto;
}

.dropdown-menu > li:hover > .dropdown-submenu {
    display: flex;
    flex-direction: column;
}




.mega-menu-has-dropdown a {
    position: relative;
    width: 100%;
	line-height: normal;
}

.bullet-mega img {
	border: solid 1px #EDECEC;
	border-radius: 100%;
	margin-right: 10px;
	padding: 2px;
}

.mega-menu-has-dropdown > a::after {
    content: url(/wp-content/uploads/2025/03/chevron_right.svg);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    height: 24px;
}

.read-more-bullet a {
    font-weight: 600;
    color: var(--primary-color);
}

body {
    font-size: 90%!important;
}

.dropdown-menu.best-selling-products {
	align-items: center;
	justify-content: center;
}


.mega-menu-has-dropdown .best-selling-product-item a {
	flex-direction: column;
	text-align: center;
}

.best-selling-product-item img {
	margin-top: 30px;
	margin-bottom: 30px;
	border: none!important;
	border-radius: unset!important;
}

.best-selling-product-item .mega-menu__product-link {
	color: var(--primary-color);
	text-decoration: underline;
	text-underline-offset: 0.4rem;
}

.best-selling-product-item .mega-menu__product-name {
	font-weight: 800;
}


@media (min-width: 767px) {
	.dropdown-menu {
		min-height: 600px;
	}
	
	.nav-size-large>li>a {
		font-size: 0.9em;
	}
	
	.mega-menu-has-dropdown .best-selling-product-item {
		padding-top: 30px;
		padding-bottom: 30px;
		border-bottom: none;
	}

}
/* New CSS for Mobile */
@media (max-width: 768px) {
    /* On mobile, set dropdown menus to position relative for below display */
    .dropdown-menu .dropdown-submenu {
        position: relative;
        left: auto;
        top: auto;
        border-left: none;
		
		margin-top: 10px!important;
		margin-bottom: 10px!important;

		padding: 10px 0 !important;
		border-radius: 0;
    }

    /* Ensure the submenu is displayed below the parent */
    .dropdown-menu > li:hover > .dropdown-submenu {
        display: none; /* Disable hover behavior on mobile */
    }

    /* Show submenu on click */
    .dropdown-menu .dropdown-submenu.open {
        display: block!important;
    }

    .mega-menu-has-dropdown > a::after {
        transform: rotate(90deg); /* Adjust arrow for dropdown indication */
        transition: transform 0.3s ease; /* Add smooth transition */
    }

    .mega-menu-has-dropdown.open > a::after {
        transform: rotate(-90deg); /* Rotate arrow when menu is open */
    }
	
	.read-more-bullet > a::after {
		transform: rotate(0deg)!important; /* Adjust arrow for dropdown indication */
	}
	
	.dropdown-menu a {
		padding: 10px 0px !important;
		display: flex;
		align-items: center;
		padding-right: 30px !important;
        text-align: left;
	}
	
	.dropdown-menu.level-1.open {
		border-bottom: solid 1px #E3E3E3;
		border-top: solid 1px #E3E3E3;
	}
	
	.dropdown-parent-main {
		font-weight: 700;
	}
	
	.dropdown-menu.level-2 a {
		padding: 4px 0px !important;
	}
	
	.level-1 .mega-menu-has-dropdown.open img {
		border: solid 1px #E3E3E3;
		border-radius: 16px;
	}
	
	
	.mega-menu-has-dropdown > a::after {
		top: 25%;
		right: 0;
	}
	
	.dropdown-submenu.level-2 {
		margin-top: 0!important;
		padding-top: 0!important;
	}
	
	.bullet-mega {
		font-size: 1.1em!important;
	}
	
	.dropdown-menu {
		min-width: 0px;
	}
	
	.bullet-mega  {
		padding-left: 0!important;
	}
	
	.dropdown-menu li {
		border-bottom: none;
		flex-direction: column;
		align-items: flex-start;
	}
	
	.best-selling-product-item img {
		margin-top: 10px;
		margin-bottom: 10px;
	}
}
