/* Vape Hub BD — Premium Header UI
   CSS-only enhancement. Preserve existing links and JavaScript behavior. */

header.sticky {
    background: #fff;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .075);
}

header.sticky > div:first-child {
    min-height: 76px;
    gap: 16px;
}

header.sticky > div:first-child > div:first-of-type img {
    width: 44px;
    height: 44px;
    padding: 2px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

header.sticky > div:first-child > div:first-of-type span {
    color: #111827;
    letter-spacing: -.045em;
}

#site-search-form {
    max-width: 480px;
}
#site-search-input {
    min-height: 44px;
    padding-left: 18px;
    padding-right: 48px;
    border: 1px solid #dbe1ea;
    border-radius: 999px;
    background: #f8fafc;
    color: #111827;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

#site-search-input:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .11);
}

#site-search-form button[type="submit"] {
    width: 34px;
    height: 34px;
    right: 5px;
    background: #2563eb;
    box-shadow: 0 2px 6px rgba(37, 99, 235, .22);
}

#cart-btn {
    min-height: 42px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

#cart-btn:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
}
#cart-btn > i {
    font-size: 19px;
}

#cart-count-badge {
    margin-left: 3px;
    white-space: nowrap;
}

header.sticky > nav {
    border-top-color: #eef0f4;
    box-shadow: 0 2px 5px rgba(15, 23, 42, .025);
}

header.sticky > nav > div {
    min-height: 48px;
    gap: clamp(14px, 1.7vw, 26px);
}

header.sticky > nav a,
header.sticky > nav .group > span {
    transition: color .16s ease, background .16s ease;
}

header.sticky > nav .group > div {
    margin-top: 8px;
    border-color: #e8edf4;
    border-radius: 12px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .14);
    padding-top: 7px;
    padding-bottom: 7px;
}

header.sticky > nav .group > div a {
    padding-top: 10px;
    padding-bottom: 10px;
}

#mobile-menu > div:nth-child(2) {
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
}

#mobile-menu > div:nth-child(2) > div:first-child {
    min-height: 64px;
    background: #f8fafc;
    border-top-right-radius: 18px;
}

#mobile-menu details summary {
    padding-top: 12px;
    padding-bottom: 12px;
    color: #1f2937;
}

#mobile-menu a {
    transition: color .15s ease, background .15s ease;
}

#mobile-menu a:hover {
    color: #1d4ed8;
}

#cart-drawer > div:last-child > div {
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
    overflow: hidden;
}

@media (min-width: 1024px) {
    header.sticky > div:first-child {
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

@media (max-width: 1023px) {
    header.sticky > div:first-child {
        min-height: 66px;
        gap: 10px;
    }

    #site-search-form {
        min-width: 0;
    }

   #site-search-input {
        min-height: 40px;
        font-size: 13px;
    }
}

@media (max-width: 639px) {
    header.sticky > div:first-child {
        padding-top: 9px;
        padding-bottom: 9px;
        gap: 8px;
    }

    header.sticky > div:first-child > div:first-of-type {
        gap: 0;
        flex-shrink: 0;
    }

    header.sticky > div:first-child > div:first-of-type img {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    #site-search-input {
        padding-left: 12px;
        padding-right: 38px;
        font-size: 12px;
    }

    #site-search-form button[type="submit"] {
        width: 30px;
        height: 30px;
    }
 #cart-btn {
        min-height: 38px;
        width: 38px;
        justify-content: center;
        padding: 0;
    }

    #cart-count-badge {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    #site-search-input,
    #cart-btn,
    header.sticky > nav a,
    header.sticky > nav .group > span,
    #mobile-menu a {
        transition: none;
    }
}
