/* =========================================================
   ANJANEY AGRO ENTERPRISE
   COMMON HEADER
========================================================= */


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    width: 90px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    position: relative;
    color: var(--dark);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}


/* =========================================================
   PRODUCTS DROPDOWN
========================================================= */

.nav-dropdown {
    position: relative;
}

.products-header {
    display: flex;
    align-items: center;
}

.products-link {
    text-decoration: none;
}

.products-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 5px;
    margin-left: 5px;
    font-family: inherit;
    cursor: pointer;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    min-width: 180px;
    padding: 8px 0;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
    display: none;
    z-index: 1100;
}

.nav-dropdown:hover > .nav-dropdown-menu {
    display: block;
}

.nav-category {
    position: relative;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-header > a {
    display: block;
    flex: 1;
    padding: 11px 18px;
    color: var(--dark);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.category-header > a::after {
    display: none !important;
}

.category-header:hover > a {
    background: var(--light-green);
    color: var(--primary);
}

.category-toggle {
    display: none;
}

.nav-product-menu {
    position: absolute;
    top: -8px;
    left: calc(100% + 5px);
    width: max-content;
    min-width: 220px;
    padding: 8px 0;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
    display: none;
    z-index: 1200;
}

.nav-category:hover > .nav-product-menu {
    display: block;
}

.nav-product-menu a {
    display: block;
    width: 100%;
    padding: 10px 18px;
    color: var(--dark);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.nav-product-menu a::after {
    display: none !important;
}

.nav-product-menu a:hover {
    background: var(--light-green);
    color: var(--primary);
}


/* =========================================================
   DROPDOWN ARROW
========================================================= */

.dropdown-arrow {
    display: inline-block;
    font-size: 16px;
    line-height: 1;
    font-weight: 600;
    transition: transform 0.2s ease;
}


/* =========================================================
   HEADER CONTACT ICONS
========================================================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    
}

.header-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
 
}



.header-icon img {
    width: 25px;
    height: 25px;
    display: block;
    object-fit: contain;
}

.header-icon:hover {
    transform: translateY(-2px);
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

@media (max-width: 768px) {

    .menu-toggle {
        width: 50px !important;
        height: 50px !important;
        flex: 0 0 50px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        background: var(--primary) !important;
        border: none !important;
        border-radius: 3px !important;

        padding: 0 !important;
        margin-left: 12px !important;

        cursor: pointer;
    }

    .menu-toggle:hover {
        background: var(--primary-dark) !important;
    }

    .menu-toggle .menu-icon {
        width: 26px !important;
        height: 26px !important;
        object-fit: contain;
    }
}


/* =========================================================
   MOBILE PRODUCTS DROPDOWN
========================================================= */

@media (max-width: 768px) {

    .products-header {
        width: fit-content;
        display: flex;
        align-items: center;
    }

    .products-link {
        flex: none;
    }

    .products-toggle {
        display: none;
        align-items: center;
        justify-content: center;

        width: 35px;
        height: 35px;

        padding: 0;
        margin: 0 0 0 1px;

        border: 0;
        background: transparent;

        color: var(--dark);
        font-size: 12px;

        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .main-nav.active .products-toggle {
        display: flex;
    }

    .nav-dropdown-menu {
        position: static;
        top: auto;
        left: auto;
        transform: none;

        width: 100%;
        padding: 0 0 0 15px;
        margin: 0;

        background: transparent;
        border: 0;
        box-shadow: none;

        display: none;
    }

    .nav-dropdown.mobile-open > .nav-dropdown-menu {
        display: block;
    }

    .main-nav .nav-dropdown:hover > .nav-dropdown-menu {
        display: none;
    }

    .main-nav .nav-dropdown.mobile-open:hover > .nav-dropdown-menu {
        display: block;
    }

    .category-header {
        width: fit-content;
        display: flex;
        align-items: center;
    }

    .category-header > a {
        flex: none;
        padding: 8px 0;
        color: var(--dark);
        font-size: 14px;
        font-weight: 600;
    }

    .category-toggle {
        display: none;
        align-items: center;
        justify-content: center;

        width: 35px;
        height: 35px;

        padding: 0;
        margin: 0 0 0 1px;

        border: 0;
        background: transparent;

        color: var(--dark);
        font-size: 11px;

        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-dropdown.mobile-open .category-toggle {
        display: flex;
    }

    .nav-product-menu {
        position: static;
        top: auto;
        left: auto;

        width: 100%;
        padding: 0 0 5px 15px;
        margin: 0;

        background: transparent;
        border: 0;
        box-shadow: none;

        display: none;
    }

    .nav-category.mobile-open > .nav-product-menu {
        display: block;
    }

    .main-nav .nav-category:hover > .nav-product-menu {
        display: none;
    }

    .main-nav .nav-category.mobile-open:hover > .nav-product-menu {
        display: block;
    }

    .nav-product-menu a {
        display: block;
        width: 100%;
        padding: 6px 0;

        color: var(--);
        font-size: 13px;
        font-weight: 500;
        text-decoration: none;
    }
}


/* =========================================================
   MOBILE HEADER
========================================================= */

@media (max-width: 768px) {

    .header-inner {
        min-height: 70px;
    }

    .logo img {
        width: 75px;
    }

    .header-actions {
        gap: 7px;
    }

    .header-icon {
        width: 28px;
        height: 32px;
    }

    .header-icon img {
        width: 22px;
        height: 22px;
    }

    .menu-toggle {
        display: flex;
        width: 50px;
        height: 50px;
        flex: 0 0 50px;
    }

    .menu-toggle img {
        width: 34px;
        height: 34px;
        object-fit: contain;
    }

    .menu-toggle .menu-icon-open {
        display: block;
    }

    .menu-toggle .menu-icon-close {
        display: none;
    }

    .main-nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;

        padding: 20px;

        background: var(--light-text);

        display: none;
        flex-direction: column;
        align-items: flex-start;

        gap: 18px;

        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        font-size: 15px;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .main-nav {
        gap: 20px;
    }
}

/* =========================================================
   DESKTOP HEADER POSITIONING
   Adjust logo and social/contact icons independently.
   This applies only to desktop and does not affect mobile.
========================================================= */

@media (min-width: 769px) {

    /* Move logo slightly to the left */
    .logo {
        transform: translateX(-30px);
    }

    /* Move social/contact icons slightly to the right */
    .header-actions {
        transform: translateX(45px);
    }
}