/* Web Builder: layout_bottom_nav_bar / design-1 */

/**
 * Mobile Bottom Navigation Bar
 * Fixed position at bottom, hidden on desktop/tablet
 * 5 navigation items with icons and labels
 */



/* Mobile-first: Hidden by default (base styles) */
.wb-layout_bottom_nav_bar-design-1 {
    display: none;
}

/* Show only on mobile devices (max-width 900px to match header hamburger) */
@media screen and (max-width: 899px) {
    .wb-layout_bottom_nav_bar-design-1 {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1050;
        background-color: var(--white);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    }

    .wb-layout_bottom_nav_bar-design-1 .bottom-nav-container {
        display: flex;
        justify-content: space-around;
        align-items: center;
        height: 60px;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
    }

    /* Individual navigation item */
    .wb-layout_bottom_nav_bar-design-1 .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        height: 100%;
        text-decoration: none;
        color: var(--text-muted);
        transition: color 0.2s ease;
        padding: 6px 4px;
        min-width: 0;
    }

    /* Icon styling */
    .wb-layout_bottom_nav_bar-design-1 .nav-item .nav-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        margin-bottom: 2px;
    }

    .wb-layout_bottom_nav_bar-design-1 .nav-item .nav-icon-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .wb-layout_bottom_nav_bar-design-1 .nav-item .cart-count-badge {
        position: absolute;
        top: -8px;
        right: -10px;
        background-color: var(--primary);
        color: #ffffff;
        font-size: 9px;
        font-weight: 600;
        min-width: 16px;
        height: 16px;
        border-radius: 10px;
        display: none; /* Updated via JS */
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        border: 1.5px solid var(--white);
        line-height: 1;
        z-index: 1;
    }

    .wb-layout_bottom_nav_bar-design-1 .nav-item .nav-icon svg {
        width: 22px;
        height: 22px;
        stroke-width: 1.8;
    }

    /* Label styling */
    .wb-layout_bottom_nav_bar-design-1 .nav-item .nav-label {
        font-family: var(--font-ui);
        font-size: 10px;
        font-weight: 500;
        line-height: 1.2;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    /* Active state - Orange/Primary color matching the image */
    .wb-layout_bottom_nav_bar-design-1 .nav-item.active {
        color: var(--primary);
    }

    .wb-layout_bottom_nav_bar-design-1 .nav-item.active .nav-icon svg {
        stroke-width: 2;
    }

    /* Hover/Tap states */
    .wb-layout_bottom_nav_bar-design-1 .nav-item:active {
        opacity: 0.7;
    }

    /* Focus states for accessibility */
    .wb-layout_bottom_nav_bar-design-1 .nav-item:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: -2px;
        border-radius: 4px;
    }

    /* Safe area for devices with notches (iPhone X and newer) */
    @supports (padding-bottom: env(safe-area-inset-bottom)) {
        .wb-layout_bottom_nav_bar-design-1 {
            padding-bottom: env(safe-area-inset-bottom);
        }

        .wb-layout_bottom_nav_bar-design-1 .bottom-nav-container {
            height: calc(60px + env(safe-area-inset-bottom));
            padding-bottom: env(safe-area-inset-bottom);
        }
    }
}

/* Extra small devices optimization */
@media screen and (max-width: 360px) {
    .wb-layout_bottom_nav_bar-design-1 .nav-item .nav-label {
        font-size: 9px;
    }

    .wb-layout_bottom_nav_bar-design-1 .nav-item .nav-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* Prevent content from being hidden behind the bottom nav on mobile */
@media screen and (max-width: 899px) {
    body {
        padding-bottom: 60px;
    }

    @supports (padding-bottom: env(safe-area-inset-bottom)) {
        body {
            padding-bottom: calc(60px + env(safe-area-inset-bottom));
        }
    }
}