/* .common color theme {
  background: linear-gradient(145deg, #e4e4e4, #f0f0f0); 
  background: linear-gradient(135deg, #1c1c2f, #3c404d);
  background: linear-gradient(145deg, #ff9800, #ffac32);
  background: linear-gradient(145deg, #ffac32, #ff9800);
  color: #16162b;
  color: #e4e4e4;
  background-color: #ff9800;
} */

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* adjust offset */
}

/* Reset default browser styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

body {
  font-family: "Roboto", sans-serif;
  color: #16162b;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.bg {
  background: linear-gradient(180deg, #1c1c2f, #141429, #1c1c2f);
  background-repeat: no-repeat;
  background-position: center;
  height: 100vh;
  width: 100vw;
  position: fixed;
  z-index: -1;
}

.main-content {
  padding: 25px 20px 160px;
}

/* ====================================
Announcement Banner Styles
====================================== */
.announcement-banner {
  background-color: #ff9800;
  color: #e4e4e4;
  text-align: center;
  padding: 5px;
  font-size: 16px;
  position: fixed;
  width: 100%;
  top: 63px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  font-weight: bold;
}

.announcement-text {
  flex-grow: 1;
  margin-right: 10px;
}

.close-btn {
  background: none;
  border: none;
  color: #e4e4e4;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  padding: 0 10px;
  transition: color 0.3s ease;
  margin-top: 0;
}

.close-btn:hover {
  color: #ff5722;
}

/* ====================================
App Header (Mobile-Friendly
====================================== */
.logo img {
  height: 40px;
  margin-right: 10px;
}

.header-icons {
  display: flex;
  align-items: center;
}

.search-icon,
.notification-icon {
  margin-left: 20px;
  cursor: pointer;
  position: relative;
}

.notification-badge {
  position: absolute;
  top: 9px;
  right: 0px;
  background-color: red;
  color: #e4e4e4;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
}

.notification-dropdown {
  display: none;
  position: absolute;
  top: 24px;
  right: 48px;
  background-color: #e4e4e4;
  color: #16162b;
  padding: 5px 15px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 11;
  border-radius: 10px;
}

.notification-dropdown p {
  margin: 5px 0;
}

/* ================================== */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #1c1c2f, #1b1b2d);
  color: #e4e4e4;
  padding: 10px 20px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 10;
  border-bottom: 4px solid rgba(0, 0, 0, 0.2);
}

