body {
  height: 100%;
  overflow: hidden;
  background-color: #f2edae89;
}

.navbar {
  position: sticky;
  top: 0;
  background-color: #efca6c;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}

.lomihub-navbar-text {
  font-family: 'Lilita One', cursive;
  color: #1c1c1c;
  font-size: 2rem;
  font-weight: normal;
  letter-spacing: 2px;  
  margin-bottom: 5.8px;
}

.navbar-brand {
  display: flex;
  align-items: flex-end; /* or center, or baseline for different effects */
}

/* Move logo further left */
.navbar-brand .logo {
  margin-right: 0 !important;
  height: 53px;
  border-radius: 53px;
  margin-left: -70px; /* Reduced from 30px to move logo left more */
}

.navbar-nav.ms-auto,
#customerNavActions .nav-link,
#desktopSignInBtn,
#customerNavActions a.nav-link[href="customersignup.html"]  {
  margin-left: auto !important;
  padding-right: 10px;
  font-size: 19px;
}

.navbar-nav.ms-auto {
  margin-left: auto !important;
  padding-right: 10px; 
  /* font-family: "Times New Roman", Times, serif; */
  font-size: 19px;
}
.navbar-nav .nav-link {
  font-family: 'Alfa Slab One', cursive;
  font-weight: 500;
  margin-right: 1.5rem; 
}

/* .navbar-nav .nav-link.active {
  text-decoration: underline;
} */

.nav-link[href*="myorders.html"] {
  margin-top: 3px; 
  display: inline-block;
}

/* Extra right margin for logout icon */
.navbar-nav .nav-link:last-child {
  margin-right: 0;
  padding-right: 5px; /* Additional padding for logout */
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #f0f0f0;
  transition: background 0.2s, box-shadow 0.2s;
  margin: 0 4px;
  cursor: pointer;
}
.navbar-nav .icon-circle.active {
  background: #f7de5e;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.icon-circle:hover {
  background: #f7de5e;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .navbar-nav {
    flex-direction: column;
  }
  .navbar-nav .nav-link {
    margin-right: 0;
    margin-bottom: 0.5rem;
    justify-content: center;
  }
  .logo {
    margin-left: 10px; 
  }
  .navbar-brand .logo {
    margin-left: 0; 
  }
  .lomihub-navbar-text {
    font-size: 1.4rem;
    letter-spacing: 1.5px;
  }
}

@media (max-width: 1200px) {
  .navbar-nav {
    flex-direction: row;
    justify-content: center;
  }
  .navbar-nav .nav-link {
    margin-right: 1rem; 
  }
  .navbar-brand .logo {
    margin-left: 0; 
  }
}

/* Mobile Side Navbar Styles */
.mobile-nav-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 190px;
  background: #efca6c;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15); /* shadow on the left side */
  z-index: 1051;
  transform: translateX(100%); /* changed from -100% */
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding-top: 1rem;
  overflow-y: auto;
  display: block;
}
.mobile-nav-sidebar .mobile-nav-header,
.mobile-nav-sidebar .close-btn {
  display: none !important;
}
.mobile-nav-sidebar ul.navbar-nav {
  padding-left: 0;
}
.mobile-nav-sidebar .nav-link {
  font-size: 1.1rem;
  color: #000000;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  font-family: "Times New Roman", Times, serif;
  transition: background 0.2s ease;
}
.mobile-nav-sidebar .nav-link.active {
  background: #f7de5e;
  color: #111111;
}
.mobile-nav-sidebar .nav-link:hover {
  background: rgba(247, 222, 94, 0.35);
  color: #111111;
}
.mobile-nav-sidebar .icon-circle {
  margin-right: 10px;
}
.mobile-nav-sidebar.show {
  transform: translateX(0);
}
.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1050;
  display: none;
}
.mobile-nav-backdrop.show {
  display: block;
}

/* Hide Bootstrap collapse on mobile, show on desktop */
@media (max-width: 991.98px) {
  .navbar-collapse {
    display: none !important;
  }
  .mobile-nav-sidebar {
    display: block;
  }
}
@media (min-width: 992px) {
  .mobile-nav-sidebar,
  .mobile-nav-backdrop {
    display: none !important;
  }
}


/* --- Sign In Modal Styles --- */
#loginModal .logo-container {
  width: 100%;
  text-align: center;
  margin-bottom: 0.5rem;
}
#loginModal .modal-dialog{
  margin-top: 6px; 
  display: flex; 
  align-items: flex-start; 
  justify-content: center;
}
#loginModal .logo-top {
  max-width: 110px;
  max-height: 110px;
  width: clamp(80px, 20vw, 120px);
  height: clamp(80px, 20vw, 120px);
  margin-top: -60px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
