
/* ==========================================
   SHOPNETLY - COMPLETE LIGHT HEADER
   Desktop + Tablet + Mobile
========================================== */

:root {
    --sfx-header-bg: #FFFFFF;
    --sfx-header-top: #F5F7FF;
    --sfx-header-drawer: #FFFFFF;
    --sfx-header-surface: #F5F7FF;
    --sfx-header-border: #E5EAF3;

    --sfx-header-white: #FFFFFF;
    --sfx-header-text: #0F172A;
    --sfx-header-muted: #64748B;

    --sfx-header-blue: #0758EB;
    --sfx-header-purple: #7928F5;
    --sfx-header-orange: #FF8A00;

    --sfx-header-primary: #0758EB;
    --sfx-header-hover: #7928F5;

    --sfx-header-width: 1280px;
}

/* ==========================================
   GLOBAL RESET
========================================== */

.sfx-site-header,
.sfx-site-header *,
.sfx-mobile-drawer,
.sfx-mobile-drawer *,
.sfx-mobile-overlay {
    box-sizing: border-box;
}

.sfx-site-header {
    position: relative;
    z-index: 9000;
    width: 100%;
    margin: 0;
    background: var(--sfx-header-bg);
    color: var(--sfx-header-text);
    font-family: "Outfit", Arial, sans-serif;
}

.sfx-site-header a,
.sfx-mobile-drawer a {
    text-decoration: none;
}

.sfx-header-container {
    width: min(
        var(--sfx-header-width),
        calc(100% - 40px)
    );
    margin-inline: auto;
}

/* ==========================================
   TOP TRENDING BAR
========================================== */

.sfx-topbar {
    background: var(--sfx-header-top);
    border-bottom: 1px solid var(--sfx-header-border);
}

.sfx-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 38px;
}

.sfx-topbar-news {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 15px;
}

.sfx-breaking-label {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 6px 13px;

    border-radius: 5px;
    background: var(--sfx-header-primary);

    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.sfx-ticker-window {
    width: min(700px, 48vw);
    overflow: hidden;
    white-space: nowrap;
}

.sfx-ticker-track {
    display: flex;
    align-items: center;
    gap: 32px;
    width: max-content;
    transition: transform .4s ease;
}

.sfx-ticker-track a {
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: color .2s ease;
}

.sfx-ticker-track a:hover {
    color: var(--sfx-header-blue);
}

.sfx-topbar-date {
    flex-shrink: 0;
    color: #64748B;
    font-size: 12px;
    font-weight: 500;
}

/* ==========================================
   MAIN HEADER SINGLE ROW
========================================== */

.sfx-header-main {
    background: #FFFFFF;
    border-bottom: 1px solid var(--sfx-header-border);
    box-shadow: 0 3px 18px rgba(15, 23, 42, .025);
}

.sfx-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
}

/* ==========================================
   LOGO
========================================== */

.sfx-header-brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
}

.sfx-site-header .sfx-logo-link,
.sfx-mobile-drawer .sfx-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: auto;
    max-width: 205px;
    min-height: 45px;

    margin: 0;
    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    line-height: 1;
}

.sfx-site-header .sfx-logo-image,
.sfx-mobile-drawer .sfx-logo-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 190px;
    max-height: 48px;
    object-fit: contain;
    filter: none;
    opacity: 1;
}

.sfx-logo-text {
    color: #0F172A;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -.7px;
    white-space: nowrap;
}

.sfx-logo-text span {
    color: var(--sfx-header-blue);
}

/* ==========================================
   DESKTOP MENU
========================================== */

.sfx-site-header .sfx-desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1 1 auto;
    min-width: 0;
}

.sfx-site-header .sfx-desktop-nav > ul,
.sfx-site-header .sfx-desktop-nav .sfx-nav-list {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    flex-wrap: nowrap;

    gap: 23px;
    width: auto;
    max-width: 100%;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
    list-style-type: none !important;
}

