/* =========================================================
   MEDICAL EQUIPMENT STORE
   HEADER STYLE 3
========================================================= */

.ms-header3 {
    width: 100%;
    position: relative;
    z-index: 9999;
}


/* =========================================================
   COMMON CONTAINER
========================================================= */

.ms-header3 .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 INFORMATION BAR
========================================================= */

.ms-header3-top {
    width: 100%;

    background: #4b286d;

    border-bottom: 1px solid rgba(255,255,255,0.18);
}


.ms-header3-top-inner {
    min-height: 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}


/* COMPANY */

.ms-header3-welcome {
    display: flex;
    align-items: center;

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    white-space: nowrap;
}


.ms-header3-welcome .ms-company-name {
    color: #ffffff;
}


/* =========================================================
   TOP CONTACT DETAILS
========================================================= */

.ms-header3-contact {
    display: flex;
    align-items: center;

    justify-content: flex-end;

    gap: 25px;
}


.ms-header3-contact-item {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    color: #ffffff !important;

    text-decoration: none !important;

    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}


.ms-header3-contact-item:hover {
    color: #ffffff !important;

    opacity: 0.85;

    transform: translateY(-1px);
}


/* =========================================================
   TOP CONTACT ICONS
========================================================= */

.ms-top-icon {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;
}


.ms-top-icon .dashicons {
    font-size: 17px;

    width: 17px;
    height: 17px;

    line-height: 17px;
}


/* PHONE */

.ms-phone-icon {
    color: #58d68d !important;
}


/* EMAIL */

.ms-email-icon {
    color: #ffb74d !important;
}


/* WHATSAPP */

.ms-whatsapp-icon {
    color: #25D366 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ms-whatsapp-svg {
    width: 19px;
    height: 19px;
    display: block;
    fill: #25D366;
}


/* =========================================================
   MAIN WHITE HEADER
========================================================= */

.ms-header3-main {
    width: 100%;

    background: #ffffff;

    border-bottom: 1px solid #eeeeee;

    box-shadow:
        0 4px 18px rgba(40,20,60,0.08);
}


.ms-header3-main-inner {
    min-height: 120px;

    padding-top: 22px;
    padding-bottom: 22px;

    display: flex;
    align-items: center;

    gap: 28px;

    box-sizing: border-box;
}


/* =========================================================
   LOGO
========================================================= */

.ms-header3-logo {
    flex: 0 0 180px;

    display: flex;
    align-items: center;

    min-width: 0;
}


.ms-header3-logo-link {
    display: flex;

    align-items: center;

    width: 100%;

    text-decoration: none !important;
}


.ms-header3-logo-image {
    display: block;

    width: auto;
    height: auto;

    max-width: 250px;
    max-height: 70px;

    object-fit: contain;

    object-position: left center;
}


.ms-header3-logo-text {
    color: #4b286d !important;

    font-size: 21px;
    font-weight: 700;

    line-height: 1.2;

    text-decoration: none !important;
}


/* =========================================================
   SEARCH
========================================================= */

.ms-header3-search {
    flex: 1;

    min-width: 0;
}


