/* ===== MENU OVERLAY ===== */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 50vw;
  height: 100vh;
  background: #0032FF;
  z-index: 10002;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 128px;
  padding-right: 32px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-100%);
  transition: all 0.6s cubic-bezier(0.35, 0, 0.25, 1);
  pointer-events: none;
}

.menu-overlay.active { 
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

/* BACKDROP EFFECT */
.menu-overlay.active::before {
  content: '';
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 50vw;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: -1;
  animation: backdropFade 0.6s cubic-bezier(0.35, 0, 0.25, 1);
}

.menu-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInLogo 0.6s cubic-bezier(0.35, 0, 0.25, 1) 0.1s forwards;
}

.menu-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.menu-logo-text {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-nav a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem;
  color: #fff;
  transition: opacity 0.3s;
  opacity: 0;
  transform: translateX(-30px);
  line-height: 1.1;
}

.menu-overlay.active .menu-nav a {
  animation: slideInLink 0.6s cubic-bezier(0.35, 0, 0.25, 1) forwards;
}

.menu-nav a:nth-child(1) { animation-delay: 0.15s; }
.menu-nav a:nth-child(2) { animation-delay: 0.25s; }
.menu-nav a:nth-child(3) { animation-delay: 0.35s; }
.menu-nav a:nth-child(4) { animation-delay: 0.45s; }
.menu-nav a:nth-child(5) { animation-delay: 0.55s; }
.menu-nav a:nth-child(6) { animation-delay: 0.65s; }

.menu-nav a:hover { 
  text-decoration: line-through;
  opacity: 0.8;
}

.menu-social {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  animation: fadeIn 0.6s cubic-bezier(0.35, 0, 0.25, 1) 0.4s forwards;
}

.menu-social a { 
  color: #fff;
  transition: all 0.3s ease;
}

.menu-social a:hover {
  opacity: 0.7;
  transform: scale(1.1);
}

.menu-close {
  position: absolute;
  left: 64px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0;
  animation: fadeInClose 0.6s cubic-bezier(0.35, 0, 0.25, 1) 0.35s forwards;
  transition: all 0.3s ease;
}

.menu-close:hover {
  transform: translateY(-50%) rotate(90deg);
}

/* Menu Cart Link */
.menu-nav .menu-cart {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
}

.menu-nav .menu-cart .cart-count {
  position: absolute;
  right: 0;
  top: 0;
  background: #dc3545;
  color: #fff;
  padding: 2px 6px;
  border-radius: 50%;
  font-size: 10px;
  min-width: 18px;
  text-align: center;
  font-weight: 700;
}

/* ===== ANIMATIONS ===== */

@keyframes slideInLogo {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLink {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInClose {
  from {
    opacity: 0;
    transform: translateY(-50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

@keyframes backdropFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
  .menu-overlay {
    width: 70vw;
  }

  .menu-overlay.active::before {
    left: 70vw;
  }

  .menu-nav a {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .menu-overlay {
    width: 100vw;
    padding-left: 24px;
    padding-right: 24px;
  }

  .menu-overlay.active::before {
    left: 0;
  }

  .menu-logo {
    margin-bottom: 32px;
  }

  .menu-logo img {
    width: 40px;
    height: 40px;
  }

  .menu-logo-text {
    font-size: 12px;
  }

  .menu-nav a {
    font-size: 2rem;
    display: block;
    width: 100%;
  }

  .menu-close {
    left: 24px;
    font-size: 1.5rem;
  }

  .menu-social {
    position: static;
    right: auto;
    transform: none;
    flex-direction: row;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .menu-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .menu-overlay {
    padding-left: 16px;
    padding-right: 16px;
  }

  .menu-nav a {
    font-size: 1.5rem;
  }

  .menu-logo {
    margin-bottom: 24px;
  }

  .menu-nav a:nth-child(1) { animation-delay: 0.1s; }
  .menu-nav a:nth-child(2) { animation-delay: 0.15s; }
  .menu-nav a:nth-child(3) { animation-delay: 0.2s; }
  .menu-nav a:nth-child(4) { animation-delay: 0.25s; }
  .menu-nav a:nth-child(5) { animation-delay: 0.3s; }
  .menu-nav a:nth-child(6) { animation-delay: 0.35s; }

  .menu-close {
    left: 16px;
  }
}
