/* ============================================================
   JOVIO HEADER V3
   Desktop visual rebuild
   ============================================================ */

.jovio-desktop-header {
    display: none;
}

.jovio-header-container {
    width: calc(100% - 120px);
    max-width: 1500px;
    margin: 0 auto;
}


/* ============================================================
   TOP BAR
   ============================================================ */

.jovio-header-topbar {
    height: 50px !important;
    background: #7773bc !important;
    color: #fff;
}

.jovio-header-topbar-inner {
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    direction: ltr;
}

.jovio-header-contact {
    height: 100%;

    display: flex;
    align-items: center;

    gap: 14px;
}

.jovio-header-contact a,
.jovio-header-language a {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    color: #fff !important;

    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1;

    text-decoration: none !important;
}

.jovio-header-contact i {
    font-size: 20px !important;
}

.jovio-header-whatsapp i {
    font-size: 21px !important;
}

.jovio-top-separator {
    width: 1px;
    height: 24px;

    background: rgba(255,255,255,.45);
}

.jovio-header-language {
    direction: ltr;
}

.jovio-header-language a {
    font-size: 16px !important;
}

.jovio-header-language i {
    font-size: 21px !important;
}


/* ============================================================
   MAIN ROW
   ============================================================ */

.jovio-header-main {
    height: 112px !important;

    display: flex;
    align-items: center;

    background: #fff;

    border-bottom: 1px solid #eeeeF4;
}

.jovio-header-main-grid {
    height: 100%;

    display: grid;

    grid-template-columns:
        230px minmax(560px, 820px) 230px;

    grid-template-areas:
        "actions search logo";

    align-items: center;
    justify-content: space-between;

    column-gap: 45px;

    direction: ltr;
}


/* LOGO */