.ms-header3-search form {
    width: 100%;
    height: 54px;

    display: flex;
    align-items: stretch;

    background: #ffffff;

    border: 2px solid #16a34a;

    border-radius: 9px;

    overflow: hidden;

    box-sizing: border-box;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


.ms-header3-search form:focus-within {
    border-color: #15803d;

    box-shadow:
        0 0 0 3px rgba(22,163,74,0.12);
}


/* INPUT */

.ms-header3-search input[type="search"] {
    flex: 1;

    min-width: 0;

    width: 100%;
    height: 50px;

    padding: 0 18px;

    margin: 0;

    border: 0 !important;

    outline: none !important;

    background: #ffffff !important;

    color: #333333;

    font-size: 14px;

    box-shadow: none !important;
}


.ms-header3-search input[type="search"]::placeholder {
    color: #999999;
}


/* GREEN SEARCH BUTTON */

.ms-header3-search button {
    width: 60px;
    height: 50px;

    flex: 0 0 60px;

    padding: 0;
    margin: 0;

    border: 0 !important;

    outline: none !important;

    background: #16a34a !important;

    color: #ffffff !important;

    display: flex;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition:
        background 0.25s ease;
}


.ms-header3-search button:hover {
    background: #15803d !important;
}


.ms-header3-search button .dashicons {
    color: #ffffff !important;

    font-size: 22px;

    width: 22px;
    height: 22px;

    line-height: 22px;
}


/* =========================================================
   ACCOUNT / WISHLIST / CART
========================================================= */

.ms-header3-actions {
    display: flex;
    align-items: center;

    gap: 8px;

    flex-shrink: 0;
}


.ms-header3-action {
    width: 72px;
    min-height: 68px;

    padding: 8px 5px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 5px;

    text-decoration: none !important;

    background: #ffffff;

    border: 1px solid #e1d8eb;

    border-radius: 10px;

    box-sizing: border-box;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.ms-header3-action:hover {
    background: #faf7fd;

    border-color: #9b75ba;

    transform: translateY(-2px);

    box-shadow:
        0 5px 15px rgba(75,40,109,0.10);
}


/* ACTION TEXT */

.ms-header3-action small {
    color: #333333 !important;

    font-size: 10px;

    font-weight: 600;

    line-height: 1.2;
}


/* ACCOUNT */

.ms-account-action .dashicons {
    color: #4285f4 !important;
}


/* WISHLIST */

.ms-wishlist-action .dashicons {
    color: #e91e63 !important;
}


/* CART */

.ms-cart-action .dashicons {
    color: #f39c12 !important;
}


/* ACTION ICON SIZE */

.ms-header3-action .dashicons {
    font-size: 25px;

    width: 25px;
    height: 25px;

    line-height: 25px;
}


/* =========================================================
   CART COUNT
========================================================= */

.ms-cart-icon-wrap {
    position: relative;

    display: inline-flex;

    align-items: center;
    justify-content: center;
}


.ms-header3-cart-count {
    position: absolute;

    top: -9px;
    right: -12px;

    min-width: 18px;
    height: 18px;

    padding: 0 4px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #e53935;

    color: #ffffff;

    border-radius: 50%;

    font-size: 10px;
    font-weight: 700;

    line-height: 18px;

    box-sizing: border-box;
}


/* =========================================================
   PURPLE NAVIGATION
========================================================= */

.ms-header3-nav {
    width: 100%;

    background: #4b286d;

    border-top: 1px solid rgba(255,255,255,0.12);

    border-bottom: 1px solid rgba(0,0,0,0.10);

    box-shadow:
        0 4px 12px rgba(40,20,60,0.15);
}


.ms-header3-nav .ms-container {
    padding-left: 30px;
    padding-right: 30px;
}


.ms-header3-nav-inner {
    width: 100%;

    min-height: 58px;

    display: flex;

    align-items: stretch;

    box-sizing: border-box;
}


/* =========================================================
   NAVIGATION ITEMS
========================================================= */

.ms-header3-nav-item {
    flex: 1;

    min-height: 58px;

    padding: 0 12px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    color: #ffffff !important;

    text-decoration: none !important;

    font-size: 14px;
    font-weight: 600;

    border-right: 1px solid rgba(255,255,255,0.20);

    box-sizing: border-box;

    position: relative;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}


.ms-header3-nav-item:first-child {
    border-left: 1px solid rgba(255,255,255,0.20);
}


.ms-header3-nav-item:last-child {
    border-right: 0;
}


/* =========================================================
   COLOURFUL NAV ICONS
========================================================= */

.ms-header3-nav-item .dashicons {
    font-size: 21px;

    width: 21px;
    height: 21px;

    line-height: 21px;

    transition:
        transform 0.25s ease;
}


/* HOME - BLUE */

.ms-nav-home .dashicons {
    color: #42a5f5 !important;
}


/* SHOP - ORANGE */

.ms-nav-shop .dashicons {
    color: #ff9800 !important;
}


/* CATEGORIES - LIGHT BLUE */

.ms-nav-categories .dashicons {
    color: #7cdbff !important;
}


/* PRODUCTS - TEAL */

.ms-nav-products .dashicons {
    color: #2dd4bf !important;
}


/* ABOUT - YELLOW */

.ms-nav-about .dashicons {
    color: #ffd54f !important;
}


/* CONTACT - GREEN */

.ms-nav-contact .dashicons {
    color: #58d68d !important;
}


/* =========================================================
   NAV HOVER
========================================================= */

.ms-header3-nav-item:hover {
    background: #5d347d;

    color: #ffffff !important;
}


.ms-header3-nav-item:hover .dashicons {
    transform: scale(1.12);
}


/* =========================================================
   ACTIVE NAVIGATION
========================================================= */

.ms-header3-nav-item.active {
    background: #753504;

    color: #ffffff !important;
}


.ms-header3-nav-item.active:hover {
    background: #753504;

    color: #ffffff !important;
}


/* Keep colorful icon on active */

.ms-header3-nav-item.active .dashicons {
    transform: scale(1.05);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .ms-header3 .ms-container {
        padding-left: 20px;
        padding-right: 20px;
    }


    .ms-header3-main-inner {
        gap: 18px;
    }


    .ms-header3-logo {
        flex-basis: 190px;
    }


    .ms-header3-logo-image {
        max-width: 180px;
    }


    .ms-header3-contact {
        gap: 15px;
    }


    .ms-header3-contact-item {
        font-size: 12px;
    }


    .ms-header3-actions {
        gap: 5px;
    }


    .ms-header3-action {
        width: 64px;
        min-height: 64px;
    }


    .ms-header3-nav-item {
        font-size: 15px;

        gap: 6px;

        padding-left: 7px;
        padding-right: 7px;
    }

}


/* =========================================================
   MOBILE / TABLET
========================================================= */

@media (max-width: 850px) {

    /* TOP */

    .ms-header3-top-inner {
        justify-content: center;
    }


    .ms-header3-welcome {
        display: none;
    }


    .ms-header3-contact {
        justify-content: center;

        width: 100%;
    }


    /* MAIN */

    .ms-header3-main-inner {
        min-height: auto;

        padding-top: 20px;
        padding-bottom: 20px;

        display: flex;

        flex-direction: column;

        align-items: center;

        gap: 16px;
    }


    /* LOGO */

    .ms-header3-logo {
        width: 100%;

        flex: 0 0 auto;

        justify-content: center;

        text-align: center;
    }


    .ms-header3-logo-link {
        justify-content: center;
    }


    .ms-header3-logo-image {
        max-width: 200px;
        max-height: 75px;
    }


    /* SEARCH */

    .ms-header3-search {
        width: 100%;

        flex: 0 0 auto;
    }


    .ms-header3-search form {
        height: 52px;
    }


    .ms-header3-search input[type="search"] {
        height: 48px;
    }


    .ms-header3-search button {
        height: 48px;
    }


    /* ACTIONS */

    .ms-header3-actions {
        width: 100%;

        display: flex;

        justify-content: center;

        align-items: center;

        gap: 7px;
    }


    .ms-header3-action {
        width: 82px;

        min-height: 65px;
    }


    /* NAV */

    .ms-header3-nav-inner {
        display: flex;

        flex-wrap: nowrap;

        overflow: hidden;

        width: 100%;

        min-height: 58px;
    }


    .ms-header3-nav-item {
        flex: 1 1 0;

        min-width: 0;

        width: auto;

        min-height: 58px;

        padding: 4px 2px;

        flex-direction: column;

        gap: 3px;

        font-size: 10px;

        white-space: nowrap;
    }


    .ms-header3-nav-item .dashicons {
        font-size: 18px;

        width: 18px;
        height: 18px;

        line-height: 18px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 600px) {

    .ms-header3 .ms-container {
        padding-left: 10px;
        padding-right: 10px;
    }


    /* TOP */

    .ms-header3-top-inner {
        min-height: 42px;

        padding-top: 4px;
        padding-bottom: 4px;
    }


    .ms-header3-contact {
        gap: 10px;
    }


    .ms-header3-contact-item {
        font-size: 15px;

        gap: 2px;
    }


    .ms-top-icon {
        width: 16px;
        height: 16px;
    }


    .ms-top-icon .dashicons {
        font-size: 14px;

        width: 14px;
        height: 14px;

        line-height: 14px;
    }


    /* MAIN */

    .ms-header3-main-inner {
        padding-top: 18px;
        padding-bottom: 18px;

        gap: 14px;
    }


    /* LOGO */

    .ms-header3-logo-image {
        max-width: 170px;
        max-height: 65px;
    }


    /* SEARCH */

    .ms-header3-search form {
        height: 48px;

        border-width: 2px;
    }


    .ms-header3-search input[type="search"] {
        height: 44px;

        padding-left: 13px;
        padding-right: 8px;

        font-size: 13px;
    }


    .ms-header3-search button {
        width: 50px;

        flex-basis: 50px;

        height: 44px;
    }


    .ms-header3-search button .dashicons {
        font-size: 20px;

        width: 20px;
        height: 20px;

        line-height: 20px;
    }


    /* ACTIONS */

    .ms-header3-actions {
        gap: 5px;
    }


    .ms-header3-action {
        width: 72px;

        min-height: 60px;

        padding: 4px 4px;

        gap: 3px;
    }


    .ms-header3-action .dashicons {
        font-size: 21px;

        width: 21px;
        height: 21px;

        line-height: 21px;
    }


    .ms-header3-action small {
        font-size: 9px;
    }


    /* NAVIGATION */

    .ms-header3-nav .ms-container {
        padding-left: 4px;
        padding-right: 4px;
    }


    .ms-header3-nav-inner {
        min-height: 54px;
    }


    .ms-header3-nav-item {
        min-height: 54px;

        padding: 3px 1px;

        font-size: 8px;

        gap: 2px;
    }


    .ms-header3-nav-item .dashicons {
        font-size: 16px;

        width: 16px;
        height: 16px;

        line-height: 16px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .ms-header3 .ms-container {
        padding-left: 7px;
        padding-right: 7px;
    }


    .ms-header3-contact {
        gap: 7px;
    }


    .ms-header3-contact-item {
        font-size: 8px;
    }


    .ms-header3-action {
        width: 67px;

        min-height: 58px;
    }


    .ms-header3-action small {
        font-size: 8px;
    }


    .ms-header3-nav .ms-container {
        padding-left: 2px;
        padding-right: 2px;
    }


    .ms-header3-nav-item {
        min-height: 52px;

        font-size: 7px;

        gap: 1px;
    }


    .ms-header3-nav-item .dashicons {
        font-size: 15px;

        width: 15px;
        height: 15px;

        line-height: 15px;
    }

}