/*==================================================
    TIPA MART
    MAIN HEADER + MOBILE MENU BUTTON
==================================================*/


/*==================================================
    MAIN HEADER
==================================================*/

.header{

    width:100%;

    background:#F7F8FA;

    border-bottom:1px solid #F5B51D;

    position:sticky;

    top:0;

    z-index:1000;

}


/*==================================================
    HEADER CONTAINER
==================================================*/

.header__container{

    min-height:92px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:20px;

}


/*==================================================
    LOGO
==================================================*/

.header__logo{

    flex:0 0 260px;

}

.header__logo img{

    width:225px;

    height:auto;

    display:block;

}

.header__tagline{

    margin-top:0;

    margin-left:38px;

    font-size:10px;

    letter-spacing:.8px;

    font-weight:600;

    color:#444;

    text-transform:uppercase;

}


/*==================================================
    SEARCH
==================================================*/

.header__search{

    flex:1 1 auto;

    margin:0 20px;

    min-width:300px;

}

.header__search-form{

    display:flex;

    align-items:center;

    width:100%;

    height:48px;

    border:2px solid #e5e5e5;

    border-radius:6px;

    overflow:hidden;

    background:#ffffff;

}

.header__search-input{

    flex:1;

    width:100%;

    height:100%;

    border:none;

    padding:0 18px;

    font-size:15px;

    outline:none;

    color:#222222;

}

.header__search-input::placeholder{

    color:#8b8b8b;

}

.header__search-category{

    width:180px;

    height:100%;

    border:none;

    border-left:1px solid #dddddd;

    padding:0 16px;

    background:#ffffff;

    font-size:14px;

    outline:none;

    cursor:pointer;

    color:#222222;

}

.header__search-button{

    width:120px;

    height:100%;

    flex:0 0 120px;

    border:none;

    background:#F5B51D;

    color:#ffffff;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    font-size:15px;

    font-weight:600;

    cursor:pointer;

    transition:background .25s ease;

}

.header__search-button:hover{

    background:#e2a30d;

}


/*==================================================
    HEADER ACTIONS
==================================================*/

.header__actions{

    display:flex;

    align-items:center;

    gap:25px;

    flex:0 0 auto;

}

.header__action{

    display:flex;

    align-items:center;

    text-decoration:none;

    color:#17305b;

}

.header__icon{

    position:relative;

    width:42px;

    height:42px;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:31px;

    margin-right:10px;

}

.header__text{

    display:flex;

    flex-direction:column;

}

.header__title{

    font-size:14px;

    font-weight:700;

    color:#17305b;

    line-height:18px;

}

.header__subtitle{

    font-size:13px;

    color:#6b6b6b;

    line-height:18px;

}

.header__cart-badge{

    position:absolute;

    top:-5px;

    right:-3px;

    width:20px;

    height:20px;

    background:#F5B51D;

    color:#ffffff;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:11px;

    font-weight:bold;

}


/*==================================================
    HEADER ACTION HOVER
==================================================*/

.header__action:hover .header__title{

    color:#F5B51D;

}

.header__action:hover .header__icon{

    color:#F5B51D;

}


/*==================================================
    MOBILE MENU BUTTON
==================================================*/

.mobile-menu-toggle{

    display:none;

    align-items:center;

    justify-content:center;

    gap:9px;

    width:48px;

    height:44px;

    padding:0;

    border:1px solid #e5e5e5;

    border-radius:6px;

    background:#ffffff;

    color:#082C6C;

    font-family:inherit;

    font-size:20px;

    cursor:pointer;

    flex:0 0 auto;

    transition:

        background .25s ease,

        color .25s ease,

        border-color .25s ease;

}

.mobile-menu-toggle span{

    display:none;

}

.mobile-menu-toggle:hover{

    background:#F5B51D;

    border-color:#F5B51D;

    color:#082C6C;

}

.mobile-menu-toggle:focus{

    outline:2px solid rgba(245,181,29,.45);

    outline-offset:2px;

}


/*==================================================
    MOBILE MENU OVERLAY
==================================================*/

.mobile-menu-overlay{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.55);

    opacity:0;

    visibility:hidden;

    pointer-events:none;

    transition:

        opacity .3s ease,

        visibility .3s ease;

    z-index:1998;

}

.mobile-menu-overlay.active{

    opacity:1;

    visibility:visible;

    pointer-events:auto;

}


/*==================================================
    MOBILE OFF-CANVAS MENU
==================================================*/

.mobile-navigation{

    position:fixed;

    top:0;

    left:0;

    width:340px;

    max-width:88vw;

    height:100vh;

    background:#ffffff;

    transform:translateX(-100%);

    visibility:hidden;

    transition:

        transform .35s ease,

        visibility .35s ease;

    z-index:1999;

    display:flex;

    flex-direction:column;

    box-shadow:8px 0 30px rgba(0,0,0,.18);

}

.mobile-navigation.active{

    transform:translateX(0);

    visibility:visible;

}


/*==================================================
    MOBILE MENU HEADER
==================================================*/

