/* =========================================================
   2HOME PREMIUM MEGA MENU
   Isolated styles - does not touch Bootstrap globals
   ========================================================= */

.home-mega-menu {
    position: relative;

    width: 100%;

    font-family: inherit;

    z-index: 1005;
}


/* =========================================================
   GOLD BUTTON
   ========================================================= */

.home-mega-menu-button {
    position: relative;

    width: 100%;
    height: 48px;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 0 18px;

    border: 0;
    border-radius: 6px;

    background:
        linear-gradient(
            135deg,
            #b77f28 0%,
            #c99235 50%,
            #dda94d 100%
        );

    color: #fff;

    font-size: 13px;
    font-weight: 700;

    line-height: 1;

    text-align: left;

    text-transform: uppercase;

    cursor: pointer;

    box-shadow:
        0 10px 22px rgba(169, 111, 27, .16);

    transition:
        background .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}


.home-mega-menu-button:hover,
.home-mega-menu.is-open
.home-mega-menu-button {

    background:
        linear-gradient(
            135deg,
            #aa7321 0%,
            #c2872d 50%,
            #d8a046 100%
        );

    box-shadow:
        0 12px 28px rgba(169, 111, 27, .22);
}


.home-mega-menu-button:focus {
    outline: none;
}


.home-mega-menu-button-icon {
    flex: 0 0 auto;

    width: 20px;

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


.home-mega-menu-button-icon i {
    font-size: 18px;
    line-height: 1;
}


.home-mega-menu-button-text {
    flex: 1 1 auto;

    white-space: nowrap;
}


.home-mega-menu-button-arrow {
    flex: 0 0 auto;

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


.home-mega-menu-button-arrow i {
    font-size: 13px;

    line-height: 1;

    transition:
        transform .2s ease;
}


.home-mega-menu.is-open
.home-mega-menu-button-arrow i {

    transform: rotate(180deg);
}


/* =========================================================
   MAIN PANEL
   ========================================================= */

.home-mega-menu-panel {
    position: absolute;

    top: calc(100% + 9px);
    left: 0;

    width: 100%;

    min-width: 270px;

    background: #fff;

    border:
        1px solid rgba(189, 142, 62, .25);

    border-radius: 8px;

    box-shadow:
        0 22px 55px rgba(21, 18, 14, .15);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform:
        translateY(8px);

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

    z-index: 1100;
}


.home-mega-menu.is-open
.home-mega-menu-panel {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translateY(0);
}


.home-mega-menu-inner {
    position: relative;

    padding: 8px 0;

    background: #fff;

    border-radius: 8px;
}


/* =========================================================
   FIRST LEVEL
   ========================================================= */

.home-mega-menu-item {
    position: static;
}


.home-mega-menu-parent {
    position: relative;

    min-height: 45px;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 9px 15px;

    color: #222;

    font-size: 13px;
    font-weight: 600;

    line-height: 1.3;

    text-decoration: none !important;

    border-left:
        3px solid transparent;

    transition:
        color .17s ease,
        background .17s ease,
        border-color .17s ease;
}


.home-mega-menu-item +
.home-mega-menu-item
.home-mega-menu-parent {

    border-top:
        1px solid #f2eee8;
}


.home-mega-menu-parent:hover {

    color: #a97120;

    background:
        linear-gradient(
            90deg,
            #fbf7ef 0%,
            #fff 100%
        );

    border-left-color:
        #c89035;
}


.home-mega-menu-parent-icon {
    flex: 0 0 27px;

    width: 27px;
    height: 27px;

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


.home-mega-menu-parent-icon img {
    display: block;

    max-width: 25px;
    max-height: 25px;

    object-fit: contain;
}


.home-mega-menu-parent-name {
    flex: 1 1 auto;

    min-width: 0;
}


.home-mega-menu-parent-arrow {
    flex: 0 0 auto;

    margin-left: auto;

    color: #b69258;

    font-size: 12px;

    transition:
        transform .2s ease;
}


.home-mega-menu-category:hover
.home-mega-menu-parent-arrow {

    transform:
        translateX(2px);
}


/* =========================================================
   MEGA SUBMENU
   ========================================================= */

.home-mega-menu-submenu {
    position: absolute;

    top: 0;
    left: calc(100% - 1px);

    width: 720px;
    min-height: 100%;

    padding: 0;

    background: #fff;

    border:
        1px solid rgba(189, 142, 62, .23);

    border-radius: 0 9px 9px 0;

    box-shadow:
        18px 20px 45px rgba(21, 18, 14, .12);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform:
        translateX(8px);

    transition:
        opacity .17s ease,
        visibility .17s ease,
        transform .17s ease;

    z-index: 1110;
}


.home-mega-menu-category:hover
.home-mega-menu-submenu {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translateX(0);
}


.home-mega-menu-submenu-inner {
    padding: 23px 25px;
}


/* =========================================================
   GRID
   ========================================================= */

.home-mega-menu-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap:
        25px 32px;
}


.home-mega-menu-group {
    min-width: 0;
}


.home-mega-menu-group-title {
    display: block;

    margin-bottom: 7px;
    padding-bottom: 8px;

    color: #191919;

    font-size: 13px;
    font-weight: 700;

    line-height: 1.3;

    text-transform: uppercase;

    text-decoration: none !important;

    border-bottom:
        1px solid #eee4d4;

    transition:
        color .17s ease;
}


.home-mega-menu-group-title:hover {
    color: #ad7928;
}


.home-mega-menu-children {
    display: flex;
    flex-direction: column;

    gap: 1px;
}


.home-mega-menu-children a {
    position: relative;

    display: block;

    padding: 5px 0;

    color: #666;

    font-size: 12.5px;
    font-weight: 400;

    line-height: 1.4;

    text-decoration: none !important;

    transition:
        color .16s ease,
        padding .16s ease;
}


.home-mega-menu-children a:hover {
    padding-left: 5px;

    color: #a97222;
}


/* =========================================================
   HTML / EXTRA CONTENT
   ========================================================= */

.home-mega-menu-html,
.home-mega-menu-extra {

    color: #444;

    font-size: 13px;
    line-height: 1.6;
}


.home-mega-menu-extra {
    margin-top: 20px;
    padding-top: 20px;

    border-top:
        1px solid #eee4d4;
}


/* =========================================================
   OVERLAY
   ========================================================= */

.home-mega-menu-overlay {
    position: fixed;

    inset: 0;

    background:
        rgba(20, 17, 13, .22);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

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

    z-index: 990;
}


.home-mega-menu-overlay.is-open {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}


/* menu remains above overlay */

.home-mega-menu.is-open {
    z-index: 1200;
}


/* =========================================================
   RTL
   ========================================================= */

html[dir="rtl"]
.home-mega-menu-button {

    direction: rtl;

    text-align: right;
}


html[dir="rtl"]
.home-mega-menu-parent {

    direction: rtl;

    border-left: 0;

    border-right:
        3px solid transparent;
}


html[dir="rtl"]
.home-mega-menu-parent:hover {

    border-right-color:
        #c89035;
}


html[dir="rtl"]
.home-mega-menu-parent-arrow {

    margin-left: 0;
    margin-right: auto;

    transform:
        rotate(180deg);
}


html[dir="rtl"]
.home-mega-menu-category:hover
.home-mega-menu-parent-arrow {

    transform:
        rotate(180deg)
        translateX(2px);
}


html[dir="rtl"]
.home-mega-menu-submenu {

    left: auto;
    right: calc(100% - 1px);

    border-radius:
        9px 0 0 9px;

    transform:
        translateX(-8px);
}


html[dir="rtl"]
.home-mega-menu-category:hover
.home-mega-menu-submenu {

    transform:
        translateX(0);
}


html[dir="rtl"]
.home-mega-menu-children a:hover {

    padding-left: 0;
    padding-right: 5px;
}


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

@media (max-width: 1199px) {

    .home-mega-menu-submenu {
        width: 620px;
    }

}


@media (max-width: 991px) {

    .home-mega-menu-panel {
        position: absolute;

        width: 100%;
    }


    .home-mega-menu-submenu {
        position: static;

        width: auto;
        min-height: 0;

        margin: 0 8px 8px;

        border-radius: 6px;

        box-shadow: none;

        opacity: 1;
        visibility: visible;

        pointer-events: auto;

        transform: none;

        display: none;
    }


    .home-mega-menu-category:hover
    .home-mega-menu-submenu {

        display: block;

        transform: none;
    }


    .home-mega-menu-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 18px;
    }

}


@media (max-width: 575px) {

    .home-mega-menu-grid {
        grid-template-columns: 1fr;
    }


    .home-mega-menu-button {
        height: 46px;

        font-size: 12px;
    }

}