/* =======================
   MOBILE-MENU.CSS - Menu Mobile Dorigon Panetteria
   ======================= */

/* =======================
   HAMBURGER BUTTON
   ======================= */
   .hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #9e7c4c 0%, #a48355 100%);
    border: none;
    cursor: pointer;
    padding: 14px 16px;
    border-radius: 12px;
    z-index: 10001;
    box-shadow: 0 4px 15px rgba(158, 124, 76, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    position: relative;
    min-width: 52px;
    min-height: 52px;
}

.hamburger::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
  border-radius: 12px;
  opacity: 0; /* Esconde por padrão */
}

.hamburger:hover::before {
  left: 100%;
  opacity: 1; /* Mostra só no hover */
}


.hamburger:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(158, 124, 76, 0.4);
}

.hamburger:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(158, 124, 76, 0.3);
}

/* =======================
   LINHAS DO HAMBÚRGUER
   ======================= */
.hamburger-line {
    width: 28px;
    height: 3px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.hamburger:hover .hamburger-line {
    animation: pulse 1.5s infinite;
}

/* =======================
   ESTADO ATIVO (X)
   ======================= */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
}

.hamburger.active {
    background: linear-gradient(135deg, #a48355 0%, #9e7c4c 100%);
    box-shadow: 0 6px 25px rgba(227, 169, 60, 0.5);
}

/* =======================
   OVERLAY - FUNDO ESCURO
   ======================= */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =======================
   MENU MOBILE - PAINEL
   ======================= */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 340px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, #3c2e27 0%, #4a3a2f 50%, #5a4a3f 100%);
    padding: 90px 35px 120px; /* Aumenta o padding inferior */
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 28px;
    transition: transform 0.4s ease, visibility 0.4s ease;
    border-left: 5px solid #e3a93c;
    overflow-y: auto;
    visibility: hidden;
    z-index: 10000;
    scrollbar-width: thin;
    scrollbar-color: #e3a93c #3c2e27;
}

.mobile-menu.active {
    transform: translateX(0);
    visibility: visible;
}

.mobile-menu::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: #3c2e27;
    border-radius: 10px;
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #e3a93c, #9e7c4c);
    border-radius: 10px;
}

/* =======================
   SEÇÕES DO MENU
   ======================= */
.mobile-menu-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 24px;
    background: rgba(60, 46, 39, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(227, 169, 60, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-section:hover {
    transform: translateY(-4px) translateX(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-color: rgba(227, 169, 60, 0.5);
}

/* =======================
   ÍCONES NOS TÍTULOS E LINKS
   ======================= */
   .mobile-menu-section h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mobile-menu-section h3 svg {
    flex-shrink: 0;
    stroke: #e3a93c;
}

.mobile-menu-link svg {
    flex-shrink: 0;
    margin-right: 12px;
    stroke: #e3a93c;
    transition: stroke 0.3s ease;
}

.mobile-menu-link:hover svg {
    stroke: #ffffff;
}


/* =======================
   LINKS DO MENU
   ======================= */
.mobile-menu-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 16px 22px;
    margin: 6px 0;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(227, 169, 60, 0.05) 0%, rgba(158, 124, 76, 0.1) 50%, rgba(227, 169, 60, 0.05) 100%);
    border: 2px solid rgba(227, 169, 60, 0.2);
    display: flex;
    align-items: center;
}

.mobile-menu-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(227, 169, 60, 0.3), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-link:hover::before {
    left: 100%;
}

.mobile-menu-link:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #e3a93c 0%, #9e7c4c 100%);
    transform: translateX(12px) scale(1.03);
    border-color: #e3a93c;
    box-shadow: 0 6px 16px rgba(227, 169, 60, 0.4), 0 2px 8px rgba(158, 124, 76, 0.3);
}

.mobile-menu-link:active {
    transform: translateX(6px) scale(0.99);
    box-shadow: 0 3px 10px rgba(227, 169, 60, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* =======================
   BOTÃO FECHAR
   ======================= */
.close-menu {
    position: absolute;
    top: 24px;
    right: 24px;
    background: linear-gradient(135deg, #e85d58, #ff6b6b);
    color: #ffffff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(217, 83, 79, 0.4), 0 2px 8px rgba(232, 93, 88, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.close-menu:hover {
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 8px 24px rgba(217, 83, 79, 0.6), 0 4px 12px rgba(232, 93, 88, 0.4);
    background: linear-gradient(135deg, #ff6b6b, #e85d58);
    border-color: rgba(255, 255, 255, 0.5);
}

.close-menu:active {
    transform: scale(1.05) rotate(90deg);
}

/* =======================
   RESPONSIVIDADE
   ======================= */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 300px;
        padding: 80px 24px 60px;
    }

    .hamburger {
        padding: 12px 14px;
        min-width: 48px;
        min-height: 48px;
    }

    .hamburger-line {
        width: 26px;
    }

    .mobile-menu-section {
        padding: 20px;
    }

    .mobile-menu-section h3 {
        font-size: 17px;
    }
}

/* =======================
   DISPOSITIVOS TOUCH
   ======================= */
@media (hover: none) and (pointer: coarse) {
    .mobile-menu-link {
        padding: 20px 22px;
        margin-bottom: 10px;
        font-size: 17px;
        min-height: 56px;
    }

    .hamburger {
        padding: 16px 18px;
        min-width: 60px;
        min-height: 60px;
    }

    .hamburger-line {
        width: 30px;
        height: 4px;
    }

    .close-menu {
        width: 54px;
        height: 54px;
        font-size: 24px;
    }

    .hamburger:hover::before {
        left: -100%;
    }

    .mobile-menu-link:hover::before {
        left: -100%;
    }
}

/* =======================
   TEXTOS BRANCOS
   ======================= */
   .mobile-menu-section h3 {
    color: #ffffff !important;
}

.mobile-menu-link {
    color: #ffffff !important;
}

.mobile-menu-link:hover {
    color: #ffffff !important;
}

.mobile-menu-link svg {
    fill: #ffffff;
}
