/* === Global Styles === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Reset */
body {
  font-family: "Arial", sans-serif;
  background-color: #f4f4f4;
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

/* === Top Navbar === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}

.top-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 10px 16px;
  border-bottom: 1px solid #eee;
}

.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  /* width: 190px; */
}

.brand-logo img {
  height: auto;
  width: 97px;
  border-radius: 50%;
  object-fit: contain;
  margin-right: 8px;
}

.brand-text {
  font-size: 16px;
  font-weight: bold;
  color: #3d1109;
  white-space: nowrap;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Topnav Cart Badge */
.top-cart-wrapper {
  position: relative;
  display: inline-block;
}

.cart-badge.top-cart-badge {
  position: absolute;
  top: -9px;
  right: -11px;
  background-color: red;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 50%;
  font-weight: bold;
  line-height: 1;
}

.nav-icons i {
  font-size: 18px;
  color: #3d1109;
  cursor: pointer;
}

/* === Search Bar === */
.search-bar {
  position: relative;
  padding: 10px 16px;
  background-color: #fff;
  border-bottom: 1px solid #eee;
}

.search-bar input {
  width: 100%;
  padding: 10px 40px 10px 14px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 14px;
  outline: none;
  background-color: #fafafa;
  display: block;
}

.search-bar i.icon-search {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 16px;
  z-index: 2;
  border-color: #ff914d;
}

/* === Category Scroll Section === */
.category-scroll {
  position: fixed;
  top: 105px;
  left: 0;
  width: 100%;
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 12px 10px;
  background-color: #fff;
  border-bottom: 1px solid #eee;
  gap: 12px;
}

.category-scroll::-webkit-scrollbar {
  display: none; /* for Chrome, Safari */
}

.category-item {
  flex: 0 0 auto;
  width: 64px;
  text-align: center;
  scroll-snap-align: start;
  font-size: 12px;
  color: #333;
}

.category-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background-color: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid transparent;
  transition: border 0.3s ease;
}

.category-item.active .category-icon {
  /* border-color: #ff914d; */
  border-bottom: 2px solid #ff5722;
  font-weight: 1500;
}

.category-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Promo Banner Card Carousel */
.promo-banner {
  position: relative;
  overflow: hidden;
  width: 100%;
  background-color: white;
  /* height: 200px; */
  border-radius: 12px;
  margin: 2px 0;
  margin-top: 200px;
  /* padding-top: 230px; */
}

.promo-carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%; /* 3 slides */
}

.promo-slide {
  flex: 0 0 100%;
  padding: 30px;
  color: white;
  text-decoration: none;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  max-width: 100%;
  box-sizing: border-box;
}
s .promo-slide .promo-content img {
  max-width: 100%;
  max-height: 120px;
  object-fit: cover; /* Ensures the image fills the space without distortion */
  border-radius: 12px; /* Matches the slide's rounded edges */
  display: block;
}

/* Responsive */
@media screen and (max-width: 1080px) {
  .promo-slide .promo-content img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
  }
}

@media screen and (max-width: 600px) {
  .promo-slide .promo-content img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
  }
}

/* .promo-content h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
}

.promo-content p {
  font-size: 0.9rem;
  margin-top: 6px;
} */

/* Gradient Styles */
/* .gradient-orange {
  background: linear-gradient(to right, #ff7e5f, #feb47b);
}

.gradient-blue {
  background: linear-gradient(to right, #6a11cb, #2575fc);
}

.gradient-green {
  background: linear-gradient(to right, #11998e, #38ef7d);
} */

/* Arrows */
/* .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 2;
}

.arrow.left .arrow {
  left: 10px;
  padding-top: 230px;
}

.arrow.right .arrow {
  right: 10px;
  padding-top: 230px;
} */

/* Dots */
.dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

/* .dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
}

.dots span.active {
  background-color: tomato;
} */