.mobile-navigation__header{

    min-height:64px;

    padding:0 20px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    background:#082C6C;

    color:#ffffff;

}

.mobile-navigation__title{

    display:flex;

    align-items:center;

    gap:10px;

    font-size:16px;

    font-weight:700;

}

.mobile-navigation__title::before{

    content:"";

    width:10px;

    height:10px;

    border-radius:50%;

    background:#F5B51D;

}


/*==================================================
    CLOSE BUTTON
==================================================*/

.mobile-menu-close{

    width:40px;

    height:40px;

    display:flex;

    align-items:center;

    justify-content:center;

    border:none;

    border-radius:50%;

    background:rgba(255,255,255,.12);

    color:#ffffff;

    font-size:20px;

    cursor:pointer;

    transition:

        background .25s ease,

        color .25s ease;

}

.mobile-menu-close:hover{

    background:#F5B51D;

    color:#082C6C;

}


/*==================================================
    MOBILE NAVIGATION AREA
==================================================*/

.mobile-navigation__nav{

    flex:1;

    overflow-y:auto;

    overflow-x:hidden;

    -webkit-overflow-scrolling:touch;

}

.mobile-navigation__menu{

    list-style:none;

    margin:0;

    padding:0;

}

.mobile-navigation__menu li{

    border-bottom:1px solid #eeeeee;

}

.mobile-navigation__menu a{

    min-height:54px;

    padding:0 20px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:15px;

    color:#17305b;

    text-decoration:none;

    font-size:14px;

    font-weight:700;

    transition:

        background .25s ease,

        color .25s ease;

}

.mobile-navigation__menu a > span{

    display:flex;

    align-items:center;

    gap:13px;

}

.mobile-navigation__menu a > span i{

    width:22px;

    color:#082C6C;

    font-size:15px;

    text-align:center;

}

.mobile-navigation__menu a > i{

    color:#999999;

    font-size:11px;

}

.mobile-navigation__menu a:hover{

    background:#f7f7f7;

    color:#082C6C;

}

.mobile-navigation__menu a:hover > span i{

    color:#F5B51D;

}

.mobile-navigation__menu a.active{

    background:#fff8df;

    color:#082C6C;

    border-left:4px solid #F5B51D;

    padding-left:16px;

}

.mobile-navigation__menu a.active > span i{

    color:#F5B51D;

}

.mobile-navigation__menu a.active > i{

    color:#F5B51D;

}


/*==================================================
    MOBILE MENU FOOTER
==================================================*/

.mobile-navigation__footer{

    display:grid;

    grid-template-columns:1fr 1fr;

    border-top:1px solid #e5e5e5;

    background:#ffffff;

}

.mobile-navigation__footer a{

    min-height:62px;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    gap:5px;

    color:#17305b;

    text-decoration:none;

    font-size:12px;

    font-weight:700;

    text-decoration:none;

    transition:

        background .25s ease,

        color .25s ease;

}

.mobile-navigation__footer a + a{

    border-left:1px solid #e5e5e5;

}

.mobile-navigation__footer a i{

    font-size:18px;

}

.mobile-navigation__footer a:hover{

    background:#f7f7f7;

    color:#F5B51D;

}


/*==================================================
    LARGE TABLET
==================================================*/

@media (max-width:1200px){

    .header__container{

        min-height:auto;

        flex-wrap:wrap;

        padding:18px 0;

        gap:18px;

    }

    .header__logo{

        flex:0 0 220px;

    }

    .header__logo img{

        width:200px;

    }

    .header__search{

        order:3;

        flex:1 1 100%;

        width:100%;

        min-width:0;

        margin:0;

    }

}


/*==================================================
    TABLET
==================================================*/

@media (max-width:992px){

    .header__container{

        justify-content:center;

    }

    .header__logo{

        flex:0 0 auto;

    }

    .header__actions{

        margin-left:auto;

    }

    .header__search{

        order:3;

        flex:0 0 100%;

        width:100%;

    }

}


/*==================================================
    MOBILE
==================================================*/

