/* ===========================
   LATERAL MENU STYLES
   =========================== */

#menu-lateral {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background-color: #ffffff;
  z-index: 999;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#menu-lateral.active {
  transform: translateX(0);
}

.menu-lateral-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  z-index: 998;
  pointer-events: none;
  transition: background-color 0.3s ease;
}

.menu-lateral-overlay.active {
  background-color: rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.menu-lateral-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: none;
  z-index: 1000;
}

.menu-lateral-close.active {
  display: block;
}

#menu-lateral-close-btn {
  background-color: transparent;
  border: none;
  font-size: 32px;
  color: #1f2937;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

#menu-lateral-close-btn:hover {
  color: #2563eb;
}

/* Menu Styles */
#menu-lateral ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

#menu-lateral li {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#menu-lateral a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 20px;
  color: #1f2937;
  text-decoration: none;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
  font-size: 17px;
  text-align: center;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  #menu-lateral a:hover {
    background-color: #000000;
    color: #ffffff;
  }
}

/* Mobile Toggle Button */
.menu-products {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.menu-products:hover {
  background-color: #f3f4f6;
}

.menu-products i {
  font-size: 18px;
}

.menu-products span {
  font-weight: 600;
  font-size: 14px;
  font-family: "Roboto", sans-serif;
}

/* Responsive */
@media (max-width: 768px) {
  #menu-lateral {
    width: 280px;
    padding-top: 50px;
  }

  .menu-lateral-close {
    display: none;
  }

  .menu-lateral-close.active {
    display: block;
  }
}

@media (min-width: 769px) {
  #menu-lateral {
    width: 300px;
    top: 0;
    left: 0;
  }

  .menu-lateral-overlay {
    display: none;
  }

  .menu-lateral-close {
    display: none;
  }
}
