/* ==========================================================================
   Header Style 11 — sticky two-tier navbar (Webflow-inspired)
   - Black bar that sticks to the top of the viewport
   - At top: full height, nav row visible
   - On scroll: header collapses and the nav row hides
   - Background is ALWAYS black; accents pull from theme vars
   ========================================================================== */

.header.style-11 {
    --h11-bg: #fff;
    --h11-text: #111;
    --h11-accent: var(--secondary-color, #d4145a);
    position: -webkit-sticky;
    position: -moz-sticky;
    position: sticky;
    top: 0;
    z-index: 9999;
    overflow: visible;
}

/* Sticky wrapper — transparent so the bar stays inset within the container */
.header.style-11 .header-content-wrapper {
    position: relative;
    z-index: 9999;
    background-color: transparent;
    padding-top: 9px;
    overflow: visible;
}

.header.style-11 .navbar-11 {
    background-color: transparent;
    overflow: visible;
}

.header.style-11 .site-navigation-11 {
    overflow: visible;
}


.header.style-11 .site-navigation-11 {
    background-color: var(--h11-bg);
    border-radius: 12px;
    padding: 14px 20px;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.header.style-11 .nav-tier-top-11 {
    display: grid;
    grid-template-columns: 3fr 6fr 3fr;
    align-items: center;
    gap: 20px;
    min-height: 44px;
}

.header.style-11 .nav-left-11 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

.header.style-11 .nav-center-11 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header.style-11 .nav-right-11 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.header.style-11 .nav-tier-bottom-11 {
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 6px;
    padding-top: 6px;
}

/* --------------------------------------------------------------------------
   Brand / logo (centered)
   -------------------------------------------------------------------------- */
.header.style-11 .nav-brand-11 {
    display: inline-flex;
    align-items: center;
    padding: 0;
    line-height: 0;
}

.header.style-11 .nav-brand-logo-11 {
    width: auto;
    max-height: 44px;
    object-fit: contain;
}

/* --------------------------------------------------------------------------
   Primary navigation (driven by menu_style.blade.php -> ul.menu)
   -------------------------------------------------------------------------- */
.header.style-11 .nav-menu-11 .menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 0px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header.style-11 .nav-menu-11 .menu > li {
    position: relative;
}

.header.style-11 .nav-menu-11 .menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--h11-text);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    padding: 6px 0;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s ease;
    border: none !important;
}

.header.style-11 .nav-menu-11 .menu > li > a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.header.style-11 .nav-menu-11 .menu > li.active > a {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Chevron for items with submenus */
.header.style-11 .nav-menu-11 .menu > li {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}
.header.style-11 .nav-menu-11 .has-submenu > a::after {
    display: none;
}

.header.style-11 .menu .megamenu ul li:first-child {
    padding-top: 8px;
}

/* --------------------------------------------------------------------------
   Dropdown / submenu + megamenu
   -------------------------------------------------------------------------- */
.header.style-11 .nav-menu-11 .menu .submenu,
.header.style-11 .nav-menu-11 .menu .megamenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 8px);
    min-width: 220px;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-top: 0;
    border-radius: 10px;
    padding: 10px;
    list-style: none;
    margin: 0;
    box-shadow: 0 8px 12px -10px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
    z-index: 50;
}

.header.style-11 .nav-menu-11 .menu > li .megamenu {
    left: 0;
}

.header.style-11 .nav-menu-11 .menu .megamenu {
    position: fixed !important;
    top: 115px !important;
    width: 100vw !important;
    left: 0 !important;
    transform: none !important;
    display: none !important;
    gap: 24px;
    padding: 24px max(40px, calc((100vw - 1200px) / 2));
    border-radius: 0;
    box-shadow: 0 8px 12px -10px rgba(0, 0, 0, 0.15);
    background-color: #fff !important;
    min-width: unset;
    z-index: 1001 !important;
}

.header.style-11 .nav-menu-11 .menu > li:hover > .submenu,
.header.style-11 .nav-menu-11 .menu > li:hover > .megamenu {
    opacity: 1;
    visibility: visible;
    display: flex !important;
    transform: none !important;
}


.header.style-11 .nav-menu-11 .menu > li:first-child .submenu {
    left: 0;
    right: auto;
    transform: translate(0, 8px);
}

.header.style-11 .nav-menu-11 .menu > li:first-child:hover > .submenu {
    transform: translate(0, 0);
}

.header.style-11 .nav-menu-11 .menu > li:last-child .submenu {
    left: auto;
    right: 0;
    transform: translate(0, 8px);
}

.header.style-11 .nav-menu-11 .menu > li:last-child:hover > .submenu,
.header.style-11 .nav-menu-11 .menu > li:last-child:hover > .megamenu {
    transform: translate(0, 0);
}

