/* ============================================
   MOBILE HEADER CONSISTENCY
   Ensures all headers are identical across all pages on mobile
   Removes dropdowns and makes header non-scrollable
   Desktop view is NOT affected
   ============================================ */

/* Mobile - 768px and below */
@media (max-width: 768px) {
    /* ============================================
       HEADER - Consistent across all pages
       ============================================ */
    
    /* Header - Fixed, non-scrollable */
    /* NOTE: Height overridden by flipkart-mobile-header.css for two-row layout */
    html body .header,
    body .header,
    .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        z-index: 10000 !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        height: auto !important;
        max-height: none !important;
    }
    
    /* Header container - Consistent layout */
    /* NOTE: Layout overridden by flipkart-mobile-header.css for two-row layout */
    html body .header-container,
    body .header-container,
    .header-container {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        height: auto !important;
        max-height: none !important;
        display: flex !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        gap: 0 !important;
    }
    
    /* Hamburger Menu Toggle - Consistent across all pages */
    html body .mobile-menu-toggle,
    body .mobile-menu-toggle,
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: none !important;
        border: none !important;
        color: #212121 !important;
        font-size: 20px !important;
        cursor: pointer !important;
        padding: 6px !important;
        margin-right: 6px !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        flex-shrink: 0 !important;
        order: 0 !important;
        z-index: 10001 !important;
        transition: all 0.2s ease !important;
    }
    
    html body .mobile-menu-toggle:hover,
    body .mobile-menu-toggle:hover,
    .mobile-menu-toggle:hover {
        background: rgba(0, 0, 0, 0.05) !important;
        border-radius: 4px !important;
    }
    
    html body .mobile-menu-toggle i,
    body .mobile-menu-toggle i,
    .mobile-menu-toggle i {
        font-size: 20px !important;
        line-height: 1 !important;
    }
    
    /* Logo - Consistent size */
    html body .logo,
    body .logo,
    .logo {
        flex-shrink: 0 !important;
        min-width: auto !important;
        max-width: 80px !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
    }
    
    html body .logo-image,
    body .logo-image,
    .logo-image {
        height: 28px !important;
        max-height: 28px !important;
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }
    
    /* Search container - Consistent */
    html body .search-container,
    body .search-container,
    .search-container {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: none !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    html body .search-input,
    body .search-input,
    .search-input {
        flex: 1 !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding: 6px 10px !important;
        font-size: 12px !important;
        height: 32px !important;
        border: none !important;
        border-radius: 2px 0 0 2px !important;
    }
    
    html body .search-btn,
    body .search-btn,
    .search-btn {
        flex-shrink: 0 !important;
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
        min-width: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 0 2px 2px 0 !important;
        font-size: 12px !important;
    }
    
    html body .search-btn i,
    body .search-btn i,
    .search-btn i {
        font-size: 12px !important;
    }
    
    /* Header right - Consistent */
    html body .header-right,
    body .header-right,
    .header-right {
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important; /* Prevent wrapping */
        gap: 4px !important;
        overflow: visible !important; /* Changed from hidden to visible */
        min-width: auto !important;
    }
    
    html body .header-item,
    body .header-item,
    .header-item {
        flex-shrink: 0 !important;
        min-width: auto !important;
        overflow: hidden !important;
    }
    
    /* Hide login button completely on mobile */
    html body .login-btn,
    body .login-btn,
    .login-btn,
    html body .login-dropdown-wrapper,
    body .login-dropdown-wrapper,
    .login-dropdown-wrapper {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Hide all dropdowns on mobile */
    html body .login-dropdown,
    body .login-dropdown,
    .login-dropdown,
    html body .more-dropdown,
    body .more-dropdown,
    .more-dropdown {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* Hide more options chevron */
    html body .more-options .fa-chevron-down,
    body .more-options .fa-chevron-down,
    .more-options .fa-chevron-down,
    html body .more-options i.fa-chevron-down,
    body .more-options i.fa-chevron-down,
    .more-options i.fa-chevron-down {
        display: none !important;
    }
    
    /* Cart - Consistent */
    html body .cart,
    body .cart,
    .cart {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
        min-width: 32px !important;
        position: relative !important;
        text-decoration: none !important;
    }
    
    html body .cart i,
    body .cart i,
    .cart i {
        font-size: 14px !important;
        display: block !important;
    }
    
    html body .cart-text,
    body .cart-text,
    .cart-text {
        display: none !important;
    }
    
    html body .cart-count,
    body .cart-count,
    .cart-count {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        min-width: 14px !important;
        height: 14px !important;
        font-size: 9px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 2px !important;
    }
    
    /* Prevent any child elements from causing scroll */
    html body .header *,
    body .header *,
    .header * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

