/* HEADER BAR: 50px height */
.my-custom-header {
    width: 100%;
    background: #fff;
    height: 50px;
    display: flex;
    align-items: center;
    z-index: 500;
    border-bottom: 1px solid #eee;
    position: relative; /* ensures header can act as reference if needed */
}

/* Container flex layout */
.my-custom-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* logo left, menu center, search right */
    height: 50px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* LOGO: force logo to fit 50px header */
.my-custom-header .logo img {
    height: 80px;  /* smaller, fits header */
    width: auto;
    object-fit: contain;
}

/* MENU: same 50px height */
.main-menu {
    flex: 1;                
    display: flex;
    justify-content: center; 
}

.my-menu {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 50px;
}

.my-menu li a {
    display: flex;
    align-items: center;
    height: 50px;
    line-height: 50px;
    padding: 0 5px;
    text-decoration: none;
    color: #000;
}

/* Make each dropdown <li> a positioning context for mega menu */
.my-menu li.dropdown {
    position: relative; 
}

/* Dropdown arrow spacing fix */
.menu-toggle {
    cursor: pointer;
    user-select: none;
}

/* MEGA MENU PANEL: full-width dropdown */
.mega-menu {
    position: fixed; /* span full viewport width */
    top: 60px;       /* directly below header */
    left: 0;         /* start at very left edge */
    width: 100vw;    /* full viewport width */
    min-height: 150px;
    background: white;
    display: none;
    padding: 20px 0 20px 0; /* add top padding to move content lower */
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    z-index: 999;    /* above header */
}

/* Center the content inside the full-width menu */
.mega-menu .mega-row {
    max-width: 1200px;  /* content width aligned with header */
    margin: 0 auto;     /* center row */
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 160px;
}

.mega-item {
    text-align: center;
    width: 100px;
}

.mega-item img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
}

.mega-item p {
    margin-top: 5px;
    font-size: 14px;
    color: #333;
}

/* Header search container (extreme right) */
.header-search {
    display: flex;
    align-items: center;
    height: 50px;
    flex-shrink: 0; 
}

/* FiboSearch form inside header */
.header-search form {
    display: flex;
    align-items: center;
    height: 35px; 
    background: #f5f5f5;
    border-radius: 4px;
    padding: 0 5px;
}

/* Search input field */
.header-search input[type="search"] {
    height: 100%;
    border: none;
    padding: 0 10px;
    background: transparent;
    outline: none;
    font-size: 14px;
    width: 200px; 
}

/* Search button / icon */
.header-search button {
    height: 100%;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
}
