
header { 	

            top: 0;
			width: 85%;
			background-color: #282828;
			z-index: 1050;
			display: flex;
            align-items: center;
            justify-content: space-between;
            
}



/* Reset basic spacing */


/* Header container flex layout */


/* Logo */


/* Search bar - flex-grow takes available space between logo and cart */





/* Mobile styles (below 880px) */
@media (max-width: 880px) {


    #header_searchInput {
        order: 3; /* Forces search bar to the next line */
        width: 60%; /* Full width */
    }
}



        .logo {
			margin-left: 9%;
            max-height: 48px;
			margin-bottom: 2%;
			cursor: pointer;
        }









#OEMcode {
	margin-top: 100px;
    margin-bottom: 60px;
	padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 60%;
    box-sizing: border-box; /* Prevents width overflow */
}

.header-cart {
	
    display: flex;               /* Enables flexbox */
    flex-direction: row;         /* Ensures children appear in a row (default for flex) */
    align-items: center;         /* Vertically align items */
    gap: 10px;                    /* Space between each child */
    padding: 15px;                /* Padding inside the container itself */
	margin-right: 5%;



    justify-content: center;	
	
}


.cart-icon {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
	margin-right: 15px;
}
.cart-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}



		.menu-btn {
			margin-top: 2px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 25px;
    color: white;
	}



/* 🔹 Main Sidebar Styling */
.sidebar {

			/* Ensures it overlays without affecting layout */
    			z-index: 1041; /* Higher than .info_x and .content */
			position: absolute;
			width: 19%;
			background-color: #333;
			transition: transform 0.2s ease-in-out, top 0.2s ease-in-out;
			color: white;
			
			display: flex;
			top: 61.33px;
			flex-direction: column;
			left: 73%;			
			transform: translateY(-100%); /* Ensure it slides from above */

		
}

/* 🔹 Open Sidebar */
	.sidebar.sidebar-open {	
		top: 61.33px; /* Bring it into view */
		transform: translateY(0);
	
		transition: transform 0.2s ease-in-out, top 0.2s ease-in-out;}	

/* 🔹 User Info */
.user-info {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background 0.3s;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 🔹 User Icon */
.user-info i {
    font-size: 30px;
    color: white;
}

/* 🔹 Username Styling */
.username-text {
		display: block;
		color: #white;
		padding-left: 10px;
		text-decoration: none;
		border: none;
		background: none;
		text-align: left;
		font-size: 18px;
		cursor: pointer;
}

/* 🔹 Account Text */
.account-text {
    font-size: 14px;
    color: #aaa;
padding-left: 10px;
}

/* 🔹 Sidebar Links */
.sidebar a {
    display: block;
    padding: 12px 20px;
    font-size: 16px;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease-in-out;
}

.sidebar a:hover {
    background: #3F3F3F;
}

/* 🔹 Logout Button */
.logout-btn {
    margin: 10px;
    padding: 12px;
    border: none;
    background: #ff4b4b;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.logout-btn:hover {
    background: #3F3F3F;
}

/* 🔹 Medium Screens (Between 801px - 1150px) */
@media (max-width: 1150px) {
    .sidebar {
        left: 67%;
    }
}

.header-cart-small {
   display: none;    
           /* Ensures children appear in a row (default for flex) */
   align-items: center;         /* Vertically align items */
   gap: 10px;                    /* Space between each child */
   padding: 15px;                /* Padding inside the container itself */
	margin-right: 5%;
	



    justify-content: center;	 
	}
/* Media query for screens smaller than 880px */
@media (max-width: 880px) {


   .header-cart-small {
   display: flex;
   flex-direction: row; 
   }
   .header-cart {
   display: none; }   
   
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;  /* Logo left, search center, cart right */
	width: 100%;
    gap: 10px;
} 
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        margin-left: 5%;
    }

    .header-cart {
        width: 100%;
        justify-content: space-between;
        padding: 10px;
    }

    #header_searchInput {
        width: 90%;
        margin: 10px auto;
        order: 3;
    }   
   
}


@media (max-width: 880px) {
    .sidebar {
        width: 65%;
        left: 17.5%;
    }

    .logged-in .sidebar {
        margin-top: 60px;
    }

    .logged-out .sidebar {
        margin-top: 0px;
    }
}
