﻿h3 {
    text-align: center;
    font-weight: bold;
    font-size: 17px;
    margin-top: 20px;
    margin-bottom: 10px;
    color: black;
}

body {
    font-family: "Lato", sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.sidenav {
    height: 100vh;
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #f8f9f8;
    overflow-x: hidden;
    padding-top: 60px;
    box-shadow: 2px 0px 5px rgba(0, 0, 0, 0.1);
    transition: .1s ease-in-out;
    z-index: 1000;

    /* Hide scrollbar for all browsers */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

.sidenav::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.sidenav a, span {
    padding: 8px 8px;
    text-decoration: none;
    color: black;
    display: block;
    transition: 0.3s;
}

    .sidenav a:hover {
        color: #fff;
        background: #a92222;
    }

.menu-toggle .fas {
    position: absolute;
    top: 18px;
    left: 218px;
    color: #dc3545;
    cursor: pointer;
    font-size: 28px;
}

.cart-counter {
    position: relative;
    top: -12px;
    right: 8px;
}

.fa-bars {
    color: #dc3545;
    font-size: 28px;
}

.logo {
    margin: 0 auto;
}

.logo-container {
    text-align: center;
}

.logo-container img {
    height: 70px;
}

.main-content {
    margin-left: 250px;
    flex: 1;
}

footer {
    margin-left: 250px;
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #ddd;
}

.toggle-btn {
    display: inline-flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
    border: none;
    margin-right: 10px;
    transition: background-color 0.3s;
    padding: 8px;
    line-height: 24px;
    letter-spacing: 1px;
    font-size: 12px;
    font-weight: 700;
}

    .toggle-btn:hover {
        background-color: #a92222;
        color: #fff;
    }

.toggle-btn:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

    .toggle-btn.active {
        background-color: #a92222;
        color: #fff;
    }

    .toggle-btn.active i {
        color: #fff !important;
    }

.toggle-btn .list-item a {
    font-size: 14px;
    padding: 0 0 0 32px;
}

.sidenav a {
    letter-spacing: 1px;
    line-height: 24px;
    display: flex;
    align-items: center;
}

span {
    padding: 5px 0;
    letter-spacing: 1px;
    font-weight: 600;
    font-size: 11px;
    color: #393838;
}

/* Home Section Redesign */
.sidenav a.home-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #f0f0f0;
    border-radius: 8px;
    margin: 0 20px 15px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    font-size: 16px;
}

.sidenav a.home-link:hover {
    background-color: #e0e0e0;
    text-decoration: none;
    color: darkred;
}

.sidenav a.home-link i {
    color: red;
    margin-right: 10px;
}

.myProfileSection {
    position: absolute;
    right: 8px;
    display: flex;
    flex-direction: column;
    margin: 32px 0;
    padding: 10px 0;
    width: 232px;
    background: #f8f9f8;
    gap: 8px;
    border-radius: 8px;
    z-index: 1000;
}

.myProfileSection form {
    margin: 0 auto;
}

span i,
.list-item a i {
    padding-right: 8px;
}

a:hover {
    color: #fff;
}

.list-item .fas {
    color: #dc2626;
}

.list-item .fas:hover {
    color: #fff;
}

.toggle-btn:hover i {
    color: white !important;
}

.list-item:hover {
    background: #a92222;
    color: white;
}

.list-item a:hover i,
.list-item a:hover span {
    color: white !important;
}

#mySidenav div[id$="Section"] {
    transition: all 0.3s ease-in-out;
}

.section .list-item a {
    font-size: 12px;
    padding: 8px 0 8px 56px;
}

.sub-link {
    text-transform: none;
    font-size: 12px;
    font-weight: 600;
    padding: 0 0 0 40px !important;
    margin: 0 0 8px 0;
}

@media screen and (max-width: 990px) {
    .menu-open {
        position: absolute;
    }

    .logo-container img {
        scale: 0.7;
    }

    .cart-counter {
        position: absolute;
        top: 24px;
        right: 174px;
    }

    .sidenav {
        width: 0;
    }

    .main-content {
        margin-left: 0;
    }
}
