/* ==========================================================
   AANYA HEADER
========================================================== */

:root {

    --header-height: 82px;
    --header-height-sticky: 68px;

    --header-bg: #ffffff;

    --header-border: #ECEFEC;

    --header-shadow: 0 12px 35px rgba(20, 35, 20, .08);

}

/*==========================================================
TOP BAR
==========================================================*/

.top-bar {

    background: #5B8C3A;

    color: #fff;

    font-size: 13px;

    font-weight: 500;

    padding: 8px 0;

}

.top-bar__content {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;

}

.top-bar .divider {

    opacity: .6;

}

/*==========================================================
HEADER
==========================================================*/

.site-header {

    position: sticky;

    top: 0;

    z-index: 9999;

    background: #fff;

    transition: .35s;

}

.site-header.is-sticky {

    box-shadow: var(--header-shadow);

}

.header-main {

    border-bottom: 1px solid var(--header-border);

}

.header-inner {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: space-between;

    min-height: var(--header-height);

    gap: 50px;

}

/*==========================================================
LOGO
==========================================================*/

.header-logo {

    flex-shrink: 0;

}

.header-logo img {

    height: 55px;

    width: auto;

    display: block;

    transition: .30s;

}

.site-header.is-sticky .header-logo img {

    height: 40px;

}

/*==========================================================
NAVIGATION
==========================================================*/

.header-navigation {

    flex: 1;

    display: flex;

    justify-content: center;

}

/*==========================================================
HEADER ACTIONS
==========================================================*/

.header-actions {

    display: flex;

    align-items: center;

    gap: 12px;

    flex-shrink: 0;

}

.header-icon {

    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    border: 1px solid #E6ECE6;

    background: #fff;

    color: #243026;

    transition: .25s;

    position: relative;

}

.header-icon svg {

    width: 20px;

    height: 20px;

}

.header-icon:hover {

    background: var(--color-brand-primary);

    border-color: var(--color-brand-primary);

    color: #fff;

    transform: translateY(-2px);

}

/*==========================================================
CART BADGE
==========================================================*/

.cart-count {

    position: absolute;

    top: -5px;

    right: -5px;

    width: 18px;

    height: 18px;

    border-radius: 50%;

    background: #E53935;

    color: #fff;

    font-size: 10px;

    font-weight: 700;

    display: flex;

    align-items: center;

    justify-content: center;

}

/*==========================================================
STICKY
==========================================================*/

.site-header.is-sticky .header-inner {

    min-height: var(--header-height-sticky);

}

/*==========================================================
MOBILE
==========================================================*/

.mobile-menu-toggle {

    display: none;

}

.mobile-menu-toggle svg {

    width: 22px;

    height: 22px;

}

@media(max-width:1279px) {

    .top-bar {

        display: none;

    }

    .header-inner {

        flex-wrap: wrap;

        gap: 12px;

    }

    .header-navigation {

        display: none;

    }

    body.mobile-menu-open .header-navigation {

        display: flex;

        flex-basis: 100%;

        order: 1;

    }

    .header-actions {

        margin-left: auto;

    }

    .mobile-menu-toggle {

        display: flex;

        width: 42px;

        height: 42px;

        border-radius: 10px;

        align-items: center;

        justify-content: center;

        border: none;

        background: #F4F7F4;

    }

}

.top-bar {

    background: #5B8C3A;

    color: #fff;

    font-size: 13px;

    font-weight: 500;

    padding: 8px 0;

}

.top-bar p {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 12px;

    margin: 0;

    flex-wrap: wrap;

}

.admin-bar .site-header {
    top: 32px;
}

@media(max-width:782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}
