/* ===== ROOT & RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #09090b; /* Zinc 950 */
    --bg2: #18181b; /* Zinc 900 */
    --bg3: #27272a; /* Zinc 800 */
    --card: #18181b; 
    --border: #27272a; 
    --accent: #facc15; /* Bright yellow */
    --accent-dark: #eab308;
    --accent2: #facc15;
    --text: #f8fafc;
    --text2: #a1a1aa; /* Zinc 400 */
    --danger: #ef4444;
    --success: #10b981;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
    --font: 'Inter', 'DM Sans', sans-serif;
    --font-head: 'Outfit', 'Syne', sans-serif;
    --nav-h: 70px;
    --header-h: 70px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding-bottom: calc(var(--nav-h) + 1rem);
    padding-top: var(--header-h);
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 6px; }


/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 2rem;
    z-index: 900;
}
.navbar-top-row {
    display: flex; align-items: center; gap: 0.75rem;
    min-height: var(--header-h); flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.logo-icon {
    width: 36px; height: 36px; background: var(--accent);
    color: #000; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.4rem; font-family: var(--font-head);
}
.logo h2 { 
    font-size: 1.4rem; font-weight: 800; 
    color: var(--text);
    white-space: nowrap; font-family: var(--font-head); letter-spacing: -0.5px;
}

/* Location Pill */
.location-pill {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.4rem 0.75rem; border-radius: 8px;
    border: 1.5px solid var(--border); cursor: pointer;
    background: var(--bg3); transition: border-color 0.2s; flex-shrink: 0;
}
.location-pill:hover { border-color: var(--accent); }
.loc-icon { font-size: 0.9rem; }
.loc-text { display: flex; flex-direction: column; line-height: 1.2; }
.loc-label { font-size: 0.62rem; color: var(--text2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.loc-name { font-size: 0.8rem; font-weight: 700; color: var(--text); max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Desktop: search sits in the middle */
.search-container { flex: 1 1 300px; max-width: 600px; position: relative; display: flex; align-items: center; order: 3; }
.search-icon { position: absolute; left: 1rem; font-size: 0.9rem; color: var(--text2); }
.search-container input {
    width: 100%; padding: 0.75rem 1rem 0.75rem 2.8rem;
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: 12px; color: var(--text); font-family: var(--font);
    font-size: 0.95rem; outline: none; transition: all 0.2s;
}
.search-container input:focus { border-color: var(--text2); }
.search-container input::placeholder { color: var(--text2); font-weight: 400; }
.header-actions { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.user-info { display: flex; align-items: center; gap: 0.5rem; }
.profile-trigger {
    display: flex; align-items: center; gap: 0.4rem; cursor: pointer;
    padding: 0.35rem 0.75rem; border-radius: 30px;
    background: var(--bg3); border: 1px solid var(--border);
    font-size: 0.88rem; font-weight: 500; transition: background 0.2s;
}
.profile-trigger:hover { background: var(--border); }
.user-avatar-sm { font-size: 1rem; }
.login-btn {
    padding: 0.55rem 1.25rem; border-radius: 8px;
    font-family: var(--font); font-size: 0.9rem; font-weight: 700;
    cursor: pointer; border: none; transition: all 0.2s; white-space: nowrap;
    background: transparent; color: var(--text); border: 1px solid var(--text2);
}
.login-btn:hover { background: var(--bg3); }
.outline-btn { background: transparent; border: 1.5px solid var(--border); color: var(--accent); }
.outline-btn:hover { border-color: var(--accent); background: rgba(245,200,66,0.1); }
.text-btn { background: none; border: none; color: var(--accent2); font-family: var(--font); font-size: 0.9rem; cursor: pointer; font-weight: 600; }
.cart-btn {
    display: flex; align-items: center; gap: 0.5rem;
    background: var(--accent); color: #000; border: none; border-radius: 8px;
    padding: 0.55rem 1.25rem; font-family: var(--font); font-weight: 800;
    font-size: 0.95rem; cursor: pointer; transition: all 0.2s;
    position: relative; white-space: nowrap;
}
.cart-btn:hover { background: var(--accent-dark); transform: scale(1.02); }
.cart-count {
    position: absolute; top: -8px; right: -8px;
    background: var(--danger); color: #fff; border-radius: 50%;
    width: 22px; height: 22px; font-size: 0.75rem;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; border: 2px solid var(--bg);
}

/* ===== RESPONSIVE ===== */

/* ---- MOBILE (up to 640px) ---- */
@media (max-width: 640px) {
    :root {
        --header-h: 52px;
        --nav-h: 60px;
    }

    body {
        padding-top: 110px; /* taller navbar with 2 rows */
    }

    /* Navbar: stack into two rows */
    .navbar {
        padding: 0.5rem 0.75rem;
    }
    .navbar-top-row {
        height: auto;
        gap: 0.5rem;
    }
    .navbar-search-row {
        display: flex;
        margin-top: 0.4rem;
    }
    .navbar-search-row .search-container {
        flex: 1;
        max-width: 100%;
    }
    .navbar-search-row .search-container input {
        padding: 0.6rem 1rem 0.6rem 2.3rem;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    /* Hide logo text & cart label on mobile */
    .logo h2 { display: none; }
    .cart-label { display: none; }
    .cart-price { font-size: 0.8rem; }
    .cart-btn {
        padding: 0.45rem 0.7rem;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    /* Smaller location pill */
    .location-pill { padding: 0.3rem 0.5rem; }
    .loc-name { max-width: 80px; font-size: 0.72rem; }
    .loc-label { font-size: 0.55rem; }

    /* Login button */
    .login-btn { padding: 0.4rem 0.75rem; font-size: 0.8rem; }
    .profile-trigger { padding: 0.3rem 0.5rem; font-size: 0.8rem; }
    #user-name-display { display: none; }

    /* Main content */
    main { padding: 0.75rem; }

    /* Banner */
    .banner {
        padding: 1.5rem 1.25rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin-bottom: 1.25rem;
    }
    .banner-content h2, .banner-content h3 { font-size: 1.5rem !important; }
    .banner-sub { font-size: 0.85rem; margin: 0.5rem 0 0.75rem; }
    .banner-actions { justify-content: center; }
    .banner-cta, .banner-cta-ghost { padding: 0.6rem 1.2rem; font-size: 0.82rem; }
    .banner-image { font-size: 4rem; }
    .banner-tag { font-size: 0.7rem; }

    /* Category grid: 4 columns */
    .category-grid { grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
    .category-card { padding: 0.75rem 0.5rem; border-radius: 12px; }
    .cat-icon { font-size: 1.8rem; margin-bottom: 0.3rem; }
    .cat-name { font-size: 0.7rem; }

    /* Products grid: 2 columns */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .product-card { padding: 0.75rem; border-radius: 12px; }
    .product-img { font-size: 2.5rem; margin: 0.4rem 0; }
    .product-name { font-size: 0.8rem; }
    .product-weight { font-size: 0.7rem; margin-bottom: 0.4rem; }
    .product-price { font-size: 0.88rem; }
    .product-price .original { font-size: 0.68rem; }
    .add-btn { padding: 0.3rem 0.6rem; font-size: 0.78rem; border-radius: 8px; }
    .qty-control { gap: 0.25rem; padding: 0.1rem 0.2rem; }
    .qty-btn { width: 22px; height: 22px; font-size: 0.85rem; }
    .qty-num { font-size: 0.8rem; }
    .product-badge { font-size: 0.6rem; padding: 0.15rem 0.4rem; top: 0.4rem; left: 0.4rem; }
    .wishlist-heart { top: 0.4rem; right: 0.4rem; }

    /* Deal cards */
    .deal-card { width: 130px; padding: 0.75rem; }
    .deal-img { font-size: 2rem; }
    .deal-name { font-size: 0.72rem; }
    .deal-price { font-size: 0.82rem; }
    .deal-badge { font-size: 0.58rem; }

    /* Section headers */
    .categories h3, .bestsellers h3, .deals-section h3, .fresh-section h3 {
        font-size: 1.1rem; margin-bottom: 0.75rem;
    }
    .section-header { margin-bottom: 0.75rem; }
    .deal-timer { font-size: 0.72rem; padding: 0.2rem 0.5rem; }
    .see-all { font-size: 0.82rem; }

    /* Bottom nav */
    .bottom-nav { height: var(--nav-h); }
    .nav-icon { font-size: 1.2rem; }
    .nav-text { font-size: 0.65rem; }

    /* Modals: full width on mobile */
    .modal-content { max-width: 100%; border-radius: 16px 16px 0 0; }
    .auth-content { max-width: 100%; border-radius: 16px 16px 0 0; align-self: flex-end; margin: 0; }

    /* Checkout */
    .checkout-content { max-width: 100%; }
    .checkout-item { padding: 0.6rem; gap: 0.5rem; }
    .checkout-item-icon { font-size: 1.2rem; }
    .checkout-item-info strong { font-size: 0.82rem; }
    .promo-row input { font-size: 0.82rem; padding: 0.55rem 0.75rem; }

    /* Profile */
    .profile-content { max-width: 100%; }
    .profile-quick-actions { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; padding: 1rem; }
    .action-card { padding: 0.75rem 0.3rem; }
    .action-icon { font-size: 1.2rem; }
    .action-label { font-size: 0.68rem; }

    /* Tracking */
    .tracking-content { max-width: 100%; }
    .live-map-container { height: 200px; }

    /* Toast */
    .toast { font-size: 0.8rem; padding: 0.6rem 1.2rem; bottom: calc(var(--nav-h) + 0.5rem); }

    /* Categories fullscreen */
    .cat-full-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
    .cat-full-item .icon { font-size: 1.4rem; }
    .cat-full-item .name { font-size: 0.65rem; }
}

/* ---- TABLET (641px to 1024px) ---- */
@media (min-width: 641px) and (max-width: 1024px) {
    .navbar { padding: 0.5rem 1rem; }
    .navbar-top-row { gap: 0.5rem; }

    .logo h2 { font-size: 1rem; }

    .navbar-search-row {
        display: flex;
        margin-top: 0.35rem;
    }
    .navbar-search-row .search-container {
        flex: 1;
        max-width: 100%;
    }

    body { padding-top: 110px; }

    main { padding: 1rem 1.25rem; }

    .banner { padding: 2rem; }
    .banner-content h2, .banner-content h3 { font-size: 1.8rem !important; }
    .banner-image { font-size: 5rem; }

    .category-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* ---- DESKTOP (1025px+) ---- */
@media (min-width: 1025px) {
    /* On desktop, we want search inline in the top row */
    .navbar-search-row {
        display: none !important;
    }
    /* Insert search after location pill — done via flexbox order */
    .navbar-top-row {
        display: flex; align-items: center; gap: 0.75rem;
    }
    /* search-container is already inside navbar-search-row on desktop, so we need JS or duplicate.
       Instead, let's show it in search row but on desktop layout */
}

/* Actually, for simplicity, always show search row, just style differently */
@media (min-width: 1025px) {
    .navbar {
        padding: 0 1.5rem;
    }
    .navbar-top-row {
        height: var(--header-h);
    }
    .navbar-search-row {
        display: flex !important;
        padding-bottom: 0.5rem;
    }
    .navbar-search-row .search-container {
        max-width: 600px;
    }
    body {
        padding-top: calc(var(--header-h) + 48px);
    }
}

/* ---- Modal desktop centering ---- */
@media (min-width: 768px) {
    .modal { align-items: center; }
    .modal-content { border-radius: var(--radius); margin: auto; }
    .profile-content { border-radius: var(--radius); max-height: 85vh; margin: auto; max-width: 480px; }
    .sub-modal-content { border-radius: var(--radius); }
    .tracking-content { border-radius: var(--radius); max-width: 520px; margin: auto; }
    .categories-modal-fullscreen .modal-content { max-width: 640px; border-radius: var(--radius); height: 85vh; margin: auto; }
    .auth-content { border-radius: var(--radius); max-width: 420px; margin: auto; align-self: center; }
}


/* ===== OFFERS STRIP ===== */
.offers-strip {
    display: flex; gap: 0.6rem; padding: 0.75rem 2rem;
    overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
    background: var(--bg2); border-bottom: 1px solid var(--border);
    position: sticky; top: var(--header-h); z-index: 10;
}
.offers-strip::-webkit-scrollbar { display: none; }
.offer-chip {
    flex-shrink: 0; padding: 0.38rem 0.85rem;
    background: rgba(245,200,66,0.1); border: 1.5px solid rgba(245,200,66,0.3);
    border-radius: 30px; font-size: 0.78rem; font-weight: 600; color: var(--accent);
    white-space: nowrap; cursor: pointer;
}
.offer-chip.active-offer { background: var(--accent); color: #000; border-color: var(--accent-dark); }

/* ===== MAIN ===== */
main { padding: 1.25rem 2rem; max-width: 1280px; margin: 0 auto; }

/* ===== BANNER ===== */
.banner {
    background: var(--accent);
    border-radius: var(--radius); padding: 3rem;
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 2.5rem; position: relative; overflow: hidden;
    box-shadow: 0 4px 20px rgba(250, 204, 21, 0.2);
}
.banner::before {
    content: ''; position: absolute; right: -50px; top: -50px;
    width: 300px; height: 300px; background: rgba(0,0,0,0.05); border-radius: 50%;
}
.banner-tag {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: #000; color: #fff;
    padding: 0.4rem 1rem; border-radius: 30px; font-size: 0.8rem;
    font-weight: 800; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.banner-content h2, .banner-content h3 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 900; color: #000; line-height: 1.1;
    font-family: var(--font-head); letter-spacing: -0.03em;
}
.banner-sub { color: rgba(0,0,0,0.7); font-size: 1.1rem; font-weight: 600; margin: 1rem 0 1.5rem; max-width: 400px; line-height: 1.5; }
.banner-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.banner-cta {
    display: inline-block; background: #000; color: #fff;
    padding: 0.9rem 2rem; border-radius: 12px; font-weight: 800;
    font-size: 1rem; border: none; cursor: pointer; transition: all 0.2s;
    font-family: var(--font);
}
.banner-cta:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.banner-cta-ghost {
    display: inline-block; background: transparent; color: #000;
    padding: 0.9rem 2rem; border-radius: 12px; font-weight: 800;
    font-size: 1rem; border: 2.5px solid #000; cursor: pointer;
    transition: all 0.2s; font-family: var(--font);
}
.banner-cta-ghost:hover { background: rgba(0,0,0,0.05); transform: translateY(-2px); }
.banner-image {
    font-size: 8rem; z-index: 1; position: relative;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

/* ===== CATEGORIES ===== */
.categories { margin-bottom: 2rem; }
.categories h3, .bestsellers h3, .deals-section h3, .fresh-section h3 {
    font-size: 1.35rem; font-weight: 700; margin-bottom: 1.25rem;
    color: var(--text); font-family: var(--font-head);
}
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 1rem; }
.category-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem 1rem;
    text-align: center; cursor: pointer; transition: all 0.2s; 
    box-shadow: var(--shadow);
}
.category-card:hover { 
    border-color: var(--accent); 
    transform: translateY(-4px); 
    box-shadow: var(--shadow-md);
}
.cat-icon { font-size: 3.2rem; margin-bottom: 0.75rem; display: block; transition: transform 0.2s; }
.category-card:hover .cat-icon { transform: scale(1.05); }
.cat-name { font-size: 0.9rem; color: var(--text); font-weight: 700; }

/* ===== DEALS SECTION ===== */
.deals-section { margin-bottom: 2rem; }
.deal-timer { font-size: 0.85rem; font-weight: 700; color: var(--danger); background: rgba(239,68,68,0.1); padding: 0.3rem 0.75rem; border-radius: 6px; }
.deals-scroll {
    display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 0.5rem;
    scrollbar-width: none; -ms-overflow-style: none;
}
.deals-scroll::-webkit-scrollbar { display: none; }
.deal-card {
    flex-shrink: 0; width: 160px; background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1rem; text-align: center; cursor: pointer;
    transition: all 0.2s; box-shadow: var(--shadow); position: relative;
}
.deal-card:hover { 
    transform: translateY(-4px); 
    box-shadow: var(--shadow-md);
    border-color: var(--text2);
}
.deal-badge { position: absolute; top: 0.5rem; left: 0.5rem; background: #dc2626; color: #fff; font-size: 0.62rem; font-weight: 700; padding: 0.15rem 0.45rem; border-radius: 30px; }
.deal-img { font-size: 2.5rem; margin: 0.5rem 0; display: flex; align-items: center; justify-content: center; height: 50px; }
.deal-name { font-size: 0.8rem; font-weight: 600; margin-bottom: 0.25rem; }
.deal-price { font-size: 0.9rem; font-weight: 700; }
.deal-original { font-size: 0.72rem; color: #aaa; text-decoration: line-through; }

/* ===== SECTION HEADER ===== */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.see-all { color: var(--accent2); font-size: 0.95rem; font-weight: 600; text-decoration: none; }
.see-all:hover { text-decoration: underline; }

/* ===== PRODUCTS GRID ===== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 1rem; }
.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1rem; transition: all 0.2s; 
    position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.product-card:hover { 
    transform: translateY(-4px); 
    box-shadow: var(--shadow-md);
    border-color: var(--text2);
}
.product-badge {
    position: absolute; top: 0.6rem; left: 0.6rem;
    background: rgba(245,200,66,0.15); color: var(--accent);
    font-size: 0.65rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 30px;
}
.wishlist-heart { position: absolute; top: 0.6rem; right: 0.6rem; font-size: 1rem; cursor: pointer; transition: transform 0.2s; }
.wishlist-heart:hover { transform: scale(1.3); }
.product-img { font-size: 3.2rem; text-align: center; margin: 0.75rem 0; display: flex; align-items: center; justify-content: center; height: 60px; }
.product-name { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 0.2rem; line-height: 1.3; }
.product-weight { font-size: 0.78rem; color: var(--text2); margin-bottom: 0.75rem; }
.product-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; }
.product-price { font-size: 1rem; font-weight: 700; color: var(--text); }
.product-price .original { font-size: 0.75rem; color: #5a6478; text-decoration: line-through; margin-right: 0.3rem; font-weight: 400; }
.add-btn {
    background: transparent; border: 1.5px solid var(--accent); color: var(--accent);
    border-radius: var(--radius-sm); padding: 0.4rem 1.25rem;
    font-size: 0.9rem; font-weight: 800; cursor: pointer; transition: all 0.2s;
    font-family: var(--font);
}
.add-btn:hover { background: var(--accent); color: #000; transform: scale(1.02); }
.qty-control {
    display: flex; align-items: center; gap: 0.4rem;
    background: var(--bg3); border: 1.5px solid var(--accent);
    border-radius: var(--radius-sm); padding: 0.15rem 0.3rem;
}
.qty-btn {
    width: 26px; height: 26px; background: var(--accent); color: #000;
    border: none; border-radius: 6px; font-size: 1rem; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--accent-dark); }
.qty-num { font-size: 0.9rem; font-weight: 700; min-width: 16px; text-align: center; color: var(--text); }

/* Fresh Section */
.fresh-section { margin-bottom: 2rem; }

/* ===== BOTTOM NAV ===== */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; height: var(--nav-h);
    background: var(--bg2); border-top: 1px solid var(--border); display: flex;
    z-index: 900; box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}
.nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 0.2rem; cursor: pointer; transition: all 0.2s;
    padding: 0.5rem 0; color: var(--text2); position: relative;
}
.nav-item.active { color: var(--accent2); }
.nav-item.active::before {
    content: ''; position: absolute; top: 0; left: 25%; right: 25%;
    height: 3px; background: var(--accent2); border-radius: 0 0 4px 4px;
}
.nav-icon { font-size: 1.4rem; }
.nav-text { font-size: 0.72rem; font-weight: 600; }

/* ===== MODALS ===== */
.modal {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.45); z-index: 1000;
    align-items: flex-end; justify-content: center;
}
.modal.active { display: flex; }
.modal-content {
    background: var(--bg2); border-radius: var(--radius) var(--radius) 0 0;
    width: 100%; max-width: 540px; max-height: 92vh; overflow-y: auto;
    padding: 1.5rem; animation: slideUp 0.28s ease;
    border: 1px solid var(--border);
}
@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.modal-header h2 { font-size: 1.2rem; font-weight: 700; font-family: var(--font-head); }
.close-btn { font-size: 1rem; cursor: pointer; color: var(--text2); padding: 0.3rem 0.6rem; border-radius: 8px; background: var(--bg3); transition: background 0.2s; }
.close-btn:hover { background: var(--border); color: var(--text); }

/* ===== CHECKOUT ===== */
.checkout-content { max-width: 560px; }
.checkout-addr-bar {
    display: flex; align-items: center; gap: 0.5rem;
    background: rgba(245,200,66,0.08); border: 1.5px solid rgba(245,200,66,0.2);
    border-radius: var(--radius-sm); padding: 0.75rem 1rem;
    margin-bottom: 1rem; font-size: 0.85rem; font-weight: 500;
}
.checkout-addr-bar span:first-child { font-size: 1rem; }
.checkout-addr-bar span:nth-child(2) { flex: 1; }
.change-addr-btn { background: none; border: none; color: var(--accent2); font-weight: 700; cursor: pointer; font-size: 0.8rem; }
.checkout-items { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; }
.checkout-item {
    display: flex; align-items: center; gap: 0.75rem;
    background: var(--bg3); border-radius: var(--radius-sm);
    padding: 0.75rem; border: 1px solid var(--border);
}
.checkout-item-icon { font-size: 1.5rem; }
.checkout-item-info { flex: 1; }
.checkout-item-info strong { font-size: 0.9rem; }
.checkout-item-info span { font-size: 0.78rem; color: var(--text2); display: block; margin-top: 0.1rem; }
.checkout-item-price { font-weight: 700; }
.remove-item-btn { background: none; border: none; color: #aaa; cursor: pointer; font-size: 1rem; padding: 0.2rem; }
.remove-item-btn:hover { color: var(--danger); }
.checkout-empty { text-align: center; padding: 3rem 1rem; color: var(--text2); }
.checkout-empty p:first-child { font-size: 3rem; margin-bottom: 0.5rem; }
.promo-row { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.promo-row input { flex: 1; padding: 0.65rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.9rem; outline: none; background: var(--bg3); color: var(--text); }
.promo-row input:focus { border-color: var(--accent); }
.apply-promo-btn { background: var(--accent); color: #000; border: none; border-radius: var(--radius-sm); padding: 0.65rem 1.1rem; font-weight: 700; cursor: pointer; font-family: var(--font); }
.promo-msg { font-size: 0.8rem; margin-bottom: 0.5rem; padding: 0.4rem 0.75rem; border-radius: 6px; display: none; }
.promo-msg.success { background: rgba(16,185,129,0.15); color: #34d399; display: block; }
.promo-msg.error { background: rgba(239,68,68,0.15); color: #f87171; display: block; }
.checkout-total { display: flex; justify-content: space-between; padding: 0.65rem 0; border-top: 1px solid var(--border); font-size: 0.95rem; color: var(--text2); }
.checkout-total.grand { font-weight: 700; color: var(--text); font-size: 1.05rem; margin-bottom: 1rem; }
.checkout-section h3 { font-size: 1rem; margin-bottom: 0.75rem; font-weight: 700; }
.payment-options { display: flex; flex-direction: column; gap: 0.6rem; }
.payment-option {
    display: flex; align-items: center; gap: 0.75rem;
    background: var(--bg3); border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); padding: 0.85rem; cursor: pointer; transition: border-color 0.2s;
}
.payment-option:has(input:checked) { border-color: var(--accent); background: rgba(245,200,66,0.08); }
.pay-text strong { display: block; font-size: 0.9rem; }
.pay-text span { font-size: 0.78rem; color: var(--text2); }
.safety-note { text-align: center; font-size: 0.78rem; color: var(--text2); margin: 0.75rem 0; }
.place-order-btn {
    width: 100%; background: var(--accent); color: #000; border: none;
    border-radius: var(--radius-sm); padding: 1rem; font-size: 1rem;
    font-weight: 700; cursor: pointer; margin-top: 0.5rem; transition: background 0.2s;
    font-family: var(--font);
}
.place-order-btn:hover { background: var(--accent-dark); }

/* ===== AUTH ===== */
.auth-content { border-radius: var(--radius); max-width: 420px; margin: auto; align-self: center; }
.input-group { margin-bottom: 1rem; }
.input-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text2); margin-bottom: 0.4rem; }
.input-group input {
    width: 100%; padding: 0.8rem 1rem; background: var(--bg3);
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text); font-family: var(--font); font-size: 0.95rem; outline: none; transition: border-color 0.2s;
}
.input-group input:focus { border-color: var(--accent2); }
.auth-error { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: #f87171; padding: 0.7rem 1rem; border-radius: var(--radius-sm); font-size: 0.85rem; margin-bottom: 1rem; display: none; }
.auth-submit-btn {
    width: 100%; background: var(--accent); color: #000; border: none;
    border-radius: var(--radius-sm); padding: 0.9rem; font-size: 1rem;
    font-weight: 700; cursor: pointer; margin-top: 0.5rem; transition: background 0.2s;
    font-family: var(--font);
}
.auth-submit-btn:hover { background: var(--accent-dark); }
.auth-switch { text-align: center; margin-top: 1rem; font-size: 0.9rem; color: var(--text2); }

/* ===== PROFILE ===== */
.profile-content { max-width: 100%; border-radius: var(--radius) var(--radius) 0 0; padding: 0; max-height: 92vh; background: var(--bg3); }
.profile-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg2); z-index: 10; }
.profile-header h2 { font-size: 1.1rem; font-weight: 700; font-family: var(--font-head); }
.icon-btn { background: none; border: none; color: var(--text); font-size: 1.2rem; cursor: pointer; padding: 0.3rem 0.6rem; border-radius: 8px; transition: background 0.2s; }
.icon-btn:hover { background: var(--bg3); }
.profile-user { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; background: var(--bg2); border-bottom: 1px solid var(--border); }
.user-avatar { font-size: 2.5rem; background: var(--bg3); border-radius: 50%; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.user-details { flex: 1; }
.user-details h3 { font-size: 1.1rem; font-weight: 700; font-family: var(--font-head); }
.user-details p { color: var(--text2); font-size: 0.85rem; margin-top: 0.2rem; }
.edit-profile-btn { background: var(--bg3); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 0.4rem 0.8rem; font-size: 0.8rem; cursor: pointer; font-family: var(--font); }

/* Loyalty Card */
.loyalty-card {
    margin: 0 1.25rem 0; background: linear-gradient(135deg, #f59e0b, #f5c842);
    border-radius: var(--radius); padding: 1rem 1.25rem;
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 1rem;
}
.loyalty-left { display: flex; align-items: center; gap: 0.75rem; color: #000; }
.loyalty-icon { font-size: 1.5rem; }
.loyalty-left strong { font-size: 1.2rem; font-weight: 800; }
.loyalty-level { background: rgba(0,0,0,0.15); padding: 0.15rem 0.5rem; border-radius: 30px; font-size: 0.7rem; font-weight: 700; }
.redeem-pts-btn { background: #000; color: #fff; border: none; border-radius: 8px; padding: 0.5rem 1rem; font-size: 0.8rem; font-weight: 700; cursor: pointer; font-family: var(--font); }

.profile-quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; padding: 1.25rem; }
.action-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 0.5rem; text-align: center; cursor: pointer; transition: all 0.2s; box-shadow: var(--shadow); }
.action-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.action-icon { font-size: 1.5rem; display: block; margin-bottom: 0.35rem; }
.action-label { font-size: 0.75rem; color: var(--text2); font-weight: 600; }
.profile-list-section { padding: 0 1.25rem 0.5rem; }
.profile-list-section h4 { font-size: 0.78rem; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: 0.08em; margin: 1.25rem 0 0.25rem; }
.list-item { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 0.75rem; border-radius: var(--radius-sm); cursor: pointer; transition: background 0.2s; background: var(--card); margin-bottom: 2px; }
.list-item:hover { background: var(--bg3); }
.item-left { display: flex; align-items: center; gap: 0.75rem; }
.item-icon { font-size: 1.1rem; width: 28px; text-align: center; }
.item-label { font-size: 0.9rem; font-weight: 500; }
.item-chevron { color: var(--text2); font-size: 1.2rem; }
.profile-footer { text-align: center; padding: 1.5rem; border-top: 1px solid var(--border); color: var(--text2); font-size: 0.8rem; margin-top: 1rem; background: var(--bg2); }
.footer-logo { font-weight: 700; color: var(--text); margin-bottom: 0.25rem; font-family: var(--font-head); }

/* ===== LIVE MAP TRACKING ===== */
.tracking-modal-full { align-items: flex-end; }
.tracking-content {
    max-width: 100%; border-radius: var(--radius) var(--radius) 0 0;
    padding: 0; max-height: 95vh; overflow-y: auto; background: var(--bg2);
}
.tracking-topbar {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
    position: sticky; top: 0; background: var(--bg2); z-index: 10;
}
.tracking-title-area { flex: 1; }
.tracking-title-area h2 { font-size: 1.1rem; font-weight: 700; font-family: var(--font-head); }
.tracking-eta { font-size: 0.8rem; color: var(--accent2); font-weight: 700; }
.tracking-pulse-dot {
    color: var(--accent2); font-size: 1.4rem;
    animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.8)} }

/* Leaflet Map Container */
.live-map-container {
    width: 100%; height: 260px;
    background: #e8f0e8;
    position: relative;
}
.leaflet-container { font-family: var(--font) !important; }

.tracking-info-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.85rem 1.25rem; background: var(--bg3);
    border-bottom: 1px solid var(--border); gap: 1rem;
}
.tracking-order-chip {
    font-size: 0.8rem; color: var(--text2); background: var(--bg3);
    padding: 0.35rem 0.75rem; border-radius: 6px;
}
.partner-info-chip {
    display: flex; align-items: center; gap: 0.5rem;
    background: var(--bg3); padding: 0.5rem 0.85rem; border-radius: 10px;
}
.partner-info-chip span:first-child { font-size: 1.2rem; }
.partner-info-chip strong { font-size: 0.85rem; font-weight: 700; display: block; }
.partner-info-chip span:last-of-type { font-size: 0.72rem; color: var(--text2); }
.call-partner-btn {
    background: var(--accent2); color: #fff; text-decoration: none;
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}

/* Tracking Steps */
.tracking-steps { padding: 1rem 1.25rem; display: flex; flex-direction: column; }
.step { display: flex; align-items: flex-start; gap: 1rem; padding: 0.75rem 0; position: relative; opacity: 0.3; transition: opacity 0.5s; }
.step::before { content: ''; position: absolute; left: 9px; top: 36px; width: 2px; height: calc(100% - 16px); background: var(--border); }
.step:last-child::before { display: none; }
.step.active { opacity: 1; }
.step.active .step-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(245,200,66,0.15); }
.step-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); background: var(--bg3); flex-shrink: 0; margin-top: 4px; transition: all 0.4s; position: relative; z-index: 1; }
.step-text { flex: 1; }
.step-text h4 { font-size: 0.9rem; font-weight: 700; }
.step-text p { font-size: 0.78rem; color: var(--text2); margin-top: 0.15rem; }
.step-time { font-size: 0.72rem; color: var(--accent2); font-weight: 600; white-space: nowrap; }
.tracking-progress-bar { background: var(--border); border-radius: 10px; height: 5px; margin: 0 1.25rem 1rem; overflow: hidden; }
.tracking-progress-fill { height: 100%; background: var(--accent2); border-radius: 10px; transition: width 0.8s ease; width: 0%; }

/* Rate Section */
.rate-section { padding: 1rem 1.25rem; text-align: center; border-top: 1px solid var(--border); }
.rate-section h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; }
.star-rating { display: flex; justify-content: center; gap: 0.5rem; }
.star-rating span { font-size: 2rem; cursor: pointer; transition: transform 0.15s; }
.star-rating span:hover { transform: scale(1.3); }

/* ===== WISHLIST ===== */
.wishlist-grid { padding: 1rem; }

/* ===== PAYMENT SETTINGS ===== */
.payment-settings-body { padding: 1rem 1.25rem; }
.payment-group { margin-bottom: 1rem; background: var(--card); border-radius: var(--radius-sm); border: 1px solid var(--border); overflow: hidden; }
.payment-group h4 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text2); padding: 0.75rem 1rem 0; }
.payment-row { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1rem; border-top: 1px solid var(--border); }
.pay-left { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; }
.pay-icon-box { font-size: 1.2rem; }
.add-text-btn { background: none; border: 1.5px solid var(--accent); color: var(--accent); border-radius: 6px; padding: 0.3rem 0.75rem; font-size: 0.8rem; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.add-text-btn:hover { background: var(--accent); color: #000; }

/* ===== ADDRESS ===== */
.address-actions-top { padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--border); background: var(--bg2); }
.address-action-row { padding: 0.85rem 0; font-size: 0.9rem; cursor: pointer; }
.address-list-section { padding: 1rem 1.25rem; }
.address-list-section h4 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; color: var(--text2); margin-bottom: 0.75rem; letter-spacing: 0.08em; }
.address-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; margin-bottom: 0.75rem; }
.address-item h5 { font-size: 0.9rem; font-weight: 700; }
.address-item p { font-size: 0.8rem; color: var(--text2); margin-top: 0.25rem; }

