nav{
	grid-column: 1 / span 4;
	grid-row: 3;
}


nav a{
	text-decoration: none;
	color: white;
}

nav a{
	text-decoration: none;
}

.menuArrow{
	float: right;
}

nav img{
	height: 30px;
	width: auto;
	margin: 4px 5px;
}

#curentPage{
	color: black;
}

.responsiveOnly {
	display: none;
}

#responsiveMiniNav i,
#responsiveMiniNav .fa-solid {
    color: white;
}


  nav{
	background-color: #CF1715;
	display: grid;
	grid-template-columns: 3fr auto;
	grid-gap: 10px;
	z-index: 999;
  }
  .navBarUl{
	grid-column: 1;
	grid-row: 1;
  }
  
  .menu{
	display: flex;
  }
  .menu li{
	padding: 10px;
	list-style: none;
	color: white;
	position: relative;
  }
  .menu > li:hover .submenu {
	display: block;
  }

  
  /*
  .submenu > li:hover .subsubmenu {
	display:flex;
	flex-direction: column;
  }*/
  


  .submenu li {
	color: #555;
	margin: 0px 0px;
  }
  nav .submenu{
	
	display: none;
	position: absolute;
	/* padding: 10px; */
	min-width: 300px;
	top: 100%;
	left: 0;
	cursor: pointer;
	background: #f9f9f9;
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	
  }

  .menu li:hover, .submenu li a:hover{
	background: rgb(255, 255, 255);
	color: rgb(0, 0, 0);
  }


  ul li.open > ul,
        ul li.open > ul > li.open > ul {
            display: block;
        }

nav .subsubmenu{
	
	left: 100%;
	top: 0;
	display: none;
	position: absolute;
	/* padding: 10px; */
	min-width: 300px;
	/*max-height: 300px;*/
	overflow-y: scroll;
	cursor: pointer;
	background: #f9f9f9;
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  }
  ul ul ul li a, ul ul li a {
	color: #555;
 }

.menu-item, .submenu-item {

	display: block;
	padding: 10px;
	cursor: pointer;
}

/*menu-item*/
.menu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #CF1715;
    transition: width 0.3s ease;
}

.menu-item:hover::after {
    width: 100%;
}

.menu-item > a {
    display: block;
    width: 100%;
    height: 100%;
}

.menu-item:hover > a {
    color: black;
    background: white;
}


/*submenu-item*/
.submenu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #CF1715;
    transition: width 0.3s ease;
}

.submenu-item:hover::after {
    width: 100%;
}

/*subsubmenu-item*/
.subsubmenu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #CF1715;
    transition: width 0.3s ease;
}

.subsubmenu-item:hover::after {
    width: 100%;
}



.subsubmenu-item a {
    display: block;
    text-decoration: none; /* Resetting default link styles */
    color: inherit; /* Ensuring the link color is inherited from the parent */
}

i.fa.fa-bars {
    color: white;
}

/*large screens*/
@media screen and (min-width: 1094px) {
    .menu > li:hover .submenu {
        display: block;
    }

    .submenu > li:hover .subsubmenu {
        display: block;
    }
}


  @media screen and (max-width: 1093px) {
    .menu{
		display: none;
	}
	.topnavresponsive{
		background: #f9f9f9;
		z-index: 3000;
		position: absolute;
		box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
		min-height: 100%;
		top:225px;
		/* width: 300px; */
		width: 100%;
		padding: 20px;
	 }
	 .topnavresponsive li{
		border-bottom: 1px solid #787777;
	 }
	 nav a, .topnavresponsive li a{
		color: #000000;
	 }
	 .topnavresponsive li{
		color: black;
		list-style: none;
		margin-top: 30px;
		padding: 10px;
		cursor: pointer;
	 }
	nav .submenu{
	
		/* left: -30px; */
		top: 10px;
		display: none;
		position: relative;
		padding: 10px;
		/* min-width: 300px; */
		width: 100%;
		max-height: auto;
		overflow-y: initial;
		cursor: pointer;
		background: #D9D9D9;
		box-shadow: 0px 8px 16px 0px rgba(0,0,0,0);
	  }
	  nav .subsubmenu{
		
		left: 0px;
		top: 10px;
		display: none;
		position: relative;
		padding: 10px;
		min-width: 100%;
		width: 100%;
		max-height: 100%;
		height: auto;
		overflow-y: initial;
		background: #f9f9f9;
		box-shadow: 0px 8px 16px 0px rgba(0,0,0,0);
	  }
	  nav .submenu li{
		color: black;
		/* padding-left: 30px; */
		margin-top: 0px;
	  }
	  .menu li:hover{
		background: #D9D9D9;
		color: black;
	  }
	  .submenu li:hover, .subsubmenu li a:hover{
		background: #f9f9f9;
		color: black;
	  }
	
	.responsiveOnly{
		display: block;
	}
  .icon {
	  margin: 20px;
  }
	  #responsiveMiniNav {
		  display: grid;
		  grid-gap: 10px;
		  grid-template-columns: auto auto;
		  margin: 10px;
		  text-align: right;
		  margin-top: 25%;
	  }
	  #cart, #shipping {
		  display: inline;
	  }

	  #cartCount a {
		position: relative;
		display: inline-block;
	}

	#cartAmountMobile {
		position: absolute;
        top: -8px;
        right: -10px;
        background-color: #000000;
        color: white;
        font-size: 10px;
        font-weight: bold;
        padding: 1px 3px;
        border-radius: 50%;
        min-width: 12px;
        text-align: center;
        line-height: 1;
        z-index: 10;
	}
  }

@media screen and (max-width: 1224px) {
	.menu {
		font-size: 0.95rem;
	}
}
@media screen and (max-width: 1177px) {
	.menu {
		font-size: 0.9rem;
	}
}
@media screen and (max-width: 1130px) {
	.menu li {
		font-size: 0.85rem;
	}
}
@media screen and (max-width: 576px) {
	#searchBeforeResponsive{
		display: none;
	}
	.topnavresponsive{
		margin-top: -112px;
	}
	nav{
        display: grid;
        grid-template-columns: 1fr 200px 1fr;
        grid-gap: 10px;
        z-index: 999;
    }
	#responsiveMiniNav {
		display: flex;
		justify-content: right;
	}
}
@media screen and (max-width: 422px) {
	nav {
		grid-template-columns: 1fr 125px 1fr;
	}
}
@media screen and (max-width: 347px) {
	#responsiveMiniNav i, #cartAmountMobile {
		font-size: 0.9rem;
	}
}
@media screen and (max-width: 336px) {
	#responsiveMiniNav i, #cartAmountMobile {
		font-size: 0.85rem;
	}
}