/* =========================================
   AFGHANNUTS HEADER - FINAL
========================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Assistant", sans-serif;
    background: #f1f7f3;
}


/* =========================================
   HEADER
========================================= */

.an-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.an-head-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 18px 8px;
}


/* =========================================
   TOP ROW
========================================= */

.an-top-row {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 20px;
}


/* =========================================
   MOBILE MENU
========================================= */

.an-menu {
    display: none;
    width: 38px;
    height: 38px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
}


/* =========================================
   BRAND
========================================= */

.an-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: #111;
    flex-shrink: 0;
}

.an-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.an-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.an-brand-text strong {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: .3px;
}

.an-brand-text small {
    margin-top: 4px;
    font-size: 9px;
    color: #777;
    letter-spacing: 1px;
}


/* =========================================
   TOP NAV
========================================= */

.an-top-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.an-top-nav a {
    color: #222;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.an-top-nav a:hover {
    color: #388e3c;
}


/* =========================================
   DELIVERY
========================================= */

.an-delivery {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.an-delivery i {
    color: #222;
    font-size: 17px;
}


/* =========================================
   CART
========================================= */

.an-cart-top {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #111;
    text-decoration: none;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
}

.an-cart-top i {
    font-size: 18px;
}

.an-cart-top b {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: #111;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}


/* =========================================
   SEARCH
========================================= */

.an-search {
    width: 100%;
    height: 42px;
    margin-top: 9px;
    display: flex;
    align-items: center;
    border: 1px solid #bbb;
    border-radius: 22px;
    background: #fff;
    overflow: hidden;
}

.an-search > i {
    margin-left: 15px;
    color: #777;
    font-size: 14px;
}

.an-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    padding: 0 12px;
    font-size: 14px;
    background: transparent;
}

.an-search button {
    width: 42px;
    height: 42px;
    border: 0;
    background: #f3f3f3;
    color: #333;
    cursor: pointer;
}

.an-search button:hover {
    background: #111;
    color: #fff;
}


/* =========================================
   SECOND NAV
========================================= */

.an-nav {
    width: 100%;
    margin-top: 7px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-top: 1px solid #eee;
    padding-top: 6px;
}

.an-nav a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #444;
    text-decoration: none;
    font-size: 11px;
}

.an-nav a i {
    font-size: 11px;
}

.an-nav a:hover {
    color: #388e3c;
}


/* =========================================
   PAGE
========================================= */

.an-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px;
}


/* =========================================
   ALERT
========================================= */

.an-alert {
    margin-bottom: 15px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 14px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .an-head-inner {
        padding-left: 12px;
        padding-right: 12px;
    }

    .an-top-nav {
        gap: 10px;
    }

    .an-delivery {
        display: none;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .an-head-inner {
        padding: 7px 10px;
    }

    .an-top-row {
        gap: 8px;
        min-height: 42px;
    }

    .an-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .an-brand {
        gap: 6px;
        min-width: 0;
    }

    .an-brand-mark {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .an-brand-text strong {
        font-size: 16px;
    }

    .an-brand-text small {
        font-size: 7px;
        letter-spacing: .6px;
    }

    .an-top-nav {
        display: none;
    }

    .an-cart-top {
        margin-left: auto;
    }

    .an-cart-top span {
        display: none;
    }

    .an-cart-top i {
        font-size: 19px;
    }

    .an-search {
        height: 38px;
        margin-top: 7px;
    }

    .an-search button {
        height: 38px;
        width: 38px;
    }

    .an-nav {
        margin-top: 5px;
        padding-top: 5px;
    }

    .an-nav a {
        flex-direction: column;
        gap: 2px;
        font-size: 9px;
    }

    .an-nav a i {
        font-size: 12px;
    }

    .an-page {
        padding: 10px;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .an-brand-text strong {
        font-size: 14px;
    }

    .an-brand-text small {
        font-size: 6px;
    }

    .an-brand-mark {
        width: 31px;
        height: 31px;
    }

    .an-page {
        padding: 8px;
    }
}