/* ===== WALLET ===== */
.wallet-bg { background: linear-gradient(135deg, #0f4c35 0%, #1a7a55 100%); }
.transparent-header { background: transparent !important; }
.transparent-header .icon-btn, .transparent-header h2 { color: #fff; }
.wallet-hero { text-align: center; padding: 2rem 1.25rem 1rem; }
.wallet-icon-large { font-size: 4rem; margin-bottom: 0.5rem; }
.wallet-brand-text { font-size: 1.8rem; font-weight: 800; letter-spacing: 0.1em; color: #fff; font-family: var(--font-head); }
.wallet-brand-text span { color: var(--accent); }
.wallet-balance { color: rgba(255,255,255,0.7); margin-top: 0.5rem; }
.wallet-benefits { padding: 1rem 1.25rem 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.benefit-card { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius); padding: 1rem; display: flex; align-items: flex-start; gap: 0.75rem; }
.b-icon { font-size: 1.4rem; flex-shrink: 0; }
.b-text strong { font-size: 0.9rem; color: #fff; }
.b-text p { font-size: 0.8rem; color: rgba(255,255,255,0.65); margin-top: 0.2rem; }
.add-money-btn { width: 100%; background: var(--accent); color: #000; border: none; border-radius: var(--radius-sm); padding: 1rem; font-size: 1rem; font-weight: 700; cursor: pointer; margin: 0.5rem 0; transition: background 0.2s; font-family: var(--font); }
.add-money-btn:hover { background: var(--accent-dark); }

/* ===== LOCATION MODAL ===== */
.detect-loc-btn {
    width: 100%; background: rgba(59,130,246,0.1); border: 1.5px solid rgba(59,130,246,0.3); color: #60a5fa;
    border-radius: var(--radius-sm); padding: 0.85rem; font-size: 0.9rem;
    font-weight: 700; cursor: pointer; font-family: var(--font); transition: all 0.2s;
}
.detect-loc-btn:hover { background: rgba(59,130,246,0.2); }
.saved-locs { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.saved-loc-item {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem;
    background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm);
    cursor: pointer; font-size: 0.9rem; font-weight: 500; transition: all 0.2s;
}
.saved-loc-item:hover { border-color: var(--accent); background: rgba(245,200,66,0.05); }

/* ===== CATEGORIES FULLSCREEN ===== */
.categories-modal-fullscreen .modal-content { border-radius: 0; max-width: 100%; max-height: 100vh; height: 100vh; display: flex; flex-direction: column; padding: 0; }
.cat-header-dark { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; gap: 0.75rem; align-items: center; flex-shrink: 0; background: var(--bg2); }
.cat-search-bar { flex: 1; display: flex; align-items: center; gap: 0.5rem; background: var(--bg3); border: 1.5px solid var(--border); border-radius: 30px; padding: 0.6rem 1rem; }
.cat-search-bar input { flex: 1; background: none; border: none; color: var(--text); outline: none; font-family: var(--font); font-size: 0.9rem; }
.cat-search-bar input::placeholder { color: #5a6478; }
.close-cat-btn { background: var(--bg3); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 0.5rem 0.75rem; cursor: pointer; }
.categories-scroll-area { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.cat-group-title { font-weight: 700; font-size: 0.78rem; color: var(--text2); margin: 1rem 0 0.5rem; text-transform: uppercase; letter-spacing: 0.08em; }
.cat-full-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 0.6rem; margin-bottom: 0.5rem; }
.cat-full-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.75rem 0.5rem; text-align: center; cursor: pointer; transition: all 0.2s; }
.cat-full-item:hover { border-color: var(--accent); background: rgba(245,200,66,0.05); }
.cat-full-item .icon { font-size: 1.8rem; }
.cat-full-item .name { font-size: 0.72rem; color: var(--text2); margin-top: 0.3rem; font-weight: 500; }

/* ===== INFO MODAL ===== */
.info-modal-body { padding: 1.25rem; line-height: 1.7; color: var(--text2); }

/* ===== ORDERS ===== */
.order-history-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; margin-bottom: 0.75rem; cursor: pointer; transition: all 0.2s; }
.order-history-item:hover { border-color: var(--accent); }
.order-history-item h5 { font-size: 0.95rem; font-weight: 700; display: flex; justify-content: space-between; }
.order-history-item p { font-size: 0.82rem; color: var(--text2); margin-top: 0.25rem; }
.order-history-item .order-status { display: inline-block; background: rgba(245,200,66,0.15); color: var(--accent); font-size: 0.72rem; padding: 0.2rem 0.6rem; border-radius: 30px; font-weight: 700; margin-top: 0.5rem; }
.order-track-btn { background: var(--accent); color: #000; border: none; border-radius: 6px; padding: 0.35rem 0.75rem; font-size: 0.75rem; font-weight: 700; cursor: pointer; margin-top: 0.4rem; font-family: var(--font); }

/* ===== SEARCH RESULTS ===== */
.search-results-section { margin-bottom: 2rem; }
.search-results-section h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; }
.no-results { text-align: center; padding: 3rem; color: var(--text2); font-size: 0.95rem; grid-column: 1 / -1; }

/* ===== TOAST ===== */
.toast {
    position: fixed; bottom: calc(var(--nav-h) + 1rem);
    left: 50%; transform: translateX(-50%) translateY(20px);
    background: var(--accent); color: #000; padding: 0.75rem 1.5rem;
    border-radius: 30px; font-size: 0.88rem; font-weight: 600;
    z-index: 9999; opacity: 0; transition: all 0.3s ease;
    pointer-events: none; white-space: nowrap;
    box-shadow: 0 4px 16px rgba(245,200,66,0.3);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== SUB MODAL ===== */
.sub-modal-content { padding: 0; border-radius: var(--radius) var(--radius) 0 0; background: var(--bg3); }
.sub-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; background: var(--bg2); gap: 0.75rem; }
.sub-modal-header h2 { font-size: 1.1rem; font-weight: 700; flex: 1; text-align: center; font-family: var(--font-head); }
.border-bottom { border-bottom: 1px solid var(--border); }

/* ===== MEDIA QUERIES ===== */
@media (max-width: 768px) {
    .navbar { padding: 0.5rem 1rem; }
    .navbar-top-row { flex-wrap: wrap; justify-content: space-between; }
    
    /* Make search full width */
    .search-container { order: 10; flex: 1 1 100%; max-width: 100%; margin-top: 0.5rem; margin-bottom: 0.25rem; }
    
    /* Top row elements */
    .header-actions { order: 2; margin-left: auto; }
    .location-pill { order: 1; max-width: 200px; padding: 0.3rem 0.5rem; border: none; background: transparent; }
    .loc-name { font-size: 0.9rem; max-width: 150px; }
    .loc-label { display: none; } /* Hide "Deliver to" to save space */
    
    /* Hide Logo completely on mobile to save space */
    .logo { display: none; }
    
    /* Hide Login button if possible, keep cart */
    #login-actions .login-btn { display: none; }
    .cart-btn { padding: 0.4rem 0.75rem; font-size: 0.85rem; }
    .cart-label { display: none; } /* Show only cart icon and price */
    
    /* Compact Banner */
    .banner { flex-direction: row; padding: 1.25rem 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
    .banner::before, .banner::after { display: none; }
    .banner-content { text-align: left; flex: 1; }
    .banner-image { font-size: 4.5rem; margin: 0 0 0 0.5rem; }
    .banner-content h2, .banner-content h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.05em; }
    .banner-sub { display: none; } /* Hide subtext on mobile */
    .banner-tag { font-size: 0.65rem; padding: 0.3rem 0.6rem; margin-bottom: 0.4rem; }
    .banner-cta { padding: 0.5rem 1rem; font-size: 0.85rem; border-radius: 8px; }
    .banner-cta-ghost { display: none; } 
    
    body { padding-top: 110px; } 
}

@media (min-width: 769px) {
    .header-actions { order: 4; }
    .logo { order: 1; }
    .location-pill { order: 2; }
    .search-container { order: 3; margin: 0 1rem; flex: 1; }
}
