/* Shared small-screen rules, loaded after page-specific styles. */
@media (max-width: 991px) {
  html { scroll-padding-top: 80px; }
  body:has(> .header) { padding-top: 72px; }
  .header {
    position: fixed !important;
    top: 0 !important;
    transform: none !important;
    padding: 8px 12px !important;
  }
  .header .container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px !important;
    min-width: 0;
  }
  .header .logo { grid-column: 1; grid-row: 1; min-height: 44px; }
  .header .logo img { width: 110px !important; }
  .header .container > div:last-child { grid-column: 2; grid-row: 1; }
  .header .navbar {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 4px !important;
    border-radius: 12px !important;
    overflow-x: auto !important;
    scrollbar-width: thin !important;
    scroll-padding-inline: 8px;
  }
  .header .navbar::-webkit-scrollbar { display: block !important; height: 4px; }
  .header .navbar-list { width: max-content; min-width: 100%; gap: 8px !important; }
  .header .navbar-link, .header .navbar .btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 12px !important;
    font-size: 1.4rem !important;
  }
  .header .nav-cart-btn {
    min-height: 44px;
    min-width: 72px;
    margin: 0 6px 0 0 !important;
    padding: 8px !important;
    gap: 6px;
    color: #111;
    font-size: 1.4rem;
  }
  .header .cart-link-label { display: inline; }
  .header + main > article > section:first-child:not(.hero) { padding-top: 32px !important; }
  .header + main > .menu-hero { padding: 32px 16px 24px !important; }
  .header + main > .catering-hero, .header + main > .local-seo-hero { padding-top: 36px !important; }
  .header + .cart-page-container { margin-top: 24px !important; }
  .header + main .hero { padding: 80px 20px 48px !important; min-height: 65vh !important; }
  .header + main .hero > .container { margin-inline: 0 !important; }
  main [style*="grid-template-columns: repeat(auto-fit"] { grid-template-columns: minmax(0, 1fr) !important; }
  .category-chip, .qty-btn, .add-to-cart-btn, .cart-controls button { min-width: 44px !important; min-height: 44px !important; }
  .category-chip { display: inline-flex; align-items: center; justify-content: center; }
  .header a:focus-visible, .header button:focus-visible, .category-chip:focus-visible,
  .qty-btn:focus-visible, .add-to-cart-btn:focus-visible { outline: 3px solid #795016; outline-offset: 2px; }
  .footer-list a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .footer-brand { padding: 32px 16px; }
  .cart-page-container { padding-inline: 12px; }
  .cart-card { padding: 20px 16px; }
  .cart-header-title { flex-wrap: wrap; gap: 12px; font-size: 3rem; }
  .cart-item-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .cart-item-row > div:last-child { justify-content: space-between; gap: 8px !important; flex-wrap: wrap; }
  .cart-item-info h4 { overflow-wrap: anywhere; }
  .cart-controls { gap: 4px; padding: 4px; }
  #order-submit-button { white-space: normal; min-height: 48px; }
  .admin-container { padding: 24px 12px; min-width: 0; }
  .admin-container .tabs { gap: 8px; }
  .admin-container .tab-btn { flex: 1 1 140px; padding: 12px; min-height: 48px; font-size: 1.6rem; }
  .admin-container .btn, .admin-container .btn-text { min-height: 44px; min-width: 44px; white-space: normal; }
  .admin-container .btn { padding: 12px 16px; }
  .admin-container .tab-content > div:first-child > div { flex-wrap: wrap; max-width: 100%; }
  .admin-table-scroll { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .admin-table-scroll:focus-visible { outline: 2px solid var(--gold-crayola); outline-offset: 3px; }
  .admin-table-scroll .data-table { min-width: 720px; }
  .admin-table-scroll .status-select { min-height: 44px; }
  #orders-date-form > div { flex: 1 1 140px; min-width: 0; }
  #orders-date-form input { width: 100%; min-width: 0; }
  .admin-container input, .admin-container select { max-width: 100%; }
  .admin-container + .modal .modal-content { padding: 24px 16px; min-width: 0; }
}
@media (min-width: 992px) {
  .cart-link-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .header, .footer .separator { transition: none !important; animation: none !important; }
}
