html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body > .container {
  flex: 1;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Pizza app styles */
.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 1rem;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12) !important;
}

.navbar-brand {
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.badge {
  font-size: 0.75rem;
}

.footer {
  background-color: #f8f9fa;
}

/* ── Hamburger / collapsed navbar ── */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(0, 0, 0, .15);
    border-radius: .5rem;
    margin-top: .5rem;
    padding: .5rem .75rem;
  }

  .navbar-collapse .nav-link {
    padding: .6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }

  .navbar-collapse .nav-item:last-child .nav-link {
    border-bottom: none;
  }
}

/* ── Mobile-friendly overrides ── */

/* Hero section scales down on small screens */
@media (max-width: 575.98px) {
  .hero-banner {
    padding: 2rem 1rem !important;
  }

  .hero-banner .display-3 {
    font-size: 2rem;
  }

  .hero-banner .lead {
    font-size: 1.1rem;
  }
}

/* Category filter bar: horizontal scroll on mobile */
.category-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

@media (max-width: 575.98px) {
  .category-scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .25rem;
  }

  .category-scroll .btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* Cart: hide table on xs, show card list instead */
@media (max-width: 767.98px) {
  .cart-table {
    display: none;
  }
}

@media (min-width: 768px) {
  .cart-cards-mobile {
    display: none !important;
  }
}

/* Tracking status steps: scrollable on mobile */
@media (max-width: 575.98px) {
  .status-steps-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .status-steps-row > .col {
    min-width: 5.5rem;
    flex: 0 0 auto;
  }
}

/* Cook dashboard header wrap on small screens */
@media (max-width: 575.98px) {
  .cook-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: .75rem;
  }

  .cook-header-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* Order-card status buttons: allow nicer wrap */
@media (max-width: 575.98px) {
  .status-btn {
    padding: .25rem .45rem;
    font-size: .75rem;
  }
}

/* Tighter container padding on mobile */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