.sfx-site-header .sfx-desktop-nav > ul > li {
    position: relative;
    display: block;
    flex: 0 0 auto;

    margin: 0 !important;
    padding: 0 !important;

    border: 0;
    background: transparent;
    list-style: none !important;
}

.sfx-site-header .sfx-desktop-nav li::marker,
.sfx-site-header .sfx-desktop-nav li::before {
    content: none !important;
}

.sfx-site-header .sfx-desktop-nav > ul > li > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 78px;

    margin: 0;
    padding: 0;

    border: 0;
    background: transparent;

    color: #253047;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;

    transition: color .2s ease;
}

/* Menu underline */

.sfx-site-header .sfx-desktop-nav > ul > li > a::before {
    position: absolute;
    bottom: 19px;
    left: 0;

    width: 0;
    height: 2px;

    content: "";
    background: var(--sfx-header-blue);
    border-radius: 5px;

    transition: width .25s ease;
}

.sfx-site-header .sfx-desktop-nav > ul > li > a:hover,
.sfx-site-header .sfx-desktop-nav .current-menu-item > a,
.sfx-site-header .sfx-desktop-nav .current_page_item > a,
.sfx-site-header .sfx-desktop-nav .current-menu-ancestor > a {
    color: var(--sfx-header-blue);
}

.sfx-site-header .sfx-desktop-nav > ul > li > a:hover::before,
.sfx-site-header .sfx-desktop-nav .current-menu-item > a::before,
.sfx-site-header .sfx-desktop-nav .current_page_item > a::before {
    width: 100%;
}

/* Dropdown arrows */

.sfx-desktop-nav .menu-item-has-children > a::after,
.sfx-desktop-nav .page_item_has_children > a::after {
    content: "";
    width: 6px;
    height: 6px;
    margin: -3px 0 0 8px;

    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
}

/* ==========================================
   DESKTOP DROPDOWN
========================================== */

.sfx-site-header .sfx-desktop-nav .sub-menu,
.sfx-site-header .sfx-desktop-nav .children {
    position: absolute;
    z-index: 100;
    top: 100%;
    left: 0;

    display: block;
    min-width: 220px;

    margin: 0;
    padding: 9px;

    background: #FFFFFF;
    border: 1px solid #E5EAF3;
    border-radius: 10px;

    box-shadow: 0 15px 40px rgba(15,23,42,.10);

    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;
}

.sfx-desktop-nav li:hover > .sub-menu,
.sfx-desktop-nav li:focus-within > .sub-menu,
.sfx-desktop-nav li:hover > .children,
.sfx-desktop-nav li:focus-within > .children {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sfx-site-header .sfx-desktop-nav .sub-menu li,
.sfx-site-header .sfx-desktop-nav .children li {
    position: relative;
    margin: 0;
    list-style: none;
}

.sfx-site-header .sfx-desktop-nav .sub-menu a,
.sfx-site-header .sfx-desktop-nav .children a {
    display: block;
    padding: 11px 13px;

    border-radius: 6px;
    background: transparent;

    color: #334155;
    font-size: 14px;
    font-weight: 500;
    white-space: normal;
}

.sfx-site-header .sfx-desktop-nav .sub-menu a:hover,
.sfx-site-header .sfx-desktop-nav .children a:hover {
    background: #EEF4FF;
    color: var(--sfx-header-blue);
}

.sfx-site-header .sfx-desktop-nav .sub-menu .sub-menu,
.sfx-site-header .sfx-desktop-nav .children .children {
    top: 0;
    left: 100%;
}

/* ==========================================
   HEADER ACTIONS
========================================== */

.sfx-header-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
}

/* ==========================================
   DESKTOP SEARCH
========================================== */

.sfx-header-search {
    display: flex;
    align-items: center;

    width: 200px;
    height: 41px;

    margin: 0;
    padding: 0;
    overflow: hidden;

    background: #F5F7FF;
    border: 1px solid #E0E7F3;
    border-radius: 7px;

    transition: border-color .2s ease;
}

