/* ============================================
   MOBILE HEADER – 2 rows, minimal padding
============================================ */
.sago-mobile-header {
    padding: 8px 12px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.mobile-row-1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.sago-menu-toggle {
    background: none;
    border: none;
    font-size: 22px;
    padding: 6px;
    margin: 0;
    color: var(--sago-text);
    cursor: pointer;
}
.logo a {
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
    color: var(--sago-green);
}
.icons {
    display: flex;
    gap: 12px;
}
.icons a {
    position: relative;
    font-size: 20px;
    color: var(--sago-text);
}
.icons .count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--sago-orange);
    color: #fff;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-row-2 {
    margin-top: 8px;
}
.mobile-row-2 .search-form {
    display: flex;
    width: 100%;
    background: var(--sago-light-bg);
    border-radius: 40px;
    border: 1px solid var(--sago-border);
    position: relative;
}
.mobile-row-2 .search-form input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
}
.mobile-row-2 .search-form button[type="submit"] {
    background: transparent;
    border: none;
    padding: 0 16px;
    color: var(--sago-primary);
    cursor: pointer;
}

/* ============================================
   BOTTOM NAVIGATION – 6 items, glass, active pill
============================================ */
.sago-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    z-index: 99999;
    border-top: 1px solid rgba(255,255,255,0.3);
}
.sago-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    color: #5f6c80;
    transition: all 0.2s;
    padding: 6px 0;
    min-width: 52px;
    border-radius: 30px;
}
.sago-bottom-nav a i {
    font-size: 20px;
    transition: transform 0.2s;
}
.sago-bottom-nav a.active {
    color: var(--sago-primary);
    background: rgba(220,53,11,0.12);
    font-weight: 600;
}
.sago-bottom-nav a.active i {
    transform: translateY(-2px);
    color: var(--sago-primary);
}
.sago-bottom-nav a:hover i {
    transform: scale(1.1);
}
@media (min-width: 769px) {
    .sago-bottom-nav {
        max-width: 520px;
        left: 50%;
        transform: translateX(-50%);
        bottom: 16px;
        border-radius: 60px;
        padding: 6px 12px;
        background: rgba(255,255,255,0.96);
        box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    }
    .sago-bottom-nav a {
        flex-direction: row;
        gap: 8px;
        padding: 8px 16px;
        min-width: auto;
    }
    .sago-bottom-nav a i {
        font-size: 18px;
    }
}

/* ============================================
   PRODUCT GRID – 2 columns on smallest screens
============================================ */
@media (max-width: 480px) {
    .woocommerce ul.products,
    ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 8px !important;
    }
}
.sago-product-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* ============================================
   CATEGORIES DRAWER (mobile)
============================================ */
.categories-drawer {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background: var(--sago-white);
    border-radius: 28px 28px 0 0;
    z-index: 100001;
    transition: bottom 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
}
.categories-drawer.open {
    bottom: 0;
}
.categories-drawer .drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--sago-border);
}
.categories-drawer .drawer-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.categories-drawer .drawer-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.categories-drawer .drawer-close:hover {
    background: var(--sago-light-bg);
}
.categories-drawer .category-list {
    padding: 12px 20px 30px;
    max-height: 60vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.categories-drawer .category-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--sago-light-bg);
    border-radius: 16px;
    text-decoration: none;
    color: var(--sago-text);
    transition: all 0.2s;
}
.categories-drawer .category-list a:hover {
    background: var(--sago-primary);
    color: #fff;
}
.categories-drawer .category-list a i {
    width: 24px;
    color: var(--sago-primary);
}
.categories-drawer .category-list a:hover i {
    color: #fff;
}
.categories-drawer .category-list .count {
    margin-left: auto;
    font-size: 12px;
    background: rgba(0,0,0,0.05);
    padding: 2px 8px;
    border-radius: 30px;
}