/* Mobile layer on top of style.css + responsive.css */

body.nav-lock {
  overflow: hidden;
}

.burger-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  background: #1f1e1d;
  color: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

header.mobile-nav-open .burger-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

header.mobile-nav-open .burger-toggle span:nth-child(2) {
  opacity: 0;
}

header.mobile-nav-open .burger-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 980px) {
  .header-container {
    position: relative;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 72px;
    gap: 12px;
  }

  .logo-image {
    height: 56px;
  }

  .burger-toggle {
    display: inline-flex;
    z-index: 1101;
  }

  header nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(24, 23, 22, 0.98);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1100;
  }

  header.mobile-nav-open nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  nav ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    margin-top: 0 !important;
    align-items: stretch !important;
  }

  nav ul li {
    margin: 0 !important;
  }

  nav ul li a {
    display: block;
    padding: 11px 12px;
    border-radius: 8px;
  }

  nav ul li a:hover {
    background: #232220;
  }
}

@media (max-width: 768px) {
  .machine-category {
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  .machine-overlay {
    top: 10px;
    left: 10px;
  }
}
