/* =========================================================
   MOBILE HAMBURGER BUTTON
========================================================= */

.mobile-menu-btn {

    display: none;

    width: 45px;
    height: 45px;

    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 12px;

    background: #fff4e5;

    color: #b71c1c;

    font-size: 22px;

    cursor: pointer;

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;

}


.mobile-menu-btn:hover {

    background: #b71c1c;

    color: #ffffff;

    transform: translateY(-2px);

}


.mobile-menu-btn:active {

    transform: scale(.94);

}


/* =========================================================
   SIDEBAR
========================================================= */

.customer-sidebar {

    position: fixed;

    top: 0;
    left: -320px;

    width: 300px;

    height: 100vh;

    background: #ffffff;

    z-index: 9999;

    display: flex;

    flex-direction: column;

    box-shadow:
        12px 0 40px rgba(0, 0, 0, .18);

    transition:
        left .35s cubic-bezier(.4, 0, .2, 1);

    overflow: hidden;

}


/* Sidebar opened */

.customer-sidebar.active {

    left: 0;

}


/* =========================================================
   SIDEBAR TOP ACCENT
========================================================= */

.customer-sidebar::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    height: 5px;

    background: linear-gradient(
        90deg,
        #b71c1c,
        #d92323,
        #ffc107
    );

}


/* =========================================================
   SIDEBAR HEADER
========================================================= */

.sidebar-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 25px 20px 20px;

    border-bottom: 1px solid #eeeeee;

    background:
        linear-gradient(
            180deg,
            #fffafa 0%,
            #ffffff 100%
        );

}


/* =========================================================
   SIDEBAR LOGO
========================================================= */

.sidebar-logo {

    display: flex;

    align-items: center;

    gap: 12px;

    color: #b71c1c;

    font-size: 16px;

    font-weight: 700;

}


.sidebar-logo img {

    width: 48px;
    height: 48px;

    object-fit: cover;

    border-radius: 50%;

    border: 3px solid #ffc107;

    background: #ffffff;

    box-shadow:
        0 5px 15px rgba(183, 28, 28, .15);

}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.sidebar-close {

    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 12px;

    background: #f8f8f8;

    color: #555;

    font-size: 18px;

    cursor: pointer;

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;

}


.sidebar-close:hover {

    background: #b71c1c;

    color: #ffffff;

    transform: rotate(90deg);

}


/* =========================================================
   SIDEBAR NAVIGATION
========================================================= */

.sidebar-nav {

    display: flex;

    flex-direction: column;

    /* IMPORTANT:
       Prevent the general mobile nav CSS
       from vertically centering the sidebar */
    justify-content: flex-start;

    align-items: stretch;

    gap: 6px;

    /* Smaller top spacing */
    padding: 12px 15px;

    /* Remove the margin coming from the general nav rule */
    margin-top: 0;

    /* Prevent wrapping from the general nav rule */
    flex-wrap: nowrap;

    flex: 1;

}


/* =========================================================
   SIDEBAR LINKS
========================================================= */

.sidebar-nav a {

    position: relative;

    display: flex;

    align-items: center;

    gap: 15px;

    min-height: 52px;

    padding: 0 16px;

    border-radius: 13px;

    text-decoration: none;

    color: #4a4a4a;

    font-size: 14px;

    font-weight: 500;

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;

}


/* Icon */

.sidebar-nav a i {

    width: 24px;

    text-align: center;

    color: #888;

    font-size: 17px;

    transition:
        color .25s ease,
        transform .25s ease;

}


/* =========================================================
   HOVER
========================================================= */

.sidebar-nav a:hover {

    background: #fff4e5;

    color: #b71c1c;

    transform: translateX(4px);

}


.sidebar-nav a:hover i {

    color: #b71c1c;

    transform: scale(1.08);

}


/* =========================================================
   ACTIVE SIDEBAR LINK
========================================================= */

.sidebar-nav a.active {

    background: #b71c1c;

    color: #ffffff;

    font-weight: 600;

    box-shadow:
        0 8px 20px rgba(183, 28, 28, .18);

}


.sidebar-nav a.active i {

    color: #ffc107;

}


/* Active indicator */

.sidebar-nav a.active::before {

    content: "";

    position: absolute;

    left: 0;

    top: 10px;

    width: 4px;

    height: 32px;

    border-radius: 0 5px 5px 0;

    background: #ffc107;

}


/* =========================================================
   SIDEBAR FOOTER
========================================================= */

.customer-sidebar::after {

    content: "Fresh. Delicious. Always Chooks.";

    display: block;

    padding: 18px 20px;

    border-top: 1px solid #eeeeee;

    color: #999999;

    text-align: center;

    font-size: 10px;

    font-weight: 500;

    letter-spacing: .3px;

}


/* =========================================================
   OVERLAY
========================================================= */

.sidebar-overlay {

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, .5);

    z-index: 9998;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    -webkit-backdrop-filter: blur(2px);

    backdrop-filter: blur(2px);

    transition:
        opacity .3s ease,
        visibility .3s ease;

}


.sidebar-overlay.active {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {


    /* -----------------------------------------------------
       HEADER
    ----------------------------------------------------- */

    header {

        flex-direction: row;

        height: 70px;

        padding: 0 20px;

    }


    /* -----------------------------------------------------
       LOGO
    ----------------------------------------------------- */

    .logo {

        gap: 8px;

        font-size: 1.15rem;

    }


    .logo img {

        width: 55px;

    }


    /* -----------------------------------------------------
       HIDE DESKTOP NAVIGATION
    ----------------------------------------------------- */

    .desktop-nav {

        display: none;

    }


    /* -----------------------------------------------------
       SHOW HAMBURGER
    ----------------------------------------------------- */

    .mobile-menu-btn {

        display: flex;

    }


    /* -----------------------------------------------------
       HERO
    ----------------------------------------------------- */

    .hero {

        padding-top: 120px;

    }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 480px) {


    .customer-sidebar {

        width: 285px;

        left: -300px;

    }


    .sidebar-header {

        padding:
            24px
            17px
            18px;

    }


    .sidebar-logo {

        font-size: 15px;

    }


    .sidebar-logo img {

        width: 44px;
        height: 44px;

    }


    .sidebar-nav {

        padding:
            20px
            12px;

    }


    .sidebar-nav a {

        min-height: 50px;

        padding: 0 14px;

    }


    .mobile-menu-btn {

        width: 42px;
        height: 42px;

        font-size: 20px;

    }


}


/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 769px) {

    .customer-sidebar,
    .sidebar-overlay {

        display: none;

    }

}

