/* =========================================================
   MEDICAL EQUIPMENT STORE
   HEADER STYLE 2
========================================================= */

.ms-header2 {
    width: 100%;
    position: relative;
    z-index: 9999;
}


/* =========================================================
   COMMON CONTAINER
========================================================= */

.ms-header2 .ms-container {
    width: 100%;
    max-width: 1400px;

    margin-left: auto;
    margin-right: auto;

    padding-left: 30px;
    padding-right: 30px;

    box-sizing: border-box;
}


/* =========================================================
   TOP PURPLE BAR
========================================================= */

.ms-header2-top {
    width: 100%;

    background: #4b286d;

    border-bottom: 1px solid rgba(255,255,255,0.16);
}


.ms-header2-top-inner {
    min-height: 38px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* COMPANY NAME */

.ms-header2-welcome {
    display: flex;
    align-items: center;

    color: #ffffff;

    font-size: 15px;
    font-weight: 700;

    white-space: nowrap;
}


.ms-company-name {
    color: #ffffff;
}


/* =========================================================
   TOP CONTACT DETAILS
========================================================= */

.ms-header2-contact {
    display: flex;
    align-items: center;

    justify-content: flex-end;

    gap: 25px;
}


.ms-header2-contact-item {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    color: #ffffff !important;

    text-decoration: none !important;

    font-size: 15px;
    font-weight: 700;

    white-space: nowrap;

    transition: opacity 0.2s ease;
}


.ms-header2-contact-item:hover {
    color: #ffffff !important;

    opacity: 0.85;
}


/* TOP ICONS */

.ms-top-icon {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    font-size: 15px;

    font-weight: 800;
}


/* PHONE */

.ms-phone-icon {
    color: #58d68d !important;
}


/* EMAIL */

.ms-email-icon {
    color: #f55d05 !important;
}


/* WHATSAPP */

.ms-whatsapp-icon {
    color: #05ff62 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ms-whatsapp-svg {
    width: 12px;
    height: 12px;
    display: block;
    fill: #05ff62;
}


/* =========================================================
   MAIN PURPLE AREA
========================================================= */

.ms-header2-main {
    width: 100%;

    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 90% 15%,
            rgba(255,255,255,0.10),
            transparent 26%
        ),
        linear-gradient(
            135deg,
            #382052 0%,
            #4b286d 50%,
            #68408b 100%
        );
}


/* DECORATIVE CIRCLE */

.ms-header2-main::before {
    content: "";

    position: absolute;

    width: 430px;
    height: 230px;

    right: -180px;
    top: -200px;

    border-radius: 50%;

    background: rgba(255,255,255,0.05);

    pointer-events: none;
}


/* SECOND DECORATION */

.ms-header2-main::after {
    content: "";

    position: absolute;

    width: 350px;
    height: 150px;

    left: -230px;
    bottom: -270px;

    border-radius: 50%;

    background: rgba(255,255,255,0.035);

    pointer-events: none;
}


/* =========================================================
   MAIN INNER
========================================================= */

.ms-header2-main-inner {
    min-height: 180px;

    padding-top: 50px;
    padding-bottom: 15px;

    display: flex;
    align-items: center;

    gap: 32px;

    position: relative;
    z-index: 2;

    transform: translateY(-30px);
}

/* =========================================================
   LOGO
========================================================= */

.ms-header2-logo {
    flex: 0 0 245px;

    display: flex;
    align-items: center;

    min-width: 0;
}


.ms-header2-logo-link {
    display: flex;

    align-items: center;

    width: 100%;

    text-decoration: none !important;
}


.ms-header2-logo-image {
    display: block;

    width: auto;
    height: auto;

    max-width: 200px;
    max-height: 60px;

    object-fit: contain;

    object-position: left center;
}


.ms-header2-logo-text {
    color: #ffffff !important;

    font-size: 21px;
    font-weight: 700;

    line-height: 1.2;

    text-decoration: none !important;
}


/* =========================================================
   SEARCH
========================================================= */

.ms-header2-search {
    flex: 1;

    min-width: 0;
}


.ms-header2-search form {
    width: 100%;
    height: 58px;

    display: flex;
    align-items: stretch;

    background: #ffffff;

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 8px 25px rgba(20,10,35,0.20);
}


/* INPUT */

