/* === DEFAULT: Black menu text === */
.main-header-menu a {
    color: black !important;
}

/* === HOMEPAGE: White menu text === */
body.home .main-header-menu a {
    color: white !important;
}

/* === UNIVERSAL HOVER: Green on hover, even on homepage === */
.main-header-menu a:hover,
body.home .main-header-menu a:hover {
    color: #C4D51A !important;
}

/* === NON-HOMEPAGE: Green header background === */
body:not(.home) header {
    background-color: #C4D51A !important; /* Replace with your desired green */
}

/* === NON-HOMEPAGE: Hover color black for menu links === */
body:not(.home) .main-navigation a:hover,
body:not(.home) .menu-item a:hover {
    color: black !important;
}

/* === MOBILE DROPDOWN MENU TEXT & BACKGROUND (ASTRA THEME) === */
@media (max-width: 1024px) {
    /* Mobile menu links */
    #ast-mobile-site-navigation .main-header-menu .menu-link {
        color: black !important; /* Black text */
    }

    /* Hover color for mobile links */
    #ast-mobile-site-navigation .main-header-menu .menu-link:hover {
        color: #C4D51A !important; /* Green hover */
    }

    /* Dropdown background (sub-menu) */
    #ast-mobile-site-navigation .main-header-menu .sub-menu {
        background-color: white !important; /* Ensure black text is visible */
    }

    /* Mobile hamburger & close icons */
    /* Non-home pages: black icons */
    body:not(.home) .ast-mobile-menu-trigger-minimal .ast-mobile-svg {
        fill: black !important;
    }



    /* Homepage: white icons */
    body.home .ast-mobile-menu-trigger-minimal .ast-mobile-svg {
        fill: white !important;
    }
}

/* === HIDE WOOCOMMERCE RELATED PRODUCTS SECTION === */
.related.products {
    display: none !important;
}

/* === HIDE JETPACK RELATED POSTS SECTION === */
#jp-relatedposts {
    display: none !important;
}

/* Move logo slightly to the right on mobile */
@media (max-width: 1024px) {
    .ast-site-identity img {
        margin-left: 15px; /* Adjust this value as needed */
    }
}

/*
 * 
 * /* Cart icon on home page */
body.home #ast-cart-svg path {
    fill: white; /* default white */
    transition: fill 0.3s ease;
}
body.home a:hover #ast-cart-svg path {
    fill: #C4D51A; /* hover green */
}

/* Cart icon on all other pages */
body:not(.home) #ast-cart-svg path {
    fill: black; /* always black */
}
body:not(.home) a:hover #ast-cart-svg path {
    fill: black; /* stays black on hover */
}

/* === MOBILE: Force hamburger (menu toggle) to stay black === */
.ast-button-wrap .menu-toggle,
.ast-button-wrap .menu-toggle:hover,
.ast-button-wrap .menu-toggle:focus,
.ast-button-wrap .menu-toggle:active {
    color: black !important; /* icon color */
    border-color: black !important; /* if theme adds a border */
}

/* If Astra uses background on active toggle, override it */
.ast-button-wrap .menu-toggle.toggled,
.ast-button-wrap .menu-toggle.toggled:hover,
.ast-button-wrap .menu-toggle.toggled:focus {
    color: black !important;
    background: transparent !important; /* prevent grey highlight */
}

    /* Non-home hover color: green */
    body:not(.home) .ast-mobile-menu-trigger-minimal:hover .ast-mobile-svg {
        fill: white !important;
    }

.site-footer {
  position: relative; /* instead of absolute or fixed */
  clear: both;
}

//* === ACCOUNT ICON: HOME PAGE === */
body.home .ast-header-account-link svg path,
body.home .ast-header-account-link svg circle {
    fill: white !important; /* default white */
    transition: fill 0.3s ease;
}

body.home .ast-header-account-link:hover svg path,
body.home .ast-header-account-link:hover svg circle {
    fill: #C4D51A !important; /* green on hover */
}

/* === ACCOUNT ICON: NON-HOME PAGES === */
body:not(.home) .ast-header-account-link svg path,
body:not(.home) .ast-header-account-link svg circle {
    fill: black !important; /* default black */
}

/* No hover effect on non-home pages */
.woocommerce-MyAccount-content a.edit[href*="billing"] {
    color: #000000 !important;
}

.woocommerce-MyAccount-content a.edit[href*="shipping"] {
    color: #000000 !important;
}