.header.style-11 .nav-menu-11 .submenu li a,
.header.style-11 .nav-menu-11 .megamenu li a {
    display: block;
    color: rgba(0, 0, 0, 0.7);
    font-size: 14px;
    font-weight: 400;
    padding: 8px 12px;
    border-radius: 2px;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.header.style-11 .nav-menu-11 .submenu li a:hover,
.header.style-11 .nav-menu-11 .megamenu li a:hover {
    background-color: transparent;
    color: var(--h11-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.header.style-11 .nav-menu-11 .megamenu .megamenu-item {
    list-style: none;
}

.header.style-11 .nav-menu-11 .megamenu .menu-title {
    margin: 0 0 6px;
    padding: 0 12px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.header.style-11 .nav-menu-11 .megamenu .menu-title a {
    color: var(--h11-accent);
    font-weight: 600;
    padding: 0;
}

.header.style-11 .nav-menu-11 .megamenu .menu-title a:hover {
    background: none;
}

.header.style-11 .nav-menu-11 .megamenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}



.header.style-11 .h-search-widget {
    display: inline-flex;
    align-items: center;
}

.header.style-11 .h11-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--h11-text);
    transition: opacity 0.2s ease;
    padding: 4px;
}

.header.style-11 .h11-search-btn:hover {
    opacity: 0.6;
}

.header.style-11 .h11-search-inline {
    display: none;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    position: relative;
}

.header.style-11 .h11-search-inline #desktopSearchResults {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 99999;
}

.header.style-11.h11-search-active .site-navigation-11 {
    border-radius: 12px 12px 0 0;
    overflow: visible !important;
}

.header.style-11.h11-search-active .nav-brand-11 {
    display: none;
}

.header.style-11.h11-search-active .h11-search-inline {
    display: flex;
}

.header.style-11 .h11-search-input {
    flex: 1;
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(17, 17, 17, 0.2);
    border-radius: 0;
    background: transparent;
    outline: none;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 400;
    color: var(--h11-text);
    padding: 6px 2px 8px;
    letter-spacing: 0.02em;
    transition: border-color 0.2s ease;
}

.header.style-11 .h11-search-input:focus {
    border-bottom-color: rgba(17, 17, 17, 0.55);
}

.header.style-11 .h11-search-input::placeholder {
    color: rgba(17, 17, 17, 0.747);
    font-weight: 300;
    letter-spacing: 0.04em;
}

.header.style-11 .h11-search-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--h11-text);
    opacity: 0.5;
    padding: 4px;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.header.style-11 .h11-search-close-btn:hover {
    opacity: 1;
}


.header.style-11 .cart-block-11 {
    position: relative;
    display: inline-flex;
}

.header.style-11 .cart-button-11 {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--h11-text);
    font-weight: 400;
    font-size: 15px;
    line-height: 1;
    text-decoration: none;
    padding: 0;
    background: transparent;
    transition: opacity 0.2s ease;
}

.header.style-11 .cart-button-11:hover {
    opacity: 0.85;
}

/* Icon sized relative to the cart text */
.header.style-11 .cart-icon-image-11 {
    width: 1.15em;
    height: auto;
    color: var(--h11-text);
    flex-shrink: 0;
}

