:root {
    --yeshi-shell-nav-height: 56px;
    --yeshi-shell-bottom-nav-height: 84px;
}

body.yeshi-home-nav-active {
    padding-top: var(--yeshi-shell-nav-height);
}

#yeshiHomeLikeNav {
    position: fixed;
    top: 0;
    z-index: 5000;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(26, 28, 28, 0.08);
}

#yeshiHomeLikeNav .yeshi-nav-inner {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    gap: 10px;
}

#yeshiHomeLikeNav .yeshi-nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

#yeshiHomeLikeNav .logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1a1c1c;
    font-weight: 700;
}

#yeshiHomeLikeNav .logo img {
    height: 36px;
    width: auto;
    border-radius: 4px;
}

#yeshiHomeLikeNav .yeshi-desktop-nav {
    display: none;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

#yeshiHomeLikeNav .yeshi-desktop-nav a {
    color: #4d4639;
    text-decoration: none;
}

#yeshiHomeLikeNav .yeshi-desktop-nav a:hover,
#yeshiHomeLikeNav .yeshi-desktop-nav a.active {
    color: #745b18;
}

#yeshiHomeLikeNav .yeshi-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

#yeshiHomeLikeNav .yeshi-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #4d4639;
    text-decoration: none;
    border-radius: 999px;
    cursor: pointer;
}

#yeshiHomeLikeNav .yeshi-icon-btn:hover {
    color: #745b18;
    background: #f5f3ee;
}

#yeshiHomeLikeNav #notificationDot {
    position: absolute;
    right: -2px;
    top: -2px;
}

#yeshiHomeLikeNav #bagCount {
    position: absolute;
    right: -4px;
    top: -4px;
    min-width: 16px;
    border-radius: 999px;
    background: #745b18;
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
    padding: 0 4px;
    font-weight: 700;
    display: none;
}

#yeshiHomeLikeNav .yeshi-order-btn {
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(90deg, #745b18 0%, #d4b468 100%);
    white-space: nowrap;
}

#mobile-menu-toggle {
    border: 0;
    background: transparent;
    color: #4d4639;
    border-radius: 6px;
    width: 34px;
    height: 34px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#mobile-menu-toggle:hover {
    color: #745b18;
    background: #f5f3ee;
}

#mobile-menu {
    display: none;
    background: #fff;
    border-top: 1px solid #ece7db;
}

#mobile-menu .yeshi-mobile-inner {
    padding: 12px 16px;
    display: grid;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#mobile-menu a {
    color: #4d4639;
    text-decoration: none;
    border-radius: 6px;
    padding: 9px 10px;
    display: block;
}

#mobile-menu a:hover,
#mobile-menu a.active {
    background: #fff4db;
    color: #745b18;
}

#yeshiHomeLikeNav a[data-action="logout"],
#yeshiHomeLikeNav #desktopLogoutItem a,
#yeshiHomeLikeNav #mobileMenuLogoutBtn,
#mobile-menu a[data-action="logout"] {
    color: #525454 !important;
}

#yeshiHomeLikeNav a[data-action="logout"]:hover,
#yeshiHomeLikeNav a[data-action="logout"].active,
#yeshiHomeLikeNav a[data-action="logout"]:focus-visible,
#yeshiHomeLikeNav #desktopLogoutItem a:hover,
#yeshiHomeLikeNav #mobileMenuLogoutBtn:hover,
#mobile-menu a[data-action="logout"]:hover {
    color: #525454 !important;
}

.yeshi-mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2400;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(116, 91, 24, 0.2);
    box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.12);
    display: none;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
}

.yeshi-mobile-bottom-nav a {
    text-decoration: none;
    color: #4d4639;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 46px;
}

.yeshi-mobile-bottom-nav .yeshi-nav-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.yeshi-mobile-bottom-nav .yeshi-nav-count-badge,
.user-top-nav-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    padding: 0 4px;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    background: #bb0010;
    color: #fff;
    font-weight: 700;
    display: none;
    z-index: 2;
}

.yeshi-mobile-bottom-nav .material-symbols-outlined {
    font-size: 21px;
    line-height: 1;
}

