.gb-header {
    background: var(--header-bg, #fff);
    position: sticky;
    top: 0;
    z-index: 99998;
    border-bottom: 1px solid var(--header-border, rgba(0,0,0,0.1));
}

.admin-bar .gb-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .gb-header {
        top: 46px;
    }
}

@media (max-width: 600px) {
    .admin-bar .gb-header {
        top: 0;
    }
}

.gb-header,
.gb-header input,
.gb-header a {
    color: var(--text, #222);
}

.gb-header a:hover {
    color: var(--text, #000);
}

.gb-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 70px;
}

.gb-header .gb-logo {
    flex-shrink: 0;
}

.gb-header .gb-logo img,
.gb-header .custom-logo {
    max-height: 40px;
    width: auto;
    display: block;
}

.gb-search {
    width: 240px;
    flex: 0 0 auto;
    position: relative;
    min-height: 40px;
}

.gb-search .dgwt-wcas-sf-wrapp,
.gb-search form {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    transition: width 0.3s ease, box-shadow 0.3s ease;
}

.gb-header-inner.search-active .gb-desktop-nav {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gb-header-inner.search-active .gb-search .dgwt-wcas-sf-wrapp,
.gb-header-inner.search-active .gb-search form {
    width: 800px;
    box-shadow: var(--shadow);
}

.gb-search .gb-live-search-results {
    left: 0;
    right: 0;
    top: calc(100% + 4px);
}

.gb-search .dgwt-wcas-sf-wrapp input,
.gb-search form input[type="search"],
.gb-search form input[type="text"] {
    height: 40px !important;
    font-size: 14px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 14px !important;
    flex: 1;
    min-width: 0;
    color: var(--text, #222);
    border-radius: 8px;
}

.gb-search .dgwt-wcas-sf-wrapp input::placeholder,
.gb-search form input::placeholder {
    color: var(--text-muted, #888);
}

.gb-search .dgwt-wcas-sf-wrapp,
.gb-search form {
    background: var(--input-bg, #f5f5f5) !important;
    border: 1px solid var(--header-border, #ddd) !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center;
    height: 40px;
}

.gb-search .dgwt-wcas-ico-magnifier,
.gb-search .dgwt-wcas-search-submit,
.gb-search form input[type="submit"],
.gb-search form button[type="submit"] {
    display: none !important;
}

.gb-desktop-nav {
    display: flex;
    gap: 10px;
}

.gb-desktop-nav a {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--text, #222);
    transition: all 0.3s ease;
}

.gb-desktop-nav a:hover {
    background: rgba(0,0,0,0.04);
    color: var(--accent);
}

.gb-icons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.gb-account-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text, #222);
    transition: all 0.3s ease;
}

.gb-account-link:hover {
    color: var(--accent);
}

.gb-theme-btn {
    background: none;
    border: 1px solid var(--glass-border, #ddd);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text, #222);
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
}

.gb-theme-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.gb-icons a {
    position: relative;
    font-size: 20px;
    color: var(--text, #222);
    transition: all 0.3s ease;
}

.gb-icons a:hover {
    color: var(--accent);
}

.gb-cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-sm);
}

@media (max-width: 768px) {
    .gb-account-link {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .gb-header-inner {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 60px;
    }

    .gb-desktop-nav {
        display: none;
    }

    .gb-search {
        display: none;
    }

    .gb-header .gb-logo img,
    .gb-header .custom-logo {
        max-height: 32px;
    }

    .gb-icons {
        margin-left: auto;
    }

    .gb-icons a {
        font-size: 18px;
    }
}
