.header {

    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: white;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
}

.logo-img {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
}

.logo-img img {
    width: 40px;
    height: 40px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 3px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Shopping Cart Icon Styles */
.cart-icon-container {
    position: relative;
    margin-right: 10px;
}

.cart-icon {
    position: relative;
    color: var(--text-dark, #333);
    text-decoration: none;
    font-size: 24pt !important; /* Increased size */
    padding: 12px; /* Increased padding */
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon:hover {
    color: var(--secondary, #ff9a00);
    background-color: rgba(255, 154, 0, 0.1);
}

.cart-count {


    position: absolute;
    top: -2px; /* Adjusted position */
    right: -5px; /* Adjusted position */
    background-color: #ffae00;
    color: white;
    border-radius: 50%;
    width: 28px; /* Increased size */
    height: 28px; /* Increased size */
    font-size: 13pt; /* Increased font size */
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 3px;
    line-height: 1;
    border: 3px solid white; /* Increased border */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mobile-cart-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-cart-link i {
    font-size: 1.1rem;
}

/* Mobile Header Cart Icon */
.mobile-cart-header {
    position: relative;
    display: none; /* Hidden by default on desktop */
}

.mobile-cart-icon {
    position: relative;
    color: var(--text-dark, #333);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-cart-icon:hover {
    color: var(--secondary, #ff9a00);
    background-color: rgba(255, 154, 0, 0.1);
}



.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 40px;
    height: 40px;
}

.logo-text {
    margin-left: 10px;
    font-size: 24px;
    font-weight: bold;
}

.logo-text span {
    color: #f39c12;
}

.menu-toggle {
    cursor: pointer;
    z-index: 1000;
    margin-right: 15px;
}

.mobileHeader {
    display: none;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.3s;
}

.desktopHeader ul {

    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
    
}

.desktopHeader li {
    margin: 0 15px;
}

.desktopHeader a {

    text-decoration: none;
    color: #6d6d6d !important;
    font-weight: bold;
    font-size: 12pt;
    transition: color 0.3s;
    

}

.desktopHeader a:hover {
    color: #f39c12;
}

.auth-buttons {
    display: none;
}

.auth-buttons a {
    display: inline-block;
    padding: 10px 25px;
    margin-left: 10px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}


/* Mobile Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background-color: white;
    transition: all 0.25s ease-in-out;
    z-index: 999;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

.close-btn span {
    display: block;
    width: 25px;
    height: 25px;
    position: relative;
}

.close-btn span::before,
.close-btn span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #333;
    top: 50%;
    left: 0;
}

.close-btn span::before {
    transform: rotate(45deg);
}

.close-btn span::after {
    transform: rotate(-45deg);
}

.mobile-menu {
    padding: 60px 0 0 0;
    list-style-type: none;
}

.menu-item {
    padding: 15px 30px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.menu-item a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    display: block;
}

.submenu-indicator {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #4267B2;
    transition: transform 0.3s;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}



@media (max-width: 768px) {

    .mobile-cart-count-header {

        top: 4px;
        background-color: #ffae00;
        border: 1px solid white;
        font-size: 12pt;
        position: absolute;
        right: -4px;
        color: white;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
         box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .mobile-cart-icon {

        font-size: 20pt;
        color: #818181;

    }

    .loginButton {
        width: CALC(100% - 20px);
    }

    .loginButton a {
        width: 100%;
    }

    .loginButton {
        

        margin: 10px;
    }

    .mobileHeader {
        display: block;

    }

    /* Desktop Navigation */
    .desktopHeader {
        display: none;
    }

    .header {

        padding: 3px 15px;

    }

    .logo-container {

        justify-content: space-between;
        width: 100%;
        align-items: center;
    }

    .logo {
        
        font-size: 1.5rem;
        
    }

    .logo {

        margin-left: -20px;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* Hide desktop cart icon on mobile */
    .cart-icon-container {
        display: none;
    }

    /* Show mobile header cart icon */
    .mobile-cart-header {
        display: block;
        margin-right: 10px;
    }

}