header {
  width: auto;
  margin: -8px;
}

#navBar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #12372a;
  color: white;
  padding: 10px 30px;
  margin: 0px;
  position: fixed;
  z-index: 1000;
  width: 97%;
}

#navBar h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 24px;
  margin: 0;
}

#hub {
  color: orangered;
}

#navBar ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

#navBar ul li a {
  display: inline-block;
  position: relative;
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 12px;
  transition: color 0.3s ease;
}

#navBar ul li a:hover {
  color: #ff7a26;
}

#login {
  list-style: none;
}

#login a {
  display: inline-block;
  background-color: rgb(0, 208, 255);
  color: #163525;

  padding: 12px 28px;
  border-radius: 50px;

  text-decoration: none;
  font-size: 15px;
  font-weight: bold;

  transition: 0.3s ease;
}

#login a:hover {
  background-color: white;
}

#logout {
  list-style: none;
}

#logout a {
  display: inline-block;
  background-color: rgb(0, 208, 255);
  color: #163525;

  padding: 12px 28px;
  border-radius: 50px;

  text-decoration: none;
  font-size: 15px;
  font-weight: bold;

  transition: 0.3s ease;
}

#logout a:hover {
  background-color: white;
}

#p1 {
  font-size: 57px;
}

#p2 {
  font-size: 20px;
  font-family:
    "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
}
.mainText {
  text-align: left;
  margin: -8px;
  padding: 30px 40px;
  color: white;
  font-family: Georgia, "Times New Roman", Times, serif;
  background-image:
    linear-gradient(
      to right,
      #000 0%,
      rgba(0, 0, 0, 0.95) 15%,
      rgba(0, 0, 0, 0.65) 45%,
      rgba(0, 0, 0, 0.15) 70%,
      rgba(0, 0, 0, 0) 100%
    ),
    url("food.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.together {
  color: orangered;
  font-style: italic;
  font-family:
    "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans",
    Arial, sans-serif;
}

#exploreMenu {
  display: inline-block;
  background-color: #ff5a0a;
  color: white;

  padding: 15px 32px;
  border-radius: 50px;
  border: 2px solid #ff5a0a;

  font-size: 16px;
  font-weight: bold;
  text-decoration: none;

  cursor: pointer;
  transition: all 0.3s ease;
}

#exploreMenu:hover {
  background-color: #e64a00;
  border-color: #e64a00;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 90, 10, 0.3);
}

#reserveTable {
  display: inline-block;
  background-color: transparent;
  color: white;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  padding: 14px 30px;
  border: 2px solid #b87937;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
}

#reserveTable:hover {
  background-color: #e64a00;
  border-color: #e64a00;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 90, 10, 0.3);
}

.features {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  background-color: #fffaf2;
  padding: 10px 5px;
  margin: -20px 25px 0;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 2;
  border: 1px solid #e5d3b7;
  border-radius: 35px;
  border-width: 3px;
}

.feature {
  flex: 1;
  text-align: center;
}

.icon {
  display: block;
  font-size: 28px;
  margin-bottom: 10px;
  color: #ff5a0a;
}

.feature h3 {
  font-size: 16px;
  color: #12372a;
  margin: 5px 0;
}

.feature p {
  font-size: 14px;
  color: #77716b;
  margin: 5px 0;
}

#menu {
  width: 95%;
  max-width: 1200px;
  margin: 30px auto;
  padding: 20px;

  background: #fff;

  border-radius: 15px;

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Menu Top */

.menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 15px;

  margin-bottom: 20px;
}

/* Search Bar */

.menu-search {
  display: flex;
  align-items: center;

  width: 100%;

  padding: 12px 15px;

  border: 1px solid #ddd;
  border-radius: 25px;

  background: #fafafa;

  gap: 10px;
}

.menu-search input {
  width: 100%;

  border: none;
  outline: none;

  background: transparent;

  font-size: 14px;
}

/* Cart */

.cart-icon {
  position: relative;

  font-size: 25px;

  cursor: pointer;

  padding: 5px 10px;
}

.cart-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.cart-logo span {
    display: inline-flex;
    align-items: center;
}

#hub {
    color: #ff4500;
}

#cartCount {
  position: absolute;

  top: -3px;
  right: 0;

  background: #f36b21;

  color: white;

  font-size: 11px;

  width: 18px;
  height: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
}

/* CART HEADER */

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  background-color: #12372a;
  color: white;

  padding: 15px 30px;
  margin: -8px;

  width: auto;
}

.cart-header h2 {
  margin: 0;
  font-size: 22px;
}

/* CONTINUE SHOPPING BUTTON */

