
/* =========================================================
   TOPBAR
========================================================= */

header{
    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:75px;

    background:#fff;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:0 8%;

    box-shadow:0 3px 10px rgba(0,0,0,.08);

    z-index:1000;
}


/* =========================================================
   LOGO
========================================================= */

.logo{
    display:flex;
    align-items:center;

    gap:10px;

    font-size:1.6rem;
    font-weight:700;

    color:#b71c1c;
}


.logo img{
    width:75px;
    height:auto;

    object-fit:contain;
}


/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

.desktop-nav{
    display:flex;
    align-items:center;

    gap:35px;
}


.desktop-nav a{
    position:relative;

    display:inline-block;

    text-decoration:none;

    color:#333;

    font-weight:500;

    padding:8px 0;

    transition:color .3s ease;
}


/* =========================================================
   NAVIGATION UNDERLINE
========================================================= */

.desktop-nav a::after{
    content:"";

    position:absolute;

    left:0;
    bottom:0;

    width:0;
    height:3px;

    background:#ffc107;

    border-radius:3px;

    transition:width .3s ease;
}


/* =========================================================
   NAVIGATION HOVER
========================================================= */

.desktop-nav a:hover{
    color:#b71c1c;
}


.desktop-nav a:hover::after{
    width:100%;
}


/* =========================================================
   ACTIVE PAGE
========================================================= */

.desktop-nav a.active{
    color:#b71c1c;
}


.desktop-nav a.active::after{
    width:100%;
}


/* =========================================================
   HEADER ACTIONS
========================================================= */

.header-actions{
    display:flex;

    align-items:center;

    gap:15px;
}


/* =========================================================
   CART
========================================================= */

.cart-icon{
    position:relative;

    display:flex;
    align-items:center;
    justify-content:center;

    text-decoration:none;

    color:#333;

    font-size:26px;

    transition:color .3s ease;
}


.cart-icon:hover{
    color:#b71c1c;
}


/* =========================================================
   CART COUNT
========================================================= */

.cart-count{
    position:absolute;

    top:-10px;
    right:-12px;

    width:22px;
    height:22px;

    background:#b71c1c;

    color:#fff;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:12px;
    font-weight:600;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.mobile-menu-btn{
    display:none;

    width:45px;
    height:45px;

    border:none;

    border-radius:8px;

    background:#b71c1c;

    color:#fff;

    align-items:center;
    justify-content:center;

    font-size:20px;

    cursor:pointer;

    transition:background .3s ease;
}


.mobile-menu-btn:hover{
    background:#8b0000;
}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width:768px){

    header{
        position:sticky;

        top:0;

        width:100%;
        height:70px;

        padding:0 20px;

        display:flex;
        flex-direction:row;

        justify-content:space-between;
        align-items:center;
    }


    /* =====================================================
       LOGO
    ====================================================== */

    .logo{
        width:auto;

        display:flex;

        justify-content:flex-start;
        align-items:center;

        gap:8px;

        font-size:1.15rem;
    }


    .logo img{
        width:55px;
        height:55px;

        object-fit:contain;
    }


    /* =====================================================
       HIDE DESKTOP NAVIGATION
    ====================================================== */

    .desktop-nav{
        display:none;
    }


    /* =====================================================
       HEADER ACTIONS
    ====================================================== */

    .header-actions{
        display:flex;

        align-items:center;

        gap:10px;
    }


    /* =====================================================
       CART
    ====================================================== */

    .cart-icon{
        font-size:24px;

        margin:0;
    }


    /* =====================================================
       CART COUNT
    ====================================================== */

    .cart-count{
        top:-9px;
        right:-11px;

        width:21px;
        height:21px;

        font-size:11px;
    }


    /* =====================================================
       HAMBURGER
    ====================================================== */

    .mobile-menu-btn{
        display:flex;

        width:45px;
        height:45px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media(max-width:480px){

    header{
        height:65px;

        padding:0 12px;
    }


    /* =====================================================
       LOGO
    ====================================================== */

    .logo{
        font-size:1rem;

        gap:6px;
    }


    .logo img{
        width:48px;
        height:48px;
    }


    /* =====================================================
       HEADER ACTIONS
    ====================================================== */

    .header-actions{
        gap:8px;
    }


    /* =====================================================
       CART
    ====================================================== */

    .cart-icon{
        font-size:22px;
    }


    .cart-count{
        top:-8px;
        right:-10px;

        width:20px;
        height:20px;

        font-size:10px;
    }


    /* =====================================================
       HAMBURGER
    ====================================================== */

    .mobile-menu-btn{
        width:40px;
        height:40px;

        font-size:18px;
    }

}
