.header {
    background-color: var(--white-color);
}

/* top bar */
.top-bar-line {
    background: linear-gradient(to right, #009987, #f5e6e7, #990012);
    height: 5px;
    width: 100%;
}

.top-bar-container {
    height: var(--top-bar-height);
}

.top-bar-open-hour {
    color: var(--white-color);
    display: block;
    height: fit-content;
    position: relative;
    transition: opacity .3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

    .top-bar-open-hour::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: -460px;
        bottom: 0;
        z-index: 0;
        background: #7f1822;
        box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
        border-bottom-left-radius: 50px;
    }

    .top-bar-open-hour img {
        position: relative;
        z-index: 1;
        width: 54px;
    }

.top-bar-open-hour-info {
    position: relative;
    z-index: 1;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.top-bar-open-hour:hover {
    opacity: .8;
}
    .top-bar-open-hour:hover .top-bar-open-hour-detail {
        text-decoration: underline;
    }
    /* nav bar */
    .nav-bar {
        position: sticky;
        top: -100px;
        transition: top 0.5s ease;
        z-index: 100;
        background-color: var(--white-color);
        box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.1);
    }

    .nav-bar.sticky {
        top: 0;
    }

.nav-bar-container {
    height: var(--nav-bar-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-bar-link {
    color: var(--primary-color);
    font-size: var(--font-size-base);
    font-weight: 500;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-self: center;
    height: 100%;
    gap: 8px;
    cursor: pointer;
    position: relative;
    height: 100%;
}

    .nav-bar-link.active {
        font-weight: bold;
    }

    .nav-bar-link > * {
        padding: 8px 0;
        display: block;
    }

    .nav-bar-link p {
        margin: 0;
    }

    .nav-bar-link.active {
        font-weight: 700;
    }

.nav-bar-link-sub {
    position: absolute;
    top: calc(100% + 4px);
    left: -10px;
    border-radius: 6px;
    background-color: var(--white-color);
    min-width: 160px;
    white-space: nowrap;
    padding: 4px 8px 4px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.1), 0 10px 20px rgba(0, 0, 0, 0.1);
    height: fit-content;
    display: none;
}

    .nav-bar-link-sub hr {
        border: 1px solid #878787;
        opacity: 0.3;
        margin: 0;
        height: auto;
    }

.nav-bar-link-sub-col {
    display: flex;
    flex-direction: column;
}

.nav-bar-link-sub p,
.nav-bar-link-sub a {
    font-size: 14px;
    font-weight: 500;
    display: block;
    width: 100%;
    padding: 8px 14px 8px 20px;
    color: var(--text-color);
    text-transform: initial;
}

.nav-bar-link::after {
    content: '';
    bottom: -1px;
    top: 80%;
    height: 18px;
    left: -10px;
    position: absolute;
    width: calc(100% + 20px);
    z-index: 2;
    display: none;
}

@media (min-width: 1200px) {
    .nav-bar-link:hover .nav-bar-link-sub {
        display: flex;
        animation: slideUp .5s ease;
    }
    .nav-bar-link:hover::after {
        display: block;
    }
}

.nav-bar-link-sub a:hover {
    color: var(--secondary-color);
}

.nav-bar-group-btn .circle {
    width: 28px;
    height: 28px;
    background-color: var(--primary-color);
    border-radius: var(--border-radius-full);
    color: var(--white-color);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-bar-group-btn .rectangle {
    height: 28px;
    aspect-ratio: 14 / 10;
    border-radius: 2px;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-bar-btn-login {
    display: flex;
    align-items: center;
    gap: 8px
}

.nav-bar-layer {
    position: fixed;
    height: 100vh;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10;
    display: none;
}

    .nav-bar-layer.active {
        display: block;
        animation: customOpacity 0.5s ease forwards;
    }

.nav-bar-toggle {
    font-size: 28px;
    color: var(--text-color);
    display: none;
    overflow: hidden;
    padding: 5px 0px 5px 16px;
}

/* @media (max-width: 992px) {
    .nav-bar-link {
        font-size: 15px;
    }
} */

@media (max-width: 1200px) {
    .nav-bar-main {
        position: fixed;
        right: -100%;
        background-color: var(--white-color);
        top: calc(var(--nav-bar-height) + 5px);
        height: calc(100vh - var(--nav-bar-height) - 5px) !important;
        max-width: 65%;
        flex-direction: column;
        justify-content: space-between;
        align-items: start;
        padding: 12px 24px 24px;
        border-top: 5px solid var(--primary-color);
        z-index: 99;
        transition: right 0.5s ease;
    }

        .nav-bar-main.active {
            right: 0;
        }

        .nav-bar-main > div:first-child {
            display: none;
        }

    .nav-bar-main,
    .nav-bar-links > ul {
        align-items: start !important;
    }

    .nav-bar-links {
        overflow-y: auto;
    }

        .nav-bar-links,
        .nav-bar-links li {
            width: 100%;
            padding: 0;
        }

            .nav-bar-links > ul {
                flex-direction: column;
                width: 100%;
                gap: 0;
            }

    .nav-bar-link {
        display: block;
        width: 100%;
        height: fit-content;
        padding: 12px 0 11px 5px;
        border-bottom: 1px solid #e6edf4;
        font-size: 15px;
        font-weight: 500;
    }

        .nav-bar-link::after {
            content: none;
        }

        .nav-bar-link > * {
            padding: 0;
        }

        .nav-bar-link p {
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 60px;
        }

    .nav-bar-group-btn {
        width: 100%;
        justify-content: center;
    }

    .nav-bar-link-sub {
        position: relative;
        top: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        animation: none;
        overflow: hidden;
        padding: 0;
        max-height: 0;
        transition: max-height .8s linear;
        box-shadow: none;
        background-color: var(--light-gray);
        border-radius: 0;
    }

        .nav-bar-link-sub hr {
            display: none;
        }

        .nav-bar-link-sub p,
        .nav-bar-link-sub a {
            height: auto;
            padding: 10px 14px 10px 20px;
        }

    .nav-bar-link.active .nav-bar-link-sub {
        max-height: 1000px;
    }

    .nav-bar-toggle {
        display: block;
    }

    .nav-bar-link.hover-underline-wrapper .hover-underline::after {
        display: none !important;
    }
}

@keyframes customOpacity {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