.header.style-11 .header-cart-title-11 {
    color: var(--h11-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

/* Neutralize the global .cart-dropdown .cart-count badge — render inline text */
.header.style-11 .cart-dropdown .cart-count {
    position: static;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    color: inherit;
    font-size: inherit;
    font-weight: 500;
    line-height: inherit;
    z-index: auto;
    right: auto;
    top: auto;
    text-align: inherit;
}

/* --------------------------------------------------------------------------
   Login / CTA pill button (accent)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Login / CTA pill button (Premium Polish)
   -------------------------------------------------------------------------- */
.header.style-11 .login-btn-11 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #111;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
    line-height: 1;
    padding: 12px 18px;
    border-radius: 100px;
    text-decoration: none;
    white-space: nowrap;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.header.style-11 .login-btn-11:hover {
    color: #fff;
    background-color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.header.style-11 .login-btn-11:active {
    transform: translateY(0px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.header.style-11 .login-btn-11 .icon {
    width: 1.1em;
    height: auto;
    flex-shrink: 0;
}

.header.style-11 .login-btn-label-11 {
    font-size: 15px;
}

 ul.live_search_box{
    position: fixed !important;
    top: 58px !important;
    z-index: 99999 !important;
}

/* --------------------------------------------------------------------------
   Company name (desktop left slot)
   -------------------------------------------------------------------------- */
.header.style-11 .h11-company-name {
    display: inline-flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
    color: var(--h11-text);
    transition: opacity 0.2s ease;
}

.header.style-11 .h11-company-name::after {
    content: "®";
    font-style: normal;
    font-size: 9px;
    letter-spacing: 0;
    line-height: 1;
    opacity: 0.4;
    margin-left: 3px;
    align-self: flex-start;
    margin-top: 1px;
}

/* --------------------------------------------------------------------------
   Scroll-collapse: nav row hides + header shrinks once scrolled
   -------------------------------------------------------------------------- */
.header.style-11 .nav-tier-bottom-11 {
    /* collapse animation targets — visible when open so dropdowns can escape */
    overflow: visible;
    max-height: 80px;
    opacity: 1;
    transition:
        max-height 0.35s ease,
        margin-top 0.35s ease,
        padding-top 0.35s ease;
}

.header.style-11.is-scrolled .nav-tier-bottom-11 {
    overflow: hidden;
    max-height: 0;
    margin-top: 0;
    padding-top: 0;
    border-top-color: transparent;
}

.header.style-11 .site-navigation-11 {
    transition: padding 0.3s ease;
}

.header.style-11.is-scrolled .site-navigation-11 {
    padding-top: 10px;
    padding-bottom: 10px;
}

.active-underline > li > a::before {
    display: none;
}
/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
.header.style-11 .mobile-only-11 {
    display: none;
}

.header.style-11 .desktop-only-11 li {
    margin-right: 0px;
}

.header.style-11 .mobile-menu-toggle {
    align-items: center;
    justify-content: center;
    color: var(--h11-text);
    font-size: 22px;
    line-height: 1;
    text-decoration: none;
    padding: 4px;
}

.header.style-11 .h11-company-name-below {
    display: none;
    font-family: var(--font-family);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--h11-text);
    white-space: nowrap;
    line-height: 1;
    margin-top: 3px;
}

/* ---- Tablet (≤991px): swap to mobile layout ---- */
@media (max-width: 991px) {
    .header.style-11 .mobile-only-11 {
        display: inline-flex;
    }
    .header.style-11 .desktop-only-11 {
        display: none !important;
    }

    .header.style-11 .nav-center-11 {
        flex-direction: column;
        gap: 0;
    }

    .header.style-11 .h11-company-name-below {
        display: block;
    }

    /* Equal sides so logo stays truly centered regardless of icon count */
    .header.style-11 .nav-tier-top-11 {
        grid-template-columns: 1fr auto 1fr;
        gap: 12px;
    }

    .header.style-11 .nav-brand-logo-11 {
        max-height: 36px;
    }

    /* Hide search icon — mobile uses the global search bar */
    .header.style-11 .h-search-widget {
        display: none;
    }

    /* Tighten action icons gap */
    .header.style-11 .nav-right-11 {
        gap: 10px;
    }

    /* Hide login label — icon only on tablet */
    .header.style-11 .login-btn-label-11 {
        display: none;
    }

    /* Compact pill — icon-only circular button */
    .header.style-11 .login-btn-11 {
        padding: 9px 10px;
        border-radius: 50%;
        gap: 0;
    }

    /* Keep search results dropdown positioned correctly */
    ul.live_search_box {
        top: 70px !important;
    }
}

@media (max-width: 767px) {

    .header.style-11 .site-navigation-11 {
        border-radius: 10px;
    }
    .header.style-11 .header-content-wrapper {
        padding-top: 6px;
    }

    .header.style-11 .site-navigation-11 {
        padding: 8px 13px;
    }

    .header.style-11 .nav-tier-top-11 {
        gap: 8px;
        min-height: 40px;
    }

    /* Override inline style="padding: 0 24px" on container-fluid */
    .header.style-11 .navbar-11 .container-fluid {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
}

/* ---- Phone (≤575px) ---- */
@media (max-width: 575px) {
    .header.style-11 .site-navigation-11 {
        padding: 8px 12px;
    }

    .header.style-11 .header-content-wrapper {
        padding-top: 5px;
    }

    .header.style-11 .nav-tier-top-11 {
        gap: 6px;
        min-height: 38px;
    }

    .header.style-11 .nav-right-11 {
        gap: 8px;
    }

    .header.style-11 .header-cart-title-11 {
        display: none !important;
    }

    .header.style-11 .cart-button-11 {
        gap: 0;
    }

    .header.style-11 .nav-brand-logo-11 {
        max-height: 32px;
    }

    /* Search results need to account for reduced header height */
    ul.live_search_box {
        top: 62px !important;
    }

    /* Search input full-width on phone */
    .header.style-11.h11-search-active .nav-center-11 {
        justify-content: stretch;
    }

    .header.style-11 .h11-search-inline {
        width: 100%;
    }
}
