/* 🚀 Global reset & hidden scrollbar (keeps scroll, removes grey strip) 🚀 */
html {
    margin: 0;
    padding: 0;
    background: #F8F9FA;
}

body {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #F8F9FA !important;
    
    border: none !important;
}

/* Hide scrollbar on mobile view but keep it on desktop */
@media (max-width: 800px) {
    html { scrollbar-width: none; -ms-overflow-style: none; }
    html::-webkit-scrollbar { display: none; }
    body { scrollbar-width: none; -ms-overflow-style: none; }
    body::-webkit-scrollbar { display: none; }
}

/* 🚀 Kill shadow bleed from off-screen bottom sheets & sidebars 🚀 */
/* These elements slide off-screen but their large shadows bleed into the viewport edges */
.svc-detail-sheet:not(.open),
.svc-feat-modal-container:not(.active),
.more-modal-container,
#bookingDetailOverlay:not(.open),
#vendorProfileOverlay:not(.open),
.loc-sidebar:not(.active),
.cart-sidebar:not(.open),
.profile-sidebar:not(.open),
.refer-sidebar:not(.open),
.saved-sidebar:not(.open),
.saved-svc-overlay:not(.open),
.refer-overlay:not(.open),
.sidebar:not(.active) {
    
}


/* ======================================================
   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: #41C6CC;
            --header-green: #41C6CC;
            --header-green-dark: #41C6CC;
            --header-text: #ffffff;
            /* Swiggy/Sarekam Premium Modal Variables */
            --loc-bg: #f3f4f6;
            --loc-orange: #ff5200; 
            --loc-green: #25D366; 
            --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;
        }

        .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: #ffffff;
            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: #fff;
        }
        .loc-title-row .fa-location-dot { font-size: 0.95rem; color: #fff; }
        .loc-title-row .fa-chevron-down { font-size: 0.65rem; color: #fff; margin-top: 1px; }
        .loc-text {
            font-size: 0.75rem;
            font-weight: 500;
            color: #fff;
            opacity: 0.9;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 240px;
        }

        .search-container {
            flex: 1;
            background: #fff;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 14px;
            height: 48px;
            border: none;
            transition: box-shadow 0.2s, border-color 0.2s;
        }

        .search-container:focus-within {
            box-shadow: 0 0 0 2px rgba(10,122,92,0.3);
        }

        .service-search {
            position: relative;
            display: flex;
            align-items: center;
            flex: 1;
            gap: 10px;
            height: 100%;
        }

        .service-search input {
            position: relative;
            z-index: 2;
            border: none;
            outline: none;
            width: 100%;
            font-size: 0.95rem;
            color: var(--text-dark);
            font-family: 'Manrope', sans-serif;
            background: transparent;
        }

        .search-slider-wrapper {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            overflow: hidden;
            z-index: 1;
        }

        .search-static-text {
            float: left;
            color: #8a8a8a;
            font-weight: 500;
            font-size: 0.95rem;
            white-space: pre;
            display: flex;
            align-items: center;
            height: 48px;
        }

        .search-slider {
            float: left;
            height: 100%;
            display: flex;
            flex-direction: column;
            will-change: transform;
        }

        .search-slider div {
            flex-shrink: 0;
            height: 48px; /* Must match the search-container height exactly */
            display: flex;
            align-items: center;
            color: #8a8a8a;
            font-weight: 500;
            font-size: 0.95rem;
            white-space: nowrap;
        }

        .service-search input::placeholder {
            color: #8a8a8a;
            font-weight: 500;
        }

        .search-tools {
            display: flex;
            align-items: center;
            gap: 12px;
            color: #555;
            font-size: 1.1rem;
            flex-shrink: 0;
        }

        .search-divider {
            width: 1px;
            height: 20px;
            background-color: #d1d1d1;
        }

        .search-tools .fa-magnifying-glass {
            color: #888;
            font-size: 1.1rem;
            cursor: pointer;
        }

        /* ---- Right side action icons ---- */
        .header-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
        }

        /* Bookmark button next to search */
        .header-bookmark-btn {
            width: 48px;
            height: 48px;
            background: transparent;
            border: 1px solid #fff;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #fff;
            font-size: 1.2rem;
            cursor: pointer;
            transition: background 0.18s, color 0.18s, transform 0.15s;
            flex-shrink: 0;
        }

        .header-bookmark-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            color: #fff;
            transform: scale(1.04);
        }

        .header-bookmark-btn:active {
            transform: scale(0.96);
        }

        /* Profile avatar button */
        .header-profile-btn {
            width: 48px;
            height: 48px;
            background: transparent;
            border: 1px solid #fff;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #fff;
            font-size: 1.3rem;
            cursor: pointer;
            transition: transform 0.15s, background 0.2s, box-shadow 0.15s;
        }

        .header-profile-btn:hover {
            transform: scale(1.06);
            background: rgba(255, 255, 255, 0.2);
        }

        .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;
        }










/* ========================================================================= */
/* GLOBAL REUSABLE ANIMATIONS (Entering & Exiting)                         */
/* ========================================================================= */

/* Slide from Right (Modals, Panels) */
.slide-in-right { animation: slideInRight 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; }
.slide-out-right { animation: slideOutRight 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; }
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes slideOutRight { from { transform: translateX(0); } to { transform: translateX(100%); } }

/* Slide from Bottom (Bottom Sheets) */
.slide-in-bottom { animation: slideInBottom 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; }
.slide-out-bottom { animation: slideOutBottom 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; }
@keyframes slideInBottom { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes slideOutBottom { from { transform: translateY(0); } to { transform: translateY(100%); } }

/* Scale Up / Down (Centered Popups) */
.scale-in { animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.scale-out { animation: scaleOut 0.25s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }
@keyframes scaleOut { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(0.85); } }

/* Fade (Backdrops) */
.fade-in { animation: fadeInAnim 0.25s ease forwards; }
.fade-out { animation: fadeOutAnim 0.25s ease forwards; }
@keyframes fadeInAnim { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOutAnim { from { opacity: 1; } to { opacity: 0; } }

