/* ======================================================
   Sarekam CSS — base.css
   Extracted from index.html | Phase 1 Refactor
   DO NOT add styles from other sections to this file.
   ====================================================== */

        :root {
            --primary: #cb202d;
            /* Zomato Red Accent */
            --text-dark: #1c1c1c;
            --text-light: #4f4f4f;
            --bg-light: #f8f8f8;
            --white: #ffffff;
            --border-color: #e8e8e8;
            --radius-md: 8px;
            --radius-pill: 50px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Manrope', sans-serif;
        }

        body {
            background-color: var(--white);
            color: var(--text-dark);
            line-height: 1.5;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        ul {
            list-style: none;
        }

        /* ================= BRAND DESIGN SYSTEM & VARS ================= */
        :root {
            --header-bg: #cee7d6;
            --header-green: #0a7a5c;
            --header-green-dark: #085e47;

            /* Swiggy/Sarekam Premium Modal Variables */
            --loc-bg: #f3f4f6;
            --loc-orange: #ff5200; 
            --loc-green: #25D366; 
            --dropdown-bg: #1c1d22;
            --profile-bg: #f8f9fa;
            --pass-gradient-start: #f3e8ff;
            --pass-gradient-end: #e0d4f5;
            --pass-text: #4c1d95;
            --logout-red: #d32f2f;
            --card-border: #e8edea;
            --text-grey: #4a4a4a;
            --text-light-grey: #8e9e97;
            --swiggy-green: #0a7a5c;
        }

        .header {
            width: 100%;
            background: var(--header-bg);
            position: sticky;
            top: 0;
            z-index: 1000;
            padding: 20px 0 16px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.06);
        }

        .header-container {
            width: 92%;
            max-width: 1200px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        /* Brand Logo */
        .brand-logo {
            font-size: 1.7rem;
            font-weight: 800;
            color: var(--header-green-dark);
            font-style: italic;
            letter-spacing: -0.5px;
            flex-shrink: 0;
            transition: opacity 0.15s;
        }
        .brand-logo:hover { opacity: 0.8; }

        /* ---- Location pill (desktop) ---- */
        .location-picker {
            display: flex;
            flex-direction: column;
            gap: 3px;
            cursor: pointer;
            padding: 6px 10px;
            border-radius: 10px;
            transition: background 0.15s;
            flex-shrink: 0;
        }
        .location-picker:hover { background: rgba(0,0,0,0.05); }
        .location-picker:active { opacity: 0.7; }
        .loc-title-row {
            display: flex;
            align-items: center;
            gap: 7px;
            font-size: 1.05rem;
            font-weight: 800;
            color: var(--text-dark);
        }
        .loc-title-row .fa-location-dot { font-size: 0.95rem; color: #1a1a1a; }
        .loc-title-row .fa-chevron-down { font-size: 0.65rem; color: #555; margin-top: 1px; }
        .loc-text {
            font-size: 0.75rem;
            font-weight: 500;
            color: #5a5a5a;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 240px;
        }

        .search-container {
            flex: 1;
            background: #fff;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 14px;
            height: 52px;
            border: 1px solid #e2e2e2;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
            transition: box-shadow 0.2s, border-color 0.2s;
        }
        .search-container:focus-within {
            box-shadow: 0 4px 14px rgba(10,122,92,0.14);
            border-color: rgba(10,122,92,0.3);
        }

        .service-search {
            display: flex;
            align-items: center;
            flex: 1;
            gap: 10px;
            height: 100%;
        }
        .service-search > i { color: #888; font-size: 1rem; flex-shrink: 0; }
        .service-search input {
            border: none;
            outline: none;
            width: 100%;
            font-size: 0.95rem;
            color: var(--text-dark);
            font-family: 'Manrope', sans-serif;
            background: transparent;
        }
        .service-search input::placeholder { color: #8a8a8a; font-weight: 500; }
        .search-tools {
            display: flex;
            align-items: center;
            gap: 12px;
            color: #888;
            font-size: 1rem;
            flex-shrink: 0;
        }
        .search-divider {
            width: 1px;
            height: 20px;
            background: #d8d8d8;
        }
        .search-tools .fa-microphone {
            cursor: pointer;
            transition: color 0.15s;
        }
        .search-tools .fa-microphone:hover { color: var(--header-green); }

        /* Bookmark button next to search */
        .header-bookmark-btn {
            width: 52px;
            height: 52px;
            background: transparent;
            border: 1.5px solid var(--header-green);
            border-radius: 14px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: var(--header-green);
            font-size: 1.1rem;
            cursor: pointer;
            transition: background 0.18s, color 0.18s, transform 0.15s;
            flex-shrink: 0;
        }
        .header-bookmark-btn:hover { background: var(--header-green); color: #fff; transform: scale(1.04); }
        .header-bookmark-btn:active { transform: scale(0.96); }

        /* ---- Right side action icons ---- */
        .header-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
        }

        

        /* Profile avatar button */
        .header-profile-btn {
            width: 42px;
            height: 42px;
            background: #3d4a44;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #fff;
            font-size: 1.15rem;
            cursor: pointer;
            transition: transform 0.15s, background 0.2s, box-shadow 0.15s;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        }
        .header-profile-btn:hover { transform: scale(1.06); background: var(--header-green); box-shadow: 0 4px 14px rgba(10,122,92,0.3); }
        .header-profile-btn:active { transform: scale(0.95); }

        /* Cart icon on desktop stays */
        .header-cart-btn {
            position: relative;
            width: 42px;
            height: 42px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: #333;
            cursor: pointer;
            transition: color 0.15s, transform 0.15s;
            border-radius: 50%;
        }
        .header-cart-btn:hover { color: var(--header-green); transform: scale(1.08); }
        .header-cart-btn:active { transform: scale(0.94); }
        .cart-badge {
            position: absolute;
            top: -3px;
            right: -3px;
            background: #e53935;
            color: #fff;
            font-size: 0.6rem;
            font-weight: 800;
            min-width: 17px;
            height: 17px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 3px;
            pointer-events: none;
            border: 2px solid var(--header-bg);
        }

        /* ---- Mobile-only elements ---- */
        .mobile-search-bar { display: none; }
        .mobile-header-tools { display: none; gap: 8px; align-items: center; }
        .mobile-location { display: none; }
        /* mobile loc duplicates Ã¢â‚¬â€ still hidden by default */
        .mobile-loc-top {
            display: flex;
            align-items: center;
            font-size: 1rem;
            font-weight: 800;
            color: var(--text-dark);
            margin-bottom: 2px;
            gap: 5px;
        }
        .mobile-loc-bottom {
            font-size: 0.65rem;
            color: #5a5a5a;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            width: 100%;
            max-width: 200px;
        }

        /* ---- Mobile Bottom Nav ---- */
        .mobile-bottom-nav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: #fff;
            border-top: 1.5px solid #e8ede9;
            z-index: 1100;
            padding: 10px 0 20px;
        }
        .mobile-bottom-nav-grid {
            display: flex;
            justify-content: space-around;
            align-items: flex-start;
        }
        .mobile-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            font-size: 10px;
            font-weight: 700;
            color: #9ba8a3;
            cursor: pointer;
            padding: 4px 14px;
            border-radius: 12px;
            transition: color 0.2s;
            -webkit-tap-highlight-color: transparent;
        }
        .mobile-nav-item.active { color: var(--header-green); }
        .mobile-nav-item i {
            font-size: 1.35rem;
            transition: transform 0.2s;
        }
        .mobile-nav-item:active i { transform: scale(0.9); }
        .mobile-nav-item.active i { color: var(--header-green); }
        .mobile-nav-cart {
            position: relative;
        }
        .mobile-nav-badge {
            position: absolute;
            top: -5px;
            right: -6px;
            background: #e53935;
            color: #fff;
            font-size: 0.55rem;
            font-weight: 800;
            min-width: 15px;
            height: 15px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 2px;
            border: 2px solid #fff;
        }

