.mobile-bottom-menu { display: none; }
.mobile-search-row { display: none; }
.mobile-search-inline { display: none; }
.mobile-menu-panel { width: 86%; max-width: 360px; }
.mobile-user-box { border: 1px solid #e9ecef; border-radius: 0.75rem; padding: 0.75rem; background: #fff; }
.mobile-panel-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; }
.mobile-panel-action-btn { border: 1px solid #dee2e6; border-radius: 0.6rem; padding: 0.6rem 0.5rem; text-align: center; text-decoration: none; color: #333; font-weight: 500; font-size: 0.82rem; }
.mobile-panel-action-btn:hover { color: #333; background-color: #f8f9fa; }
.mobile-account-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(154, 178, 154, 0.2); color: #6b8a6a; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.mobile-account-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.32rem 0.78rem; border-radius: 999px; border: 1px solid #6b8a6a; color: #6b8a6a; text-decoration: none; font-size: 0.83rem; font-weight: 600; line-height: 1; }
.mobile-account-btn:hover { color: #fff; background-color: #6b8a6a; }
.smart-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e7eaef;
    border-radius: 12px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
    z-index: 1200;
    max-height: 70vh;
    overflow-y: auto;
}
.smart-search-dropdown .smart-search-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #6b7280;
    padding: 10px 12px 6px;
}
.smart-search-dropdown .smart-search-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1f2937;
    padding: 10px 12px;
    border-top: 1px solid #f0f2f5;
}
.smart-search-dropdown .smart-search-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.smart-search-dropdown .smart-search-icon {
    font-size: 0.95rem;
}
.smart-search-dropdown .smart-search-icon-category {
    color: #7c9f77;
}
.smart-search-dropdown .smart-search-icon-product {
    color: #5f8f86;
}
.smart-search-dropdown .smart-search-icon-store {
    color: #8f7b5f;
}
.smart-search-dropdown .smart-search-icon-search {
    color: #6b7280;
}
.smart-search-dropdown .smart-search-item:hover {
    background: #f8fafc;
    color: #1f2937;
}
.smart-search-dropdown .smart-search-meta {
    color: #9ca3af;
    font-size: 0.78rem;
    white-space: nowrap;
}
.smart-search-dropdown .smart-search-empty {
    padding: 10px 12px;
    color: #6b7280;
    font-size: 0.9rem;
}
.transition-icon { transition: transform 0.2s ease; display: inline-block; }
[aria-expanded="false"] .transition-icon { transform: rotate(-90deg); }
[aria-expanded="true"] .transition-icon { transform: rotate(0deg); }
.hover-bg:hover { background-color: #f8f9fa; }
.category-tree-link { min-height: 44px; display: flex !important; align-items: center; font-size: 1.08rem; font-weight: 500; }
.category-tree-toggle { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.category-tree-item-active { background-color: #eef6ee; border: 1px solid #d4e6d4; }
.category-tree-link-active { color: #3f5c3e !important; font-weight: 700; }

@media (max-width: 991.98px) {
    html,
    body {
        overflow-x: hidden;
        max-width: 100%;
    }

    header { position: fixed; top: 0; left: 0; right: 0; z-index: 1045; }
    body { padding-top: 68px; }
    .bg-light.py-1.border-bottom { display: none; }
    .navbar { padding: 0.35rem 0.2rem; margin-bottom: 0 !important; }
    .navbar-brand img { max-height: 32px; }
    .mobile-search-row { display: none !important; }
    .navbar .container { row-gap: 0; }
    .mobile-header-row {
        gap: 8px;
        min-height: 52px;
    }
    .mobile-header-brand {
        margin: 0;
        flex: 0 0 auto;
    }
    .mobile-header-brand img {
        max-height: 28px;
    }
    .mobile-search-inline {
        display: block;
        flex: 1 1 auto;
        min-width: 0;
    }
    .mobile-search-inline .form-control {
        font-size: 0.95rem;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    .mobile-search-inline .smart-search-dropdown {
        position: fixed;
        left: 0;
        right: 0;
        top: 68px;
        width: 100vw;
        border-radius: 0;
        max-height: calc(100vh - 68px - 64px);
        border-left: none;
        border-right: none;
    }
    .mobile-menu-trigger {
        flex: 0 0 auto;
    }
    .desktop-category-nav,
    .desktop-actions { display: none !important; }
    .pwa-install-strip {
        position: fixed;
        bottom: 64px;
        left: 0;
        right: 0;
        z-index: 1038;
        padding: 0 10px 6px;
        pointer-events: none;
    }
    .pwa-install-strip #pwa-install-btn {
        pointer-events: auto;
    }
    .mobile-bottom-menu { display: block; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid #e8e8e8; z-index: 1040; }
    .mobile-bottom-menu .menu-wrap { display: flex; align-items: center; justify-content: space-around; height: 64px; }
    .mobile-bottom-menu .menu-item { color: #8d95a1; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 0.78rem; font-weight: 500; min-width: 56px; }
    .mobile-bottom-menu .menu-item i { font-size: 1.45rem; line-height: 1; }
    .mobile-bottom-menu .menu-item.active { color: #6b8a6a; }
    .menu-icon-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; }
    .menu-cart-badge { position: absolute; top: -6px; right: -12px; min-width: 16px; height: 16px; border-radius: 999px; background: #dc3545; color: #fff; font-size: 0.62rem; line-height: 16px; text-align: center; padding: 0 4px; font-weight: 700; }
    body { padding-bottom: 70px; }
    .container > main { padding-bottom: 0; }
    footer.footer { margin-bottom: 0 !important; }
    footer.footer .container {
        padding-top: 1.1rem !important;
        padding-bottom: 1rem !important;
    }
    footer.footer h5 {
        font-size: 1.7rem;
        font-weight: 700;
        margin-bottom: 0.6rem;
    }
    footer.footer ul.list-unstyled {
        margin-bottom: 1rem;
    }
    footer.footer ul.list-unstyled li {
        margin-bottom: 0.35rem;
    }
    footer.footer ul.list-unstyled li a {
        display: block;
        padding: 0.5rem 0.65rem;
        border-radius: 10px;
        background: #fff;
        border: 1px solid #e8ecef;
        font-weight: 500;
        line-height: 1.2;
    }
    footer.footer ul.list-unstyled li a:active {
        background: #eef6ee;
        border-color: #d4e6d4;
    }
    footer.footer .d-flex.mt-3 a {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1px solid #dfe3e7;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #fff;
    }
    .mobile-menu-panel .offcanvas-body { overflow: hidden; padding-bottom: 0; }
    .mobile-panel-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0.85rem 0.35rem 0.75rem; background: #fdfdfd; }
    .mobile-user-box { background: #eef6ee; border-color: #d8e7d8; }
    .mobile-panel-actions-wrap { border-top: 1px solid #dce9dc; padding: 0.75rem 0 0.9rem; background: #eef6ee; position: sticky; bottom: 0; z-index: 2; }
    .mobile-panel-action-btn { background: #fff; border-color: #cfdccf; color: #445244; }
    .category-tree-link { min-height: 52px; font-size: 1.2rem; }
    .category-tree-item-row { border-radius: 10px; }
    .category-tree .mb-1 { margin-bottom: 0.15rem !important; }
}

@media (min-width: 992px) {
    .mobile-header-row,
    .mobile-menu-trigger { display: none !important; }
}
