/* General Reset and Base Styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fdfdfd;
  color: #333;
  padding-top: 80px;
}

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1999;
  background: linear-gradient(90deg, #ff5722, #ff7043);
  padding: 18px 28px;
  color: #fff;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.logo {
  display: flex;
  gap: 20px;
  align-items: center;
}
.logo a {
  text-decoration: none;
}
.logoName {
  font-size: 24px;
  font-weight: bold;
  color: white;
}

.logo-line1 {
  font-size: 24px;
  letter-spacing: 5px;
}

.logo-line2 {
  font-size: 10px;
  letter-spacing: 5px;
}

.cart-icon {
  cursor: pointer;
  position: relative;
  font-size: 25px;
}

#cart-count {
  background-color: white;
  color: #ff5722;
  padding: 2px 6px;
  border-radius: 50%;
  font-size: 0.8rem;
}

/* === Layout and Sidebar === */
.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background-color: #ffffff;
  border-right: 1px solid #ddd;
  padding: 50px 15px;
  position: sticky;
  top: 10px;
  height: 100vh;
  overflow-y: auto;
  z-index: 2;
}

.sidebar ul {
  list-style-type: none;
}

.sidebar a {
  display: block;
  padding: 10px 14px;
  margin-bottom: 6px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.sidebar a:hover,
.sidebar a.active {
  background-color: #ff5722;
  color: #fff;
}

.sub-links {
  display: none;
  margin-top: 4px;
  margin-left: 14px;
  padding-left: 12px;
  border-left: 2px solid #ff5722;
  animation: fadeIn 0.3s ease-in-out;
}

.sub-links.show {
  display: block;
}

.sub-links a {
  font-size: 0.92rem;
  padding: 6px 10px;
  margin-bottom: 4px;
  color: #444;
  font-weight: 400;
}

.sub-links a:hover {
  background-color: #e3ab8b;
  color: #222;
}

/* === Menu and Dishes === */
#menu-container {
  flex: 1;
  padding: 0px 40px 50px;
  max-width: 100%;
}

.category-heading {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #222;
  border-bottom: 2px solid #eee;
  padding-bottom: 6px;
  margin-top: 50px;
}

.subcategory-heading {
  font-size: 1.3rem;
  margin: 20px 0 10px;
  color: #444;
  border-left: 4px solid #ff5722;
  padding-left: 10px;
}

.dish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}

.dish-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  border-top: 4px solid #eee;
}

.dish-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.dish-card h4 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-weight: 600;
}

.dish-card p {
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: #666;
  flex-grow: 1;
}

.price {
  font-weight: bold;
  color: #222;
  margin-bottom: 10px;
}

.type-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: capitalize;
}

.type-badge.veg {
  background-color: #e6f4ea;
  color: #2e7d32;
  width: fit-content;
  padding: 7px 20px;
}

.type-badge.nonveg {
  background-color: #fdecea;
  color: #c62828;
  padding: 7px 20px;
  width: fit-content;
}

.add-btn {
  display: flex;
  align-self: flex-end;
  background-color: #ff5722;
  color: white;
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  width: fit-content;
  cursor: pointer;
  margin-top: auto;
  transition: all 0.2s ease;
}

.add-btn:hover {
  background-image: linear-gradient(to top right, #2e2e2e, #555555);
  transition: background-image 0.3s ease;
}

.qty-stepper{
  display: flex;
  align-self: flex-end;
  gap: 10px;
  background: #f0f0f0;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 6px;
}

.qty-stepper button {
  background: #ddd;
  border: none;
  padding: 4px 8px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
}

.qty-stepper button:hover {
  background: #8d8b8bb8;
  transform: scale(1.2);
}

.qty-stepper span {
  min-width: 20px;
  text-align: center;
  font-weight: 500;
}

/* === Cart Sidebar === */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 90%;
  max-width: 400px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease-in-out;
  overflow: hidden;
  border-top-left-radius: 50px;
}

.cart-sidebar.show {
  right: 0;
}

.cart-header {
  padding: 18px 20px;
  background: #ff5722;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.close-cart {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #fff;
}

.close-cart:hover {
  transform: scale(1.2);
}

.empty-cart {
  text-align: center;
  padding: 30px;
  color: #888;
}

.empty-cart p {
  padding-top: 15px;
  font-size: 16px;
  color: #aaa;
}

.cart-footer {
  padding: 16px;
  border-top: 2px solid #ddd;
}

.cart-footer .subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
  color: #e18007;
}

.checkout-btn {
  width: 100%;
  background: #ff5722;
  color: #fff;
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  margin-top: 15px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.checkout-btn:hover {
  background: #e64a19;
  transform: translateY(-2px);
}

#cartItems {
  flex: 1;
  overflow-y: auto;
}

.cart-item {
  background-color: #fdfdfd;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item .item-name {
  font-weight: 600;
  font-size: 16px;
  color: #333;
}

