/* =====================================================
   PREMIUM RESPONSIVE HEADER CSS
===================================================== */

:root{
    --primary:#0d6efd;
    --primary2:#0aa2ff;
    --green:#16a34a;
    --dark:#111827;
    --muted:#64748b;
    --border:#e5e7eb;
}

/* Header */
.site-header{
    background:linear-gradient(135deg,#ffffff,#f4f9ff);
    border-bottom:1px solid #dbeafe;
    box-shadow:0 8px 24px rgba(15,23,42,.06);
    position:sticky;
    top:0;
    z-index:9999;
}

.header-container{
    padding-top:12px;
    padding-bottom:10px;
}

.header-top-row{
    display:grid;
    grid-template-columns:240px minmax(360px,560px) 1fr;
    align-items:center;
    gap:24px;
}

/* Logo */
.header-logo{
    display:inline-flex;
    align-items:center;
    text-decoration:none;
}

.header-logo img{
    max-height:52px;
    width:auto;
    object-fit:contain;
    transition:.25s;
}

.header-logo:hover img{
    transform:scale(1.04);
}

/* Search */
.header-search-area{
    position:relative;
}

.desktop-search{
    height:50px;
    border:2px solid var(--primary);
    border-radius:999px;
    overflow:hidden;
    background:#fff;
    display:flex;
    align-items:center;
    box-shadow:0 8px 22px rgba(13,110,253,.10);
    transition:.25s;
}

.desktop-search:focus-within{
    border-color:var(--green);
    box-shadow:0 0 0 5px rgba(22,163,74,.12);
}

.desktop-search input{
    flex:1;
    height:100%;
    border:0;
    outline:0;
    padding:0 20px;
    font-size:15px;
    font-weight:600;
    background:transparent;
}

.desktop-search button{
    width:70px;
    height:100%;
    border:0;
    background:linear-gradient(135deg,var(--primary),var(--primary2));
    color:#fff;
    font-size:22px;
}

/* Search Result */
#search_result{
    background:#fff;
    z-index:10000;
    border-radius:16px;
    overflow:hidden;
    top:56px;
    border:1px solid #e5e7eb;
}

/* Right Area */
.header-right-area{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:14px;
}

/* Support */
.support-box{
    display:flex;
    align-items:center;
    gap:9px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:16px;
    padding:8px 13px;
    box-shadow:0 8px 18px rgba(15,23,42,.06);
}

.support-box i{
    color:var(--primary);
    font-size:24px;
}

.support-box small{
    display:block;
    font-size:10px;
    line-height:1;
    color:var(--muted);
    font-weight:700;
}

.support-box strong{
    display:block;
    font-size:14px;
    line-height:1.2;
    color:#111827;
    font-weight:900;
}

/* Cart */
.header-icon-btn{
    width:46px;
    height:46px;
    border-radius:50%;
    background:#fff;
    border:1px solid #e5e7eb;
    color:#111827;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    position:relative;
    text-decoration:none;
    box-shadow:0 8px 18px rgba(15,23,42,.07);
    transition:.25s;
}

.header-icon-btn i{
    font-size:20px;
}

.header-icon-btn span{
    position:absolute;
    top:-8px;
    right:-7px;
    min-width:20px;
    height:20px;
    background:#ef4444;
    color:#fff;
    border-radius:999px;
    font-size:11px;
    font-weight:900;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0 5px;
}

.header-icon-btn:hover{
    background:var(--primary);
    color:#fff;
    transform:translateY(-2px);
}

/* User/Login */
.header-login-btn,
.header-user-btn{
    min-height:42px;
    padding:9px 24px;
    border-radius:999px;
    background:linear-gradient(135deg,var(--primary),var(--primary2));
    color:#fff!important;
    font-weight:900;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    gap:7px;
    box-shadow:0 8px 18px rgba(13,110,253,.20);
    transition:.25s;
}