.app-header .logo {
  font-size: 24px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.app-header .header-icons {
  display: flex;
  align-items: center;
}

.app-header .search-icon,
.app-header .notification-icon {
  font-size: 22px;
  margin-right: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  padding: 1px;
  color: white;
  text-decoration: none;
}

.app-header .search-icon:hover,
.app-header .notification-icon:hover {
  transform: scale(1.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ====================================
Search Bar (Initially Hidden)
====================================== */
.search-bar {
  display: none;
  padding: 15px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 94px;
  left: 0;
  right: 0;
  z-index: 15;
  padding: 5px;
  border-radius: 10px;
  margin: 5px;
  width: calc(100% - 10px);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.search-bar.active {
  display: block;
}

.search-bar input {
  width: 80%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 16px;
}

.search-bar button {
  padding: 10px;
  font-size: 16px;
  border: none;
  background-color: #28a745;
  color: #e4e4e4;
  cursor: pointer;
  border-radius: 10px;
  margin-left: 10px;
}

.search-bar button:hover {
  background-color: #218838;
}

/* ====================================
logo and image
====================================== */

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px; /* Adjust the size of the image */
  margin-right: 10px; /* Space between image and text */
}

/* ====================================
Main Content (Categories & Products)
====================================== */

.categories,
.popular-products {
  margin-bottom: 30px;
}

.section-title {
  font-size: 20px;
  margin-bottom: 15px;
  color: #e4e4e4;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.category-cards p {
  color: #e4e4e4;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-bottom: 20px;
}

.category-card {
  background: linear-gradient(145deg, #e4e4e4, #f0f0f0);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: #16162b;
}

.category-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.category-card.selected {
  background: linear-gradient(145deg, #ff9800, #ffac32);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  color: #16162b;
  border: 2px solid #ededed;
}

.show-all {
  position: absolute;
  right: 18px;
  font-size: 14px;
  padding: 6px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: bold;
  color: #16162b;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background-color: #ff9800;
  padding: 5px 10px;
}

.show-all:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.category-card {
  display: inline-block;
}

/* ====================================
product-card
====================================== */
.product-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.product-card {
  background: linear-gradient(145deg, #e4e4e4, #f0f0f0);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-size: 16px;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.product-img {
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.popular-img {
  width: 100%;
  height: 100px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.product-name {
  font-size: 16px;
  color: #16162b;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.product-price {
  font-size: 18px;
  color: #16162b;
  text-decoration: none;
}

.product-price-2 {
  font-size: 18px;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
}

.rs {
  font-size: small;
}

/* ====================================
App Footer: Navigation (Icons)
====================================== */
.app-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #e4e4e4;
  color: #16162b;
  padding: 12px 0;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
  border-radius: 45px;
  margin-bottom: 10px;
}

.footer-nav {
  display: flex;
  justify-content: space-around;
}
.footer {
  height: 100%;
  margin: 0;
  display: grid;
  place-items: center;
  font-family: Arial, sans-serif;
  font-weight: 900;
}

.footer p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
}

.footer-button {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  color: #000000;
  border: none;
  border-radius: 5px;
  font-weight: 900;
}
.footer-button:hover {
  font-weight: 900;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top-width: 4px;
  border-top-style: solid;
  border-top-color: rgb(243, 243, 243);
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 30px;
  animation: spin 0.1s linear infinite;
  color: #000000;
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  margin-left: -20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ====================================
nav-item
====================================== */
.nav-item {
  position: relative;
  text-align: center;
  font-size: 24px;
  flex-grow: 1;
  padding: 0;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s ease;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #141429;
}

.nav-item i {
  font-size: 20px;
  display: block;
  margin-bottom: 0;
  line-height: 1;
}

.nav-item:hover {
  color: #16162b;
  transform: translateY(-3px);
}

.nav-item :active {
  background: linear-gradient(145deg, #ff9800, #ffac32);
  background-clip: border-box;
  -webkit-background-clip: text;
  color: transparent;
  transform: scale(1.1);
}

.nav-text {
  font-size: 12px;
  margin: 0;
  font-weight: 600;
}

.nav-item .nav-text {
  margin-top: 0;
  line-height: 1.3;
}

/* ==========sub menu================= */
.sub-menu {
  display: none;
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 5px;
}

.sub-menu-item {
  padding: 12px;
  color: #e4e4e4;
  display: block;
  text-decoration: none;
  text-align: center;
  background-color: #444;
  border-radius: 20px;
  font-size: 12px;
  margin: 10px;
  font-weight: 600;
}

.sub-menu-item:hover {
  background-color: rgb(87, 87, 87); /* Hover effect */
}

.nav-text {
  vertical-align: middle;
}
/* ====================================
Restaurant Details start
==================================== */
.restaurant-details {
  background: linear-gradient(145deg, #ffc5c5, #abf);
  /* background: linear-gradient(135deg, #f5f5f5, #e4e4e4); */
  padding: 15px;
  margin-top: 80px;
  border-radius: 10px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  text-align: center;
}

.restaurant-name {
  font-size: 20px;
  font-weight: bold;
  color: #16162b;
}

.restaurant-cards,
.city-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.restaurant-card,
.city-tab {
  padding: 15px;
  border-radius: 10px;
  cursor: pointer;
}

.restaurant-card img {
  width: 245px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
}

.restaurant-name,
.city-name {
  font-size: 18px;
  font-weight: bold;
  margin-top: 5px;
}

.restaurant-address,
.city-info {
  font-size: 14px;
  color: #16162b;
  margin-top: 5px;
  font-weight: 600;
}

/* Default Styles */
.restaurant-list {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  margin-top: 40px !important;
}

.restaurant-list h2 {
  color: #e4e4e4;
  margin-bottom: 20px;
}

.restaurant-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.restaurant-card {
  width: 275px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  background: linear-gradient(145deg, #e4e4e4, #f0f0f0);
  cursor: pointer;
}

.restaurant-img {
  width: 300px;
  height: 100px;
  object-fit: cover;
}

.restaurant-name {
  font-size: 16px;
  font-weight: bold;
}

.restaurant-address {
  font-size: 14px;
}

.restaurant-phones span {
  font-weight: 600;
  font-size: 14px;
}

/* 3D Star Rating Styles */
.restaurant-rating {
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.star-rating {
  display: flex;
  align-items: center;
  gap: 5px; /* Space between stars */
}

.star {
  width: 20px;
  height: 20px;
  background: #ffd700; /* Gold color for the star */
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for 3D effect */
}

.star:hover {
  transform: translateY(-5px) scale(1.1); /* Lift effect on hover */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Shadow to enhance the 3D effect */
}

/* Darker shadow for empty stars */
.star.empty {
  background: #e4e4e4; /* Lighter color for empty stars */
  box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .restaurant-cards {
    flex-direction: column; /* Stack the cards vertically */
    align-items: center; /* Center the cards */
  }

  .restaurant-card {
    width: 275px;
  }
}

@media (min-width: 1024px) {
  .restaurant-list {
    max-width: 1200px; /* Set max-width for large screens */
    margin: 0 auto; /* Center the entire restaurant list */
  }
}

/* ====================================
category
====================================== */
.category-cards a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.category-image img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  /* border: 2px solid #ddd; */
}

.category-name {
  font-size: 14px;
  color: #16162b;
  text-align: left;
}

/* ====================================
 Popup styles 
====================================== */

.login-prompt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 7px;
  margin-left: 0;
}

.city-p {
  margin-left: 10px;
  font-weight: bold;
  text-align: left;
}

.log-first {
  padding: 7px;
  border-radius: 10px;
  background: none;
  font-size: 18px;
  color: #16162b;
  border: #16162b 2px solid;
  font-weight: bold;
  cursor: pointer;
}

.city-close {
  display: inline-block;
  padding: 10px;
  margin: 5px;
  background-color: #c00;
  border: 1px solid #ccc;
  cursor: pointer;
  border-radius: 10px;
  width: 100%;
  text-align: center;
  color: #e4e4e4;
  font-weight: 600;
}

.city-text {
  text-align: center;
  margin: 15px 0 10px 0;
  font-size: 20px;
}

#cityPopup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
#cityPopupContent {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 500px;
}
.tab {
  display: inline-block;
  padding: 10px;
  margin: 5px;
  background: #ff9800;
  background-color: rgb(255, 152, 0);
  border: 1px solid #ccc;
  cursor: pointer;
  border-radius: 10px;
  width: 100%;
  text-align: center;
  font-weight: 600;
  color: #16162b;
}
.tab:hover {
  background-color: #e0e0e0;
}
.active-tab {
  background-color: #007bff;
  color: #e4e4e4;
}

/* ====================================
discount values 
====================================== */
.discount {
  color: red;
  font-size: 12px;
  font-weight: bold;
  background-color: #ff5b5b36;
  padding: 2px;
}

.discount i {
  margin-right: 5px;
}

.total-price {
  font-weight: bold;
  font-size: 16px;
}

.product-img,
.popular-img {
  width: 100%;
  height: auto;
}

.product-name {
  font-size: 14px;
  font-variant-caps: all-petite-caps;
  font-weight: bold;
}

/* .product-price {
  margin-top: 13px;
} */

/* ====================================
Responsive Design
====================================== */
@media (max-width: 768px) {
  .category-cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .product-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .app-header .search-icon {
    font-size: 22px;
  }
  .total-price {
    font-weight: bold;
    font-size: 14px;
  }
}

@media (min-width: 769px) {
  .category-cards {
    grid-template-columns: repeat(6, 1fr);
  }

  .product-cards {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 480px) {
  .category-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* discount and price  */
  .discount {
    color: red;
    font-size: 12px;
    font-weight: bold;
  }

  .discount i {
    margin-right: 5px;
  }

  .total-price {
    font-weight: bold;
    font-size: 16px;
  }

  .product-img,
  .popular-img {
    width: 100%;
    height: auto;
  }

  .product-name {
    font-size: 14px;
    font-variant-caps: all-petite-caps;
    font-weight: bold;
  }
}

/* ====================================
selected tab footer
====================================== */
.app-footer .footer-nav .nav-item.selected {
  color: #ff9800;
}
.app-footer .footer-nav .nav-item:hover {
  color: #16162b;
}

/*=======================
add banner 
=========================*/
/* Container for all banners */
.banner-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  color: white;
  margin-bottom: 30px;
}

/* Each banner card */
.banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(45deg, #fe9700 0%, #ff5e00 100%);
  padding: 0 3px;
  border-radius: 8px;
}

/* Banner image */
.banner-icon img {
  width: 60px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Heading placeholder (when no image) */
.heading-placeholder {
  font-size: 28px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.15);
  padding: 5px;
  border-radius: 8px;
  flex-shrink: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 50px;
}

/* Text wrapper */
.banner-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Title */
.banner-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
}

/* Description */
.banner-text {
  font-size: 14px;
  line-height: 1.5;
}

/* ====================================
map url
====================================== */
.map-url {
  /*  margin: 23px 0; */
  display: grid;
}

.map-url span {
  font-weight: bold;
  color: white;
  border-radius: 8px;
  background: #16162b;
  padding: 15px;
  margin-top: 10px;
}

.map-link {
  font-size: 14px;
  text-decoration: none;
}

/* ====================================
End of CSS Styles
====================================== */
