/* MOBILE ALKATRÉSZEK */

@media (max-width: 768px) {

  /* HAMBURGER */
  .hamburger {
    display: flex;
    position: fixed;
    top: 15px;
    left: 15px;
    width: 30px;
    height: 25px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 2000;
  }

  .hamburger span {
    height: 4px;
    background-color: #f1c40f;
    border-radius: 2px;
  }

  /* SIDEBAR – INDEX MINTA */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 180px;
    height: 100vh;
    z-index: 1000;

    background-image: url('sav.png');
    background-repeat: repeat;
    background-size: 800px;
    background-position: center;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  /* MAIN */
  .main-area {
    margin-left: 0;
  }

  .main-content {
    padding: 20px;
    position: relative;
  }

  /* HEADER */
  header h1 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 40px;
    text-align: center;
  }

  /* LOGÓ */
  .corner-logo {
    position: absolute;
    top: 120px;
    right: 15px;
    width: 110px;
  }

  /* KERESŐ */
  .search-bar input {
    width: 100%;
    font-size: 0.95em;
  }

  /* GRID */
  .parts-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .part-card img {
    height: 160px;
  }

  .part-name {
    font-size: 1em;
  }

  .part-desc {
    font-size: 0.9em;
  }

  .bottom-bar {
    font-size: 0.85em;
    padding: 8px;
  }
}

/* 480px */
@media (max-width: 480px) {

  header h1 {
    font-size: 1.3em;
  }

  .corner-logo {
    width: 90px;
    top: 110px;
  }

  .part-card img {
    height: 140px;
  }
}