/* :root mein color variables define karain */
:root {
  --primary-orange: #ff7300;
  --secondary-orange: #FE5722;
  --text-white: #ffffff;
  --bg-light: #f8f9fa;
  --dark-gray: #333333;
  --light-gray: #dddddd;
  --button-outline: #ff7300;
}

.modal-header{
    background-color: var(--primary-orange);
    color: var(--bg-light);
}
.btn{
    background-color: var(--primary-orange);
    color: var(--text-white);
    border-color: var(--secondary-orange);
}
    /* ========== Top Info Bar ========== */
/* .top-info-bar {
  background-color: var(--primary-orange);
  color: #fff;
  font-size: .9rem;
  height: 36px;
}
.top-info-bar i {
  font-size: 0.95rem;
}
.top-info-bar a {
  color: #fff;
}
.top-info-bar a:hover {
  text-decoration: underline;
} */

/* ========== Main Navbar ========== */
.navbar-custom {
  background-color: var(--primary-orange);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
/* Brand Text */
.navbar-custom .brand-text .tagline {
  font-size: 0.75rem;
  line-height: 1;
  color: #ffe6cc;
}

/* Navbar toggler icon color override */
.navbar-custom .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Nav Links */
.navbar-custom .nav-link {
  color: #fff;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
  position: relative;
}
.navbar-custom .nav-link i {
  font-size: 1rem;
}

/* Underline effect on hover */
.navbar-custom .nav-link::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s;
  position: absolute;
  bottom: -4px;
  left: 0;
}
.navbar-custom .nav-link:hover {
  color: #fff;
}
.navbar-custom .nav-link:hover::after {
  width: 100%;
}

/* Dropdown menu items */
.navbar-custom .dropdown-menu {
  border-radius: 0.25rem;
}
.navbar-custom .dropdown-item {
  font-size: 0.95rem;
  color: #333;
}
.navbar-custom .dropdown-item i {
  font-size: 0.9rem;
}
.navbar-custom .dropdown-item:hover {
  background-color: #FFB347;
  color: #222;
}

/* Cart Button */
.btn-cart {
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  position: relative;
  transition: background-color 0.2s, transform 0.2s;
}
.btn-cart:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Cart shake animation when item count > 0 */
@keyframes shake-cart {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-3px); }
}
.cart-shake {
  animation: shake-cart 0.7s infinite;
}

/* Cart badge */
#cart-count {
  font-size: 0.65rem;
}

/* Responsive adjust: reduce top bar height on smaller screens */
@media (max-width: 992px) {
  .top-info-bar {
    display: none;
  }
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  display: flex;
  justify-content: center; /* center items */
  align-items: center;
  padding: 8px 0;
  z-index: 1000;
  gap: 10px; /* Static gap, will not shrink */
}

.bottom-nav a {
  text-align: center;
  text-decoration: none;
  position: relative;
  font-size: 11px;
  color: gray;
  transition: all 0.3s ease-in-out;
  flex-shrink: 0; /* Prevent shrinking of items */
  flex-grow: 1; /* Allow space to grow equally */
}

.bottom-nav a i {
  display: block;
  font-size: 17px;
  margin-bottom: 3px;
}

.bottom-nav a.active {
  color: #88d961;
}

.bottom-nav a.active i {
  color: #88d961;
}

.bottom-nav a:active {
  transform: scale(0.9);
}


  @media (min-width: 768px) {
    .bottom-nav { display: none; }
    .mobile-top-nav { display: none !important; }

  }

  @media (max-width: 767px) {
    .desktop-nav { display: none; }
    .navbar { display: none;}
  }

  @media (max-width: 767px) {
    .desktop-nav { display: none; }
    .navbar { display: none;}
  }

  /* Optional: Desktop Nav styling */
  .navbar-nav .nav-link {
    color: white;
  }

  .navbar-nav .nav-link:hover {
    color: #0d6efd;
  }

  #heroCarousel {
    height: 240px;
}

#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
    height: 100%;
}

#heroCarousel .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: fill;
    object-position: center center;
}
/* Equal height image */
.food-card img {
object-fit: cover;
height: 120px;
width: 100%;
border-top-left-radius: 0.5rem;
border-top-right-radius: 0.5rem;
}

/* Equal height cards */
.food-card {
display: flex;
flex-direction: column;
height: 100%;
}

.food-card .card-body {
flex-grow: 1;
}

