/* Fix for Login Dropdown - Ensure visibility while keeping header sticky */
.header-actions-right {
    overflow: visible !important;
}

.header-main-row {
    overflow: visible !important;
}

.container {
    overflow: visible !important;
}

/* ============================================
   COMPLETE FIXED HEADER FIX - ULTRA STABLE
   ============================================ */

/* Force Header Placeholder to be FIXED */
#header-placeholder {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 10000 !important;
    background: white !important;
    transition: transform 0.3s ease !important;
}

/* Offset for content below fixed header */
body {
    padding-top: 155px !important;
    /* Total header height */
}

/* Specific fix for hero section to avoid double padding */
.hero-slider-section {
    margin-top: 0 !important;
}

/* Professional Header Styling */
.professional-header {
    position: relative !important;
    z-index: 10001 !important;
    background: #ffffff !important;
    width: 100% !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
}

.professional-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Promo Bar Handling */
.promo-bar {
    position: relative !important;
    height: 40px !important;
    z-index: 10002 !important;
    transition: all 0.3s ease-in-out !important;
    overflow: hidden !important;
}

.promo-bar.hide-on-scroll {
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Fix for mobile view header height */
@media (max-width: 768px) {
    body {
        padding-top: 105px !important;
    }

    .promo-bar {
        height: auto !important;
        min-height: 30px !important;
    }
}

/* Maintain smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 160px;
}

/* Ensure no horizontal scroll */
body,
html {
    overflow-x: hidden !important;
}

/* ============================================
   Z-INDEX HIERARCHY FIX
   ============================================ */

/* 
   Target Hierarchy:
   1. Cart Drawer / Overlays (20000+)
   2. Pincode / Login Modals (15000+)
   3. Fixed Header (10000)
*/

/* Force Cart to be on TOP of everything */
.cart-drawer {
    z-index: 20001 !important;
}

.cart-overlay {
    z-index: 20000 !important;
}

/* Modals should be above header but below cart */
.pincode-popup-modal,
.pincode-popup-overlay,
.login-modal,
.login-modal-overlay,
.auth-popup-overlay,
.auth-popup-modal {
    z-index: 15000 !important;
}

/* Fix for cart content overlapping with fixed header shadow */
/* Fix for cart content overlapping with fixed header shadow */
.cart-drawer {
    /* box-shadow removed to prevent black fade on right side */
}