.sfx-header-search:focus-within {
    border-color: var(--sfx-header-blue);
}

.sfx-site-header .sfx-header-search input {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0 12px;

    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;

    color: #0F172A !important;
    font-family: inherit;
    font-size: 13px;
}

.sfx-site-header .sfx-header-search input::placeholder {
    color: #7B879B;
    opacity: 1;
}

.sfx-site-header .sfx-header-search button {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 41px;
    width: 41px;
    height: 100%;

    margin: 0;
    padding: 0;

    background: var(--sfx-header-blue) !important;
    color: #FFFFFF !important;

    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer;

    transition: background .2s ease;
}

.sfx-site-header .sfx-header-search button:hover {
    background: var(--sfx-header-purple) !important;
}

/* ==========================================
   HAMBURGER BUTTON
========================================== */

.sfx-site-header .sfx-menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
    gap: 5px;

    width: 41px;
    height: 41px;

    margin: 0;
    padding: 0;

    border: 1px solid #DAE4F5 !important;
    border-radius: 9px;

    background: #EFF4FF !important;
    box-shadow: none !important;

    cursor: pointer;
    transition:
        background .2s ease,
        border-color .2s ease;
}

.sfx-site-header .sfx-menu-toggle:hover {
    background: var(--sfx-header-blue) !important;
    border-color: var(--sfx-header-blue) !important;
}

.sfx-menu-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 3px;
    background: var(--sfx-header-blue) !important;
}

.sfx-site-header .sfx-menu-toggle:hover span {
    background: #FFFFFF !important;
}

/* ==========================================
   MOBILE OVERLAY
========================================== */

.sfx-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;

    background: rgba(15, 23, 42, .52);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}

.sfx-mobile-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ==========================================
   MOBILE DRAWER - WHITE BACKGROUND
========================================== */

.sfx-mobile-drawer {
    position: fixed;
    z-index: 99999;

    top: 0;
    right: 0;
    bottom: 0;

    display: flex;
    flex-direction: column;

    width: min(360px, 90vw);
    height: 100dvh;

    margin: 0;
    padding: 24px;

    overflow-y: auto;
    overscroll-behavior: contain;

    background: #FFFFFF;
    border-left: 1px solid #E5EAF3;

    box-shadow: -15px 0 45px rgba(15,23,42,.12);

    color: #0F172A;
    font-family: "Outfit", Arial, sans-serif;

    transform: translateX(105%);
    visibility: hidden;

    transition:
        transform .35s ease,
        visibility .35s ease;
}

.sfx-mobile-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

/* ==========================================
   DRAWER LOGO AND CLOSE
========================================== */

.sfx-drawer-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
    margin: 0 0 26px;
    padding: 0 0 20px;

    border-bottom: 1px solid #E5EAF3;
}

.sfx-mobile-drawer .sfx-logo-link {
    max-width: 200px;
    background: transparent;
}

.sfx-mobile-drawer .sfx-logo-image {
    max-width: 185px;
    max-height: 44px;
}

.sfx-mobile-drawer .sfx-menu-close {
    display: grid;
    place-items: center;
    flex-shrink: 0;

    width: 38px;
    height: 38px;

    margin: 0;
    padding: 0;

    background: #EFF4FF !important;
    color: var(--sfx-header-blue) !important;

    border: 1px solid #DAE4F5 !important;
    border-radius: 8px;

    font-size: 26px;
    cursor: pointer;
}

.sfx-mobile-drawer .sfx-menu-close:hover {
    background: var(--sfx-header-blue) !important;
    color: #FFFFFF !important;
}

/* ==========================================
   DRAWER SEARCH
========================================== */

.sfx-mobile-search {
    display: flex;
    flex-shrink: 0;

    width: 100%;
    min-height: 45px;

    margin: 0 0 20px;
    padding: 0;
}

