/* =========================================================
   SHIFTIFY NAVBAR
   Clean + Responsive + Fixed Header
   ========================================================= */


/* =========================================================
   TOP TICKER
   ========================================================= */

.top-ticker {
    width: 100%;
    background: #0f172a;
    color: #ffffff;
    overflow: hidden;
    position: relative;
    z-index: 1100;
}

.ticker-content {
    min-height: 34px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 6px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
    line-height: 1.4;
}

.ticker-badge {
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.ticker-text {
    opacity: 0.9;
}


/* =========================================================
   MAIN HEADER — ALWAYS FIXED
   ========================================================= */

.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;

    width: 100% !important;

    z-index: 5000 !important;

    background: rgba(255, 255, 255, 0.98);

    border-bottom: 1px solid rgba(15, 23, 42, 0.08);

    box-shadow:
        0 4px 20px rgba(15, 23, 42, 0.06);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transition:
        box-shadow 0.25s ease,
        background 0.25s ease;
}



/* =========================================================
   HEADER CONTAINER
   ========================================================= */

.header-container {
    width: 100%;
    min-height: 78px;

    display: flex;
    align-items: center;

    gap: 30px;

    box-sizing: border-box;
}


/* =========================================================
   SHIFTIFY LOGO
   ========================================================= */

.brand-logo {
    display: flex;
    align-items: center;

    flex: 0 0 205px;

    width: 205px;
    height: 64px;

    margin: 0;

    text-decoration: none;

    overflow: visible;
}

.logo-img {
    display: block;

    width: 205px;
    height: auto;

    max-width: none;
    max-height: none;

    object-fit: contain;
    object-position: left center;

    image-rendering: auto;

    transform: translateZ(0);
    backface-visibility: hidden;
}


/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */

.main-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.nav-list {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 4px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.nav-item {
    position: relative;

    list-style: none;
}

.nav-link {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 10px 12px;

    border: 0;
    border-radius: 8px;

    background: transparent;

    color: #334155;

    font-size: 11px;
    font-weight: 600;

    line-height: 1.2;

    text-decoration: none;

    white-space: nowrap;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #0f172a;
}


/* =========================================================
   NAV HOVER BACKGROUND
   ========================================================= */

.nav-link:hover {
    background: #f8fafc;
}


/* =========================================================
   NAV ACTIVE UNDERLINE
   ========================================================= */

.nav-link::after {
    content: "";

    position: absolute;

    left: 12px;
    right: 12px;
    bottom: 3px;

    height: 2px;

    border-radius: 999px;

    background: currentColor;

    transform: scaleX(0);
    transform-origin: center;

    transition:
        transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}


/* =========================================================
   SERVICES BUTTON
   ========================================================= */

.services-toggle {
    gap: 7px;
}

.services-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;
    line-height: 1;

    transition:
        transform 0.25s ease;
}

.has-dropdown:hover .services-arrow,
.has-dropdown.is-open .services-arrow {
    transform: rotate(180deg);
}


/* =========================================================
   SERVICES MEGA DROPDOWN
   ========================================================= */

.nav__dropdown-menu {
    position: absolute;

    top: calc(100% + 12px);
    left: 50%;

    width: min(920px, calc(100vw - 40px));

    max-height: min(680px,
            calc(100vh - 120px));

    padding: 22px;

    background: rgba(255, 255, 255, 0.98);

    border: 1px solid rgba(15, 23, 42, 0.08);

    border-radius: 18px;

    box-shadow:
        0 25px 70px rgba(15, 23, 42, 0.16),
        0 8px 25px rgba(15, 23, 42, 0.07);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    overflow-y: auto;
    overflow-x: hidden;

    opacity: 0;
    visibility: hidden;

    transform:
        translateX(-50%) translateY(10px) scale(0.98);

    transform-origin: top center;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;

    scrollbar-width: thin;

    z-index: 6000;

    box-sizing: border-box;
}


/* =========================================================
   INVISIBLE DROPDOWN BRIDGE
   ========================================================= */

