/* =============================================
   Header Top Row — Single Row Layout
   Logo + Inline Nav | Utility + Icons
   ============================================= */

.wb-header-design-3 .hd3-top-row {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 20;
}

/* ── Left: hamburger + nav ─────────────────── */

.wb-header-design-3 .hd3-top-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

/* ── Center: logo ────────────────────────── */

.wb-header-design-3 .hd3-top-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Inline Nav ──────────────────────────── */

.wb-header-design-3 .hd3-inline-nav {
    display: none;
    align-items: center;
    gap: 28px;
}

.wb-header-design-3 .hd3-inline-nav a {
    font-family: var(--semantic-font-body, 'Inter', sans-serif);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: none;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.wb-header-design-3 .hd3-inline-nav a:hover {
    color: var(--primary);
}

.wb-header-design-3 .hd3-inline-nav a.admin-link {
    opacity: 0.45;
    font-size: 0.68rem;
}

/* ── Right: utility links + icons ────────── */

.wb-header-design-3 .hd3-top-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    flex: 1;
}

/* ── Buttons & Icons ─────────────────────── */

.wb-header-design-3 .hd3-hamburger,
.wb-header-design-3 .hd3-icon,
.wb-header-design-3 .hd3-search-submit {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--primary);
    padding: 0;
}

.wb-header-design-3 .hd3-hamburger,
.wb-header-design-3 .hd3-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    flex-shrink: 0;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.wb-header-design-3 .hd3-hamburger:hover,
.wb-header-design-3 .hd3-icon:hover {
    background: #f2f6f0;
    color: var(--primary);
}

.wb-header-design-3 .hd3-hamburger svg,
.wb-header-design-3 .hd3-icon svg,
.wb-header-design-3 .hd3-utility-link svg {
    width: 19px;
    height: 19px;
    stroke-width: 1.85;
}

/* ── Brand / Logo ────────────────────────── */

.wb-header-design-3 .hd3-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.wb-header-design-3 .hd3-brand-logo {
    display: block;
    width: auto;
    max-width: 60px;
    object-fit: contain;
}

/* ── Utility Links ───────────────────────── */

.wb-header-design-3 .hd3-utility-link {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    min-height: 36px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--primary);
    font-family: var(--semantic-font-body, 'Inter', sans-serif);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.wb-header-design-3 .hd3-utility-link:hover {
    background: #f2f6f0;
}

/* ── Badge ───────────────────────────────── */

.wb-header-design-3 .hd3-badge {
    position: absolute;
    top: 4px;
    right: 1px;
    min-width: 17px;
    height: 17px;
    border-radius: 999px;
    background: #3c6c2d;
    color: #ffffff;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--semantic-font-body, 'Inter', sans-serif);
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
}

/* ── User Avatar ─────────────────────────── */

.wb-header-design-3 .hd3-avatar-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    text-decoration: none;
}

.wb-header-design-3 .hd3-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--semantic-font-body, 'Inter', sans-serif);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.wb-header-design-3 .hd3-avatar-wrap:hover .hd3-avatar {
    transform: scale(1.1);
}

/* ── Responsive ──────────────────────────── */

/* Show inline nav on desktop */
@media (min-width: 900px) {
    .wb-header-design-3 .hd3-hamburger {
        display: none;
    }

    .wb-header-design-3 .hd3-inline-nav {
        display: flex;
    }
}

/* Show utility links on wider screens alongside navigation */
@media (min-width: 900px) {
    .wb-header-design-3 .hd3-utility-link {
        display: inline-flex;
    }
}

/* Tablet */
@media (max-width: 899px) {
    .wb-header-design-3 .hd3-top-row {
        min-height: 60px;
    }

    .wb-header-design-3 .hd3-brand-logo {
        height: 44px;
        max-width: 120px;
    }

    .wb-header-design-3 .hd3-top-right {
        gap: 0;
    }

    .wb-header-design-3 .hd3-mobile-drawer-action {
        display: none;
    }
}

/* Mobile */
@media (max-width: 639px) {
    .wb-header-design-3 .hd3-top-left {
        gap: 10px;
    }

    .wb-header-design-3 .hd3-hamburger,
    .wb-header-design-3 .hd3-icon {
        width: 38px;
        height: 38px;
    }

    .wb-header-design-3 .hd3-avatar-wrap {
        width: 38px;
        height: 38px;
    }

    .wb-header-design-3 .hd3-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
}