.dots button {
  height: 6px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.6);
  border: none;
  transition: all 0.3s;
  cursor: pointer;
  width: 6px;
}

.dots button.active {
  width: 18px;
  background-color: white;
}

/* Explore Section */
.explore-more {
  padding: 1rem;
  background: #fff;
  padding-top: 2px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.explore-scroll {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 0.5rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.explore-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.explore-card {
  flex: 0 0 auto;
  width: 140px;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  background: #f5f5f5;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  scroll-snap-align: start;
  transition: transform 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.explore-card:hover {
  transform: scale(1.05);
}

.explore-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

.explore-card span {
  display: block;
  padding: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .explore-card {
    width: 120px;
  }
}

/* Menu Tabs Styles */
/* Wrapper ensures full width and hides scrollbar */
.menu-tabs {
  display: flex;
  width: 100%;
  background: #f4f4f4;
  padding-top: 2px;
}

.menu-tab {
  flex: 1; /* Equal width for each tab */
  padding: 12px 0;
  background: white;
  border: none;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: #444;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease-in-out;
}

.menu-tab.active {
  border-bottom: 2px solid #ff5722;
  color: #ff5722;
  font-weight: 600;
}

.menu-tab:hover {
  background: #fefefe;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Menu Grid Card Section */
/* General Grid Styling */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  padding: 1rem;
  padding-bottom: 70px;
}

@media (min-width: 600px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Menu Card Styling */
.menu-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* .dish-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
} */

.img-wrapper {
  position: relative;
}

.img-wrapper img {
  width: 100%;
  height: 160px;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.top-left-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #e74c3c;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.top-right-icons {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 0.5rem;
}

.top-right-icons i {
  color: white;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.3rem;
  border-radius: 50%;
  font-size: 0.8rem;
}

.menu-info {
  padding: 0.75rem;
}

/* Info Section */
/* .menu-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
} */

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-header h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.meta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.75rem;
  color: #666;
}

.size-label {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #888;
}

.description {
  font-size: 0.85rem;
  color: #555;
  margin: 0.5rem 0;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.price {
  font-weight: bold;
  color: #222;
}

.discount {
  text-decoration: line-through;
  color: #999;
}

/* .strike {
  text-decoration: line-through;
  color: #999;
} */

.promo-badge {
  background: #e63946;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
}

.add-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.add-btn {
  background-color: #2ecc71;
  color: white;
  border: none;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  border-radius: 6px;
  cursor: pointer;
}

.add-btn:hover {
  background-color: #18974d;
}

.add-btn:focus,
.close-btn:focus,
.option-item:focus-within {
  outline: 2px solid #f44336;
  outline-offset: 2px;
}

.customizable-text {
  font-size: 0.7rem;
  color: #555;
  margin-top: 0.2rem;
}

/* Popup Modal for Menu Card */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  z-index: 10000;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  overflow-y: scroll; /* or auto */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.modal::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.modal.visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.modal.hidden {
  display: none;
}

.modal.active {
  display: block;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 998;
  background: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background: #fff;
  width: 90%;
  max-width: 500px;
  padding: 1rem;
  border-radius: 12px;
  z-index: 1000;
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.modal-content::-webkit-scrollbar {
  display: none;
}

.close-btn {
  position: absolute;
  top: 0.1rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #555;
}

.modal-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

#modal-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
}

.modal-description h2 {
  margin: 0;
  font-size: 1.1rem;
}

.modal-description p {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: #555;
}

/* .modal-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
} */

.option-group {
  margin-bottom: 1rem;
  border-radius: 8px;
  background-color: white; /* Mini card feel */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.option-group label {
  display: block;
  margin: 0.3rem 0;
  font-size: 0.9rem;
}

.option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  margin: 2px 0;
  border-radius: 8px;
  cursor: pointer;
  flex-wrap: nowrap;
}

.option-right {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.option-label {
  width: 50%;
  font-size: 0.95rem;
  color: #333;
  text-align: left;
}

.option-amount {
  font-size: 0.85rem;
  color: #444;
  white-space: nowrap;
  min-width: 60px; /* Consistent width for amounts */
  text-align: right; /* Align amounts to the right within their space */
}

/* .option-item label,
.option-label {
  flex: 1;
  display: flex;
  align-items: center;
} */

.custom-check,
.custom-radio {
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  display: inline-block;
  border-radius: 4px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.custom-radio {
  border-radius: 50%;
}

/* Hide the default input */
.option-item input[type="checkbox"],
.option-item input[type="radio"] {
  display: none;
}

/* Checked styles */
.option-item input[type="checkbox"]:checked + .custom-check {
  border-color: #f44336;
  background-color: #f44336;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M20.285 2.725a1 1 0 00-1.41 0L9 12.6 5.125 8.725a1 1 0 10-1.41 1.41l4.95 4.95a1 1 0 001.41 0l10.21-10.21a1 1 0 000-1.41z'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}

.option-item input[type="radio"]:checked + .custom-radio {
  border-color: #f44336;
  background-color: #f44336;
  box-shadow: inset 0 0 0 4px #fff;
}

.option-item:has(input[type="checkbox"]:checked) {
  background-color: #fff8f6;
  border: 1px solid #f44336;
}

.option-item:has(input[type="radio"]:checked) {
  background-color: #fff8f6;
  border: 1px solid #f44336;
}

.option-price {
  font-size: 0.85rem;
  color: #666;
}

.tag {
  background-color: #e0e0e0;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 0.3rem;
  color: #444;
}

.cooking-instructions textarea {
  width: 100%;
  padding: 8px;
  font-size: 0.9rem;
  border-radius: 6px;
  border: 1px solid #f44336;
  resize: vertical;
}

.word-count {
  font-size: 0.8rem;
  color: #777;
  margin-top: 4px;
  text-align: right;
}

/* Add to Cart Button in Modal */
.action-row {
  display: flex;
  /* justify-content: space-between; */
  padding: 1rem 0;
  gap: 1rem;
  /* align-items: center; */
  flex-wrap: wrap;
}

.quantity-selector {
  flex: 1 1 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 120px;
  background: #f7af83;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}

.qty-btn {
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  background-color: #ff5722;
  color: white;
  border: none;
  cursor: pointer;
}

.qty-count {
  padding: 0 0.75rem;
  font-size: 1rem;
  min-width: 30px;
  text-align: center;
}

.cta-btn {
  flex: 2 1 200px;
  width: 100%;
  min-width: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ff5722;
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.cta-btn:hover,
.qty-btn:hover {
  background-color: #d63909;
}

.cta-btn .actual-price {
  font-weight: bold;
  margin-left: 4px;
}

.cta-btn .discount-price {
  text-decoration: line-through;
  color: white;
  margin-left: 6px;
  font-size: 0.9rem;
}

/* Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background-color: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-align: center;
  color: #777;
  font-size: 12px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-item i {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
}

.nav-item.active,
.nav-item:hover {
  color: #ff5722; /* active or primary color */
}

/* Bottom Navigation Bar Cart Icon Badge */
.icon-wrapper {
  position: relative;
  display: inline-block;
}

.cart-badge {
  position: absolute;
  top: -9px;
  right: -11px;
  background-color: red;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 50%;
  font-weight: bold;
  line-height: 1;
}

/* Snackbar styling */
.snackbar {
  visibility: hidden;
  min-width: 180px;
  background-color: #f44336;
  color: white;
  text-align: center;
  border-radius: 6px;
  padding: 10px 16px;
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease, bottom 0.3s ease;
  font-size: 14px;
}

.snackbar.show {
  visibility: visible;
  opacity: 1;
  bottom: 100px;
}

/* Bump animation */
/* Bump animation for cart badge */
.bump {
  animation: bump 0.3s ease;
}

@keyframes bump {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}
