/* SDC-NAVBAR-CORPORATE — premium white nav bar (header_3), site-wide (public + account).
   Only the .header-container strip changes color; header-middle-container and top-bar
   are already white in the base theme, and the mega-menu dropdown panels are already
   white — so this brings the whole header to one consistent premium system instead of
   an orange bar sitting between two white ones. */

.header-3 {
    --sdc-nav-text: #1f2937;
    --sdc-nav-text-soft: #4b5563;
    --sdc-nav-accent: #e05d00;
    --sdc-nav-dark: #16233d;
    --sdc-nav-dark-hover: #1f3358;
}

/* ---- Bar background: orange -> premium white ---- */
/* Height/padding lives on .header-container (not .header-with-menu): the
   megamenu-container's `position:absolute; top:100%` anchors to
   .header-with-menu (the nearest `position:relative` ancestor, set by the
   base theme). Padding put on .header-with-menu itself stretches that box
   past the nav-links' own bottom edge, opening a dead strip between the
   link and the dropdown that breaks :hover when the cursor crosses it
   diagonally — the "menu disappears on the way down" bug. Padding on
   .header-container (outside that positioning context) adds the same
   visual height with no gap. */
.header-3 .header-container {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    padding: 14px 0;
}

/* ---- Menu items ---- */
.header-3 .site-menu.nav {
    gap: 2px;
}
.header-3 .site-menu > .nav-item > .nav-link,
.header-3 .site-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px !important;
    margin: 0 2px;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    line-height: 1.3 !important;
    color: var(--sdc-nav-text) !important;
    border-radius: 6px;
    position: relative;
    transition: color 0.18s ease, background 0.18s ease;
}
.header-3 .site-menu > .nav-item > .nav-link .menu-title,
.header-3 .site-menu > .nav-item > .nav-link .nav-link-text {
    color: inherit;
}

/* Reserve the underline space always (no layout shift), only reveal color on hover/active */
.header-3 .site-menu > .nav-item > .nav-link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: transparent;
    transition: background 0.18s ease;
}
.header-3 .site-menu > .nav-item > .nav-link:hover,
.header-3 .site-menu > .nav-item > .nav-link:focus-visible {
    color: var(--sdc-nav-accent) !important;
    background: rgba(224, 93, 0, 0.06);
}
.header-3 .site-menu > .nav-item > .nav-link:hover::after,
.header-3 .site-menu > .nav-item > .nav-link:focus-visible::after {
    background: var(--sdc-nav-accent);
}
.header-3 .site-menu > .nav-item.active > .nav-link {
    color: var(--sdc-nav-accent) !important;
    background: rgba(224, 93, 0, 0.06);
}
.header-3 .site-menu > .nav-item.active > .nav-link::after {
    background: var(--sdc-nav-accent);
}
.header-3 .site-menu > .nav-item > .nav-link:focus-visible {
    outline: 2px solid var(--sdc-nav-accent);
    outline-offset: 2px;
}

/* ---- Dropdown chevron: minimal, thin, low-opacity, orange on hover ---- */
.header-3 .site-menu > .nav-item > .nav-link .fa-angle-down {
    font-size: 11px;
    color: currentColor;
    opacity: 0.5;
    transition: opacity 0.18s ease, color 0.18s ease;
}
.header-3 .site-menu > .nav-item > .nav-link:hover .fa-angle-down,
.header-3 .site-menu > .nav-item.active > .nav-link .fa-angle-down {
    opacity: 0.9;
}

/* ---- Fixed / sticky header state: keep the same premium white + dark text ---- */
.header-3.header-fixed .header-container {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.header-3 .header-fixed .site-menu li > a,
.header-3.header-fixed .site-menu > .nav-item > .nav-link {
    color: var(--sdc-nav-text) !important;
    line-height: 1.3 !important;
}
.header-3 .header-fixed .site-menu li > a:hover,
.header-3.header-fixed .site-menu > .nav-item > .nav-link:hover {
    color: var(--sdc-nav-accent) !important;
    opacity: 1;
}

/* ---- Mobile hamburger: was white-on-orange, now needs contrast on white ---- */
.header-3 .mobile-menu-toggle {
    color: var(--sdc-nav-text) !important;
    transition: color 0.18s ease;
}
.header-3 .mobile-menu-toggle:hover,
.header-3 .mobile-menu-toggle:focus-visible {
    color: var(--sdc-nav-accent) !important;
}
.header-3 .mobile-menu-toggle:focus-visible {
    outline: 2px solid var(--sdc-nav-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---- Cart button: premium dark, not a bright/rounded pill ---- */
.header-3 #sepeticon {
    background: var(--sdc-nav-dark) !important;
    border-color: var(--sdc-nav-dark) !important;
    color: #ffffff !important;
    border-radius: 9px !important;
    padding: 8px 16px !important;
    font-weight: 600;
    box-shadow: none;
    transition: background 0.18s ease, transform 0.18s ease;
}
.header-3 #sepeticon:hover {
    background: var(--sdc-nav-dark-hover) !important;
    border-color: var(--sdc-nav-dark-hover) !important;
    transform: translateY(-1px);
}
.header-3 #sepeticon:focus-visible {
    outline: 2px solid var(--sdc-nav-accent);
    outline-offset: 2px;
}
.header-3 #sepeticon .basket-count {
    background: var(--sdc-nav-accent);
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    line-height: 1;
}
.header-3 #sepeticon:hover .basket-count {
    background: var(--sdc-nav-accent);
    color: #fff;
}

@media (max-width: 991.98px) {
    .header-3 #sepeticon {
        padding: 7px 12px !important;
    }
}
