/* ═══════════════════════════════════════════════════════════
   Header 5 — Bold Accent Left
   Primary-colored left brand panel · Right category nav · Breaking bar
   ═══════════════════════════════════════════════════════════ */

.h5-header {
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 20px rgba(0, 0, 0, .15);
}

/* ── Main bar ── */
.h5-bar {
    display: flex;
    align-items: stretch;
    min-height: 64px;
}

/* ── Brand panel ── */
.h5-brand {
    background: var(--color-primary);
    padding: 0 32px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 200px;
    position: relative;
    z-index: 1;
}

.h5-brand::after {
    content: '';
    position: absolute;
    right: -16px;
    top: 0;
    bottom: 0;
    width: 32px;
    background: var(--color-primary);
    clip-path: polygon(0 0, 0 100%, 100% 100%);
    z-index: 1;
}

.h5-brand__name {
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    font-weight: 900;
    color: var(--color-btn-text);
    text-decoration: none;
    letter-spacing: -.02em;
    text-transform: uppercase;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.h5-brand .custom-logo {
    max-height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
    position: relative;
    z-index: 2;
}

/* ── Nav ── */
.h5-nav {
    flex: 1;
    background: var(--color-surface);
    display: flex;
    align-items: center;
    padding-left: 24px;
}

.h5-nav__menu {
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    height: 100%;
}

.h5-nav__menu::-webkit-scrollbar {
    display: none;
}

.h5-nav__item {
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 64px;
    color: var(--color-muted);
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .05em;
    border-bottom: 3px solid transparent;
    transition: color .2s, border-color .2s;
}

.h5-nav__item:hover,
.h5-nav__item.is-active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* ── Hamburger toggle ── */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    padding: 0 16px;
    height: 64px;
    align-items: center;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger-icon span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}

/* ── Breaking bar ── */
.h5-breaking {
    background: var(--color-secondary);
    overflow: hidden;
}

.h5-breaking__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 5%;
    overflow: hidden;
}

.h5-breaking__badge {
    flex-shrink: 0;
    font-size: .6rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--color-btn-text);
    background: var(--color-primary);
    padding: 3px 10px;
    border-radius: 2px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .7; }
}

.h5-breaking__ticker {
    flex: 1;
    overflow: hidden;
}

.h5-breaking__list {
    display: flex;
    gap: 48px;
    list-style: none;
    white-space: nowrap;
    animation: ticker-scroll 32s linear infinite;
    font-size: .8rem;
    color: rgba(255, 255, 255, .6);
    margin: 0;
    padding: 0;
}

.h5-breaking__list:hover {
    animation-play-state: paused;
}

.h5-breaking__list a {
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    transition: color .2s;
}

.h5-breaking__list a:hover {
    color: #fff;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .h5-bar {
        flex-direction: column;
    }

    .h5-brand {
        flex-direction: row;
        justify-content: space-between;
        min-width: unset;
        padding: 12px 20px;
    }

    .h5-brand::after {
        display: none;
    }

    .h5-nav {
        padding-left: 0;
        position: relative;
    }

    .h5-nav .nav-toggle {
        display: flex;
        height: 48px;
        padding: 0 20px;
    }

    .h5-nav__menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 200;
        background: var(--color-surface);
        box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
        height: auto;
    }

    .h5-nav__menu.is-open {
        display: flex;
    }

    .h5-nav__item {
        height: auto;
        padding: 13px 20px;
        border-bottom: 1px solid var(--color-border);
        border-left: 3px solid transparent;
    }

    .h5-nav__item:hover,
    .h5-nav__item.is-active {
        border-bottom-color: var(--color-border);
        border-left-color: var(--color-primary);
    }
}

@media (max-width: 480px) {
    .h5-brand__name {
        font-size: 1.1rem;
    }
}
