/* Missing responsive utility classes + mobile menu fixes */

@media (min-width: 640px) {
  .sm\:block { display: block !important; }
  .sm\:bottom-5 { bottom: 1.25rem !important; }
  .sm\:flex-row { flex-direction: row !important; }
  .sm\:gap-3 { gap: 0.75rem !important; }
  .sm\:gap-4 { gap: 1rem !important; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sm\:h-14 { height: 3.5rem !important; }
  .sm\:items-center { align-items: center !important; }
  .sm\:justify-between { justify-content: space-between !important; }
  .sm\:px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
  .sm\:right-5 { right: 1.25rem !important; }
  .sm\:text-left { text-align: left !important; }
  .sm\:w-14 { width: 3.5rem !important; }
}

@media (min-width: 768px) {
  .md\:bottom-8 { bottom: 2rem !important; }
  .md\:left-8 { left: 2rem !important; }
  .md\:px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
}

@media (min-width: 1024px) {
  .lg\:block { display: block !important; }
  .lg\:flex { display: flex !important; }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
  .lg\:hidden { display: none !important; }
  .lg\:ml-0 { margin-left: 0 !important; }
}

@media (min-width: 1280px) {
  .xl\:inline { display: inline !important; }
}

/* Mobile menu fallback: ensure panel is visible when rendered */
@media (max-width: 1023px) {
  #mobile-menu {
    transform: translateX(0) !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: min(320px, 85vw) !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 80 !important;
  }

  /* Add overlay behind the menu panel */
  #mobile-menu::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(43, 33, 24, 0.4);
    z-index: -1;
  }

  /* Ensure hamburger button is tappable */
  button[aria-controls="mobile-menu"] {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Extra: prevent horizontal overflow on small screens */
body {
  overflow-x: hidden;
}
