.meniu {
    position: absolute;

    /* top: 216px; */

    padding: 0;

    margin: 0;

    border: 0;

    line-height: 1;

    background: #fff;

    height: 444px;

    z-index: 3;
}

.meniu-navbar-content {
    display: flex;
    padding: 0 12px;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.open_menu:hover .meniu {
    background: red;
    display: block !important;
}

.meniu a {
    color: #333;
    font-size: 14px;
    font-family: "Roboto";
    font-weight: 500;
    line-height: 20px;
    display: block;
}

/* .navbar-nav .has-children::before{

   content:"»";

   float: right;

} */

.navbar-nav .has-children > a::after {
    content: "";
    display: inline-block;
    width: 17px;
    height: 17px;
    margin-left: 6px;
    vertical-align: -0.1em;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'><path d='M5 7.5L10 12.5L15 7.5' stroke='%23636667' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>")
        no-repeat center;
    background-size: contain;
    transition: transform 0.25s ease;
    border: none;
}

.navbar-nav .has-children:hover > a::after,
.navbar-nav .has-children.open > a::after,
.navbar-nav > li:first-child.has-children:hover::after {
    transform: rotate(180deg);
}

.navbar-nav .dropdown-menu {
    transition: none !important;
    animation: none !important;
}

.meniu ul li {
    border-bottom: 1px solid #f2f2f2;

    padding: 13px 20px;

    display: block;

    background: linear-gradient(to right, #488597, #488597);

    transition: background-size 0.3s 0s;

    background-size: 0 100%;

    background-repeat: no-repeat;
}

.meniu ul li:hover {
    background-size: 100% 100%;
}

.meniu ul li:hover > a {
    color: #fff !important;
}

.subcategorii {
    background: white;

    width: 897px;

    height: 443px;

    overflow-y: auto;

    overflow-x: hidden;

    top: 0;

    padding: 15px !important;

    color: #54595f;
}

.subcategorii a::before {
    content: "" !important;
}

.subcategorii a {
    transition: ease-out 0.3s all;

    border-left: 1px solid white;

    font-size: 14px !important;

    line-height: 15px;
}

.subcategorii a:hover {
    color: #488597 !important;

    border-left: 3px solid white;
}

.meniu ul,
.meniu ul li,
.meniu ul ul {
    list-style: none;

    margin: 0;

    padding: 0;
}

.subcategorie {
    font-weight: bold;

    line-height: 20px;

    margin-bottom: 0;
}

li .subcategorie:not(:first-child) {
    padding-top: 20px;
}

.subsubcategorie {
    line-height: 20px;

    margin-bottom: 0;

    font-weight: 500 !important;
}

.meniu ul li {
    padding: 8px 12px;
}

.meniu {
    width: 213px;
}

.meniu-content {
    position: relative;
}

.meniu-content .subcategorii {
    position: absolute;
    top: 0px;
    left: 220px;
    display: none;
}

.meniu-content .has-children:hover .subcategorii {
    display: flex;
}

/* ------------------------------- RESPONSIVE ----------------------------------- */

/* mobile */

@media all and (min-width: 0px) and (max-width: 767px) {
    .meniu {
        display: none;

        top: 42px;

        height: calc(100vh - 122px);

        overflow-y: auto;

        left: 0;

        max-height: none;
    }

    .meniu .iconExpand {
        float: right;

        font-size: 12px;
    }

    .meniu .iconBack {
        float: left;

        margin-right: 10px;

        font-size: 12px;
    }

    .meniu span {
        display: block;

        padding: 5px 0px;

        font-size: 1rem !important;

        font-family: "Roboto";

        font-weight: 400;

        font-size: 14px;
    }

    .meniu .subcategoriiMobile {
        display: none;

        background: #f1ad6f17;
    }

    .meniu .subsubcategoriiMobile {
        display: none;
    }

    .meniu ul li:hover {
        background: transparent;
    }

    .meniu ul li span:hover {
        color: #2b3089;
    }

    .subcategoriiMobile li:last-child {
        border: none;
    }

    .meniu li:last-child {
        border-bottom: none;
    }

    .meniu a {
        font-size: 13px !important;
        font-family: "Roboto";
        font-weight: 400;
        color: #212529 !important;
    }

    .meniu .has-children a::before {
        content: "";
    }

    .meniu li {
        cursor: pointer;
    }

    .meniu .has-children .subcategoriiMobile a,
    .meniu .has-children .subcategoriiMobile span {
        font-size: 14px !important;
    }

    .meniu .has-children .subsubcategoriiMobile a {
        font-size: 12px !important;
    }

    .grid-subcategorii {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* tableta */

@media all and (min-width: 768px) and (max-width: 1023px) {
    .meniu-content .subcategorii {
        left: 233px;

        width: 523px;
    }

    .meniu {
        top: 110px;

        width: 85% !important;
    }

    #listaDinGradient li:first-child {
        width: 61.5% !important;
    }

    .header2 a {
        font-size: 14px !important;
    }

    .sectiune-cards .col-6:first-child {
        padding-left: 15px;

        padding-right: 5px;
    }

    .sectiune-cards .col-6:nth-child(2) {
        padding-right: 15px;

        padding-left: 5px;
    }

    .sectiune-cards .col-6:nth-child(3) {
        padding-left: 15px;

        /* padding-right: 5px; */
    }
}

@media all and (min-width: 1024px) and (max-width: 1366px) {
    #listaDinGradient li:first-child {
        width: 34% !important;
    }

    .meniu {
        top: 85px;
        /* width: 56.4% !important;
      width: 216px; */
    }

    .meniu-content .subcategorii {
        /* left: 194px; */
        left: 128px;
        width: 751px;

        top: 0px;
    }
}

.meniu-tabs {
    display: flex;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
}

.meniu-tabs .tab {
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #444;
    transition: 0.2s;
}

.meniu-tabs .tab-active {
    border-bottom: 3px solid #488597;
    color: #488597;
}

.tab-content {
    display: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

.meniu-produse-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.meniu-produse-list > li {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.meniu-produse-list > li > a {
    font-weight: 600;
    color: #222;
    text-decoration: none;
}

.meniu-produse-list > li.has-children > a {
    color: #488597;
}

.meniu-large {
    width: 800px !important;
    max-width: 90vw;
}

.grid-subcategorii {
    display: grid;
    /* grid-template-columns: repeat(3, 1fr); */
    gap: 20px 40px;
    width: 100%;
}

/* Coloanele */
.col-mega {
    display: flex;
    flex-direction: column;
}

/* Titlu subcategorie */
.mega-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}

.mega-title a {
    color: #000 !important;
    text-decoration: none;
}

/* Nivel 2 — subsub */
.mega-item {
    margin: 3px 0;
}

.subsub-link {
    color: #636667 !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400 !important;
}

/* Nivel 3 — subsubsub */
.level-3 {
    margin-left: 15px;
}

.subsubsub-link {
    color: #636667;
    font-size: 14px;
    font-weight: 300 !important;
}

.sub-link:hover,
.subsub-link:hover,
.subsubsub-link:hover {
    text-decoration: underline;
    color: #488597 !important;
}

#tab-servicii .grid-subcategorii {
    gap: 0 !important;
}

/* când elementele sunt prea multe → 4 coloane automat */
@media (min-width: 992px) {
    .grid-subcategorii {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.subcat,
.subsubcat {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 3px 0;
    line-height: 1.3;
}

.subcat:hover,
.subsubcat:hover {
    color: #007aff;
}

.grid-subcategorii a.subcat,
.grid-subcategorii a.subsubcat {
    display: block;
    padding: 5px 0px;
    margin: 2px 0;
    border-radius: 0;
    color: #333;
    transition: 0.2s;
}

.grid-subcategorii a.subcat:hover,
.grid-subcategorii a.subsubcat:hover {
    background: #488597;
    color: white !important;
}

.meniu-tabs .tab.tab-active {
    /* border-bottom: none !important; */
    color: #488597;
    font-weight: 600;
}
.tab-active {
    border-bottom: 3px solid #488597;
}
.meniu {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    top: 86px;
}

.meniu-content {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.tab-content {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}