#loginModal .modal-content {
  border-radius: 1rem;
  background: #fff;
  max-width: 400px;
  margin: auto;
  padding: 0;
}
#loginModal .modal-body {
  padding-top: 2.5rem;
  padding-bottom: 2rem;
  background: #fff;
  border-radius: 1rem;
}
#loginModal .title {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}
#loginModal input[type="email"],
#loginModal input[type="password"] {
  background: #fafafa;
  font-size: 1.1rem;
  border-radius: 10px;
  padding: 14px;
  border: 1px solid #ccc;
  margin-bottom: 0.5rem;
}
#loginModal input[type="password"],
#loginModal input[type="text"].password-toggle {
  background: #fafafa;
  font-size: 1.1rem;
  border-radius: 10px;
  padding: 14px 45px 14px 14px !important;
  border: 1px solid #ccc;
  margin-bottom: 0.5rem;
  width: 100% !important;
  box-sizing: border-box;
  line-height: 1.5;
}
#loginModal .btn-warning {
  background-color: #FFC107;
  color: #222;
  font-weight: 600;
  font-size: 1.2rem;
  border-radius: 10px;
  border: none;
}
#loginModal .btn-warning:hover {
  background-color: #e0ac06;
}
#loginModal .text-warning,
#loginModal .text-warning:visited {
  color: #FFC107 !important;
}
#loginModal .g_id_signin {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}
#loginModal .g_id_signin > div,
#loginModal .g_id_signin iframe {
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
#loginModal #googleSignInBtn,
#loginModal #googleSignInBtn > div,
#loginModal #googleSignInBtn iframe {
  width: min(360px, 98%) !important;
  min-width: 260px !important;
  display: block !important;
  margin: 0 auto !important;
}
#loginModal .my-3 {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}
#loginModal #registerPrompt {
  color: #222;
  font-size: 1.1rem;
}
#loginModal #registerPrompt a {
  color: #FFC107 !important;
  font-weight: 500;
}
#loginModal .toggle-password {
  position: absolute;
  right: 20px;
  top: calc(50% - 30px);
  background: none !important;
  border: none !important;
  color: #666 !important;
  cursor: pointer;
  padding: 0;
  z-index: 10;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
}

#loginModal .toggle-password:hover {
  color: #ffc107 !important;
}

#loginModal .toggle-password:focus {
  outline: none;
  box-shadow: none;
}

#loginModal .toggle-password i {
  font-size: 1.1rem;
  line-height: 1;
  vertical-align: middle;
}
#loginModal .form-control:focus {
  border-color: #FFC107;
  box-shadow: 0 0 0 0.2rem rgba(255,193,7,.15);
}
#loginModal .divider {
  margin: 1.5rem 0;
}
#loginModal .divider span {
  color: #888;
  font-size: 1rem;
  font-weight: 500;
}

/* Responsive for modal */
@media (max-width: 480px) {
  #loginModal .modal-content {
    max-width: 95vw;
    padding: 0.5rem;
  }
  #loginModal .logo-top {
    max-width: 80px;
    max-height: 80px;
  }
  #loginModal .modal-body {
    padding: 1.5rem 0.5rem;
  }
  #loginModal .title {
    font-size: 1.5rem;
  }
}


/* Sign up css */
/* --- Sign Up Modal Styles --- */
#signupModal .logo-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0rem;
  position: relative;
  padding: 0;
}
#signupModal .logo-top {
  max-width: 110px;
  max-height: 110px;
  width: clamp(80px, 20vw, 120px);
  height: clamp(80px, 20vw, 120px);
  border-radius: 50%;
  display: block;
  margin: 0 auto;
  margin-top: -35px;
  position: relative;
  top: -15px;
  left: 0;
  right: 0;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
#signupModal .modal-content {
  border-radius: 1rem;
  background: #fff;
  max-width: 400px;
  margin: auto;
  padding: 0;
}
#signupModal .modal-body {
  padding-top: 1rem;
  padding-bottom: 2rem;
  background: #fff;
  border-radius: 1rem;
}
#signupModal .title {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}
#signupModal input[type="text"],
#signupModal input[type="email"] {
  background: #fafafa;
  font-size: 1.1rem;
  border-radius: 10px;
  padding: 14px;
  border: 1px solid #ccc;
  margin-bottom: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

