/* =========================================
   MAVI HAM
   HEADER + FOOTER
========================================= */

.mavi-header {
    direction: rtl;
    background: #fff;
    position: relative;
    z-index: 999;
    font-family: Vazirmatn, Vazir, sans-serif;
}

.mavi-header-container,
.mavi-footer-container {
    width: min(1380px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================
   TOP HEADER
========================================= */

.mavi-header-top {
    height: 92px;
    border-bottom: 1px solid #f0f0f0;
}

.mavi-header-top .mavi-header-container {
    height: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}


/* LOGO */

.mavi-header-logo {
    text-align: center;
}

.mavi-header-logo img {
    width: auto;
    max-width: 235px;
    max-height: 72px;
    display: block;
    margin: auto;
}


/* CONSULTATION */

.mavi-header-consultation {
    justify-self: start;
}

.mavi-header-consultation a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 150px;
    min-height: 48px;

    padding: 7px 16px;

    background: #2167e8;
    color: #fff;

    border-radius: 4px;

    text-decoration: none;

    transition: .2s ease;
}

.mavi-header-consultation a:hover {
    background: #1556ca;
    transform: translateY(-1px);
}

.mavi-consultation-title {
    font-size: 13px;
    font-weight: 600;
}

.mavi-consultation-phone {
    direction: ltr;
    font-size: 14px;
    margin-top: 2px;
}


/* CART */

.mavi-header-cart {
    justify-self: end;
}

.mavi-cart-link {
    display: flex;
    align-items: center;
    gap: 9px;

    color: #252525;
    text-decoration: none;

    font-size: 13px;
}

.mavi-cart-icon {
    position: relative;
    width: 29px;
    height: 29px;
}

.mavi-cart-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mavi-cart-count {
    position: absolute;

    top: -7px;
    right: -7px;

    width: 18px;
    height: 18px;

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

    background: #2167e8;
    color: white;

    border-radius: 50%;

    font-size: 10px;
}

.mavi-cart-total {
    direction: rtl;
}


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

.mavi-navigation {
    height: 55px;
    background: #fff;
}

.mavi-navigation .mavi-header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mavi-main-menu {
    flex: 1;
}

.mavi-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 32px;

    margin: 0;
    padding: 0;
}

.mavi-menu li {
    margin: 0;
}

.mavi-menu a {
    color: #202020;
    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    transition: color .2s ease;
}

.mavi-menu a:hover {
    color: #2167e8;
}


/* SEARCH */

.mavi-header-search {
    position: relative;
    margin-right: 30px;
}

.mavi-search-button {
    border: 0;
    background: transparent;
    padding: 8px;
    cursor: pointer;
}

.mavi-search-button svg {
    width: 22px;
    height: 22px;

    fill: none;
    stroke: #222;
    stroke-width: 1.7;
}

.mavi-search-form {
    display: none;

    position: absolute;

    top: 42px;
    left: 0;

    width: 300px;

    padding: 8px;

    background: #fff;

    border: 1px solid #eee;
    border-radius: 5px;

    box-shadow: 0 10px 35px rgba(0,0,0,.1);

    gap: 6px;
}

.mavi-search-form.active {
    display: flex;
}

.mavi-search-form input {
    flex: 1;

    border: 1px solid #ddd;
    border-radius: 4px;

    padding: 9px 11px;

    font-family: inherit;
}

.mavi-search-form button {
    border: 0;

    background: #2167e8;
    color: white;

    padding: 0 13px;

    border-radius: 4px;

    cursor: pointer;
}


/* =========================================
   FOOTER
========================================= */

.mavi-footer {
    direction: rtl;
    background: #151a21;
    color: #fff;

    font-family: Vazirmatn, Vazir, sans-serif;
}

.mavi-footer-main {
    padding: 65px 0 50px;
}

.mavi-footer-main .mavi-footer-container {
    display: grid;

    grid-template-columns:
        1.6fr
        1fr
        1fr
        1.2fr;

    gap: 55px;
}


/* FOOTER LOGO */

.mavi-footer-logo {
    margin-bottom: 18px;
}

.mavi-footer-logo img {
    max-width: 210px;
    max-height: 70px;

    filter: brightness(0) invert(1);
}

