/* PivoKart Modern Homepage UI/UX Redesign */

/* -------------------------------------------
   GLOBAL AESTHETICS & VARIABLES
------------------------------------------- */
:root {
    --pivo-accent: #FF6B6B;
    --pivo-accent-hover: #fa5050;
    --pivo-bg-light: #f8f9fa;
    --card-radius: 16px;
    --subtle-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    /* Zomato Header Variables */
    --fd-red: #ef4f5f;
    --fd-red-dark: #e23744;
    --fd-grad: linear-gradient(135deg,#e8541a,#e23744);
    --fd-ink: #1c1c1c;
    --fd-muted: #696969;
    --fd-line: #e8e8e8;
    --fd-soft: #f7f7f7;
    --fd-green: #267e3e;
    --fd-shadow: 0 8px 24px rgba(0,0,0,.08);
    --fd-shadow-lg: 0 12px 40px rgba(0,0,0,.12);
}

/* Zomato Sticky Header Core */
.fd-nav { display: block !important; margin-top: 0 !important; padding-top: 0 !important;
    position: sticky;
    top: 0;
    z-index: 60;
    background: #fff;
    border-bottom: 1px solid var(--fd-line);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    transition: box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: #ffffff;
    font-family: 'Inter', 'Roboto', sans-serif;
    zoom: 90%;
}

/* -------------------------------------------
   HEADER REDESIGN
------------------------------------------- */
.header-main {
    padding: 12px 0;
    border-bottom: 1px solid #eaeaea;
}

.pivo-header-flex {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 15px;
}

/* Hamburger & Logo */
.pivo-header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.pivo-hamburger {
    font-size: 24px;
    color: #333;
    cursor: pointer;
    display: inline-block;
}

.pivo-header-brand img {
    max-height: 40px;
}

/* Location Selector - Minimal */
.pivo-header-location {
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 8px 12px;
    flex-shrink: 0;
}

.pivo-header-location .feather-map-pin {
    color: var(--pivo-accent);
}

.pivo-header-location input {
    background: transparent;
    border: none;
    outline: none;
    width: 180px;
    font-size: 13px;
    padding-left: 8px;
    color: #555;
}

/* Delivery / Takeout Toggle */
.pivo-header-toggle {
    display: flex;
    background: #f1f3f6;
    border-radius: 8px;
    padding: 3px;
    flex-shrink: 0;
}

.pivo-toggle-btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    transition: var(--transition);
}

.pivo-toggle-btn.active {
    background: #fff;
    color: var(--pivo-accent);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Hide the actual checkbox */
.pivo-header-toggle input[type="checkbox"] {
    display: none;
}

/* Search Bar - Large and flexible */
.pivo-header-search {
    flex-grow: 1;
    background: #f1f3f6;
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 10px;
    min-width: 200px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.pivo-header-search:focus-within {
    background: #fff;
    border-color: #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pivo-header-search i {
    color: #888;
}

.pivo-header-search input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
}

/* Right Nav Items */
.pivo-header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    margin-left: auto;
    /* Push everything else to the right */
}

.pivo-header-nav a {
    color: #333;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.pivo-header-nav a:hover {
    color: var(--pivo-accent);
}

/* -------------------------------------------
   HERO SECTION
------------------------------------------- */
.pivo-hero-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #fff9f9 0%, #ffffff 100%);
    display: flex;
    align-items: center;
}

.pivo-hero-content {
    max-width: 500px;
}

.pivo-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #111;
    margin-bottom: 20px;
}

.pivo-hero-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

.pivo-btn-primary {
    background-color: var(--pivo-accent);
    color: #fff;
    border-radius: 50px;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    transition: var(--transition);
    display: inline-block;
}

.pivo-btn-primary:hover {
    background-color: var(--pivo-accent-hover);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.pivo-hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: var(--card-radius);
    box-shadow: var(--hover-shadow);
}

/* -------------------------------------------
   HORIZONTAL CAROUSELS (CONVERTING GRIDS)
------------------------------------------- */
/* Transform .row inside sections to flex horizontal scrolling */
.top-categories-section .row,
.most-popular-store-section .row,
.most-popular-item-section .row,
.new-arrivals-section .row,
.home-categories-section .row,
.offers-coupons-section .row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 10px 5px 30px 5px;
    /* Room for shadows */
    margin: 0;
}