.header-login-btn.dark{
    background:linear-gradient(135deg,#111827,#1f2937);
    box-shadow:0 8px 18px rgba(17,24,39,.22);
}

.header-user-btn{
    background:#fff;
    color:#111827!important;
    border:1px solid #e5e7eb;
    box-shadow:0 8px 18px rgba(15,23,42,.07);
}

.header-user-btn i{
    color:var(--primary);
}

.header-login-btn:hover,
.header-user-btn:hover{
    transform:translateY(-2px);
}

/* Desktop Nav */
.desktop-nav{
    display:flex;
    align-items:center;
    gap:12px;
    margin-top:12px;
}

.desktop-nav .nav-link{
    color:#1f2937!important;
    font-size:15px;
    font-weight:800;
    padding:10px 16px!important;
    border-radius:14px;
    display:flex;
    align-items:center;
    gap:7px;
    transition:.25s;
    position:relative;
}

.desktop-nav .nav-link:hover{
    background:#eff6ff;
    color:var(--primary)!important;
    transform:translateY(-1px);
}

.desktop-nav .nav-link.active-page{
    background:linear-gradient(135deg,var(--primary),var(--primary2));
    color:#fff!important;
    box-shadow:0 8px 18px rgba(13,110,253,.22);
}

/* Mobile Search */
.mobile-search-row{
    display:none;
}

.mobile-search-box{
    height:42px;
    border:1.5px solid #dbeafe;
    border-radius:999px;
    overflow:hidden;
    display:flex;
    align-items:center;
    background:#fff;
    box-shadow:0 6px 16px rgba(15,23,42,.06);
}

.mobile-search-box input{
    width:84%;
    height:100%;
    border:none;
    outline:none;
    padding-left:16px;
    font-size:13px;
    font-weight:600;
}

.mobile-search-box button{
    width:16%;
    height:100%;
    border:none;
    background:linear-gradient(135deg,var(--primary),var(--primary2));
    color:#fff;
    font-size:18px;
}

/* Mobile Bottom Nav */
.mobile-bottom-nav{
    position:fixed;
    left:10px;
    right:10px;
    bottom:10px;
    background:rgba(255,255,255,.95);
    backdrop-filter:blur(14px);
    display:none;
    justify-content:space-around;
    padding:8px 0 7px;
    box-shadow:0 -4px 24px rgba(15,23,42,.14);
    z-index:9999;
    border:1px solid #e5e7eb;
    border-radius:22px;
}

.mobile-bottom-nav a{
    flex:1;
    text-align:center;
    color:#64748b;
    text-decoration:none;
    font-size:11px;
    font-weight:800;
    position:relative;
}

.mobile-bottom-nav a i{
    display:block;
    font-size:21px;
    margin-bottom:2px;
}

.mobile-bottom-nav a.active-m{
    color:var(--primary)!important;
}

.mobile-bottom-nav a span{
    position:absolute;
    top:-5px;
    left:55%;
    min-width:17px;
    height:17px;
    background:#ef4444;
    color:#fff;
    border-radius:999px;
    font-size:9px;
    font-weight:900;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0 4px;
}

/* Large Device */
@media(max-width:1200px){
    .header-top-row{
        grid-template-columns:210px minmax(340px,500px) 1fr;
        gap:18px;
    }

    .support-box{
        padding:7px 10px;
    }

    .header-login-btn,
    .header-user-btn{
        padding:8px 18px;
    }
}

/* Tablet */
@media(max-width:991px){
    .header-top-row{
        grid-template-columns:180px 1fr;
        gap:14px;
    }

    .header-search-area{
        display:none;
    }

    .mobile-search-row{
        display:block;
        margin-top:10px;
    }

    .header-right-area{
        gap:10px;
    }

    .support-box{
        display:none;
    }

    .desktop-nav{
        display:none;
    }
}

/* Mobile */
@media(max-width:768px){
    body{
        padding-bottom:82px;
    }

    .header-container{
        padding-top:9px;
        padding-bottom:10px;
    }

    .header-top-row{
        grid-template-columns:1fr auto;
        gap:10px;
    }

    .header-logo img{
        max-height:40px;
    }

    .header-right-area{
        justify-content:flex-end;
    }

    .header-icon-btn{
        width:40px;
        height:40px;
    }

    .header-login-btn,
    .header-user-btn{
        display:none;
    }

    .mobile-bottom-nav{
        display:flex;
    }
}

/* Small Mobile */
@media(max-width:576px){
    .site-header .container{
        padding-left:12px;
        padding-right:12px;
    }

    .header-logo img{
        max-height:36px;
    }

    .header-icon-btn{
        width:38px;
        height:38px;
    }

    .mobile-search-box{
        height:40px;
    }

    .mobile-search-box input{
        font-size:12px;
    }

    .mobile-bottom-nav{
        left:8px;
        right:8px;
        bottom:8px;
        border-radius:20px;
    }

    .mobile-bottom-nav a{
        font-size:10px;
    }

    .mobile-bottom-nav a i{
        font-size:20px;
    }
}