.ms-header2-search input[type="search"] {
    flex: 1;

    min-width: 0;

    width: 100%;
    height: 58px;

    padding: 0 20px;

    margin: 0;

    border: 0 !important;

    outline: none !important;

    background: #ffffff !important;

    color: #333333;

    font-size: 14px;
    font-weight: 800;

    box-shadow: none !important;
}


.ms-header2-search input[type="search"]::placeholder {
    color: #999999;
}


/* GREEN SEARCH BUTTON */

.ms-header2-search button {
    width: 65px;
    height: 58px;

    flex: 0 0 65px;

    padding: 0;
    margin: 0;

    border: 0 !important;

    outline: none !important;

    background: #b34b05 !important;

    color: #ffffff !important;

    display: flex;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition: background 0.25s ease;
}


.ms-header2-search button:hover {
    background: #118c55 !important;
}


.ms-header2-search button .dashicons {
    color: #ffffff !important;

    font-size: 22px;

    width: 22px;
    height: 22px;

    line-height: 22px;
}


/* =========================================================
   ACCOUNT / WISHLIST / CART
========================================================= */

.ms-header2-actions {
    display: flex;
    align-items: center;

    flex-shrink: 0;
}


.ms-header2-action {
    min-width: 75px;

    min-height: 70px;

    padding: 0 14px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 7px;

    text-decoration: none !important;

    border-left: 1px solid rgba(255,255,255,0.20);

    box-sizing: border-box;
}


.ms-header2-action:first-child {
    border-left: 0;
}


/* ACTION TEXT */

.ms-header2-action small {
    color: #ffffff !important;

    font-size: 11px;

    font-weight: 500;

    line-height: 1.2;
}


/* ACCOUNT */

.ms-header2-action .ms-account-icon {
    color: #58c7f3 !important;
}


/* WISHLIST */

.ms-header2-action .ms-wishlist-icon {
    color: #ff6680 !important;
}


/* CART */

.ms-header2-action .ms-cart-icon {
    color: #ffb74d !important;
}


/* ICON SIZE */

.ms-header2-action .dashicons {
    font-size: 25px;

    width: 25px;
    height: 25px;

    line-height: 25px;
}


/* =========================================================
   FLOATING NAVIGATION
========================================================= */

.ms-header2-nav {
    position: relative;

    margin-top: -45px;

    padding-left: 20px;
    padding-right: 20px;

    z-index: 30;
}


.ms-header2-nav .ms-container {
    padding-left: 0;
    padding-right: 0;
}


.ms-header2-nav-inner {
    width: 100%;

    min-height: 50px;

    padding: 7px;

    background: #ffffff;

    border-radius: 15px;

    box-shadow:
        0 12px 35px rgba(40,20,60,0.18);

    display: flex;

    align-items: center;

    box-sizing: border-box;
}


/* =========================================================
   NAVIGATION ITEMS
========================================================= */

.ms-header2-nav-item {
    flex: 1;

    min-height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    color: #33243e !important;

    text-decoration: none !important;

    font-size: 14px;
    font-weight: 600;

    border-right: 1px solid #eeeeee;

    border-radius: 10px;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}


.ms-header2-nav-item:last-child {
    border-right: 0;
}


/* NAV ICON */

.ms-header2-nav-item .dashicons {
    color: #633c85;

    font-size: 18px;

    width: 18px;
    height: 18px;

    line-height: 18px;

    transition: color 0.25s ease;
}


/* =========================================================
   ACTIVE PAGE
========================================================= */

.ms-header2-nav-item.active {
    background: #4b286d;

    color: #ffffff !important;
}


.ms-header2-nav-item.active .dashicons {
    color: #ffffff !important;
}


/* =========================================================
   HOVER
========================================================= */

.ms-header2-nav-item:not(.active):hover {
    background: #4b286d;

    color: #ffffff !important;
}


.ms-header2-nav-item:not(.active):hover .dashicons {
    color: #ffffff !important;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .ms-header2-main-inner {
        gap: 20px;
    }


    .ms-header2-logo {
        flex-basis: 190px;
    }


    .ms-header2-logo-image {
        max-width: 185px;
    }


    .ms-header2-contact {
        gap: 15px;
    }


    .ms-header2-action {
        min-width: 65px;

        padding-left: 9px;
        padding-right: 9px;
    }


    .ms-header2-nav-item {
        font-size: 13px;

        gap: 6px;
    }

}


