

:root {
    /* Cores atuais do seu menu */
    --bg-overlay: rgba(0, 0, 0, 0.5);
    --bg-menu: linear-gradient(141deg, rgba(12, 12, 12, 0.99) 0%, rgba(29, 16, 10, 0.9) 100%);
   --bg-hover: rgba(75, 0, 130, 0.7);  
    --bg-hover-subitem: rgba(124, 31, 255, 0.3);
    --bg-close-hover: rgba(124, 31, 255, 0.3);
    
    /* Cores de texto atuais */
    --text-primary: #fff;
    --text-secondary: #fff;
    --text-title: #D6B377;
    --text-hover: #D6B377;
    --text-flecha: #fff;
    
    /* Cores de elementos */
    --hamburger-color: #D6B377;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CONTAINER DO MENU */
.menu-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    height: 70px;
   background: transparent;  
}

/* LOGO */
.logo-area {
    display: flex;
    align-items: center;
}

.logo-area a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.card-logo {
    width: 160px;
    height: auto;
    max-width: 100%;
}

/* DETAILS - REMOVE COMPORTAMENTO PADRÃO */
.menu {
    position: static;
}

.menu > summary {
    list-style: none;
    cursor: pointer;
}

.menu > summary::-webkit-details-marker {
    display: none;
}

#menu-global > header > details,
#menu-global > header > details > summary,
#menu-global > header > details > summary > div {
    position: relative;
    z-index: 9999;
}

/* HAMBURGER ICON */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: var(--hamburger-color);
    display: block;
    transition: all 0.3s ease;
}

/* OVERLAY - FECHA MENU AO CLICAR (CSS PURO) */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    pointer-events: none;

}

.menu[open] ~ .menu-overlay {
  
    pointer-events: auto;
}

/* PAINEL LATERAL - ABRE PELA DIREITA */
.menu-content {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100vh;
    background: var(--bg-menu);
  
    padding: 20px;
    display: flex;
    flex-direction: column;

   
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

/* ABRE O PAINEL QUANDO DETAILS ESTÁ ABERTO */
.menu[open] .menu-content {
    transform: translateX(0);
}

/* HEADER DO MENU COM BOTÃO DE FECHAR */
.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
 
  
}

.menu-title {
    color: var(--text-title);
    font-size: 18px;
    font-weight: 600;  
}



/* ITENS DO MENU PRINCIPAL */
.menu-item-details > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 15px;
    color: var(--text-primary);
    font-size: 17px;
    font-weight: 500;letter-spacing: 1px;
    border-radius: 3px;
    transition: background 0.3s;
}

.menu-item-details > summary::-webkit-details-marker {
    display: none;
}

.menu-item-details > summary:hover {
    background: var(--bg-hover);
}

/* SETA DO SUBMENU */
.menu-flecha {
    font-size: 12px;
    color: var(--text-flecha);
    transition: transform 0.2s;
    margin-left: 10px;
}

.menu-item-details[open] .menu-flecha {
    transform: rotate(180deg);
}

/* SUBITENS */
.menu-subitems {
    margin-left: 10px;
    padding: 5px 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.menu-subitem {
    display: block;
    padding: 5px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    border-radius: 2px;
    transition: all 0.2s;letter-spacing: 1px;
}

.menu-subitem:hover {
    color: var(--text-hover);
    background: var(--bg-hover-subitem);
    padding-left: 20px;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .menu-content {
        width: 300px;
    }
    
    .card-logo {
        width: 140px;
    }
}

@media (max-width: 480px) {
    .menu-content {
        width: 280px;
        padding: 15px;
    }
    
    .card-logo {
        width: 120px;
    }
    
    .hamburger span {
        width: 24px;
        background-color: var(--hamburger-color);
    }
    
    .menu-item-details > summary {
        font-size: 15px;
        padding: 10px 12px;
    }
    
    .menu-subitem {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .menu-close-btn {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
}