.continue-shopping {
  background-color: white;
  color: #12372a;

  padding: 10px 20px;

  border-radius: 25px;

  text-decoration: none;
  font-weight: bold;

  transition: 0.3s;
}

.continue-shopping:hover {
  background-color: #ff5a0a;
  color: white;
}

/* Categories */

.menu-categories {
  display: flex;
  align-items: center;

  gap: 10px;

  margin-bottom: 20px;

  overflow-x: auto;

  padding-bottom: 5px;
}

.category-btn {
  padding: 9px 18px;

  border: none;

  border-radius: 20px;

  background: #f0f0f0;

  color: #333;

  cursor: pointer;

  font-size: 13px;

  white-space: nowrap;

  transition: 0.3s;
}

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

.category-btn.active {
  background: #06442e;

  color: white;
}

/* Food Grid */

.food-container {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 15px;
}

/* Food Card */

.food-card {
  background: #fff;

  border: 1px solid #eee;

  border-radius: 12px;

  overflow: hidden;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);

  transition: transform 0.3s;
}

.food-card:hover {
  transform: translateY(-4px);
}

/* Food Image */

.food-card img {
  width: 100%;

  height: 150px;

  object-fit: cover;

  display: block;
}

/* Food Details */

.food-details {
  padding: 10px;
}

.food-details h3 {
  font-size: 15px;

  color: #222;

  margin-bottom: 5px;
}

.food-details p {
  font-size: 14px;

  font-weight: bold;

  color: #444;

  margin-bottom: 10px;
}

/* CART SECTION */

#cartSection {
  padding: 40px;
  margin: 40px auto;
  max-width: 800px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#cartSection h2 {
  text-align: center;
  color: #222;
  margin-bottom: 25px;
}

.cart-item {
  padding: 15px;
  margin-bottom: 15px;
  background: #f8f8f8;
  border-radius: 10px;
}

.cart-item h3 {
  color: #333;
}

.cart-item p {
  margin: 8px 0;
}

.cart-item button {
  padding: 8px 14px;
  margin: 5px;
  border: none;
  border-radius: 5px;
  background: #198754;
  color: white;
  cursor: pointer;
}

.cart-item button:hover {
  background: #146c43;
}

.cart-total {
  text-align: right;
  margin-top: 20px;
  color: #198754;
}

#clearCart,
#checkout {
  padding: 12px 20px;
  margin: 10px 5px;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  color: white;
}

#clearCart {
  background: #dc3545;
}

#checkout {
  background: #198754;
}

.cart-icon {
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

/* Add to Cart Button */

.add-cart-btn {
  width: 100%;

  padding: 11px;

  border: none;

  border-radius: 6px;

  background: #ff681f;

  color: white;

  font-weight: bold;

  font-size: 13px;

  cursor: pointer;

  transition: 0.3s;
}

.add-cart-btn:hover {
  background: #e6530c;
}

/* No Food Found */

#noFoodMessage {
  text-align: center;

  padding: 30px;

  color: #777;
}

/* SHOPPING CART */

#cartSection {
  max-width: 850px;
  margin: 50px auto;
  padding: 30px;
  background: white;
  border-radius: 12px;
}

#cartSection h2 {
  text-align: center;
  color: #222;
}

.cart-item {
  padding: 20px;
  margin: 15px 0;
  background: #f5f5f5;
  border-radius: 10px;
}

.cart-item button {
  padding: 9px 15px;
  margin: 5px;
  border: none;
  border-radius: 5px;
  background: #198754;
  color: white;
  cursor: pointer;
}

.cart-item button:hover {
  background: #146c43;
}

#cartTotal {
  color: #198754;
}

#clearCart,
#checkout {
  padding: 12px 20px;
  margin: 10px;
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
}

#clearCart {
  background: #dc3545;
}

#checkout {
  background: #198754;
}

.cart-icon {
  text-decoration: none;
  font-size: 22px;
}

/* About and Contact */

#about,
#contact {
  margin: auto 20%;
  padding: 60px 30px;
  text-align: center;
  font-size: 18px;
  font-family: Georgia, "Times New Roman", Times, serif;
}

/* Responsive Design */

@media (max-width: 768px) {
  .food-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .food-card img {
    height: 130px;
  }

  .food-details h3 {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  #menu {
    width: 96%;

    padding: 12px;
  }

  .food-container {
    gap: 10px;
  }

  .food-card img {
    height: 110px;
  }

  .food-details {
    padding: 8px;
  }

  .food-details h3 {
    font-size: 12px;
  }

  .add-cart-btn {
    font-size: 11px;

    padding: 9px;
  }
}