.nav__dropdown-menu::before {
    content: "";

    position: absolute;

    top: -13px;
    left: 0;

    width: 100%;
    height: 14px;
}


/* =========================================================
   DESKTOP DROPDOWN OPEN
   ========================================================= */

@media (min-width: 992px) {

    .has-dropdown:hover .nav__dropdown-menu,
    .has-dropdown.is-open .nav__dropdown-menu {

        opacity: 1;

        visibility: visible;

        transform:
            translateX(-50%) translateY(0) scale(1);
    }
}


/* =========================================================
   DROPDOWN HEADER
   ========================================================= */

.nav__dropdown-header {
    padding: 2px 4px 18px;

    margin-bottom: 16px;

    border-bottom:
        1px solid rgba(15, 23, 42, 0.08);
}

.nav__dropdown-eyebrow {
    display: block;

    margin-bottom: 5px;

    color: #64748b;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.12em;
}

.nav__dropdown-header h3 {
    margin: 0 0 5px;

    color: #0f172a;

    font-size: 21px;
    line-height: 1.25;
}

.nav__dropdown-header p {
    margin: 0;

    color: #64748b;

    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   DROPDOWN GRID
   ========================================================= */

.nav__dropdown-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 8px;
}


/* =========================================================
   DROPDOWN ITEM
   ========================================================= */

.nav__dropdown-item {
    min-width: 0;

    display: flex;
    align-items: flex-start;

    gap: 12px;

    padding: 12px;

    border:
        1px solid transparent;

    border-radius: 12px;

    color: inherit;

    text-decoration: none;

    background: transparent;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;

    box-sizing: border-box;
}

.nav__dropdown-item:hover {
    background: #f8fafc;

    border-color:
        rgba(15, 23, 42, 0.07);

    transform:
        translateY(-2px);

    box-shadow:
        0 6px 18px rgba(15, 23, 42, 0.06);
}


/* =========================================================
   DROPDOWN ICON
   ========================================================= */