.mavi-footer-about p {
    color: #b7bcc4;

    line-height: 2;

    font-size: 13px;

    margin: 0 0 17px;
}

.mavi-footer-more {
    color: #fff;
    text-decoration: none;

    font-size: 13px;
}

.mavi-footer-more span {
    margin-right: 5px;
}


/* FOOTER TITLES */

.mavi-footer-column h3 {
    position: relative;

    font-size: 16px;

    margin: 0 0 24px;

    padding-bottom: 12px;
}

.mavi-footer-column h3::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: 0;

    width: 35px;
    height: 2px;

    background: #2167e8;
}


/* FOOTER LINKS */

.mavi-footer-column ul {
    list-style: none;

    margin: 0;
    padding: 0;
}

.mavi-footer-column li {
    margin-bottom: 12px;
}

.mavi-footer-column li a {
    color: #aeb4bd;

    text-decoration: none;

    font-size: 13px;

    transition: .2s ease;
}

.mavi-footer-column li a:hover {
    color: #fff;
    padding-right: 4px;
}


/* CONTACT */

.mavi-contact-item {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 17px;
}

.mavi-contact-icon {
    width: 36px;
    height: 36px;

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

    border: 1px solid #343b45;
    border-radius: 50%;
}

.mavi-contact-item small {
    display: block;

    color: #8f97a2;

    font-size: 10px;

    margin-bottom: 2px;
}

.mavi-contact-item a {
    direction: ltr;

    display: block;

    color: #fff;

    text-decoration: none;

    font-size: 13px;
}


/* TRUST */

.mavi-footer-trust {
    border-top: 1px solid #2a3038;
    border-bottom: 1px solid #2a3038;

    padding: 17px 0;
}

.mavi-footer-trust .mavi-footer-container {
    display: flex;

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

.mavi-trust-item {
    color: #c2c7ce;

    font-size: 12px;

    display: flex;
    align-items: center;

    gap: 8px;
}

.mavi-trust-item strong {
    color: #2167e8;

    font-size: 18px;
}


/* BOTTOM */

.mavi-footer-bottom {
    padding: 17px 0;

    color: #818995;

    font-size: 11px;
}

.mavi-footer-bottom .mavi-footer-container {
    display: flex;

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

.mavi-footer-bottom a {
    color: #9299a3;

    text-decoration: none;

    margin-right: 20px;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .mavi-header-container,
    .mavi-footer-container {
        width: min(100% - 24px, 1380px);
    }

    .mavi-header-top {
        height: 70px;
    }

    .mavi-header-top .mavi-header-container {
        grid-template-columns: 1fr auto 1fr;
    }

    .mavi-header-logo img {
        max-width: 150px;
        max-height: 55px;
    }

    .mavi-header-consultation a {
        min-width: 0;

        padding: 7px 10px;
    }

    .mavi-consultation-title {
        font-size: 10px;
    }

    .mavi-consultation-phone {
        font-size: 10px;
    }

    .mavi-cart-total {
        display: none;
    }

    .mavi-navigation {
        height: 50px;

        border-bottom: 1px solid #eee;
    }

    .mavi-main-menu {
        display: none;
    }

    .mavi-header-search {
        margin-right: auto;
    }

    .mavi-search-form {
        position: fixed;

        top: 70px;
        right: 12px;
        left: 12px;

        width: auto;
    }


    /* FOOTER */

    .mavi-footer-main {
        padding: 40px 0 25px;
    }

    .mavi-footer-main .mavi-footer-container {
        grid-template-columns: 1fr 1fr;

        gap: 35px 25px;
    }

    .mavi-footer-about {
        grid-column: 1 / -1;
    }

    .mavi-footer-trust .mavi-footer-container {
        flex-direction: column;
        align-items: flex-start;

        gap: 12px;
    }

    .mavi-footer-bottom .mavi-footer-container {
        flex-direction: column;

        gap: 12px;

        align-items: flex-start;
    }

    .mavi-footer-bottom a {
        margin-right: 0;
        margin-left: 15px;
    }

}

@media (max-width: 480px) {

    .mavi-footer-main .mavi-footer-container {
        grid-template-columns: 1fr;
    }

    .mavi-footer-about {
        grid-column: auto;
    }

}