.sfx-mobile-drawer .sfx-mobile-search input {
    flex: 1;
    min-width: 0;

    padding: 0 13px;

    border: 1px solid #DFE6F1 !important;
    border-radius: 7px 0 0 7px !important;

    background: #F5F7FF !important;
    color: #0F172A !important;

    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.sfx-mobile-drawer .sfx-mobile-search input::placeholder {
    color: #8490A3;
    opacity: 1;
}

.sfx-mobile-drawer .sfx-mobile-search input:focus {
    border-color: var(--sfx-header-blue) !important;
}

.sfx-mobile-drawer .sfx-mobile-search button {
    flex-shrink: 0;
    padding: 0 15px;

    background: var(--sfx-header-blue) !important;
    color: #FFFFFF !important;

    border: 0 !important;
    border-radius: 0 7px 7px 0 !important;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.sfx-mobile-drawer .sfx-mobile-search button:hover {
    background: var(--sfx-header-purple) !important;
}

/* ==========================================
   MOBILE NAVIGATION
   WordPress Main Menu
========================================== */

.sfx-mobile-drawer .sfx-mobile-nav {
    display: block;
    flex: 0 0 auto;
    width: 100%;

    margin: 0;
    padding: 0;
}

/* Remove WordPress bullets */

.sfx-mobile-drawer .sfx-mobile-nav ul,
.sfx-mobile-drawer .sfx-mobile-nav-list,
.sfx-mobile-drawer .sfx-mobile-nav .sub-menu,
.sfx-mobile-drawer .sfx-mobile-nav .children {
    display: block;
    width: 100%;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
    list-style-type: none !important;
}

.sfx-mobile-drawer .sfx-mobile-nav li {
    position: relative;
    display: block;
    width: 100%;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent;
    border: 0;
    border-bottom: 1px solid #EDF0F5;

    list-style: none !important;
    list-style-type: none !important;
}

.sfx-mobile-drawer .sfx-mobile-nav li::before,
.sfx-mobile-drawer .sfx-mobile-nav li::after,
.sfx-mobile-drawer .sfx-mobile-nav li::marker {
    content: none !important;
    display: none !important;
}

/* Main navigation links */

.sfx-mobile-drawer .sfx-mobile-nav
.sfx-mobile-nav-list > li > a {
    display: flex !important;
    align-items: center;

    width: 100%;
    min-height: 51px;

    margin: 0 !important;
    padding: 14px 12px !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    color: #253047 !important;
    font-family: "Outfit", Arial, sans-serif;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.45;

    text-align: left;
    text-decoration: none !important;

    transition:
        color .2s ease,
        background-color .2s ease,
        padding-left .2s ease;
}

/* Hover */

.sfx-mobile-drawer .sfx-mobile-nav
.sfx-mobile-nav-list > li > a:hover {
    padding-left: 18px !important;
    background: #EFF5FF !important;
    color: var(--sfx-header-blue) !important;
}

/* Active navigation */

.sfx-mobile-drawer .sfx-mobile-nav
.current-menu-item > a,
.sfx-mobile-drawer .sfx-mobile-nav
.current_page_item > a,
.sfx-mobile-drawer .sfx-mobile-nav
.current-menu-ancestor > a {
    padding-left: 15px !important;

    background: #EFF5FF !important;
    border-left: 3px solid var(--sfx-header-blue) !important;

    color: var(--sfx-header-blue) !important;
    font-weight: 600 !important;
}

/* Submenus */

.sfx-mobile-drawer .sfx-mobile-nav .sub-menu,
.sfx-mobile-drawer .sfx-mobile-nav .children {
    margin: 0 0 10px !important;
    padding: 0 0 0 16px !important;

    border-left: 2px solid #C9D8FF;
}

.sfx-mobile-drawer .sfx-mobile-nav .sub-menu li,
.sfx-mobile-drawer .sfx-mobile-nav .children li {
    border-bottom: 0;
}

.sfx-mobile-drawer .sfx-mobile-nav .sub-menu a,
.sfx-mobile-drawer .sfx-mobile-nav .children a {
    display: block;
    padding: 11px 12px !important;

    background: transparent !important;
    color: #64748B !important;

    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5;
}

.sfx-mobile-drawer .sfx-mobile-nav .sub-menu a:hover,
.sfx-mobile-drawer .sfx-mobile-nav .children a:hover {
    color: var(--sfx-header-blue) !important;
}

/* ==========================================
   DRAWER BOTTOM
========================================== */

.sfx-drawer-bottom {
    margin-top: auto;
    padding-top: 24px;

    border-top: 1px solid #E5EAF3;

    color: #64748B;
    font-size: 14px;
}

.sfx-drawer-bottom p,
.sfx-drawer-bottom span {
    margin: 0 0 8px;
    color: inherit;
    font-size: 14px;
    line-height: 1.7;
}

body.sfx-drawer-open {
    overflow: hidden;
}

/* ==========================================
   SMALL DESKTOP
========================================== */

@media (max-width: 1199px) {

    .sfx-header-row {
        gap: 16px;
    }

    .sfx-site-header .sfx-desktop-nav > ul {
        gap: 15px;
    }

    .sfx-site-header .sfx-desktop-nav
    > ul > li > a {
        font-size: 13px;
    }

    .sfx-header-search {
        width: 175px;
    }

    .sfx-site-header .sfx-logo-image {
        max-width: 165px;
    }
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 991px) {

    .sfx-site-header .sfx-desktop-nav {
        display: none !important;
    }

    .sfx-header-row {
        min-height: 70px;
    }

    .sfx-header-actions {
        margin-left: auto;
    }

    .sfx-header-search {
        width: 220px;
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 767px) {

    .sfx-header-container {
        width: calc(100% - 30px);
    }

    .sfx-topbar-inner {
        min-height: 35px;
    }

    .sfx-topbar-date {
        display: none;
    }

    .sfx-ticker-window {
        width: calc(100vw - 140px);
    }

    .sfx-header-row {
        min-height: 65px;
        gap: 12px;
    }

    .sfx-site-header .sfx-logo-link {
        min-height: 40px;
    }

    .sfx-site-header .sfx-logo-image {
        max-width: 165px;
        max-height: 40px;
    }

    .sfx-header-search {
        display: none;
    }

    .sfx-header-actions {
        margin-left: auto;
    }

    .sfx-mobile-drawer {
        width: min(340px, 90vw);
        padding: 20px 18px;
    }

    .sfx-mobile-drawer .sfx-mobile-nav
    .sfx-mobile-nav-list > li > a {
        min-height: 49px;
        padding: 13px 10px !important;
        font-size: 15px !important;
    }
}

@media (max-width: 380px) {

    .sfx-site-header .sfx-logo-image {
        max-width: 145px;
    }

    .sfx-mobile-drawer .sfx-logo-image {
        max-width: 165px;
    }

    .sfx-logo-text {
        font-size: 21px;
    }
}

/* ==========================================
   WORDPRESS ADMIN BAR
========================================== */

body.admin-bar .sfx-mobile-drawer {
    top: 32px;
    height: calc(100dvh - 32px);
}

@media (max-width: 782px) {

    body.admin-bar .sfx-mobile-drawer {
        top: 46px;
        height: calc(100dvh - 46px);
    }
}

/* ==========================================
   ACCESSIBILITY
========================================== */

.sfx-site-header a:focus-visible,
.sfx-site-header button:focus-visible,
.sfx-mobile-drawer a:focus-visible,
.sfx-mobile-drawer button:focus-visible {
    outline: 2px solid var(--sfx-header-blue);
    outline-offset: 3px;
}

/* ==========================================
   REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {

    .sfx-site-header *,
    .sfx-mobile-drawer,
    .sfx-mobile-overlay {
        transition: none !important;
        animation: none !important;
    }
}
