/* ============================================================
   A1 CASH & CARRY
   MEGA MENU
============================================================ */


/* ============================================================
   HEADER
============================================================ */

.main-header {

    position: sticky;

    top: 0;

    z-index: 1000;

    overflow: visible;

}


/* ============================================================
   MEGA MENU
============================================================ */

.mega-menu {

    position: absolute;

    top: 100%;

    left: 0;

    width: 100%;

    background: #ffffff;

    z-index: 99999;

    display: none;

    padding: 28px 35px;

    border-top:
        1px solid #e5e7eb;

    border-radius:
        0 0 14px 14px;

    box-shadow:
        0 15px 40px
        rgba(0, 0, 0, 0.18);

}


/* ============================================================
   OPEN
============================================================ */

.mega-menu.show {

    display: block;

}


/* ============================================================
   CONTENT
============================================================ */

.mega-menu-content {

    width:
        min(1400px, 95%);

    margin:
        0 auto;

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 35px;

}


/* ============================================================
   CATEGORY
============================================================ */

.mega-category {

    min-width: 0;

}


/* ============================================================
   CATEGORY TITLE
============================================================ */

.mega-category h3 {

    display: flex;

    align-items: center;

    gap: 9px;

    margin:
        0 0 14px;

    font-size: 16px;

    font-weight: 700;

}


/* ICON */

.mega-category h3 i {

    color:
        #087f23;

    font-size:
        17px;

}


/* CATEGORY LINK */

.mega-category h3 a {

    color:
        #087f23;

    text-decoration:
        none;

    font-weight:
        700;

}


.mega-category h3 a:hover {

    color:
        #045d19;

}


/* ============================================================
   SUB CATEGORY LINKS
============================================================ */

.mega-subcategory {

    display: block;

    color:
        #667085;

    font-size:
        13px;

    line-height:
        1.4;

    text-decoration:
        none;

    padding:
        6px 0;

    transition:
        all 0.2s ease;

}


.mega-subcategory:hover {

    color:
        #087f23;

    padding-left:
        7px;

}


/* ============================================================
   ALL CATEGORIES BUTTON
============================================================ */

.category-menu-btn {

    cursor:
        pointer;

    border:
        none;

}


.category-menu-btn.menu-open {

    background:
        #05651b;

}


/* ARROW */

.category-menu-btn
i:last-child {

    transition:
        transform 0.25s ease;

}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 1000px) {

    .mega-menu-content {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap:
            25px;

    }

}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 700px) {

    .mega-menu {

        position: fixed;

        top: 128px;

        left: 0;

        width: 100%;

        max-height:
            75vh;

        overflow-y:
            auto;

        padding:
            20px;

    }


    .mega-menu-content {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            20px;

    }

}


/* ============================================================
   SMALL MOBILE
============================================================ */

@media (max-width: 480px) {

    .mega-menu-content {

        grid-template-columns:
            1fr;

    }

}