#signupModal input[type="password"],
#signupModal input[type="text"].password-toggle {
  background: #fafafa;
  font-size: 1.1rem;
  border-radius: 10px;
  padding: 14px 45px 14px 14px !important;
  border: 1px solid #ccc;
  margin-bottom: 0.5rem;
  width: 100% !important;
  box-sizing: border-box;
  line-height: 1.5;
}
#signupModal .btn-warning {
  background-color: #FFC107;
  color: #222;
  font-weight: 600;
  font-size: 1.2rem;
  border-radius: 10px;
  border: none;
}
#signupModal .btn-warning:hover {
  background-color: #e0ac06;
}
#signupModal .my-3 {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}
#signupModal .g_id_signin {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}
#signupModal .g_id_signin > div,
#signupModal .g_id_signin iframe {
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
#signupModal #googleSignInBtn,
#signupModal #googleSignInBtn > div,
#signupModal #googleSignInBtn iframe {
  width: min(360px, 98%) !important;
  min-width: 260px !important;
  display: block !important;
  margin: 0 auto !important;
}
#signupModal .toggle-password {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none !important;
  border: none !important;
  color: #666 !important;
  cursor: pointer;
  padding: 0;
  z-index: 10;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
}

#signupModal .toggle-password:hover {
  color: #ffc107 !important;
}

#signupModal .toggle-password:focus {
  outline: none;
  box-shadow: none;
}

#signupModal .toggle-password i {
  font-size: 1.1rem;
  line-height: 1;
  display: inline-block;
}
#signupModal .form-control:focus {
  border-color: #FFC107;
  box-shadow: 0 0 0 0.2rem rgba(255,193,7,.15);
}
#signupModal .divider span {
  color: #888;
  font-size: 1rem;
  font-weight: 500;
}
#signupModal p.small a {
  color: #FFC107 !important;
  font-weight: 500;
}

/* Responsive for modal */
@media (max-width: 480px) {
  #signupModal .modal-content {
    max-width: 95vw;
    padding: 0.5rem;
  }
  #signupModal .logo-top {
    max-width: 80px;
    max-height: 80px;
  }
  #signupModal .modal-body {
    padding: 1.5rem 0.5rem;
  }
  #signupModal .title {
    font-size: 1.5rem;
  }
}


/* OTP MODAL */
#otpModal .modal-content {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 0 1.5rem 2rem 1.5rem;
  border: none;
}

#otpModal .modal-header {
  border-bottom: none;
  padding-bottom: 0.5rem;
  background: transparent;
}

#otpModal .modal-title {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #222;
  letter-spacing: 0.5px;
}

#otpModal p,
#otpModal .text-muted {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  font-size: 1.05rem;
  color: #555;
}

#otpModal .otp-input {
  width: 48px;
  height: 56px;
  font-size: 2rem;
  border-radius: 10px;
  border: 1.5px solid #e0e0e0;
  margin: 0 2px;
  background: #fafbfc;
  color: #222;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

#otpModal .otp-input:focus {
  border-color: #6c63ff;
  box-shadow: 0 0 0 2px #6c63ff33;
  outline: none;
  background: #fff;
}

#otpModal .btn-warning,
#otpModal .btn-warning:active {
  background: linear-gradient(90deg, #ffb347 0%, #ffcc33 100%);
  color: #222;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 8px rgba(255, 204, 51, 0.08);
  transition: background 0.2s, box-shadow 0.2s;
}

#otpModal .btn-warning:hover {
  background: linear-gradient(90deg, #ffcc33 0%, #ffb347 100%);
  color: #111;
  box-shadow: 0 4px 16px rgba(255, 204, 51, 0.13);
}

#otpModal .btn-link {
  color: #6c63ff;
  font-weight: 500;
  text-decoration: underline;
  font-size: 1rem;
  transition: color 0.2s;
  padding: 0;
  margin-bottom: 0.5rem;
}

#otpModal .btn-link:hover {
  color: #4834d4;
  text-decoration: underline;
}

#otpModal .btn-close {
  filter: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}
#otpModal .btn-close:hover {
  opacity: 1;
}

#otpModal .text-danger {
  font-size: 1rem;
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

@media (max-width: 480px) {
  #otpModal .modal-content {
    max-width: 98vw;
    padding: 0.5rem;
  }
  #otpModal .otp-input {
    width: 38px;
    height: 44px;
    font-size: 1.3rem;
  }
}