/* Hide Scrollbar */
.top-categories-section .row::-webkit-scrollbar,
.most-popular-store-section .row::-webkit-scrollbar,
.most-popular-item-section .row::-webkit-scrollbar,
.new-arrivals-section .row::-webkit-scrollbar,
.home-categories-section .row::-webkit-scrollbar,
.offers-coupons-section .row::-webkit-scrollbar {
    display: none;
}

.top-categories-section .row,
.most-popular-store-section .row,
.most-popular-item-section .row,
.new-arrivals-section .row,
.home-categories-section .row,
.offers-coupons-section .row {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Ensure columns don't break flex layout */
.top-categories-section .col-md-2,
.most-popular-store-section .col-md-3,
.most-popular-item-section .col-md-3,
.new-arrivals-section .col-md-3,
.home-categories-section .col-md-3,
.offers-coupons-section .col-md-3 {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 0;
    /* Removing bootstrap padding as gap handles it */
}

/* Standardize card widths for carousels */
.most-popular-store-section .col-md-3,
.new-arrivals-section .col-md-3,
.home-categories-section .col-md-3 {
    width: 300px;
}

.most-popular-item-section .col-md-3 {
    width: 250px;
}

.offers-coupons-section .col-md-3 {
    width: 320px;
}

/* -------------------------------------------
   CARD REDESIGN & REFINEMENTS
------------------------------------------- */
.list-card {
    border-radius: var(--card-radius);
    border: 1px solid #f0f0f0;
    box-shadow: var(--subtle-shadow);
    transition: var(--transition);
    overflow: hidden;
    background: #fff;
    height: 100%;
}

.list-card:hover {
    box-shadow: var(--hover-shadow);
    transform: translateY(-4px);
}

.list-card-image img {
    border-radius: var(--card-radius) var(--card-radius) 0 0;
    object-fit: cover;
    height: 160px;
    width: 100%;
}

.list-card-body {
    padding: 16px;
}

.list-card-body h6 {
    font-weight: 700;
    font-size: 16px;
    color: #222;
    margin-bottom: 6px;
}

.text-gray {
    color: #666 !important;
}

/* Categories Redesign */
.top-cat-list {
    width: 100px;
    text-align: center;
}

.cat-link {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cat-img {
    width: 100%; max-width: 110px; aspect-ratio: 1 / 1; height: auto;
    border-radius: 50%;
    background: var(--pivo-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: var(--subtle-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.cat-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.cat-link:hover .cat-img {
    transform: scale(1.05);
    box-shadow: var(--hover-shadow);
}

.cat-link span:not(.cat-img) {
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

/* Badges */
.badge-success {
    background-color: #20b038;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 600;
}

.member-plan .badge {
    border-radius: 8px;
    padding: 6px 12px;
}

/* -------------------------------------------
   MOBILE RESPONSIVENESS
------------------------------------------- */






/* Zomato Sticky Header Core */
.fd-nav { display: block !important; margin-top: 0 !important; padding-top: 0 !important;
    position: sticky !important; top: 0 !important; z-index: 60; background: #fff; border-bottom: 1px solid var(--fd-line); font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; transition: box-shadow 0.2s; box-shadow: 0 4px 16px rgba(0,0,0,.06); width: 100%; -webkit-font-smoothing: antialiased; font-size: 14px;
}
.fd-nav__inner { display: flex; align-items: center; justify-content: space-between; max-width: 1600px; margin: 0 auto; padding: 8px 16px; gap: 10px; }
.fd-nav__loc { display: flex; align-items: center; position: relative; border: 1px solid var(--fd-line); border-radius: 8px; padding: 8px 12px; cursor: pointer; }
.fd-nav__loc-trigger { background: transparent; border: none; outline: none; display: flex; align-items: center; gap: 8px; }
.fd-nav__search-wrap { flex-grow: 1; max-width: 800px; position: relative; }
.fd-nav__search { display: flex; align-items: center; border: 1px solid var(--fd-line); border-radius: 12px; overflow: hidden; }
.fd-nav__search input { flex-grow: 1; padding: 10px; border: none; outline: none; }
.fd-nav__search-btn { background: var(--fd-grad); color: white; border: none; padding: 10px 20px; font-weight: 600; cursor: pointer; }
.fd-nav__links { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.fd-nav__login { border: 1px solid var(--fd-red); color: var(--fd-red); padding: 8px 18px; border-radius: 6px; font-weight: 500; text-decoration: none; }
.fd-nav__signup { background: var(--fd-grad); color: white; padding: 8px 18px; border-radius: 6px; font-weight: 500; text-decoration: none; }
.fd-nav__lang-wrap { position: relative; }
.fd-nav__lang-btn { background: transparent; border: 1px solid var(--fd-line); border-radius: 6px; padding: 8px 12px; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.fd-lang-flag { width: 24px; height: 16px; object-fit: cover; border-radius: 2px; }
.fd-nav__hamburger { background: transparent; border: none; cursor: pointer; }

.fd-loc-drop, .fd-search-drop, .fd-lang-list { position: absolute; top: 100%; right: 0; background: #fff; border: 1px solid var(--fd-line); border-radius: 8px; box-shadow: var(--fd-shadow); z-index: 100; min-width: 200px; padding: 8px 0; margin-top: 8px; }
.fd-loc-drop { left: 0; right: auto; padding: 16px; width: 300px; }
.fd-search-drop { left: 0; width: 100%; max-height: 400px; overflow-y: auto; }
.fd-lang-list { list-style: none; margin: 0; padding: 0; }
.fd-lang-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer; }
.fd-lang-item:hover { background: var(--fd-soft); }
.fd-sdrop__item { display: flex; gap: 12px; padding: 12px 16px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--fd-line); }
.fd-sdrop__item:hover { background: var(--fd-soft); }
.fd-sdrop__img img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.fd-sdrop__info { display: flex; flex-direction: column; gap: 4px; }
.fd-sdrop__name { font-weight: 600; font-size: 15px; }
.fd-sdrop__tags { display: flex; gap: 8px; font-size: 11px; }
.fd-sdrop__chip { background: var(--fd-soft); padding: 2px 6px; border-radius: 4px; color: var(--fd-muted); }
.fd-sdrop__all { display: flex; justify-content: space-between; padding: 16px; font-weight: 600; color: var(--fd-red); text-decoration: none; }

.fd-loc-drop__field { display: flex; align-items: center; border: 1px solid var(--fd-line); border-radius: 6px; padding: 8px; margin-bottom: 12px; }
.fd-loc-drop__field input { flex-grow: 1; border: none; outline: none; margin-left: 8px; font-size: 14px; width: 100%; }
.fd-loc-drop__label { font-weight: 600; font-size: 12px; color: var(--fd-muted); text-transform: uppercase; margin-bottom: 12px; }
.fd-loc-drop__detect { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; background: transparent; border: 1px solid var(--fd-red); color: var(--fd-red); padding: 10px; border-radius: 6px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.fd-loc-drop__detect:hover { background: #fff5f5; }

/* Hamburger Override to prevent overlapping */
.fd-nav__hamburger { position: relative !important; right: auto !important; top: auto !important; transform: none !important; margin: 0 !important; display: flex; align-items: center; }


@media (max-width: 991px) {
    .pivo-hero-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    .pivo-hero-title {
        font-size: 2.5rem;
    }
    
    .fd-nav { padding: 0 !important; }
    .fd-nav__inner { 
        display: grid !important; 
        grid-template-columns: auto auto 1fr auto auto; 
        grid-template-rows: auto auto auto;
        gap: 12px 6px;
        padding: 12px 16px !important;
        align-items: center;
    }
    
    /* Row 1: All elements in one line */
    .toggle.d-lg-none { grid-column: 1; grid-row: 1; margin: 0 !important; }
    .brand-wrap { grid-column: 2; grid-row: 1; margin: 0 8px 0 0 !important; display: flex !important; }
    .brand-wrap img { max-height: 28px; display: block; }
    
    .fd-nav__loc { grid-column: 3; grid-row: 1; border: none; padding: 0; background: transparent; justify-content: flex-start; }
    .fd-nav__loc-trigger { padding: 0; width: 100%; justify-content: flex-start; }
    .fd-nav__loc-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100px; font-size: 13px; font-weight: 700; color: #000; }
    .fd-nav__loc-trigger .feather-map-pin { color: var(--fd-red); font-size: 18px; }
    .mobile-delivering-text { display: block !important; font-size: 9px !important; }
    
    .fd-nav__links { display: contents !important; } /* Unwrap */
    .fd-nav__icon-fav { grid-column: 4; grid-row: 1; display: flex !important; margin-right: 8px !important; }
    .fd-nav__icon-cart { grid-column: 5; grid-row: 1; display: flex !important; margin: 0 !important; }
    
    /* Row 2: Delivery Pill */
    #deliveryDropdown { grid-column: 1 / span 5; grid-row: 2; display: flex !important; width: 100%; margin: 0; }
    #deliveryDropdown > a { display: none !important; } /* Hide the original dropdown trigger */
    .fd-mobile-mode-pill { display: flex !important; width: 100%; background: #f3f4f6; border-radius: 9999px; padding: 4px; }
    
    /* Row 3: Search Bar */
    .fd-nav__search-wrap { grid-column: 1 / span 5; grid-row: 3; display: block !important; margin: 0; width: 100%; }
    .fd-nav__search { width: 100%; }
    .fd-nav__search-btn { display: block !important; padding: 8px 12px; }
    
    /* Hide unwanted elements */
    .fd-nav__login, .fd-nav__signup, .fd-nav__lang-wrap, button.fd-nav__hamburger, .toggle.fd-nav__hamburger { display: none !important; }
}
.fd-nav__icon-fav { display: none; }

@media (max-width: 991px) {
    .pivo-hero-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    .pivo-hero-title {
        font-size: 2.5rem;
    }
    
    .fd-nav { padding: 0 !important; width: 100% !important; }
    .fd-nav__inner { 
        display: grid !important; 
        grid-template-columns: auto auto 1fr auto auto; 
        grid-template-rows: auto auto auto;
        gap: 12px 6px;
        padding: 12px 16px !important;
        align-items: center;
        width: 100% !important; /* Force full width */
        max-width: 100% !important;
    }
    
    /* Row 1: All elements in one line */
    .toggle.d-lg-none { grid-column: 1; grid-row: 1; margin: 0 !important; align-self: center !important; display: flex !important; align-items: center; justify-content: center; height: 100%; color: #333 !important; }
    .brand-wrap { grid-column: 2; grid-row: 1; margin: 0 8px 0 0 !important; display: flex !important; align-self: center !important; }
    .brand-wrap img { max-height: 24px; display: block; }
    
    .fd-nav__loc { grid-column: 3; grid-row: 1; border: none; padding: 0; background: transparent; justify-content: flex-start; align-self: center !important; }
    .fd-nav__loc-trigger { padding: 0; width: 100%; justify-content: flex-start; }
    .fd-nav__loc-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; font-size: 13px; font-weight: 700; color: #000; }
    .fd-nav__loc-trigger .feather-map-pin { color: var(--fd-red); font-size: 18px; }
    .mobile-delivering-text { display: block !important; font-size: 9px !important; margin-bottom: 2px; }
    
    .fd-nav__links { display: contents !important; } /* Unwrap */
    .fd-nav__icon-fav { grid-column: 4; grid-row: 1; display: flex !important; align-items: center; justify-content: center; margin: 0 8px 0 0 !important; align-self: center !important; }
    .fd-nav__icon-cart { grid-column: 5; grid-row: 1; display: flex !important; align-items: center; justify-content: center; margin: 0 !important; align-self: center !important; }
    
    /* Row 2: Delivery Pill */
    #deliveryDropdown { grid-column: 1 / span 5; grid-row: 2; display: flex !important; width: 100%; margin: 12px 0 4px 0 !important; }
    #deliveryDropdown > a { display: none !important; } /* Hide the original dropdown trigger */
    .fd-mobile-mode-pill { display: flex !important; width: 100%; background: #f3f4f6; border-radius: 9999px; padding: 4px; }
    
    /* Row 3: Search Bar */
    .fd-nav__search-wrap { grid-column: 1 / span 5; grid-row: 3; display: block !important; margin: 0; width: 100%; }
    .fd-nav__search { width: 100%; display: flex !important; }
    .fd-nav__search input { width: 100%; flex-grow: 1; }
    .fd-nav__search-btn { display: flex !important; align-items: center; justify-content: center; padding: 8px 16px !important; }
    
    /* Hide unwanted elements */
    .fd-nav__login, .fd-nav__signup, .fd-nav__lang-wrap, button.fd-nav__hamburger, .toggle.fd-nav__hamburger { display: none !important; }
}

@media (max-width: 991px) {
    .pivo-hero-wrapper { flex-direction: column; text-align: center; padding: 40px 20px; }
    .pivo-hero-title { font-size: 2.5rem; }
    
    .fd-nav { padding: 0 !important; width: 100% !important; background: #fff; }
    .fd-nav__inner { 
        display: grid !important; 
        grid-template-columns: auto 1fr auto auto; 
        grid-template-rows: auto auto auto;
        gap: 12px 6px;
        padding: 12px 16px !important;
        align-items: center;
        width: 100% !important; 
        max-width: 100% !important;
    }
    
    /* Row 1: Hamburger, Logo on Left | Heart, Cart on Right */
    .toggle.d-lg-none { grid-column: 1; grid-row: 1; margin: 0 !important; align-self: center !important; display: flex !important; align-items: center; justify-content: center; height: 100%; color: #333 !important; }
    .brand-wrap { grid-column: 2; grid-row: 1; margin: 0 !important; padding: 0 !important; display: flex !important; align-self: center !important; justify-self: flex-start; }
    .brand-wrap img { max-height: 24px; display: block; }
    
    .fd-nav__links { display: contents !important; } /* Unwrap */
    .fd-nav__icon-fav { grid-column: 3; grid-row: 1; display: flex !important; align-items: center; justify-content: center; margin: 0 8px 0 0 !important; align-self: center !important; justify-self: flex-end; }
    .fd-nav__icon-cart { grid-column: 4; grid-row: 1; display: flex !important; align-items: center; justify-content: center; margin: 0 !important; align-self: center !important; justify-self: flex-end; }
    
    /* Row 2: Location on Left | Delivery Pill on Right */
    .fd-nav__loc { grid-column: 2 / span 2; grid-row: 2; border: none; padding: 0; background: transparent; justify-content: flex-start; align-self: center !important; width: 100%; overflow: hidden; }
    .fd-nav__loc-trigger { padding: 0; width: 100%; justify-content: flex-start; }
    .fd-nav__loc-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; font-size: 14px; font-weight: 800; color: #333; }
    .fd-nav__loc-trigger .feather-map-pin { color: var(--fd-red); font-size: 18px; margin-right: 4px; }
    .mobile-delivering-text { display: block !important; font-size: 10px !important; margin-bottom: 2px; font-weight: 600; color: #666; }
    
    #deliveryDropdown { grid-column: 4 / span 1; grid-row: 2; display: flex !important; width: 100%; margin: 0 !important; justify-self: flex-end; align-self: center; }
    #deliveryDropdown > a { display: none !important; } /* Hide the original dropdown trigger */
    .fd-mobile-mode-pill { display: flex !important; width: 100%; background: #f3f4f6; border-radius: 8px; padding: 2px; }
    .fd-mobile-mode-pill .flex-1 { padding: 4px 8px !important; font-size: 11px !important; white-space: nowrap; }
    
    /* Row 3: Search Bar Full Width */
    .fd-nav__search-wrap { grid-column: 1 / span 4; grid-row: 3; display: block !important; margin: 0; width: 100%; }
    .fd-nav__search { width: 100%; display: flex !important; background: #f3f4f6 !important; border: 1px solid #e5e7eb !important; border-radius: 12px; }
    .fd-nav__search input { width: 100%; flex-grow: 1; background: transparent; padding: 12px 10px; font-size: 14px; font-weight: 500; }
    .fd-nav__search-ico { color: #6b7280; font-size: 18px; margin-left: 8px; }
    .fd-nav__search-btn { display: none !important; } /* Hide red search button to match bigbasket */
    
    /* Hide unwanted elements */
    .fd-nav__login, .fd-nav__signup, .fd-nav__lang-wrap, button.fd-nav__hamburger, .toggle.fd-nav__hamburger { display: none !important; }
}

@media (max-width: 991px) {
    .pivo-hero-wrapper { flex-direction: column; text-align: center; padding: 40px 20px; }
    .pivo-hero-title { font-size: 2.5rem; }
    
    .fd-nav { padding: 0 !important; width: 100% !important; background: #fff; }
    .fd-nav__inner { 
        display: grid !important; 
        grid-template-columns: 1fr auto auto auto; 
        grid-template-rows: auto auto auto;
        gap: 12px 0px !important;

        padding: 6px 16px 12px 16px !important;
        align-items: center;
        width: 100% !important; 
        max-width: 100% !important;
    }
    
    /* Row 1: Logo on Left | Heart, Cart, Hamburger on Right */
    .brand-wrap { grid-column: 1; grid-row: 1; margin: 0 !important; padding: 0 !important; display: flex !important; align-self: center !important; justify-self: flex-start; }
    .brand-wrap img { max-height: 24px; display: block; }
    
    .fd-nav__links { display: contents !important; } /* Unwrap */
    a.fd-nav__icon-fav { grid-column: 2; grid-row: 1; display: flex !important; align-items: center; justify-content: center; margin: 0 !important; padding: 0 6px !important; align-self: center !important; justify-self: flex-end; }
    a.fd-nav__icon-cart { grid-column: 3; grid-row: 1; display: flex !important; align-items: center; justify-content: center; margin: 0 !important; padding: 0 6px !important; align-self: center !important; justify-self: flex-end; }
    
    a.toggle.d-lg-none { grid-column: 4; grid-row: 1; margin: 0 !important; padding: 0 0 0 6px !important; align-self: center !important; display: flex !important; align-items: center; justify-content: flex-end; justify-self: flex-end; height: 100%; color: #333 !important; position: static !important; transform: none !important; }


    /* Row 2: Location on Left | Delivery Pill on Right */
    .fd-nav__loc { grid-column: 1 / span 4; grid-row: 2; border: none; padding: 0; background: transparent; justify-content: flex-start; align-self: center !important; justify-self: flex-start; width: 60%; overflow: hidden; }
    .fd-nav__loc-trigger { padding: 0; width: 100%; justify-content: flex-start; }
    .fd-nav__loc-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; font-size: 14px; font-weight: 800; color: #333; }
    .fd-nav__loc-trigger .feather-map-pin { color: var(--fd-red); font-size: 18px; margin-right: 4px; }
    .mobile-delivering-text { display: block !important; font-size: 10px !important; margin-bottom: 2px; font-weight: 600; color: #666; }
    
    #deliveryDropdown { grid-column: 1 / span 4; grid-row: 2; display: flex !important; width: auto; margin: 0 !important; justify-self: flex-end; align-self: center; z-index: 10; }
    #deliveryDropdown > a { display: none !important; } /* Hide the original dropdown trigger */
    .fd-mobile-mode-pill { display: flex !important; width: 100%; background: #f3f4f6; border-radius: 8px; padding: 2px; }
    .fd-mobile-mode-pill .flex-1 { padding: 4px 8px !important; font-size: 11px !important; white-space: nowrap; }
    
    /* Row 3: Search Bar Full Width */
    .fd-nav__search-wrap { grid-column: 1 / span 4; grid-row: 3; display: block !important; margin: 0; width: 100%; }
    .fd-nav__search { width: 100%; display: flex !important; background: #f3f4f6 !important; border: 1px solid #e5e7eb !important; border-radius: 12px; }
    .fd-nav__search input { width: 100%; flex-grow: 1; background: transparent; padding: 12px 10px; font-size: 14px; font-weight: 500; }
    .fd-nav__search-ico { color: #6b7280; font-size: 18px; margin-left: 8px; }
    .fd-nav__search-btn { display: none !important; } /* Hide red search button to match bigbasket */
    
    /* Hide unwanted elements */
    .fd-nav__login, .fd-nav__signup, .fd-nav__lang-wrap, button.fd-nav__hamburger, .toggle.fd-nav__hamburger { display: none !important; }
}

/* Hide highlights section to prevent empty gap */
.highlights-section { display: none !important; }

