.navbar-logo {
  width: 250px;
}

.carousel-wrapper {
  position: relative;
  max-width: 100%;
  height: auto;
  /* overflow: hidden; */
  background-color: white;
}

.carousel-container {
  display: flex;
  overflow-x: hidden;
  scroll-behavior: smooth;
  white-space: nowrap;
  gap: 10px;
  padding-bottom: 10px;
  scrollbar-width: none;
  /* Hide scrollbar */
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

.carousel-container .card {
  flex: 0 0 calc(100% / 7 - 10px);
  max-width: calc(100% / 7 - 10px);
}

.carousel-btn {
  background: none;
  font-size: 20px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: none;
  color: none;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  display: none;
  /* Hide by default */
}

.carousel-btn.left {
  left: 0;
  color: black;
}

.carousel-btn.right {
  right: 0;
  color: black;
}

/* Responsive: Stack into 2 columns on smaller screens */
@media (max-width: 768px) {
  .carousel-container {
    flex-wrap: wrap;
    overflow-x: hidden;
  }

  .carousel-container .card {
    flex: 1 1 calc(50% - 10px);
  }
}

/* Small screen grid */
@media (max-width: 768px) {
  .grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .grid-item {
    flex: 1 1 calc(33.33% - 10px);
    /* 3 per row */
    max-width: calc(33.33% - 10px);
  }
}

.otp-input {
  width: 50px;
  height: 50px;
  font-size: 24px;
  text-align: center;
}

/* Footer */
.footer {
  position: sticky;
  background-color: #c8102f;
  /* Dark Brown for a premium look */
  padding: 30px 20px;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  /* White text */
  z-index: 1000;
  /* Ensure it's above other content */
}

.card-img-overlay img {
  position: absolute;
  margin-top: -20px;
  margin-left: -20px;
  top: 0px;
  /* Adjust top position */
  left: 10px;
  /* Move it to the left */
  width: 110px;
  /* Adjust size as needed */
  height: auto;
}

/* Show dropdown menu on hover */
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
}

/* Hide dropdown menu by default */
.dropdown-menu {
  display: none;
}

.alert {
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 4px;
}

.alert-success {
  background-color: #090909;
  color: #ffffff;
  border: 1px solid #090909;
}

.alert-danger {
  background-color: #f8d7da;
  color: #dc3545;
  border: 1px solid #f5c6cb;
}

/* Base button styles */
.btn {
  margin: 2px;
  /* Add small margin for spacing */
}

.sticky-footer {
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  /* Adjust background color as needed */
  box-shadow: 0 -10px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  /* Ensure it stays above other content */
}

.btn-link {
  color: #fff;
  /* Black color for quantity buttons */
}

.btn-link:hover {
  text-decoration: none;
}

.hover-bg-dark:hover {
  background-color: #000 !important;
  transition: background-color 0.3s ease;
}

.restaurant {
  cursor: pointer;
}

.restaurant:hover {
  background-color: #f8f9fa;
}

.autocomplete-list {
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  max-height: 150px;
  overflow-y: auto;
  width: 100%;
  z-index: 1000;
}

.autocomplete-item {
  padding: 10px;
  cursor: pointer;
}

.autocomplete-item:hover {
  background: #f0f0f0;
}

#map {
  height: 300px;
  width: 100%;
}

/* Ensure the modal backdrop is removed */
.modal-backdrop {
  display: none !important;
}

/* Highlight the selected restaurant */
.restaurant.selected {
  background-color: #f0f0f0;
  /* Light gray background */
  border-left: 4px solid #dc3545;
  /* Red border on the left */
}

/* Style for floating messages */
.flash-message {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 25px;
  border-radius: 5px;
  color: white;
  font-size: 16px;
  z-index: 1000;
  opacity: 0;
  transform: translateX(100%);
  animation: slideIn 0.5s forwards, fadeOut 3s forwards;
}

.flash-message.success {
  background-color: #28a745;
  /* Green for success */
}

.flash-message.error {
  background-color: #dc3545;
  /* Red for error */
}

/* Animation for sliding in */
@keyframes slideIn {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Animation for fading out */
@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@media (max-width: 400px) {
  .navbar-brand img {
    max-width: 150px !important;
  }

  #locationText {
    font-size: 0.9rem;
  }

  #orderDetails .badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.5rem;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse.collapse.show {
    transition: height 0.3s ease;
  }

  .navbar-collapse.collapsing {
    height: 0;
    transition: height 0.3s ease;
  }
}

.spinner-border {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}

.body {
  margin-bottom: 60px;
  /* Adjust to match footer height */
}

/* Media Query */