.modal-dialog {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  pointer-events: none; /* allow clicks only inside modal-content */
}
.modal-content {
  pointer-events: auto;
  background: #efca6c; /* changed from #efca6cd1 to solid */
  border-radius: 2rem;
  padding: 2rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
}

/* Modal body text */
.modal-body {
  font-size: 1.5rem;
  color: #000000;
  margin-bottom: 2rem;
  font-weight: 500;
}

/* Modal footer with vertical stacked buttons */
.modal-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
  border-top: none;
  align-items: center;
}

/* Logout button styling */
.btn-logout {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #514f4f;
  background-color: #f3f4f6;
  border: 2px solid #979797;
  border-radius: 5rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  user-select: none;
}

.btn-logout:hover,
.btn-logout:focus {
  background-color: #e6e2e2;
  color: #111827;
  text-decoration: none;
}

/* Cancel button styling */
.btn-cancel {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #514f4f;
  background: transparent;
  border: 2px solid #979797;
  border-radius: 5rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
}
.btn-cancel:hover,
.btn-cancel:focus {
  background-color: #efca6c;
  color: #374151;
}

@media (max-width: 480px) {
  .modal-content {
    padding: 1.5rem 1rem;
    max-width: 90vw;
  }
  .modal-title {
    font-size: 1.8rem;
  }
  .modal-body {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }
  .btn-logout {
    font-size: 1rem;
    padding: 0.7rem 1rem;
  }
  .btn-cancel {
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .modal-content {
    max-width: 320px;
    padding: 1.75rem 1.5rem;
  }
  .modal-title {
    font-size: 2.1rem;
  }
  .modal-body {
    font-size: 1rem;
    margin-bottom: 2.25rem;
  }
  .btn-logout {
    font-size: 1.05rem;
    padding: 0.75rem 1rem;
  }
  .btn-cancel {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
  }
}

/* --- Portion Modal Custom Styles --- */
#portionSelectModal .modal-content {
  background: #fffbe9 !important;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border: none;
}
#portionSelectModal .modal-header {
  background: #ffe066 !important;
  border-radius: 24px 24px 0 0;
  border-bottom: none;
}
#portionSelectModal .modal-title {
  color: #b8860b;
  font-weight: bold;
  font-size: 1.2rem;
}
#portionModalProductName {
  color: #222;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
}
#portionModalOptions .portion-select-btn {
  background: #fffbe9;
  color: #b8860b;
  border: 1.5px solid #ffe066;
  border-radius: 12px;
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 10px;
  transition: background 0.2s, color 0.2s;
}
#portionModalOptions .portion-select-btn:hover,
#portionModalOptions .portion-select-btn:focus {
  background: #ffe066;
  color: #222;
  border-color: #ffe066;
}
#portionSelectModal .btn-close {
  filter: none;
}

/* Add to ordernow.css */
#portionModalOptions .portion-row {
  background: #fffbe9;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 8px;
}
#portionModalOptions .portion-qty {
  min-width: 24px;
  display: inline-block;
  text-align: center;
  font-weight: 600;
  color: #222;
}

/* MAIN*/
.main-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 60px);
  overflow: hidden;
}

.menu-section {
  flex: 1;
  padding: 20px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 15px;
  position: sticky;
}

.category-btn {
  flex: 1 1 auto;
  min-width: 160px;
  max-width: 100%;
  padding: 12px 20px;
  border: none;
  background: #ffffff;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
}

.category-btn.active {
  background: #facf64;
}

.category-btn:hover {
  background: #facf64;
}

.category-alert {
  margin-bottom: 18px;
  margin-top: 0;
  order: -1;
  background-color: #ffd900ae;
  border-color: #9b9999;
  color: rgba(135, 2, 2, 0.889);
  width: 100%;
  text-align: center;
}

.alert {
  word-wrap: break-word;
  white-space: normal;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
}

.items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 20px;
  width: 100%;
}

/* Product Card */
.product-card {
  height: 340px !important;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card img {
  height: 120px;
  width: 120px;
  object-fit: cover;
}

.product-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.5rem 0;
  text-align: center;
  flex-shrink: 0;
}

.product-card .price {
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0.3rem 0;
  text-align: center;
  flex-shrink: 0;
}

.product-card .size-select {
  margin: 0.3rem 0;
  flex-shrink: 0;
  width: 30px;
}