.cart-item .delete-item {
  background: none;
  border: none;
  font-size: 18px;
  color: #686767;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-item .delete-item :hover {
  color: red;
  transform: scale(1.1);
}

.cart-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item .item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0f0f0;
  padding: 5px 10px;
  border-radius: 6px;
}

.cart-item .item-controls button {
  background: #ddd;
  border: none;
  padding: 4px 8px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
}

.cart-item .item-controls button:hover {
  background: #8d8b8bb8;
  transform: scale(1.2);
}

.cart-item .item-controls span {
  min-width: 20px;
  text-align: center;
  font-weight: 500;
}

.cart-item .item-total {
  font-weight: bold;
  font-size: 15px;
  color: #e18007;
}

.add-more-container {
  background-color: rgb(229, 227, 227);
  color: #333;
  padding: 15px;
  font-weight: 600;
  cursor: pointer;
  font-size: 17px;
  text-align: center;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 transparent;
}

.add-more-container:hover {
  background-color: rgba(105, 104, 104, 0.483);
  transform: translateY(-2px);
}

/* === Checkout Page Styles === */

.header-Number a {
  text-decoration: none;
  color: white;
  font-size: large;
}
.header-Number a:hover {
  text-decoration: underline;
}

.checkout-container {
  max-width: 600px;
  margin: 30px auto;
  padding: 50px 15px;
  font-family: "Segoe UI", sans-serif;
}

.customer-info-section,
.order-summary-card {
  background: white;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.checkout-container h2 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #333;
}

#customerForm {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#customerForm input,
#customerForm textarea {
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
}

#customerForm textarea {
  resize: vertical;
  min-height: 80px;
}

.order-header {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.order-header h2 {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.summary-item:last-child {
  border-bottom: none;
}

.item-info {
  flex-grow: 1;
}

.item-name {
  font-weight: 500;
  font-size: 17px;
  color: #333;
}

.item-price {
  font-size: 17px;
  color: #666;
}

.price-lines {
  padding-top: 10px;
  border-top: 1px solid #ddd;
  margin-top: 16px;
}

.price-lines div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 17px;
  color: #444;
}

.price-lines strong {
  font-weight: 600;
  font-size: 17px;
  color: #000;
}

.action-btn {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  background-color: #e67e22;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.action-btn:hover {
  background-color: #d35400;
}

.action-btn.secondary {
  background-color: #f4a261;
}

.action-btn.secondary:hover {
  background-color: #e98b3c;
}

/* === QR Modal === */
.qr-modal {
  display: none;
  position: fixed;
  z-index: 2999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.qr-content {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  position: relative;
  text-align: center;
  max-width: 460px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  animation: fadeIn 0.3s ease;
}

.qr-img {
  width: 100%;
  max-width: 350px;
  margin-top: 1rem;
  border: 6px solid #ddd;
  border-radius: 14px;
}

.qr-message {
  font-size: 16px;
  color: #333;
  margin: 16px 0 12px;
}

#confirmPaymentBtn {
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 17px;
}

.qr-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 24px;
  cursor: pointer;
  color: #555;
}

.qr-close:hover {
  transform: scale(1.2);
  color: #e74c3c;
}

/* Floating Cart Button  */
.floating-cart-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #ff5722;
  color: white;
  font-size: 22px;
  border: none;
  border-radius: 50%;
  padding: 16px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.floating-cart-btn:hover {
  background-color: #e64a19;
}

.floating-cart-btn i {
  pointer-events: none;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: #fff;
  color: #ff5722;
  font-size: 17px;
  font-weight: bold;
  border-radius: 50%;
  padding: 2px 6px;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Back to Top Arrow */
#backToTop {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background-color: rgb(9, 94, 212);
  color: white;
  border: none;
  border-radius: 25%;
  padding: 10px 15px;
  font-size: 30px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 999;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#backToTop:hover {
  transform: translateY(-3px);
}

/* Footer Section */
footer {
  background-color: #333;
  width: 100%;
}

.footer {
  color: white;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 50px 5%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.social a img {
  border-radius: 50%;
  width: 30px;
  margin-top: 15px;
  margin-right: 15px;
}

.visit_us strong,
.call strong {
  color: #b93b6b;
}

.call a{
  color: white;
  text-decoration: none;
}

.call a:hover{
  text-decoration: underline;
}
.copyright {
  height: 80px;
  text-align: center;
  background-color: #1b1b1b;
  color: wheat;
  opacity: 0.7;
}
.copyright p {
  padding: 2.1%;
}

 #mobileMenuBtn {
    display: none;
  }


/* === Media Queries === */

/* Mobile view Menu Links*/
@media (max-width: 768px) {
  .dish-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }

 

  .sidebar {
    display: none;
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    max-height: 80vh;
    background-color: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
  }

  .sidebar.show {
    display: block;
  }

  #mobileMenuBtn {
    display: block;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff5722;
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    z-index: 2500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  }

  #mobileMenuBtn:hover {
    background-color: #e64a19;
  }
}

