/* Universal Search Dropdown Fix */

/* Wrapper that anchors the dropdown */
.search-input-wrapper {
    position: relative !important;
    flex: 1;
    min-width: 0;
}

/* Search section stays as flex row, no overflow clipping */
.search-section {
    position: relative !important;
    z-index: 1001 !important;
    overflow: visible !important;
}

/* Navbar must not clip the dropdown */
.navbar {
    overflow: visible !important;
}

.nav-wrapper {
    overflow: visible !important;
}

.navbar .container {
    overflow: visible !important;
    position: relative;
    z-index: 1000;
}

/* Dropdown anchored to wrapper */
.universal-search-dropdown {
    position: absolute !important;
    top: calc(100% + 5px) !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
    z-index: 99999 !important;
    display: none;
    max-height: 300px !important;
    overflow-y: auto !important;
    margin-top: 0 !important;
}

/* Page content stays below */
.page-header,
.hero-section,
.product-grid,
.cart-container,
.footer,
.secondary-nav {
    z-index: 1 !important;
}

/* Mobile */
@media (max-width: 768px) {
    .universal-search-dropdown {
        z-index: 99999 !important;
        max-height: 250px !important;
    }

    .bottom-nav {
        z-index: 999 !important;
    }
}