.product-card .qty-controls {
  margin-top: auto;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.size-options {
  display: flex;
  gap: 5px;
  margin: 10px 0;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.size-btn {
  padding: 5px 10px;
  border: 1px solid #ddd;
  background: #f8f9fa;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 3;
  flex: 1;
  max-width: 50%;
  text-align: center;
  white-space: nowrap;
}

.size-btn.active {
  background: #f4cd6b;
  color: rgb(0, 0, 0);
  transform: scale(0.95);
}

#locate-me-btn {
  border-radius: 0 8px 8px 0;
}

/* Payment Preview - Modern Card Design */
.payment-preview-card {
  max-width: 100%;
  margin-top: 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.payment-preview-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.payment-preview-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 aspect ratio */
  background: #f8f9fa;
  overflow: hidden;
}

.payment-preview-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.payment-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(220, 53, 69, 0.95);
  border: 2px solid #fff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  padding: 0;
  font-size: 0.875rem;
}

.payment-remove-btn:hover {
  background: #dc3545;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.payment-remove-btn:active {
  transform: scale(0.95);
}

.payment-preview-info {
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #28a745;
  font-weight: 500;
  border-top: 1px solid #e9ecef;
}

.payment-preview-info i {
  font-size: 1rem;
}

/* Legacy support */
.payment-preview {
  max-width: 200px;
  border-radius: 8px;
  overflow: hidden;
}

.card img {
  width: 120px;
  height: 120px !important;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 0.7rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  padding: 1.2rem 0.7rem 1rem 0.7rem !important;
  min-height: 20px;
  height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  margin: 0;
  box-sizing: border-box;
  position: relative;
}

/* Quantity controls */
.qty-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.1rem;
  margin-top: 0.5rem;
  border-radius: 36px;
}

.qty-controls button {
  border: none;
  background: #efca6c;
  color: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  font-weight: bold;
  min-width: 38px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.qty-controls button:active {
  background: #efca6c;
  color: #000000;
}

.qty-controls span {
  min-width: 30px;
  text-align: center;
  font-weight: bold;
}

.content-wrapper {
  position: fixed;
  right: 0;
  top: 100px;
  bottom: 100px;
  width: 375px;
  height: calc(95vh - 5rem);
  background: #ffffff;
  border-radius: 10px 0 0 10px;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

#cart-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#cart-items {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

#cart-summary {
  flex-shrink: 0;
  margin-top: auto;
  background: #fff;
  padding: 1rem 0;
}
/* Mobile Order Summary Sidebar */
.offcanvas.offcanvas-end {
  width: 100% !important;
  max-width: 100% !important;
}

.offcanvas-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

#mobile-cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  min-height: 0;
}

#mobile-cart-summary {
  flex-shrink: 0;
  padding: 1rem;
  background: #fff;
  margin-top: auto;
}

#mobile-cart-items .empty-cart-message {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#cart-summary,
#mobile-cart-summary {
  padding-top: 15px;
}

#cart-summary,
#mobile-cart-summary {
  display: block !important;
}

.empty-cart-message {
  display: none;
}

.order-type {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  width: 100%;
}

.order-type button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #f0f0f0;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}

.order-type button.active {
  background: #e5bb47;
  color: #000;
}

#mobile-cart-summary .order-type {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}

#mobile-cart-summary .order-type button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #f0f0f0;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  font-size: 14px;
}

#mobile-cart-summary .order-type button.active {
  background: #e5bb47;
  color: #000;
}

/* Checkout button */
.checkout-btn {
  display: block;
  width: 100%;
  padding: 0.8rem;
  border: none;
  background: #efca6c;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 10px;
  margin-top: 1rem;
  cursor: pointer;
}

/* Mobile checkout button */
#mobile-checkout-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border: none;
  background: #efca6c;
  font-weight: bold;
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
}


.floating-cart-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #efca6c;
  color: #000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 1050;
  display: none;
}

.floating-cart-btn:hover {
  background: #f7de5e;
}

.checkout-modal .checkout-modal-dialog {
  max-width: 700px;
}

.checkout-modal .checkout-modal-content {
  border-radius: 15px;
  overflow: hidden;
}

.checkout-modal .checkout-modal-header {
  background-color: #efca6c;
  border-bottom: none;
  padding: 1.2rem 1.5rem;
}

.checkout-modal .checkout-modal-title {
  font-weight: 700;
  color: #333;
}

.checkout-modal .checkout-modal-body {
  padding: 1.5rem;
}

.checkout-modal .form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #444;
}

.checkout-modal .form-control {
  border-radius: 8px;
  padding: 0.75rem;
  border: 1px solid #ddd;
}