.jovio-header-logo {
    grid-area: logo;

    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.jovio-header-logo a {
    display: flex;
    align-items: center;
}

.jovio-header-logo img {
    width: 170px !important;
    max-width: 170px !important;
    max-height: 80px !important;

    object-fit: contain;
}


/* ============================================================
   SEARCH
   ============================================================ */

.jovio-header-search {
    grid-area: search;

    width: 100%;
    max-width: 820px;

    margin: 0 auto;
}

.jovio-header-search form {
    width: 100%;
    margin: 0;
}

.jovio-search-field {
    position: relative;

    width: 100%;
    height: 62px;

    direction: rtl;
}

.jovio-search-field input {
    width: 100%;
    height: 62px !important;

    padding:
        0 30px 0 92px !important;

    border:
        1.5px solid #7773bc !important;

    border-radius: 32px !important;

    background: #fff;

    outline: none;

    color: #292934;

    font-size: 18px !important;
    font-weight: 500 !important;

    text-align: right;
}

.jovio-search-field input::placeholder {
    color: #8b87c3;
    opacity: 1;
}

.jovio-search-field input:focus {
    border-color: #7773bc !important;

    box-shadow:
        0 0 0 4px rgba(119,115,188,.08);
}

.jovio-search-field button {
    position: absolute;

    top: 0;
    left: 0;

    width: 84px !important;
    height: 62px !important;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0 !important;

    border-radius:
        32px 0 0 32px !important;

    background: #7773bc !important;

    color: #fff !important;

    cursor: pointer;
}

.jovio-search-field button i {
    font-size: 32px !important;
}


/* ============================================================
   ACTION ICONS
   ============================================================ */

.jovio-header-actions {
    grid-area: actions;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 22px;

    direction: ltr;
}

.jovio-header-action-btn {
    position: relative;

    width: 45px !important;
    height: 50px !important;

    padding: 0 !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    border: 0 !important;

    background: transparent !important;

    color: #3c3c43 !important;

    cursor: pointer;
}

.jovio-header-action-btn i {
    font-size: 32px !important;
    line-height: 1 !important;
}

.jovio-header-wishlist i {
    color: #ff5757 !important;
}

.jovio-header-cart .cart-count {
    position: absolute;

    top: -1px !important;
    right: -3px !important;

    min-width: 22px !important;
    height: 22px !important;

    padding: 0 5px !important;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50px;

    background: #7773bc !important;

    color: #fff !important;

    font-size: 11px !important;
    font-weight: 700 !important;

    line-height: 22px !important;
}


/* ============================================================
   NAVIGATION
   ============================================================ */

.jovio-header-nav {
    height: 70px !important;

    display: flex;
    align-items: center;

    background: #fff;

    border-bottom:
        1px solid #efeff4;
}

.jovio-header-nav nav {
    width: 100%;
}

.jovio-desktop-nav-list {
    width: 100%;
    height: 70px;

    margin: 0 !important;
    padding: 0 !important;

    display: flex;
    align-items: center;
    justify-content: space-between;

    list-style: none;

    direction: rtl;
}

.jovio-desktop-nav-list > li {
    position: relative;

    margin: 0 !important;
    padding: 0 !important;
}

.jovio-desktop-nav-list > li > a {
    min-height: 48px;

    padding:
        10px 25px !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    border-radius: 30px;

    color: #25252c !important;

    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.35;

    white-space: nowrap;

    text-decoration: none !important;

    transition:
        color .2s ease,
        background-color .2s ease;
}

.jovio-desktop-nav-list > li > a:hover {
    color: #7773bc !important;
}


/* ACTIVE */

.jovio-desktop-nav-list > li > a.active {
    min-width: 140px;

    padding:
        10px 30px !important;

    background: #7773bc !important;

    color: #fff !important;

    font-weight: 700 !important;

    box-shadow:
        0 6px 16px rgba(119,115,188,.20);
}


/* ============================================================
   CATEGORY DROPDOWN
   ============================================================ */

.jovio-nav-categories-toggle i {
    font-size: 18px !important;
}

.jovio-nav-dropdown {
    position: absolute;

    top: calc(100% + 8px);
    right: 0;

    width: 270px;

    margin: 0;
    padding: 10px;

    visibility: hidden;
    opacity: 0;

    transform: translateY(8px);

    border:
        1px solid #ebebf1;

    border-radius: 15px;

    background: #fff;

    box-shadow:
        0 15px 40px rgba(35,32,80,.13);

    list-style: none;

    z-index: 9999;

    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;
}

.jovio-nav-categories:hover
.jovio-nav-dropdown {
    visibility: visible;
    opacity: 1;

    transform: translateY(0);
}

.jovio-nav-dropdown li {
    margin: 0;
}

.jovio-nav-dropdown li a {
    width: 100%;

    padding:
        11px 14px;

    display: block;

    border-radius: 9px;

    color: #303039 !important;

    font-size: 15px !important;
    font-weight: 600 !important;

    text-align: right;

    text-decoration: none !important;
}

.jovio-nav-dropdown li a:hover {
    background: #f4f3fb;

    color: #7773bc !important;
}


/* ============================================================
   DESKTOP ONLY
   ============================================================ */

@media (min-width: 992px) {

    .jovio-desktop-header {
        display: block !important;
    }

    .header-wrapper > .header-top,
    .header-wrapper > .header-middle,
    .header-wrapper > .header-area {
        display: none !important;
    }

}


/* ============================================================
   LAPTOP
   ============================================================ */

@media (min-width: 992px) and (max-width: 1450px) {

    .jovio-header-container {
        width: calc(100% - 60px);
    }

    .jovio-header-main-grid {
        grid-template-columns:
            180px minmax(500px, 720px) 180px;

        column-gap: 28px;
    }

    .jovio-header-search {
        max-width: 720px;
    }

    .jovio-header-logo img {
        width: 145px !important;
        max-width: 145px !important;
    }

    .jovio-desktop-nav-list > li > a {
        padding:
            10px 16px !important;

        font-size: 18px !important;
    }

}


/* ============================================================
   MOBILE + TABLET
   Existing header
   ============================================================ */

@media (max-width: 991px) {

    .jovio-desktop-header {
        display: none !important;
    }

}


/* ============================================================
   JOVIO — DESKTOP NAV ALIGNMENT
   About -------- [ Home / Girls / Boys / Categories ] -------- Contact
   ============================================================ */

@media (min-width: 992px) {

    .jovio-desktop-nav-list {
        display: grid !important;

        grid-template-columns:
            1fr
            max-content
            max-content
            max-content
            max-content
            1fr !important;

        column-gap: 42px !important;

        align-items: center !important;

        justify-content: initial !important;

        direction: rtl !important;
    }


    /* عن جوفيو */
    .jovio-desktop-nav-list > li:nth-child(1) {
        justify-self: start;
    }


    /* تواصل معنا */
    .jovio-desktop-nav-list > li:last-child {
        justify-self: end;
    }


    /*
       The four center links:
       الرئيسية - بنات - أولاد - كل الأقسام
    */
    .jovio-desktop-nav-list > li:nth-child(2),
    .jovio-desktop-nav-list > li:nth-child(3),
    .jovio-desktop-nav-list > li:nth-child(4),
    .jovio-desktop-nav-list > li:nth-child(5) {
        justify-self: center;
    }

}


@media (min-width: 992px) and (max-width: 1250px) {

    .jovio-desktop-nav-list {
        column-gap: 26px !important;
    }

}
