/* General Page Styling */
body {
  margin: 0 auto;
  max-width: 1200px;
  padding: 20px;
}



/* Header Styling */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #333;
  color: white;
}








/* Global Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0 auto;
  max-width: 1200px;
  padding: 20px;
}

@media (max-width: 1300px) {
  body {
    margin: 0;
    padding: 10px;
  }
}


header.main-header {
  background-color: #EBEBEB;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header.logo {
  height: 50px;
  transition: height 0.3s ease;
}






nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}

nav ul li {
  display: inline;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 1.2em;
}

nav ul li a:hover {
  text-decoration: underline;
}

/* General Header Styling */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #EBEBEB;
  color: white;
}

/* Logo Styling */
.logo {
  height: 50px;
}

/* Navbar Styling */
.navbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  transition: gap 0.3s ease;
}

.navbar li {
  display: flex;
  align-items: center;
}

.navbar a {
  color: black;
  text-decoration: none;
  background-color: #EBEBEB;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background 0.3s, padding 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar a img {
  height: 25px;
  transition: height 0.3s ease;
}


.navbar a:hover {
  background-color: #e03c31;
  color: white;
}

/* Bag Tab Styling */
.bag-tab {
  background-color: #ff6600;
  padding: 10px 15px;
  border-radius: 5px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bag-tab img {
  height: 25px;
  content: url('images/bag.png');
  transition: content 0.3s ease;
}

.bag-tab:hover {
  background-color: #cc5500;
}

.bag-tab:hover img {
  content: url('images/bag2.png');
}



/* General Button Styling */
button {
  background-color: #555;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background-color: #777;
}

/* Cart Section Styling */
#cart {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
}

/* Checkout Section Styling */
#checkout {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
}

/* Menu Layout */
.menu-container {
  text-align: center;
  padding: 20px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  padding: 20px;
}

.menu-item {
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 150px;
  height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: auto;
}

.menu-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
}

.menu-item span {
  font-size: 1.1em;
  color: #333;
}

.menu-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Order Management Table Styling */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

th {
  background-color: #f4f4f4;
}

.status-pending {
  background-color: #ffcc00;
  padding: 5px;
  border-radius: 4px;
}

.status-inprogress {
  background-color: #66cc66;
  padding: 5px;
  border-radius: 4px;
}

.status-completed {
  background-color: #3399ff;
  padding: 5px;
  border-radius: 4px;
}

/* Form Styling */
form {
  display: flex;
  flex-direction: column;
}

form label {
  margin-top: 10px;
}

form input {
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form button {
  margin-top: 15px;
}

/* Product Container */
.product-container {
  max-width: 400px;
  margin: 50px auto;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.product-image {
  width: 100px;
  display: block;
  margin: 0 auto 20px;
}

.quantity-selector {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.quantity-selector button {
  background-color: #ddd;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 5px;
}

.quantity-selector button:hover {
  background-color: #bbb;
}

.add-to-cart {
  background-color: red;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1.2em;
  cursor: pointer;
  border-radius: 5px;
  margin-top: 10px;
}

.add-to-cart:hover {
  background-color: darkred;
}


footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 15px 10px;
  margin-top: 40px;
  font-size: 0.9em;
  border-top: 2px solid #555;
}

footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
}

footer a:hover {
  text-decoration: underline;
  color: #ddd;
}


.cart-container {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cart-items-section {
  flex: 2;
  padding-right: 20px;
}

.order-summary {
  flex: 1;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.order-summary h2 {
  margin-bottom: 10px;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #ddd;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: 5px;
  margin-right: 15px;
}

.cart-item-details {
  flex: 1;
}

.cart-item-details h3 {
  margin: 0;
  font-size: 18px;
}

.cart-item-details p {
  margin: 5px 0;
  font-size: 16px;
}

.remove-btn {
  background: red;
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
}

.remove-btn:hover {
  background: darkred;
}

.checkout-btn {
  background: #e60023;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 5px;
  width: 100%;
  margin-top: 15px;
}

.checkout-btn:hover {
  background: #c5001e;
}

.map-container {
  text-align: center;
  margin-top: 20px;
}

.map-container iframe {
  border-radius: 8px;
  max-width: 100%;
} 

.orders-container {
  max-width: 900px;
  margin: auto;
}
.order-card {
  border: 1px solid #ccc;
  padding: 1em;
  margin-bottom: 1.5em;
  background: #f9f9f9;
}
.order-card h3 {
  margin-top: 0;
}

.error-message {
  background: #fdd;
  color: #a00;
  padding: 10px;
  border: 1px solid #c00;
  margin-bottom: 20px;
  font-weight: bold;
}



/* Responsive Design */

@media (max-width: 1300px) {
  body {
    margin: 0;
    padding: 10px;
  }
}

@media (max-width: 900px) {
  .logo {
    height: 35px; /* Shrink logo */
  }
  .navbar {
    gap: 10px; /* Reduce spacing */
  }
  .navbar a {
    padding: 5px 10px; /* Shrink buttons */
  }
  .navbar a img {
    height: 20px; /* Shrink icons */
  }
}




@media (max-width: 768px) {
  header.main-header {
      flex-direction: column;
      text-align: center;
  }

  nav ul {
      flex-direction: column;
      gap: 10px;
  }

  .menu-grid {
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .menu-item {
      width: 120px;
      height: 120px;
  }

  .menu-item img {
      width: 70px;
      height: 70px;
  }
}