/* =========================================================
   MOBILE / TABLET
========================================================= */

@media (max-width: 850px) {


    /* TOP */

    .ms-header2-top-inner {
        justify-content: center;
    }


    .ms-header2-welcome {
        display: none;
    }


    .ms-header2-contact {
        justify-content: center;

        width: 100%;
    }


    /* MAIN */

    .ms-header2-main-inner {
        min-height: auto;

        padding-top: 8px;
        padding-bottom: 25px;

        flex-wrap: wrap;

        justify-content: center;
    }


    /* LOGO */

    .ms-header2-logo {
        flex: 0 0 100%;

        justify-content: center;
    }


    .ms-header2-logo-link {
        justify-content: center;
    }


    .ms-header2-logo-image {
        max-width: 220px;
        max-height: 85px;
    }


    /* ACTIONS */

    .ms-header2-actions {
        order: 2;
    }


    /* SEARCH */

    .ms-header2-search {
        flex: 0 0 100%;

        order: 3;
    }


    /* NAV */

    .ms-header2-nav {
        margin-top: -40px;
    }


    .ms-header2-nav-inner {
        overflow-x: auto;

        justify-content: flex-start;

        scrollbar-width: none;
    }


    .ms-header2-nav-inner::-webkit-scrollbar {
        display: none;
    }


    .ms-header2-nav-item {
        flex: 0 0 120px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 700px) {


    .ms-header2 .ms-container {
        padding-left: 15px;
        padding-right: 15px;
    }


    /* TOP CONTACT */

    .ms-header2-top-inner {
        min-height: 45px;
    }


    .ms-header2-contact {
        gap: 13px;
    }


    .ms-header2-contact-item {
        font-size: 15px;

        gap: 5px;
    }


    .ms-top-icon {
        font-size: 14px;
    }


    /* MAIN */

    .ms-header2-main-inner {
        padding-top: 23px;
        padding-bottom: 60px;
    }


    /* LOGO */

    .ms-header2-logo-image {
        max-width: 200px;
        max-height: 78px;
    }


    /* SEARCH */

    .ms-header2-search form {
        height: 52px;
    }


    .ms-header2-search input[type="search"] {
        height: 52px;

        padding-left: 14px;
        padding-right: 10px;

        font-size: 13px;
    }


    .ms-header2-search button {
        width: 55px;

        flex-basis: 55px;

        height: 52px;
    }


    /* ACTIONS */

    .ms-header2-action {
        min-width: 70px;

        padding-left: 7px;
        padding-right: 7px;
    }


    .ms-header2-action .dashicons {
        font-size: 22px;

        width: 22px;
        height: 22px;

        line-height: 22px;
    }


    .ms-header2-action small {
        font-size: 10px;
    }


    /* NAV */

    .ms-header2-nav-item {
        flex: 0 0 105px;

        min-height: 48px;

        font-size: 12px;

        gap: 6px;
    }


    .ms-header2-nav-item .dashicons {
        font-size: 15px;

        width: 15px;
        height: 15px;

        line-height: 15px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .ms-header2-contact {
        gap: 9px;
    }


    .ms-header2-contact-item {
        font-size: 9px;
    }


    .ms-header2-action {
        min-width: 64px;
    }


    .ms-header2-nav-item {
        flex-basis: 100px;
    }

}

/* =========================================================
   MOBILE HEADER FIX - STYLE 2
========================================================= */

@media (max-width: 850px) {

    /* Main purple section */
    .ms-header2-main {
        overflow: hidden !important;
    }

    .ms-header2-main::before,
    .ms-header2-main::after {
        pointer-events: none;
    }

    .ms-header2-main-inner {
        min-height: auto !important;

        padding-top: 25px !important;
        padding-bottom: 80px !important;

        display: flex;
        flex-direction: column;
        align-items: center;

        gap: 20px;

        transform: none !important;
        top: auto !important;
        margin-top: 0 !important;
    }

    /* LOGO */
    .ms-header2-logo {
        width: 100%;
        flex: 0 0 auto !important;

        display: flex;
        justify-content: center;
        align-items: center;

        padding: 0 !important;

        transform: none !important;

        order: 1;
    }

    .ms-header2-logo-link {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .ms-header2-logo-image {
        max-width: 190px;
        max-height: 75px;

        width: auto;
        height: auto;

        object-fit: contain;
    }

    /* SEARCH */
    .ms-header2-search {
        width: 100%;
        flex: 0 0 auto;

        order: 2;

        transform: none !important;
    }

    .ms-header2-search form {
        width: 100%;
        height: 52px;
    }

    /* ACCOUNT / WISHLIST / CART */
    .ms-header2-actions {
        width: 100%;

        display: flex;
        justify-content: center;
        align-items: center;

        order: 3;

        transform: none !important;

        gap: 5px;
    }

    .ms-header2-action {
        min-width: 80px;
        padding: 5px 10px;
    }

    /* NAVIGATION */
    .ms-header2-nav {
        margin-top: -50px !important;

        position: relative;
        z-index: 50;
    }

    .ms-header2-nav-inner {
        min-height: 60px;

        overflow-x: auto;

        display: flex;
        align-items: center;

        padding: 6px;

        border-radius: 12px;

        white-space: nowrap;
    }

    .ms-header2-nav-item {
        flex: 0 0 105px;

        min-height: 48px;

        font-size: 12px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 600px) {

    .ms-header2-top-inner {
        min-height: 42px;

        padding-top: 5px;
        padding-bottom: 5px;
    }


    /* Top contact row */
    .ms-header2-contact {
        width: 100%;

        display: flex;
        justify-content: center;
        align-items: center;

        gap: 10px;
    }

    .ms-header2-contact-item {
        font-size: 10px;
        white-space: nowrap;
    }


    /* Main header */
    .ms-header2-main-inner {
        padding-top: 20px !important;
        padding-bottom: 75px !important;

        gap: 16px;
    }


    /* Logo */
    .ms-header2-logo-image {
        max-width: 165px;
        max-height: 65px;
    }


    /* Search */
    .ms-header2-search form {
        height: 48px;
    }

    .ms-header2-search input[type="search"] {
        padding: 0 14px;

        font-size: 13px;
    }

    .ms-header2-search button {
        width: 52px;
    }


    /* Actions */
    .ms-header2-action {
        min-width: 70px;

        padding: 4px 6px;
    }

    .ms-header2-action .dashicons {
        font-size: 21px;
        width: 21px;
        height: 21px;
    }

    .ms-header2-action small {
        font-size: 9px;
    }


    /* Navigation */
    .ms-header2-nav {
        margin-top: -45px !important;
    }

    .ms-header2-nav-inner {
        min-height: 55px;

        padding: 5px;
    }

    .ms-header2-nav-item {
        flex: 0 0 100px;

        min-height: 45px;

        font-size: 11px;

        gap: 5px;
    }

}

/* =========================================================
   MOBILE NAVIGATION - ALL 6 ITEMS VISIBLE
========================================================= */

@media (max-width: 850px) {

    .ms-header2-nav {
        padding: 0 6px !important;
    }

    .ms-header2-nav-inner {
        width: 100% !important;
        max-width: 100% !important;

        display: flex !important;
        flex-wrap: nowrap !important;

        overflow: hidden !important;

        padding: 4px !important;

        gap: 0 !important;
    }

    .ms-header2-nav-item {
        flex: 1 1 0 !important;

        width: auto !important;
        min-width: 0 !important;

        min-height: 48px;

        padding: 3px 2px !important;

        display: flex !important;
        flex-direction: column !important;

        align-items: center;
        justify-content: center;

        gap: 3px;

        font-size: 9px !important;

        white-space: nowrap;

        border-right: 1px solid #eee;
    }

    .ms-header2-nav-item .dashicons {
        font-size: 16px !important;

        width: 16px;
        height: 16px;
    }

    .ms-header2-nav-item:last-child {
        border-right: 0;
    }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 600px) {

    .ms-header2-nav {
        padding: 0 4px !important;
    }

    .ms-header2-nav-inner {
        padding: 3px !important;

        border-radius: 10px;
    }

    .ms-header2-nav-item {
        min-height: 46px;

        padding: 2px 1px !important;

        font-size: 8px !important;

        gap: 2px;
    }

    .ms-header2-nav-item .dashicons {
        font-size: 15px !important;

        width: 15px;
        height: 15px;
    }

}