.yeshi-mobile-bottom-nav a.active {
    color: #745b18;
}

.yeshi-footer {
    background: #e8e8e8;
    padding: 48px 24px;
}

.yeshi-footer__wrap {
    max-width: 1920px;
    margin: 0 auto;
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.yeshi-footer__brand {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0;
}

.yeshi-footer__title {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.yeshi-footer__text {
    margin: 10px 0 0;
    font-size: 0.92rem;
    color: #4d4639;
    line-height: 1.7;
}

.yeshi-footer__text a {
    color: inherit;
    text-decoration: none;
}

.yeshi-footer__text a:hover,
.yeshi-footer__social a:hover {
    color: #745b18;
}

.yeshi-footer__social {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.1rem;
}

.yeshi-footer__social a {
    color: #1a1c1c;
    text-decoration: none;
}

.yeshi-footer__copyright {
    max-width: 1920px;
    margin: 36px auto 0;
    padding-top: 20px;
    color: #4d4639;
    font-size: 0.74rem;
}

@media (min-width: 640px) {
    .yeshi-footer__wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 901px) {
    nav:not(#yeshiMobileBottomNav) #mobile-footer-shortcut {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    #yeshiHomeLikeNav .yeshi-nav-inner {
        padding-left: 40px;
        padding-right: 40px;
    }

    #mobile-menu-toggle {
        display: none;
    }

    #yeshiHomeLikeNav .yeshi-desktop-nav {
        display: inline-flex;
    }

    #mobile-menu {
        display: none !important;
    }

    .yeshi-footer__wrap {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    #mobile-menu.hidden {
        display: none !important;
    }

    #mobile-menu:not(.hidden) {
        display: block !important;
    }
}

@media (max-width: 900px) {
    nav:not(#yeshiMobileBottomNav) .yeshi-nav-left,
    nav:not(#yeshiMobileBottomNav) > div > div:first-child,
    nav:not(#yeshiMobileBottomNav) .flex.items-center.gap-3 {
        margin-right: auto;
    }

    nav:not(#yeshiMobileBottomNav) .yeshi-actions,
    nav:not(#yeshiMobileBottomNav) > div > div:last-child,
    nav:not(#yeshiMobileBottomNav) .flex.items-center.gap-2.sm\:gap-4 {
        margin-left: auto;
        display: inline-flex;
        gap: 6px;
        align-items: center;
    }

    nav:not(#yeshiMobileBottomNav) [aria-label="Favorites"],
    nav:not(#yeshiMobileBottomNav) [aria-label="Open MyChat"],
    nav:not(#yeshiMobileBottomNav) [aria-label="Profile"] {
        display: none !important;
    }

    nav:not(#yeshiMobileBottomNav) .yeshi-order-btn {
        display: inline-flex !important;
        padding: 0.48rem 0.72rem;
        font-size: 0.68rem;
        letter-spacing: 0.14em;
        line-height: 1;
        white-space: nowrap;
    }

    nav:not(#yeshiMobileBottomNav) #shoppingBagLink,
    nav:not(#yeshiMobileBottomNav) a[href="/cart"],
    nav:not(#yeshiMobileBottomNav) a[href="/user/cart"],
    nav:not(#yeshiMobileBottomNav) a[aria-label="Shopping bag"] {
        display: none !important;
    }

    nav:not(#yeshiMobileBottomNav) #mobile-footer-shortcut,
    nav:not(#yeshiMobileBottomNav) #notification-trigger,
    nav:not(#yeshiMobileBottomNav) #mobile-menu-toggle {
        display: inline-flex !important;
    }

    nav:not(#yeshiMobileBottomNav) .nav-links {
        display: none !important;
    }

    .yeshi-mobile-bottom-nav {
        display: grid;
    }

    body.yeshi-has-bottom-nav {
        padding-bottom: var(--yeshi-shell-bottom-nav-height);
    }

    body.yeshi-has-bottom-nav:not(.footer-hub-page) footer.yeshi-footer {
        display: none !important;
    }
}