.category-card, .border-0 {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover, .border-0:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.category-card img, .border-0 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card .card-body, .border-0 .card-body {
    padding: 12px;
    text-align: center;
}

.category-card i, .food-card i {
    font-size: 40px;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.category-card:hover i, .food-card:hover i {
    color: #007bff;
}

.food-card .card-body small {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}
.food-card img {
object-fit: cover;
height: 120px;
width: 100%;
border-top-left-radius: 0.5rem;
border-top-right-radius: 0.5rem;
}

.food-card {
display: flex;
flex-direction: column;
height: 100%;
}

.food-card .card-body {
flex-grow: 1;
}

.price-tag {
font-size: 0.75rem;
padding: 4px 6px;
border-radius: 0.25rem;
}

.category-carousel {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    cursor: grab;
    user-select: none; /* Prevent text/image selection while dragging */
}

.category-carousel.dragging {
    cursor: grabbing;
}


.category-carousel::-webkit-scrollbar {
    /* display: none; */
}

.category-card {
    min-width: 140px;
    flex-shrink: 0;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: scale(1.02);
}

#foodCategories {
-ms-overflow-style: none; /* IE and Edge */
/* scrollbar-width: none; */
}
#foodCategories::-webkit-scrollbar {
/* display: none;  */
}

/* Favourites container with smooth scrolling */
#favourites-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  /* scrollbar-width: none; */
  -ms-overflow-style: none;  /* Hide scrollbar in IE and Edge */
}

#favourites-container::-webkit-scrollbar {
  /* display: none; */
}

#favourites-container > div {
  scroll-snap-align: start;
  min-width: 200px;
  flex-shrink: 0;
}

/* Optional: Smooth scrolling effect */
#favourites-container {
  scroll-behavior: smooth;
}


.menu-outer {
  width: 100%;
  max-width: 295px;
  height: 300px;
  border-radius: 40px;
  background: #fff;
  border: 1px solid #f0f0f0;
  box-shadow:
      0 3.4px 2.7px rgba(0, 0, 0, 0.022),
      0 8.7px 6.9px rgba(0, 0, 0, 0.031),
      0 17.7px 14.2px rgba(0, 0, 0, 0.039),
      0 36.5px 29.2px rgba(0, 0, 0, 0.048),
      0 100px 80px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  transition: transform 0.3s ease-in-out;
}

.menu-inner {
  width: 100%;
  height: 70%;
  background-position: center;
  background-size: cover;
  /* background-position: center;
  background-size: contain; */
  background-repeat: no-repeat;
  border-bottom-right-radius: 80px;
  /* transform: translateX(-4px) translateY(-17px) rotate(10deg); */
}

.menu-item-info {
  height: 30%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 26px;
}

.menu-item-name h4 {
  font-size: 15px;
  font-weight: bold;
  color: #11313c;
  margin: 0;
  text-transform: capitalize;
}

.menu-item-name p {
  font-size: 12px;
  font-weight: 500;
  color: #949a98;
  margin: 0;
}

.menu-item-price {
  display: flex;
  flex-direction: column;
}

.menu-item-price p {
  font-size: 15px;
  font-weight: bold;
  color: #f7736e;
  text-align: right;
  margin: 0;
}

.menu-rating {
  display: flex;
  margin-top: 4px;
}