@media (max-width:768px){

    .header{

        position:relative;

    }

    .header__container{

        min-height:auto;

        flex-direction:column;

        align-items:center;

        gap:14px;

        padding:15px 0 18px;

    }


    /*----------------------------------------------
        HAMBURGER
    ----------------------------------------------*/

    .mobile-menu-toggle{

        display:flex;

        position:absolute;

        top:18px;

        left:15px;

        z-index:5;

    }


    /*----------------------------------------------
        LOGO
    ----------------------------------------------*/

    .header__logo{

        width:100%;

        text-align:center;

        padding:0 60px;

    }

    .header__logo img{

        width:200px;

        max-width:100%;

        margin:0 auto;

    }

    .header__tagline{

        margin-left:0;

        text-align:center;

    }


    /*----------------------------------------------
        SEARCH
    ----------------------------------------------*/

    .header__search{

        width:100%;

        margin:0;

    }

    .header__search-form{

        height:auto;

        flex-wrap:wrap;

        overflow:visible;

        border:none;

        gap:8px;

    }

    .header__search-input{

        width:100%;

        flex:0 0 100%;

        height:48px;

        border:2px solid #e5e5e5;

        border-radius:6px;

    }

    .header__search-category{

        flex:1;

        width:auto;

        height:48px;

        border:2px solid #e5e5e5;

        border-radius:6px;

    }

    .header__search-button{

        flex:0 0 110px;

        width:110px;

        height:48px;

        border-radius:6px;

    }


    /*----------------------------------------------
        HEADER ACTIONS
    ----------------------------------------------*/

    .header__actions{

        width:100%;

        justify-content:center;

        gap:25px;

        margin:0;

    }

    .header__action{

        align-items:center;

    }

    .header__icon{

        width:38px;

        height:38px;

        font-size:28px;

        margin-right:7px;

    }

    .header__title{

        font-size:13px;

    }

    .header__subtitle{

        font-size:12px;

    }


    /*----------------------------------------------
        MOBILE NAVIGATION
    ----------------------------------------------*/

    .mobile-navigation{

        width:340px;

    }

}


/*==================================================
    SMALL MOBILE
==================================================*/

@media (max-width:480px){

    .header__container{

        padding-top:13px;

        padding-bottom:15px;

    }

    .mobile-menu-toggle{

        top:15px;

        left:12px;

        width:44px;

        height:42px;

        font-size:18px;

    }

    .header__logo{

        padding:0 55px;

    }

    .header__logo img{

        width:185px;

    }

    .header__actions{

        gap:15px;

    }

    .header__icon{

        width:34px;

        height:34px;

        font-size:25px;

    }

    .header__title{

        font-size:12px;

    }

    .header__subtitle{

        font-size:11px;

    }

    .header__search-category{

        font-size:13px;

    }

    .header__search-button{

        flex:0 0 100px;

        width:100px;

        font-size:14px;

    }

    .mobile-navigation{

        width:320px;

    }

    .mobile-navigation__header{

        min-height:60px;

        padding:0 16px;

    }

    .mobile-navigation__menu a{

        min-height:52px;

        padding:0 16px;

        font-size:13px;

    }

    .mobile-navigation__menu a.active{

        padding-left:12px;

    }

    .mobile-navigation__footer a{

        min-height:58px;

        font-size:11px;

    }

}


/*==================================================
    EXTRA SMALL MOBILE
==================================================*/

@media (max-width:360px){

    .header__logo img{

        width:170px;

    }

    .header__logo{

        padding:0 50px;

    }

    .header__actions{

        gap:10px;

    }

    .header__action .header__text{

        display:none;

    }

    .header__icon{

        margin-right:0;

    }

    .header__search-button{

        flex:0 0 90px;

        width:90px;

    }

}

/*==================================================
    CART NOTIFICATION
==================================================*/

.cart-notification{

    position:fixed;

    right:25px;

    bottom:25px;

    z-index:99999;

    display:flex;

    align-items:center;

    gap:12px;

    width:min(380px, calc(100% - 30px));

    padding:14px 15px;

    background:#ffffff;

    border:1px solid #E5E5E5;

    border-left:4px solid #082C6C;

    border-radius:7px;

    box-shadow:0 8px 30px rgba(0,0,0,.15);

    opacity:0;

    transform:translateY(20px);

    pointer-events:none;

    transition:

        opacity .3s ease,

        transform .3s ease;

}


.cart-notification.show{

    opacity:1;

    transform:translateY(0);

    pointer-events:auto;

}


/*==================================================
    ICON
==================================================*/

.cart-notification__icon{

    flex:0 0 38px;

    width:38px;

    height:38px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    background:#082C6C;

    color:#ffffff;

    font-size:17px;

}


/*==================================================
    CONTENT
==================================================*/

.cart-notification__content{

    flex:1;

    min-width:0;

    display:flex;

    flex-direction:column;

    gap:3px;

}


.cart-notification__content strong{

    color:#082C6C;

    font-size:13px;

    font-weight:800;

    line-height:1.2;

}


.cart-notification__content span{

    color:#666666;

    font-size:12px;

    line-height:1.4;

}


/*==================================================
    CLOSE
==================================================*/

.cart-notification__close{

    flex:0 0 auto;

    display:flex;

    align-items:center;

    justify-content:center;

    width:28px;

    height:28px;

    padding:0;

    border:none;

    background:transparent;

    color:#999999;

    font-size:14px;

    cursor:pointer;

}


.cart-notification__close:hover{

    color:#082C6C;

}


/*==================================================
    MOBILE
==================================================*/

@media (max-width:576px){

    .cart-notification{

        right:15px;

        bottom:15px;

        width:calc(100% - 30px);

        padding:12px;

    }


    .cart-notification__icon{

        flex-basis:34px;

        width:34px;

        height:34px;

        font-size:15px;

    }


    .cart-notification__content strong{

        font-size:12px;

    }


    .cart-notification__content span{

        font-size:11px;

    }

}
