/* ---------------- GLOBAL ---------------- */

body{
    margin:0;
    overflow-x:hidden;
}

/* ---------------- HEADER ---------------- */

.site-header{
    background:var(--card);
    border-bottom:1px solid var(--border);

    position:fixed;
    top:0;
    left:0;
    width:100%;

    z-index:1000;

    box-shadow:0 6px 22px rgba(15,23,42,0.08);
}

/* Header layout */

.header-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    flex-wrap:wrap;

    padding:12px 20px;
}

/* ---------------- LEFT SECTION ---------------- */

.header-left{
    display:flex;
    flex-direction:column;
}

/* Logo */

.logo img{
    height:40px;
    width:auto;
    display:block;
}

/* Location */

.location-block{
    font-size:13px;
    color:var(--text-light);
    margin-top:2px;
}

.tagline{
    font-size:12px;
    color:var(--text-light);
}

/* ---------------- SEARCH ---------------- */

.header-center{
    display:flex;
    align-items:center;
    gap:10px;

    flex:1;
    max-width:650px;
    min-width:150px;
}

/* Input */

.header-center input{
    flex:1;
    min-width:0;
    padding:14px 20px;
    border-radius:30px;
    border:1px solid var(--border);
    background:#f8fafc;
    color:var(--text-dark);
    outline:none;
    font-size:14px;
}

/* Search button */

.header-center button{
    padding:12px 18px;
    border:none;
    border-radius:25px;
    background:var(--primary);
    color:white;
    font-weight:600;
    cursor:pointer;
    flex-shrink:0;
    transition:background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow:0 10px 25px rgba(79,70,229,0.25);
}

.header-center button:hover{
    background:var(--primary-hover);
    transform:translateY(-1px);
    box-shadow:0 12px 30px rgba(79,70,229,0.3);
}

/* ---------------- RIGHT SECTION ---------------- */

.header-right{
    display:flex;
    align-items:center;
    gap:20px;
}

/* Icons */

.nav-icon{
    display:flex;
    flex-direction:column;
    align-items:center;

    font-size:20px;
    cursor:pointer;

    transition:transform 0.15s ease;
}

.nav-icon span{
    font-size:11px;
    color:var(--text-light);
}

.nav-icon:hover{
    color:var(--primary);
    transform:scale(1.05);
}

/* #user-location{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:180px;
} */

/* ---------------- TABLET ---------------- */

@media (max-width:900px){

    .header-center{
        max-width:500px;
    }

}

/* ---------------- MOBILE ---------------- */

@media (max-width:768px){

    .header-top{
        gap:12px;
    }

    /* Logo first */

    .header-left{
        order:1;
    }

    /* Profile cart top-right */

    .header-right{
        order:2;
        margin-left:auto;
        gap:18px;
    }

    /* Search moves below */

    .header-center{
        order:3;

        width:100%;
        max-width:100%;
    }

    .header-center input{
        padding:10px 14px;
    }

}

/* ---------------- SMALL MOBILE ---------------- */

@media (max-width:480px){

    .logo img{
        height:34px;
    }

    .header-center button{
        padding:10px 14px;
        font-size:13px;
    }

    .nav-icon{
        font-size:18px;
    }

}