.checkout-modal .form-control:focus {
  border-color: #efca6c;
  box-shadow: 0 0 0 0.25rem rgba(239, 202, 108, 0.25);
}

.checkout-modal .qr-code {
  max-width: 150px;
  border-radius: 10px;
  border: 1px solid #eee;
}

.checkout-modal .btn-warning {
  background-color: #efca6c;
  border: none;
  font-weight: 600;
  padding: 0.75rem;
}

.checkout-modal .btn-warning:hover {
  background-color: #e4bb55;
}

#successModal .modal-content {
  max-height: unset;
}

.loading-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #efca6c;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 0.5rem;
}

/* Add to your CSS */
.location-accuracy {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.25rem;
}

.delivery-estimate {
  background-color: #e7f4e4;
  border-left: 3px solid #28a745;
  padding: 0.5rem;
  margin-top: 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.9rem;
}

.address-warning {
  background-color: #fff3cd;
  border-left: 3px solid #ffc107;
  padding: 0.5rem;
  margin-top: 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.9rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Order Modals (Delivery, Pickup, Reservation) */
.order-modal .modal-dialog {
  max-height: 90vh;
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  pointer-events: none;
}

.order-modal .modal-content {
  pointer-events: auto;
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  max-width: 700px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: none;
}

.order-modal .modal-header {
  background-color: #ffffff;
  border-bottom: 2px solid #efca6c;
  padding: 1rem 1.5rem;
}

.order-modal .modal-title {
  font-weight: 700;
  color: #333;
  font-size: 1.5rem;
}

.order-modal .modal-body {
  padding: 1.5rem;
  font-size: 1rem;
  color: #333;
  text-align: left;
  overflow-y: auto;
  max-height: calc(90vh - 150px);
}

.order-modal .form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #444;
  font-size: 0.95rem;
}

.order-modal .form-control {
  border-radius: 8px;
  padding: 0.75rem;
  border: 1px solid #ddd;
  font-size: 0.95rem;
}

.order-modal .form-control:focus {
  border-color: #efca6c;
  box-shadow: 0 0 0 0.25rem rgba(239, 202, 108, 0.25);
}

.order-modal .input-group-text {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
}

/* QR Container Styling */
.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

/* Gcash Name Styling - Fading Grey */
#delivery-gcash-name,
#pickup-gcash-name,
#gcash-name {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  font-weight: 500;
  font-size: 0.875rem;
  color: #6c757d;
  text-align: center;
  display: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  max-width: 150px;
}

#delivery-gcash-name:hover,
#pickup-gcash-name:hover,
#gcash-name:hover {
  opacity: 1;
}

.order-modal .qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.order-modal .qr-code {
  max-width: 150px;
  border-radius: 10px;
  border: 1px solid #eee;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.order-modal .btn-warning {
  background-color: #efca6c;
  border: none;
  font-weight: 600;
  padding: 0.75rem;
  border-radius: 8px;
  color: #333;
  transition: all 0.2s ease;
}

.order-modal .btn-warning:hover {
  background-color: #e4bb55;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.order-modal .btn-outline-secondary {
  border: 1px solid #ddd;
  border-radius: 0 8px 8px 0;
  color: #6c757d;
}

.order-modal .btn-outline-secondary:hover {
  background-color: #f8f9fa;
  color: #495057;
}

.order-modal .payment-preview-card {
  max-width: 100%;
  margin-top: 1rem;
}

.order-modal .payment-preview-image-wrapper {
  max-height: 300px;
  padding-top: 0;
  height: auto;
  min-height: 200px;
}

.order-modal .payment-preview-image {
  position: relative;
  max-width: 100%;
  max-height: 300px;
  height: auto;
  object-fit: contain;
}

/* Legacy support */
.order-modal .payment-preview {
  max-width: 200px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-top: 0.5rem;
}

/* Form check styling */
.order-modal .form-check {
  margin-bottom: 0.5rem;
}

.order-modal .form-check-input:checked {
  background-color: #efca6c;
  border-color: #efca6c;
}

.order-modal .form-check-label {
  font-weight: 500;
  color: #444;
}

/* Shipping fee display */
.order-modal #shipping-fee {
  font-weight: 600;
  color: #28a745;
}

/* Location status */
.order-modal #location-status {
  font-style: italic;
  color: #6c757d;
  margin-top: 0.25rem;
}

