/* ========================================
   PANTY DRAWER CONSOLIDATED SYSTEM
   Single Source of Truth - No More Duplicates
   Fixed class name conflicts (open vs show)
   ======================================== */

/* === Navigation Overlay === */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #000;
  z-index: 9999;
  transform: translateX(-100%); /* 🛑 slide out of view initially */
  transition: transform 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 3rem 1rem; /* Preserving layout.css padding */
  box-sizing: border-box;
}

.nav-overlay.open,
.nav-overlay.show {
  transform: translateX(0); /* ✅ Slides into view - supports both class names */
}

/* === Menu Toggle === */
.menu-toggle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(170, 170, 170, 0.3);
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 6px; /* Preserving layout.css gap */
  cursor: pointer;
  z-index: 10000;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.menu-toggle .bar {
  width: 28px;
  height: 3px;
  background-color: #aaa;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

.menu-toggle:hover {
  transform: translate(-50%, -50%) scale(1.05);
  background-color: rgba(236, 27, 97, 0.5);
}

.menu-toggle:hover .bar {
  background-color: #fff;
}

.menu-toggle.open .bar1 {
  transform: rotate(45deg) translate(5px, 5px);
  background-color: #B5144A;
}

.menu-toggle.open .bar2 {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.open .bar3 {
  transform: rotate(-45deg) translate(5px, -5px);
  background-color: #B5144A;
}

.menu-toggle.open {
  background-color: rgba(181, 20, 74, 0.5);
}

.menu-toggle.scrolled {
  position: fixed;
  bottom: 20px;
  right: 20px;
  top: auto;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
}

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

/* Mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    z-index: 10001;
  }
  
  .nav-overlay {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 85%;
    max-width: 320px;
  }
  
  .nav-overlay.show,
  .nav-overlay.open {
    transform: translateX(0);
  }
  
  /* Improve link spacing for touch */
  .main-menu a,
  .nav-overlay a {
    padding: 15px 20px;
    display: block;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 420px;
    height: 100vh;
    overflow: hidden;
    z-index: 9999;
    background: #000;
    border-left: 1px solid rgba(255,255,255,0.1);
    box-shadow: -4px 0 12px rgba(0,0,0,0.4);
    border-radius: 0 20px 20px 0;
  }

  .menu-toggle.open .bar1,
  .menu-toggle.open .bar3 {
    background-color: #B5144A;
  }
}

/* ========================================
   END PANTY DRAWER CONSOLIDATED SYSTEM
   ======================================== */