@media (min-width: 576px) {

  /* Container adjustments */
  .container, .container-sm {
    max-width: 540px;
  }

  /* Grid system */
  .col-sm-1 {
    width: 8.33333%;
  }

  /* ... up to .col-sm-12 */

  /* Navbar */
  .navbar-expand-sm {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  /* Table responsiveness */
  .table-responsive-sm {
    overflow-x: auto;
  }
}

@media (min-width: 768px) {

  /* Container adjustments */
  .container, .container-sm, .container-md {
    max-width: 720px;
  }

  /* Grid system */
  .col-md-1 {
    width: 8.33333%;
  }

  /* ... up to .col-md-12 */

  /* Navbar */
  .navbar-expand-md {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  /* Table responsiveness */
  .table-responsive-md {
    overflow-x: auto;
  }
}

@media (min-width: 992px) {

  /* Container adjustments */
  .container, .container-sm, .container-md, .container-lg {
    max-width: 960px;
  }

  /* Grid system */
  .col-lg-1 {
    width: 8.33333%;
  }

  /* ... up to .col-lg-12 */

  /* Navbar */
  .navbar-expand-lg {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  /* Table responsiveness */
  .table-responsive-lg {
    overflow-x: auto;
  }
}

@media (min-width: 1200px) {

  /* Container adjustments */
  .container, .container-sm, .container-md, .container-lg, .container-xl {
    max-width: 1140px;
  }

  /* Grid system */
  .col-xl-1 {
    width: 8.33333%;
  }

  /* ... up to .col-xl-12 */

  /* Typography */
  h1, .h1 {
    font-size: 2.48832rem;
  }

  h2, .h2 {
    font-size: 2.0736rem;
  }

  /* ... other heading sizes */

  /* Navbar */
  .navbar-expand-xl {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  /* Table responsiveness */
  .table-responsive-xl {
    overflow-x: auto;
  }
}

@media (min-width: 1540px) {

  /* Container adjustments */
  .container, .container-sm, .container-md, .container-lg,
  .container-xl, .container-xxl {
    max-width: 1480px;
  }

  /* Grid system */
  .col-xxl-1 {
    width: 8.33333%;
  }

  /* ... up to .col-xxl-12 */

  /* Navbar */
  .navbar-expand-xxl {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  /* Table responsiveness */
  .table-responsive-xxl {
    overflow-x: auto;
  }
}

h1, .h1 {
  font-size: calc(1.37383rem + 1.48598vw);
}

@media (min-width: 1200px) {
  h1, .h1 {
    font-size: 2.48832rem;
  }
}

:root {
  /* Standard weights */
  font-weight: 400;
  /* Regular */
  font-weight: 700;
  /* Bold (used for headings) */
  font-weight: 800;
  /* Extra bold (used for <strong> tags) */
  font-weight: 900;
  /* Black (used for display classes) */
}

.lead {
  font-size: 1.2rem;
  /* 19.2px */
  font-weight: 400;
}

.small, small {
  font-size: 75%;
  /* 12px relative to parent */
}

.initialism {
  font-size: 75%;
  /* 12px relative to parent */
  text-transform: uppercase;
}

body {
  font-size: 1rem;
  /* 16px base */
  font-weight: 400;
  line-height: 1.5;
  color: #424242;
}

.category-card {
  cursor: pointer;
  transition: transform 0.2s;
  padding: 8px;
}

.category-card:hover {
  transform: scale(1.03);
}

.category-img-container {
  width: 100%;
  padding-top: 100%;
  /* 1:1 Aspect Ratio */
  position: relative;
  overflow: hidden;
}

.category-img-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card h5 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ensure mobile header stays on top of other content */
.fixed-top {
  z-index: 1030;
}

/* Modal menu styling */
#mobileMenuModal .modal-body a {
  text-decoration: none;
  font-size: 1.1rem;
}

/* Mobile Offers Styling */
.offer-card {
  border-radius: 12px;
  padding: 12px;
  height: 100%;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.offer-icon {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  flex-shrink: 0;
}

.offer-details h5 {
  font-weight: 700;
  margin-bottom: 2px;
  font-size: 0.95rem;
}

.offer-details p {
  margin-bottom: 0;
  font-size: 0.75rem;
  opacity: 0.9;
}

@media (max-width: 575.98px) {
  .offer-card {
    padding: 8px;
  }

  .offer-icon {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .offer-details h5 {
    font-size: 0.85rem;
  }
}

/* Mobile-specific styles */
@media (max-width: 767.98px) {
  .carousel-item img {
    height: 160px;
    object-fit: cover;
  }

  .category-item img {
    width: 60px;
    height: 60px;
  }

  .location-header {
    font-size: 14px;
  }

  section {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  .carousel-container .card {
    min-width: 85%;
  }

  .d-md-block {
    display: none !important;
  }
}

/* Show mobile elements only on mobile */
@media (max-width: 767.98px) {
  .d-mobile {
    display: block !important;
  }
}

@media (min-width: 768px) {
  .d-mobile {
    display: none !important;
  }
}

/* Better scrolling for mobile */
.carousel-container {
  -webkit-overflow-scrolling: touch;
}

/* Custom CSS for the sticky footer cart */
.footer-cart {
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1020;
  /* Above most elements but below modals */
}

@media (max-width: 767.98px) {
  .footer-cart {
    padding-bottom: env(safe-area-inset-bottom);
    /* For iPhone notch */
  }

  .footer-cart .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
  }

  .footer-cart .h6 {
    font-size: 0.9375rem;
  }
}

/* Mobile Specific Styles */
@media (max-width: 767.98px) {
  .mobile-offer-card {
    height: 80px;
    padding: 10px;
  }

  .mobile-offer-card .offer-icon {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }

  .mobile-offer-card h6 {
    font-size: 0.9rem;
    margin-bottom: 2px;
  }

  .mobile-offer-card p {
    font-size: 0.75rem;
    margin-bottom: 0;
  }

}

/* Desktop Specific Styles */
@media (min-width: 768px) {
  .desktop-offer-card {
    min-width: 280px;
    height: 80px;
  }
}

#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #333;
  color: white;
  border: none;
  cursor: pointer;
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 999;
  opacity: 0.8;
}

#scrollTopBtn:hover {
  opacity: 1;
  background: #555;
}

#scrollTopBtn.visible {
  display: flex; /* Show when needed */
}