@media (max-width: 992px) {
  .main-container {
    display: contents;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .product-card .size-options {
    display: none !important;
  }

  .category-alert {
    height: auto !important;
    min-height: 44px;
    white-space: normal !important;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
  }
  .alert {
    word-wrap: break-word;
    white-space: normal;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
  }

  .categories {
    display: flex;
    flex-direction: row;
    position: relative;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: stretch;
    width: 100%;
    margin-bottom: 15px;
  }
  .category-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    /* font-size: 1rem !important; */
    font-weight: 600;
    padding: 14px 0 !important;
    margin: 0;
    text-align: center !important;
    display: block !important;
    white-space: nowrap !important;
  }

  .menu-section {
    overflow-y: auto;
    max-height: none;
    padding-bottom: 80px; /* Space for floating cart button */
  }

  .sidebar {
    max-width: 100%;
    margin-right: 0;
    padding-right: 0;
    overflow-y: auto; /* only vertical scroll */
    overflow-x: hidden; /* no horizontal scroll */
  }

  .desktop-cart {
    display: none !important;
  }

  .content-wrapper {
    display: none !important;
  }

  .product-card {
    padding: 12px;
  }

  .product-card img {
    max-height: 100px;
  }

  .card h4,
  .food-card h5 {
    font-size: 1.08rem;
    margin: 0 0 0.2rem 0;
    font-weight: 600;
    text-align: center;
    color: #222;
    letter-spacing: 0.01em;
  }

  .items {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 18px; /* slightly smaller gaps */
    padding: 0 10px;
    overflow: visible;
    max-height: none;
  }

  .product-card {
    height: 280px !important; 
    padding: 10px !important;
  }

  .card img {
    width: 77px !important;
    height: 77px !important;
    margin-bottom: 0.5rem;
  }

  .product-card h4 {
    font-size: 0.95rem;
    margin: 0.3rem 0;
    line-height: 1;
  }

  .product-card .price {
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0.2rem 0 0.5rem 0;
    line-height: 1.2;
  }

  .size-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    flex-wrap: wrap;
    gap: 4px;
    margin: 6px 0;
  }

  .size-btn {
    padding: 4px 6px;
    font-size: 11px;
    flex: 1;
    max-width: 100%;
    text-align: center;
  }

  .qty-controls button {
    min-width: 28px;
    min-height: 28px;
    font-size: 1.1rem;
    padding: 0.25rem 0.5rem;
  }

  .qty-controls .quantity-value {
    min-width: 22px;
    font-size: 1rem;
  }

  .bilao-product-card {
    height: 260px !important;
  }

  .bilao-product-card p {
    font-size: 0.75rem;
  }

  .card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    padding: 1.2rem 0.7rem 1rem 0.7rem !important;
    min-height: 20px;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin: 0;
    box-sizing: border-box;
    position: relative;
  }

  .qty-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.1rem;
    margin-top: auto;
    margin-bottom: 0.3rem;
    width: 100%;
    position: static;
    padding-top: 0.5rem;
  }

  .qty-controls button {
    border: none;
    background: #efca6c;
    color: #373636;
    padding: 0.45rem 0.85rem;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    font-weight: bold;
    min-width: 38px;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  .qty-controls button:active {
    color: #222;
    background: color;
  }
  .qty-controls .quantity-value {
    min-width: 28px;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    display: inline-block;
    color: #222;
  }

  .floating-cart-btn {
    display: flex !important;
  }
}