.nav__dropdown-icon {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #f1f5f9;

    font-size: 19px;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.nav__dropdown-item:hover .nav__dropdown-icon {
    transform: scale(1.08);

    background: #e2e8f0;
}


/* =========================================================
   DROPDOWN TEXT
   ========================================================= */

.nav__dropdown-item strong {
    display: block;

    margin-bottom: 3px;

    color: #0f172a;

    font-size: 13px;
    line-height: 1.35;
}

.nav__dropdown-item small {
    display: block;

    color: #64748b;

    font-size: 11px;
    line-height: 1.4;
}


/* =========================================================
   BOOK NOW BUTTON
   ========================================================= */

.header-action {
    flex: 0 0 auto;
}

.btn-ship {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 44px;

    padding: 10px 18px;

    border: 0;
    border-radius: 10px;

    background: #0f172a;

    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;

    cursor: pointer;

    box-shadow:
        0 6px 16px rgba(15, 23, 42, 0.14);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.btn-ship:hover {
    background: #1e293b;

    transform:
        translateY(-2px);

    box-shadow:
        0 10px 24px rgba(15, 23, 42, 0.2);
}

.btn-ship span {
    font-size: 16px;
    line-height: 1;
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.mobile-menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    margin-left: auto;

    padding: 9px;

    border: 0;
    border-radius: 10px;

    background: #f8fafc;

    cursor: pointer;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    position: relative;

    z-index: 5100;

    box-sizing: border-box;
}

.mobile-menu-toggle:hover {
    background: #f1f5f9;
}

.mobile-menu-toggle span {
    display: block;

    width: 23px;
    height: 2px;

    border-radius: 10px;

    background: #0f172a;

    transition:
        transform 0.25s ease,
        opacity 0.2s ease;
}


/* =========================================================
   HAMBURGER → X
   ========================================================= */

.mobile-menu-toggle.is-active span:nth-child(1) {
    transform:
        translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-active span:nth-child(3) {
    transform:
        translateY(-7px) rotate(-45deg);
}


/* =========================================================
   MOBILE BOOK BUTTON
   ========================================================= */

.mobile-book-action {
    display: none;
}


/* =========================================================
   TABLET — 1100px
   ========================================================= */

@media (max-width: 1100px) {

    .header-container {
        gap: 15px;
    }

    .brand-logo {
        width: 160px;
        height: 64px;

        flex-basis: 160px;
    }

    .logo-img {
        width: 160px;
        max-width: 160px;
    }

    .nav-list {
        gap: 0;
    }

    .nav-link {
        padding-left: 8px;
        padding-right: 8px;

        font-size: 13px;
    }

    .nav__dropdown-menu {
        width:
            min(850px,
                calc(100vw - 30px));
    }

    .btn-ship {
        padding-left: 14px;
        padding-right: 14px;
    }
}


/* =========================================================
   DESKTOP — 992px+
   ========================================================= */

/* =========================================================
   DESKTOP SERVICES DROPDOWN — FIX LEFT ICON CLIPPING
   ========================================================= */

@media (min-width: 992px) {

    .has-dropdown {
        position: static;
    }

    .nav__dropdown-menu {
        position: fixed;

        top: 90px;
        left: 50%;

        width: min(920px, calc(100vw - 40px));
        max-width: calc(100vw - 40px);

        max-height: calc(100vh - 120px);

        box-sizing: border-box;

        overflow-x: hidden;
        overflow-y: auto;

        transform: translateX(-50%) translateY(10px) scale(0.98);

        z-index: 6000;
    }

    .has-dropdown:hover .nav__dropdown-menu,
    .has-dropdown.is-open .nav__dropdown-menu {
        opacity: 1;
        visibility: visible;

        transform: translateX(-50%) translateY(0) scale(1);
    }

    .nav__dropdown-grid {
        width: 100%;
        min-width: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav__dropdown-item {
        min-width: 0;
    }

    .nav__dropdown-icon {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
    }
}


/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 991px) {

    html,
    body {
        width: 100%;
        max-width: 100%;

        overflow-x: hidden;
    }


    /* -----------------------------------------------------
       BODY
       ----------------------------------------------------- */


    body.menu-open {
        overflow: hidden;

        touch-action: none;
    }


    /* -----------------------------------------------------
       HEADER
       ----------------------------------------------------- */

    .site-header {
        position: fixed !important;

        top: 0 !important;
        left: 0 !important;
        right: 0 !important;

        width: 100% !important;

        z-index: 5000 !important;
    }


    /* -----------------------------------------------------
       TICKER
       ----------------------------------------------------- */

    .ticker-content {
        width: 100%;

        min-height: 32px;

        padding-left: 14px;
        padding-right: 14px;

        justify-content: flex-start;

        font-size: 10px;
    }

    .ticker-text {
        min-width: 0;

        white-space: nowrap;

        overflow: hidden;

        text-overflow: ellipsis;
    }


    /* -----------------------------------------------------
       HEADER CONTAINER
       ----------------------------------------------------- */

    .header-container {
        width: 100%;
        max-width: 100%;

        min-height: 68px;

        padding-left: 14px;
        padding-right: 14px;

        gap: 10px;

        overflow: visible;

        box-sizing: border-box;
    }


    /* -----------------------------------------------------
       MOBILE LOGO
       ----------------------------------------------------- */

    .brand-logo {
        display: flex;
        align-items: center;

        width: 220px;
        height: 68px;

        flex: 0 0 220px;

        margin: 0;

        overflow: visible;
    }

    .logo-img {
        display: block;

        width: 158px;

        /* Important: don't force a short fixed image height */
        height: auto;

        max-width: 220px;
        max-height: 68px;

        object-fit: contain;
        object-position: left center;

        transform: scale(1.12);
        transform-origin: left center;

        backface-visibility: hidden;
    }



    /* -----------------------------------------------------
       HAMBURGER
       ----------------------------------------------------- */

    .mobile-menu-toggle {
        display: flex;

        flex: 0 0 44px;

        width: 44px;
        height: 44px;

        margin-left: auto;

        position: relative;

        z-index: 5100;
    }


    /* -----------------------------------------------------
       DESKTOP BOOK BUTTON HIDDEN
       ----------------------------------------------------- */

    .header-action {
        display: none;
    }


    /* -----------------------------------------------------
       MOBILE NAV DRAWER
       ----------------------------------------------------- */

    .main-nav {
        position: fixed !important;

        top: 68px !important;

        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;

        width: 100vw !important;
        max-width: 100vw !important;

        height:
            calc(100dvh - 68px);

        margin: 0;

        padding:
            14px 14px 30px;

        background:
            rgba(255, 255, 255, 0.98);

        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);

        overflow-x: hidden;
        overflow-y: auto;

        overscroll-behavior: contain;

        -webkit-overflow-scrolling: touch;

        opacity: 0;

        visibility: hidden;

        transform:
            translate3d(0, -12px, 0);

        transition:
            opacity 0.25s ease,
            visibility 0.25s ease,
            transform 0.25s ease;

        z-index: 4900;

        box-sizing: border-box;
    }

    .main-nav.is-open {
        opacity: 1;

        visibility: visible;

        transform:
            translate3d(0, 0, 0);
    }


    /* -----------------------------------------------------
       NAV LIST
       ----------------------------------------------------- */

    .nav-list {
        width: 100%;
        max-width: 100%;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        justify-content: flex-start;

        gap: 4px;

        margin: 0;
        padding: 0;

        box-sizing: border-box;
    }

    .nav-item {
        width: 100%;
        max-width: 100%;

        min-width: 0;

        box-sizing: border-box;
    }


    /* -----------------------------------------------------
       MOBILE NAV LINK
       ----------------------------------------------------- */

    .nav-link {
        width: 100%;
        max-width: 100%;

        min-height: 50px;

        display: flex;

        align-items: center;

        justify-content: space-between;

        padding:
            13px 14px;

        border-radius: 10px;

        font-size: 15px;

        font-weight: 650;

        text-align: left;

        box-sizing: border-box;
    }

    .nav-link:hover {
        background: #f8fafc;
    }

    .nav-link::after {
        display: none;
    }


    /* -----------------------------------------------------
       SERVICES
       ----------------------------------------------------- */

    .services-toggle {
        width: 100%;
        max-width: 100%;
    }

    .services-arrow {
        margin-left: auto;

        flex-shrink: 0;
    }

    .has-dropdown.is-open .services-arrow {
        transform:
            rotate(180deg);
    }


    /* -----------------------------------------------------
       MOBILE SERVICES DROPDOWN
       ----------------------------------------------------- */

    .nav__dropdown-menu {
        position: static;

        width: 100%;
        max-width: 100%;

        max-height: none;

        margin:
            4px 0 8px;

        padding: 10px;

        border-radius: 14px;

        background: #f8fafc;

        border:
            1px solid rgba(15, 23, 42, 0.06);

        box-shadow: none;

        overflow: visible;

        opacity: 1;

        visibility: visible;

        transform: none;

        display: none;

        box-sizing: border-box;
    }

    .has-dropdown.is-open .nav__dropdown-menu {
        display: block;
    }

    .nav__dropdown-menu::before {
        display: none;
    }


    /* -----------------------------------------------------
       DROPDOWN HEADER
       ----------------------------------------------------- */

    .nav__dropdown-header {
        padding:
            8px 6px 12px;

        margin-bottom: 8px;
    }

    .nav__dropdown-header h3 {
        font-size: 17px;
    }

    .nav__dropdown-header p {
        font-size: 11px;
    }


    /* -----------------------------------------------------
       MOBILE DROPDOWN GRID
       ----------------------------------------------------- */

    .nav__dropdown-grid {
        width: 100%;
        max-width: 100%;

        grid-template-columns: 1fr;

        gap: 4px;

        max-height: 48vh;

        overflow-x: hidden;

        overflow-y: auto;

        padding-right: 3px;

        box-sizing: border-box;
    }


    /* -----------------------------------------------------
       MOBILE DROPDOWN ITEMS
       ----------------------------------------------------- */

    .nav__dropdown-item {
        width: 100%;
        max-width: 100%;

        min-width: 0;

        padding: 10px;

        gap: 10px;

        background: #ffffff;

        box-sizing: border-box;
    }

    .nav__dropdown-item:hover {
        transform: none;

        box-shadow: none;
    }

    .nav__dropdown-icon {
        width: 36px;
        height: 36px;

        flex: 0 0 36px;

        font-size: 17px;
    }

    .nav__dropdown-item strong {
        font-size: 12px;
    }

    .nav__dropdown-item small {
        font-size: 10px;
    }


    /* -----------------------------------------------------
       MOBILE BOOK BUTTON
       ----------------------------------------------------- */

    .mobile-book-action {
        display: block;

        width: 100%;

        margin-top: 16px;

        padding-top: 16px;

        border-top:
            1px solid rgba(15, 23, 42, 0.08);

        box-sizing: border-box;
    }

    .mobile-book-action .btn-ship {
        width: 100%;

        min-height: 48px;
    }
}


/* =========================================================
   SMALL MOBILE — 480px AND BELOW
   ========================================================= */

@media (max-width: 480px) {


    .header-container {
        min-height: 64px;
        padding-left: 10px;
        padding-right: 10px;
        gap: 6px;
    }

    .brand-logo {
        width: 220px;
        height: 64px;

        flex: 0 0 220px;
    }

    .logo-img {
        width: 140px;
        height: auto;

        max-width: 220px;
        max-height: 64px;

        object-fit: contain;
        object-position: left center;

        transform: scale(1.15);
        transform-origin: left center;
    }

    /* -----------------------------------------------------
       MOBILE MENU BUTTON
       ----------------------------------------------------- */

    .mobile-menu-toggle {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
    }

    /* -----------------------------------------------------
       MOBILE DRAWER
       ----------------------------------------------------- */

    .main-nav {
        top: 64px !important;

        height:
            calc(100dvh - 64px);
    }


    /* -----------------------------------------------------
       TICKER
       ----------------------------------------------------- */

    .ticker-content {
        min-height: 32px;
    }

    .ticker-badge {
        font-size: 8px;
    }

    .ticker-text {
        font-size: 9px;
    }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 360px) {

    .header-container {
        padding-left: 10px;
        padding-right: 10px;

        gap: 6px;
    }

    .brand-logo {
        width: 190px;
        height: 56px;

        flex-basis: 190px;
    }

    .logo-img {
        width: 190px;
        height: 56px;

        max-width: 190px;
        max-height: 56px;
    }

    .mobile-menu-toggle {
        width: 40px;
        height: 40px;

        flex-basis: 40px;
    }
}

/* =========================================================
   PAGE SPACE FOR FIXED HEADER
   ========================================================= */

/* body:has(.site-header) main,
.site-header~main {
    padding-top: 78px;
} */

@media (max-width: 991px) {

    body:has(.site-header) main,
    .site-header~main {
        padding-top: 30px;
    }
}

@media (max-width: 480px) {

    body:has(.site-header) main,
    .site-header~main {
        padding-top: 0px;
    }
}
/* =========================================================
FIX HOME PAGE NAVBAR
========================================================= */

header.header {
position: fixed !important;
top: 0 !important;
left: 0 !important;
right: 0 !important;
width: 100% !important;
z-index: 5000 !important;
background: rgba(255, 255, 255, 0.98);
box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

/* Preserve the home header layout */
header.header .header__container {
min-height: 78px;
}

/* Tablet and mobile header height */
@media (max-width: 991px) {
header.header .header__container {
min-height: 68px;
}
}

@media (max-width: 480px) {
header.header .header__container {
min-height: 64px;
}
}
