/* ซ่อน quickbar บน desktop */
.quickbar {
  display: none;
}

  @keyframes lineUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .quickbar {
    display: block;
    position: fixed;
    top: 10px;
    right: 20px;
    z-index: 1100;
  }

  #quickbar-toggle {
background: #ffffff00;
        border: none;
        font-size: 1.5rem;
        border-radius: 8px;
        padding: 0.2rem 0.5rem;
        cursor: pointer;
        color: #585858;
  }

  .quickbar-panel {
        position: fixed;
        top: 0;
        width: 30%;
        right: -100%;
        height: 100%;
        background-color: white;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
        display: flex;
        flex-direction: column;
        padding: 2rem 1.5rem;
        font-size: 1.3rem;
        transition: right 0.3s ease-in-out;
        z-index: 1200;
  }

  .quickbar-panel.open {
    right: 0;
  }

  .quickbar-close {
    align-self: flex-end;
    font-size: 2rem;
    cursor: pointer;
    margin-bottom: 1.5rem;
  }

  .quickbar-section {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        font-family: 'Gilroy';
        font-size: 1.2rem;
  }

  .quickbar-divider {
    height: 25rem;
  }

  .quickbar-section a {
    text-decoration: none;
    color: #333;
  }

  .quickbar-section.contact div {
    color: #333;
    font-size: 1.1rem;
  }


/* ซ่อนเริ่มต้น */
.quickbar-panel .quickbar-section a,
.quickbar-panel .quickbar-section.contact a,
.quickbar-panel .quickbar-section.contact div {
  opacity: 0;
  transform: translateY(20px);
}

/* แสดงทีละตัวเมื่อ open */
.quickbar-panel.open .quickbar-section a:nth-of-type(1) {
  animation: lineUp 0.4s ease-out forwards;
  animation-delay: 0.1s;
}
.quickbar-panel.open .quickbar-section a:nth-of-type(2) {
  animation: lineUp 0.4s ease-out forwards;
  animation-delay: 0.2s;
}
.quickbar-panel.open .quickbar-section a:nth-of-type(3) {
  animation: lineUp 0.4s ease-out forwards;
  animation-delay: 0.3s;
}

.quickbar-panel.open .quickbar-section.contact a:nth-of-type(1) {
  animation: lineUp 0.4s ease-out forwards;
  animation-delay: 0.4s;
  margin-bottom: 1rem;
}
.quickbar-panel.open .quickbar-section.contact a:nth-of-type(2) {
  animation: lineUp 0.4s ease-out forwards;
  animation-delay: 0.5s;
}
.quickbar-panel.open .quickbar-section.contact div {
  animation: lineUp 0.4s ease-out forwards;
  animation-delay: 0.6s;
}
.quickbar-panel.open .quickbar-section.contact a:nth-of-type(3) {
  animation: lineUp 0.4s ease-out forwards;
  animation-delay: 0.7s;
}
.quickbar-panel.open .quickbar-section.contact a:nth-of-type(4) {
  animation: lineUp 0.4s ease-out forwards;
  animation-delay: 0.8s;
}
.quickbar-panel.open .quickbar-section.contact a:nth-of-type(5) {
  animation: lineUp 0.4s ease-out forwards;
  animation-delay: 0.9s;
}

}