/* Responsive adjustments for order modals */
@media (max-width: 768px) {
  .order-modal .modal-dialog {
    margin: 1rem;
  }

  .order-modal .modal-content {
    padding: 1rem;
  }

  .order-modal .modal-body {
    padding: 1rem;
  }

  .order-modal .qr-container {
    gap: 0.25rem;
  }

  .order-modal .qr-code {
    max-width: 120px;
  }

  #delivery-gcash-name,
  #pickup-gcash-name,
  #gcash-name {
    font-size: 0.8125rem;
    max-width: 120px;
  }

  .sidebar-cart {
    width: 100% !important; /* reduce width */
    max-width: 30px; /* optional limit */
  }
  .bilao-product-card {
    height: 300px !important; /* Fixed height for all cards */
    display: flex;
    flex-direction: column;
  }

  .bilao-product-card p {
    font-size: 0.8rem;
  }

  .card-image {
    height: 160px;
  }

  .card-content {
    padding: 18px;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-price {
    font-size: 1.2rem;
  }

  .qty-btn {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .size-btn {
    max-width: 100%;
    padding: 7px 10px;
    font-size: 0.75rem;
  }

  .header h1 {
    font-size: 1.8rem;
  }

  .header p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .order-modal .modal-dialog {
    margin: 0.5rem;
  }

  .order-modal .d-flex.gap-3 {
    flex-direction: column;
  }

  .order-modal .qr-code {
    margin-bottom: 1rem;
    max-width: 100px;
  }
}

@media (max-width: 480px) {
  .items {
    padding-left: 6px;
    padding-right: 6px;
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
    gap: 5px;
  }

  .categories {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    gap: 6px;
    margin-bottom: 12px;
    position: relative;
  }
  .category-btn {
    flex: 1 1 45%;
    min-width: 0;
    max-width: 100%;
    padding: 8px 4px;
    font-size: 0.95rem;
    margin: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  alert {
    font-size: 0.85rem;
    padding: 10px 12px;
  }

  .product-card {
    padding: 8px;
    max-height: 300%;
  }

  .product-card img {
    max-height: 80px;
  }

  .product-card h4 {
    font-size: 0.9rem;
  }

  .product-card p {
    font-size: 0.85rem;
  }
  .qty-controls button {
    min-width: 32px;
    min-height: 32px;
    font-size: 1.05rem;
    padding: 0.3rem 0.6rem;
  }
  .qty-controls .quantity-value {
    min-width: 22px;
    font-size: 1rem;
  }
}

#locationMapModal .modal-content {
  background: #fff8dc;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  border: 2px solid #ead432;
  padding: 0;
}

#locationMapModal .modal-header {
  background: #ead432;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  border-bottom: none;
  padding: 1.2rem 1.5rem 0.8rem 1.5rem;
  position: relative;
}

#locationMapModal .modal-title {
  font-size: 1.35rem;
  font-weight: bold;
  color: #6b4f00;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

#locationMapModal .btn-close {
  background: none;
  font-size: 1.5rem;
  color: #6b4f00;
  opacity: 1;
  position: absolute;
  right: 1.5rem;
  top: 1.2rem;
}

#locationMapModal .modal-body {
  padding: 1.5rem 2rem 2rem 2rem;
}

#locationMapModal #map {
  height: 350px;
  width: 100%;
  border-radius: 14px;
  border: 2px solid #ead432;
  margin-bottom: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

#locationMapModal #info {
  font-size: 1.15rem;
  font-weight: bold;
  color: #6b4f00;
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 0;
  background: #fffbe6;
  border-radius: 8px;
  padding: 0.5rem 0;
  border: 1px solid #ead432;
}

#notif-indicator {
  animation: notifPulse 1.2s infinite;
}
@keyframes notifPulse {
  0% { box-shadow: 0 0 0 0 #e74c3c88; }
  70% { box-shadow: 0 0 0 8px #e74c3c00; }
  100% { box-shadow: 0 0 0 0 #e74c3c00; }
}

#notif-indicator {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.cart-badge {
  position: absolute;
  top: 1px;
  right: 6px;
  background: #e74c3c;
  color: #fff;
  border-radius: 50%;
  padding: 2px 7px;
  font-size: 0.9rem;
  font-weight: bold;
  z-index: 10;
  min-width: 22px;
  text-align: center;
  box-shadow: 0 1px 4px #0002;
  display: none;
}

.floating-cart-btn.behind-sidebar {
  z-index: 900 !important; 
  pointer-events: none;    
  opacity: 0.3;           
}

/* Responsive Payment Preview */
@media (max-width: 768px) {
  .payment-preview-card {
    margin-top: 0.75rem;
  }

  .payment-preview-image-wrapper {
    padding-top: 100%; /* Square on mobile */
    max-height: none;
  }

  .payment-preview-image {
    max-height: 400px;
  }

  .payment-remove-btn {
    width: 36px;
    height: 36px;
    top: 10px;
    right: 10px;
    font-size: 1rem;
  }

  .payment-preview-info {
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
  }

  .order-modal .payment-preview-image-wrapper {
    min-height: 180px;
    max-height: 250px;
  }

  .qr-container {
    gap: 0.375rem;
  }

  #delivery-gcash-name,
  #pickup-gcash-name,
  #gcash-name {
    font-size: 0.8125rem;
    max-width: 130px;
  }

  .order-modal .qr-code {
    max-width: 120px;
  }
}

@media (max-width: 480px) {
  .payment-preview-card {
    border-radius: 10px;
  }

  .payment-preview-image-wrapper {
    padding-top: 120%;
  }

  .payment-remove-btn {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }

  .order-modal .payment-preview-image-wrapper {
    min-height: 150px;
    max-height: 200px;
  }
}