/* Container for the card */
.order-mode-section {
  max-width: 450px;
  margin: 30px auto;
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

/* Logo Centering */
.order-mode-section img {
  max-width: 150px;
  margin-bottom: 20px;
}

/* Mode Toggle Buttons */
.mode-toggle {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.mode-toggle input[type="radio"] {
  display: none;
}

.mode-toggle label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 140px;
  padding: 12px 10px;
  font-weight: 500;
  color: #333;
  border: 2px solid #ccc;
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
  font-size: 16px;
  transition: all 0.3s ease;
}

/* Selected Mode */
.mode-toggle input[type="radio"]:checked + label {
  border-color: #f57c00;
  color: #f57c00;
  background: #fff8f0;
}

/* Icons inside the labels */
.mode-toggle label i {
  font-size: 18px;
}

/* Search Location Text */
.location-block label {
  display: block;
  text-align: left;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 14px;
  color: #333;
}

/* Input + Icon Wrapper */
.location-input-wrapper {
  display: flex;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
}

.location-input-wrapper input {
  flex: 1;
  padding: 12px;
  font-size: 15px;
  border: none;
  outline: none;
}

.location-input-wrapper button {
  background: #f7f7f7;
  border: none;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
   font-size: 18px;
  color: #333;
}


/* Hover effects */
.mode-toggle label:hover {
  border-color: #f57c00;
  color: #f57c00;
}

/* Responsive */
@media (max-width: 480px) {
  .mode-toggle {
    flex-direction: column;
    gap: 10px;
  }

  .mode-toggle label {
    width: 100%;
  }

  .order-mode-section {
    padding: 20px;
  }
}

.address-Suggestion {
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 250px;
  overflow-y: auto;
  width: 40%;
  z-index: 999;
}

.address-Suggestion li {
  list-style: none;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.2s ease, padding-left 0.2s ease;
  font-size: 15px;
  color: #333;
}
.address-Suggestion li.active,
.address-Suggestion li:hover {
   background-color: #c8e1f7c7; /* light blue hover */
  padding-left: 18px;  
  font-weight: 600;  
}

.address-Suggestion li:last-child {
  border-bottom: none;
}



@media (min-width: 1024px) {
  .address-Suggestion {
    width: 32%;
  }
}


/* 
/* ✅ Mobile Responsiveness */
@media (max-width: 768px) {
  .address-Suggestion {
    width: 52%; /* Full width for mobile */
    font-size: 14px;
  }

  .address-Suggestion li {
    padding: 10px;
  }
} 

@media (max-width: 482px){

  .address-Suggestion{
    width: 80%;
  }
}


/* Pickup Dropdown */
#pickupInput select {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #333;
  margin-top: 10px;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

#pickupInput select:focus {
  border-color: #f57c00;
  box-shadow: 0 0 5px rgba(245, 124, 0, 0.4);
}


/* Area Status Message */
#areaStatus {
  margin: 15px;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
}


/* Cart Section  */
@media (max-width: 768px) {
  .cart-sidebar {
    width: 100%;
    max-width: none;
    border-radius: 0;
  }

  .cart-item {
    padding: 12px;
  }

  .cart-item .item-name {
    font-size: 15px;
  }

  .cart-item .item-controls button {
    font-size: 13px;
    padding: 4px 6px;
  }

  .cart-item .item-total {
    font-size: 14px;
  }

  .checkout-btn {
    font-size: 15px;
    padding: 10px;
  }

  .cart-header {
    font-size: 18px;
    padding: 14px 16px;
  }

  .add-more-container {
    font-size: 14px;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .dish-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .navbar {
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 16px;
  } 

  .header-Number a{
    font-size: 17px;
  }

  .logoName {
    font-size: 12px;
  }

  .cart-icon {
    font-size: 18px;
  }

  .floating-cart-btn{
    font-size: 16px;
  }
  .cart-badge{
    font-size: 13px;
  }

  #backToTop{
    font-size: 16px;
    padding: 8px 10px;
  }

  #mobileMenuBtn{
    font-size: 14px;
    padding: 8px 16px;
  }

  .add-btn{
    font-size: 0.9rem;
    padding: 8px 15px;
  }
}

/* QR Popup Fullscreen on Mobile */
@media (max-width: 768px) {
  .qr-popup {
    width: 100vw;
    height: 100%;
    top: 0 ;
    left: 0 ;
    border-radius: 0 ;
    max-width: none ;
    max-height: none;
    padding: 20px;
  }

  .qr-popup img {
    max-width: 80%;
    height: auto;
  }

  .qr-popup .qr-message {
    font-size: 16px;
    margin-top: 15px;
    text-align: center;
  }

  .qr-popup .confirm-btn {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    margin-top: 20px;
  }
}

