/* ===============================
   HEADER BASE
=============================== */

.main-header {
    background: #01780F;
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 50px;
}

/* ===============================
   NAVIGATION
=============================== */

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}
.nav-links {
    overflow: visible;
}


.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
}

.nav-links a:hover {
    opacity: 0.85;
}

.welcome-text {
    color: #fff;
    font-weight: 600;
}

/* ===============================
   DROPDOWN
=============================== */

.dropdown-menu {
    position: absolute;
    top: 35px;
    left: 0;
    background: #ffffff;
    min-width: 180px;
    padding: 6px 0;
    border-radius: 6px;
    display: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    z-index: 2000;
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    color: #333;
}

.dropdown-menu li a:hover {
    background: #f2f2f2;
    color: #01780F;
}

.dropdown-menu.show {
    display: block;
}

/* ===============================
   HAMBURGER
=============================== */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
}

/* ===============================
   MOBILE
=============================== */

@media (max-width: 768px) {

    .main-header {
        height: 60px;
    }

    .header-flex {
        height: 60px;
    }

    .logo img {
        height: 35px;
    }

    .hamburger {
        display: flex;
    }

    #navMenu {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: #01780F;
        padding: 20px 0;
        z-index: 1500;
    }

    #navMenu.active {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        gap: 18px;
        align-items: center;
    }

    .dropdown {
        width: 100%;
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        background: #026b12;
        box-shadow: none;
        width: 100%;
    }

    .dropdown-menu li a {
        color: #fff;
    }

    .dropdown-menu.show {
        display: block;
    }
}


/* Account Dropdown */
.account-dropdown {
    position: relative;
}

.account-dropdown > a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.account-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 190px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 999;
}

.account-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-dropdown .dropdown-menu li a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: #333;
    transition: background 0.2s ease;
}

.account-dropdown .dropdown-menu {
    display: none;
}

.account-dropdown.active .dropdown-menu {
    display: block;
}

/* Hide mobile cart icon in desktop */
.mobile-cart-icon {
    display: none;
}

/* Show only in mobile */
@media (max-width: 768px) {
    .mobile-cart-icon {
        display: block;
        position: relative;
        font-size: 20px;
        color: #fff;
    }
}
