/* ============================== */
/* 🎨 HEADER VISUAL               */
/* Estilos visuais do menu        */
/* Layout estrutural em layout.css */
/* ============================== */

/* Botão de logout - forçar cor vermelha */
.btn-outline-danger.hide-menu-f,
.btn.btn-outline-danger.hide-menu-f,
button.btn-outline-danger.hide-menu-f {
    border: 1px solid #dc3545 !important;
    color: #dc3545 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

.btn-outline-danger.hide-menu-f:hover,
.btn.btn-outline-danger.hide-menu-f:hover,
button.btn-outline-danger.hide-menu-f:hover {
    background: #dc3545 !important;
    background-color: #dc3545 !important;
    background-image: none !important;
    color: #fff !important;
    border-color: #dc3545 !important;
}

/* User */
.user_name {
    font-size: var(--font-size-xl);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-right {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-right li,
.menu-right li a {
    text-decoration: none;
    color: inherit;
    margin: 0;
    padding: 0;
}

.open-menu-btn,
.cart-btn.icon-btn {
    background-color: transparent;
    border: none;
    font-size: var(--font-size-xl);
    cursor: pointer;
}

.header .menu .head {
    display: none;
}

.header .menu ul {
    list-style: none;
}

.header .menu>ul>li {
    display: inline-block;
    position: relative;
}

.header .menu>ul>li:not(:last-child) {
    margin-right: 20px;
}

.header .menu .dropdown {
    position: relative;
}

.header .menu a {
    text-decoration: none;
    text-transform: capitalize;
    font-size: var(--font-size-2xl);
    color: var(--color-black-semi);
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.dark .header .menu a {
    color: var(--text-color);
}

.header .menu a:hover {
    color: var(--color-fontes-menu);
}

.header .menu>ul>li>a {
    padding: 12px 15px;
}

.header .menu>ul>.dropdown>a {
    padding-right: 30px;
}

.header .menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 230px;
    padding: 15px 0;
    background-color: var(--color-background-menu);
    box-shadow: 0 0 10px var(--color-background-transp-black);
    z-index: 1;
    transform-origin: top;
    transform: scaleY(0);
    visibility: hidden;
    opacity: 0;
}

.header .menu .sub-menu-left {
    top: 0;
    left: auto;
    right: 100%;
}

.header .menu li:hover>.sub-menu {
    opacity: 1;
    transform: scaleY(1);
    visibility: visible;
    transition: all 0.5s ease;
}

.header .menu .sub-menu a {
    padding: 6px 24px;
}

.header .menu .sub-menu .dropdown>a {
    padding-right: 34px;
}

.header .menu .sub-menu span {
    background-image: linear-gradient(hsl(0deg 0% 100%), hsl(0deg 0% 100%));
    background-size: 0 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.5s ease;
}

.header .menu .sub-menu li:hover>a>span {
    background-size: 100% 1px;
}

.header-right>* {
    margin-left: 15px;
}

.header-right .open-menu-btn {
    display: none;
}

.hide-menu {
    display: none !important;
}

.email-icon {
    width: 24px;
    height: 24px;
    position: relative;
}

/*
@media (width >= 1024px) {
  .hide-menu-f {
    display: flex !important;
  }

  .hide-menu {
    display: none !important;
  }
}
*/
.show-off-on {
    display: none !important;
}

@media(width <=1120px) {
    .show-off-on {
        display: block !important;
    }

    .hide-menu {
        display: block !important;
    }

    .hide-menu-f {
        display: none !important;
    }

    .header .menu {
        position: fixed;
        right: 0;
        top: 0;
        width: 280px;
        height: 100%;
        background-color: var(--color-background-menu);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 2000;
    }
    
    .header .menu.open {
        transform: none;
    }

    .header .menu .head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 25px;
    }

    .header .menu .close-menu-btn {
        height: 35px;
        width: 35px;
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-color: transparent;
        cursor: pointer;
        border: none;
    }

    .header .menu .close-menu-btn::before,
    .header .menu .close-menu-btn::after {
        content: '';
        position: absolute;
        width: 80%;
        height: 2px;
        background-color: var(--color-background-transp);
    }

    .header .menu .close-menu-btn::before {
        transform: rotate(45deg);
    }

    .header .menu .close-menu-btn::after {
        transform: rotate(-45deg);
    }

    .header .menu>ul>li {
        display: block;
    }

    .header .menu>ul>li:not(:last-child) {
        margin-right: 0;
    }

    .header .menu li {
        border-bottom: 1px solid hsl(0deg 0% 100% / 25%);
    }

    .header .menu li:first-child {
        border-top: 1px solid hsl(0deg 0% 100% / 25%);
    }

    .header .menu>ul>li>a {
        padding: 12px 15px;
    }

    .header .menu>ul>.dropdown>a {
        padding-right: 34px;
    }

    .header .menu .sub-menu {
        position: static;
        opacity: 1;
        transform: none;
        visibility: visible;
        padding: 0;
        transition: none;
        box-shadow: none;
        width: 100%;
        display: none;
    }

    .header .menu .dropdown.active>.sub-menu {
        display: block;
    }

    .header .menu .sub-menu li:last-child {
        border: none;
    }

    .header .menu .sub-menu a {
        padding: 8px 32px;
        position: relative;
        display: block;
        font-size: var(--font-size-xl);
    }

    .header .menu .sub-menu a::before {
        content: '';
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: 6px;
        height: 6px;
        background-color: var(--color-fontes-menu);
        border-radius: 50%;
    }

    .header .menu .sub-menu .sub-menu a {
        padding-left: 36px;
        position: relative;
    }

    .header .menu .sub-menu .sub-menu a::before {
        content: "";
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        width: 6px;
        height: 6px;
        background-color: var(--color-fontes-sub-menu);
        border-radius: 50%;
    }

    .header .menu .sub-menu .sub-menu .sub-menu a {
        padding-left: 45px;
    }

    .header .menu .sub-menu span {
        background-image: none;
    }

    .header-right .open-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        position: relative;
        background-color: transparent;
        border: none;
    }

    .sair-red {
        background-color: var(--color-red);
        color: white !important;
        padding: 10px;
        border-radius: 4px;
    }

    .sair-red:hover {
        color: white !important;
    }
}