.menu-rating > div {
  width: 15px;
  height: 15px;
  background: #ff0800;
  margin-left: 2px;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.menu-outer:hover {
  transform: scale(1.01);
}
.favourite-icon {
  z-index: 10;
  cursor: pointer;
}

.fav-btn.favorited {
  color: #ff0800 !important;
}

.fav-btn {
  transition: color 0.3s ease;
}

@media (max-width: 550px) {
  .custom-order-card {
      width: 100% !important;
      flex: 0 0 100% !important;
      max-width: 100% !important;
  }
}

.btn-custom {
  background-color: var(--button-outline);
  color: white;
  font-weight: bold;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: 30px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-custom:hover {
  background-color: #cc5200;
  color: #fff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.btn-custom i {
  margin-right: 8px;
}

/* Top Mobile Nav */
.mobile-top-nav {
  background: var(--primary-orange);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.mobile-top-nav img {
  border-radius: 6px;
}

.mobile-top-nav .btn:hover {
  color: #88d961;
}
/* Positioning search icon inside input */
.search-icon {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  color: #666;
  font-size: 1rem;
  pointer-events: none;
  z-index: 2;
}

.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 9999;
  overflow-y: auto;
  }

/* Updated Soft UI for input */
.search-input {
  width: 100%;
  padding: 10px 15px 10px 40px; /* Left padding to avoid overlap with icon */
  border-radius: 1.625rem;
  background: #f5f5f5;
  border: none;
  font-size: 1rem;
  transition: all 0.3s ease-in-out;
}

#searchModalInput{
  padding: 10px 15px 10px 40px;
}

.search-input:focus {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  outline: none;
}

.dropdown-menu{
    z-index: 9999;
}

/* Sticky Searchbar (optional) */
.sticky-searchbar {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: var(--primary-orange);
}

/* Responsive max width */
@media (min-width: 768px) {
  .search-container {
    max-width: 500px;
    margin: auto;
  }
}


/* ===========================
           DISCOUNT BADGE ON IMAGE
        ============================ */
        .custom-order-card {
            position: relative; /* Make sure badge can be absolutely placed */
        }

        .custom-order-card .discount-badge {
            position: absolute;
            top: 8px;
            left: 8px;
            background-color: rgba(220, 20, 60, 0.9); /* semi-opaque “crimson” */
            color: #fff;
            font-size: 0.75rem;
            font-weight: 600;
            padding: 2px 6px;
            border-radius: 4px;
            z-index: 10;
            text-transform: uppercase;
        }

        .custom-order-card .menu-item-info {
            background-color: #fff;
            border-bottom-left-radius: 8px;
            border-bottom-right-radius: 8px;
            padding: 8px 12px;
        } */

        /* Strike-through utility (Bootstrap 5 also has .text-decoration-line-through) */
        .text-strike {
            text-decoration: line-through;
            color: #ff0000; /* muted gray */
        }

        /* Original price + discounted price styling */
        .price-group {
            font-size: 0.9rem;
        }
        .price-group .discounted {
            font-weight: 600;
            color: #333;
            margin-left: 6px;
        }

       /* ───────────────────────────────────────────────────
   DISCOUNT HIGHLIGHT CARD (Two-Column Layout)
──────────────────────────────────────────────────── */

/* Keep your existing gradient/rounded styles */
.discount-highlight-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f15a29 0%, #fbb034 100%);
  border-radius: 12px;
  color: #ffffff;
  padding: 2rem;
  cursor: pointer;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Hover lift + shadow */
.discount-highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Ribbon in the top-left (no change from before) */
.discount-highlight-card .ribbon {
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 32px;
  background-color: #e74c3c;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 32px;
  text-align: center;
  transform: rotate(-45deg) translate(-40px, 0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.discount-highlight-card .ribbon::before,
.discount-highlight-card .ribbon::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

/* Top-right fold */
.discount-highlight-card .ribbon::before {
  top: 0;
  right: -16px;
  border-width: 16px 0 16px 16px;
  border-color: transparent transparent transparent #da4838;
}

/* Bottom-left fold */
.discount-highlight-card .ribbon::after {
  bottom: -16px;
  left: 0;
  border-width: 16px 16px 0 0;
  border-color: #c0392b transparent transparent transparent;
}

/* ───────────────────────────────────────────────────
   MAKE CONTENT INSIDE THE CARD TWO COLUMNS
──────────────────────────────────────────────────── */

/* Use Bootstrap’s grid-style “row g-0” on the inner wrapper, but add a tiny override to keep text white */
.discount-highlight-card .card-content-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0;       /* because we’ll use our own gutter */
}

/* Left column (image) */
.discount-highlight-card .card-content-row .col-img {
  flex: 0 0 100%;
  max-width: 100%;
  text-align: center;
  margin-bottom: 1rem;
}

/* Right column (text) */
.discount-highlight-card .card-content-row .col-text {
  flex: 0 0 100%;
  max-width: 100%;
  text-align: center;
}

/* On medium screens and up → two columns side by side */
@media (min-width: 768px) {
  .discount-highlight-card .card-content-row .col-img {
    flex: 0 0 40%;
    max-width: 40%;
    margin-bottom: 0;
    text-align: right;    /* push image to right side of its column */
  }
  .discount-highlight-card .card-content-row .col-text {
    flex: 0 0 60%;
    max-width: 60%;
    text-align: left;     /* text aligns left in its column */
    padding-left: 1.5rem; /* space between image + text */
  }
}

/* DELIVERY BIKE IMAGE STYLING */
.discount-highlight-card .delivery-img {
  max-width: 100%;
  height: auto;
  /* optional: limit max-height so it doesn’t overflow */
  max-height: 180px;
}

/* ───────────────────────────────────────────────────
   TEXT INSIDE THE CARD (white on gradient)
──────────────────────────────────────────────────── */
.discount-highlight-card h3 {
  font-size: 2.5rem;
  margin: 0;
  line-height: 1.1;
  font-weight: bold;
  color: #ffffff;
}

.discount-highlight-card p {
  font-size: 1.1rem;
  margin-top: 0.5rem;
  opacity: 0.9;
  color: #ffffff;
}
