/* ==========================================================
   LAYOUT & RESPONSIVE RULES (MOBILE-FIRST)
   ========================================================== */
.store-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

/* Mobile Bottom Navigation (Hidden on Desktop) */
.store-bottom-nav {
    display: none;
}

/* ==========================================================
   MOBILE BREAKPOINT (< 768px)
   ========================================================== */
@media (max-width: 767px) {
    body {
        padding-bottom: 74px; /* Space for sticky mobile bottom nav */
    }

    .store-container {
        padding: 0 16px;
    }

    /* Mobile Header Layout */
    .store-announcement-bar {
        font-size: 0.72rem;
        padding: 6px 12px;
    }
    .announcement-text {
        font-size: 0.72rem;
    }

    .store-header-container {
        padding: 10px 16px;
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Top Row in Mobile Header: Logo on left, Actions on right */
    .store-brand {
        font-size: 1.18rem;
    }
    .brand-badge {
        width: 32px;
        height: 32px;
        font-size: 1.05rem;
    }

    .header-mobile-actions {
        display: flex;
        margin-left: auto;
    }
    .store-menu-toggle {
        display: flex;
    }

    /* Full-width Search Bar below Top Row in Mobile Header */
    .store-search-container {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 4px 0 2px;
    }
    .header-search-form input {
        height: 40px;
        font-size: 0.84rem;
        padding: 0 74px 0 36px;
    }
    .header-search-form .search-icon {
        left: 12px;
        font-size: 0.85rem;
    }
    .header-search-btn {
        height: 32px;
        padding: 0 14px;
        font-size: 0.78rem;
    }

    /* Dropdown Navigation Menu in Mobile */
    .store-navigation {
        display: none;
        order: 4;
        width: 100%;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-card);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
        padding: 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        margin-top: 6px;
    }
    .store-navigation.is-open {
        display: flex;
    }
    .store-navigation .nav-item {
        padding: 10px 14px;
        border-radius: 10px;
        font-size: 0.9rem;
    }
    .staff-link-pill {
        justify-content: center;
        margin-top: 4px;
        padding: 10px 16px;
    }

    /* Mobile Bottom Navigation Bar */
    .store-bottom-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 150;
        height: 62px;
        background: #FFFFFF;
        border-top: 1px solid var(--border);
        box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.07);
        align-items: center;
        justify-content: space-around;
        padding: 0 8px calc(env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
    }
    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        min-width: 0;
        height: 100%;
        text-decoration: none;
        color: var(--text-secondary);
        font-size: 0.7rem;
        font-weight: 600;
        transition: color 0.15s;
        gap: 2px;
    }
    .bottom-nav-item.active {
        color: var(--brand-ink);
        font-weight: 800;
    }
    .bottom-nav-icon-box {
        position: relative;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .bottom-home-svg, .bottom-grid-svg, .bottom-cart-svg, .bottom-user-svg {
        width: 22px;
        height: 22px;
        color: #6B7280;
        display: block;
    }
    .bottom-nav-item.active .bottom-home-svg {
        fill: #FFC700;
        color: #FFC700;
    }
    .bottom-nav-item.active .bottom-grid-svg,
    .bottom-nav-item.active .bottom-cart-svg,
    .bottom-nav-item.active .bottom-user-svg {
        color: #111315;
    }
    .bottom-nav-label {
        font-size: 0.65rem;
        font-weight: 700;
        color: #6B7280;
        margin-top: 2px;
    }
    .bottom-nav-item.active .bottom-nav-label {
        color: #111315;
        font-weight: 900;
    }
    .bottom-active-dot {
        display: none;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: #FFC700;
        margin-top: 1px;
    }
    .bottom-nav-item.active .bottom-active-dot {
        display: block;
    }
    .bottom-nav-icon-box .cart-badge-pill {
        position: absolute;
        top: -4px;
        right: -8px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        font-size: 0.6rem;
        font-weight: 900;
        line-height: 16px;
        background: #EF4444;
        color: #FFFFFF;
        border-radius: 999px;
        text-align: center;
        box-sizing: border-box;
    }

    /* Footer Mobile */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 32px;
    }
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* ==========================================================
   TABLET & DESKTOP BREAKPOINTS
   ========================================================== */
@media (min-width: 768px) and (max-width: 1023px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (min-width: 768px) {
    .store-bottom-nav {
        display: none !important;
    }
}
