
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
}


header {
  background-image: url('./images/banner-food.avif');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 30px 20px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
header h1, nav {
  position: relative;
  z-index: 1;
}
nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 15px;
}
nav a {
  margin: 5px 15px;
  color: white;
  text-decoration: none;
  font-weight: bold;
}
nav a i {
  margin-right: 6px;
}
nav a:hover {
  text-decoration: underline;
}


main {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
}


#category {
  width: 200px;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
  margin-right: 20px;
  height: fit-content;
  position: sticky;
  top: 100px;
  align-self: flex-start;
  z-index: 500;
}

#category ul {
  list-style: none;
  padding: 0;
}
#category li {
  padding: 10px;
  margin-bottom: 5px;
  background: #eee;
  cursor: pointer;
  border-radius: 5px;
  text-align: left;
  transition: 0.3s;
}
#category li i {
  margin-right: 8px;
  color: #ff5722;
}
#category li:hover {
  background: #ff5722;
  color: white;
}
#category li.active {
  background: #ff5722;
  color: white;
}


#menu {
  flex: 1;
}
.menu-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.menu-item {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.menu-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.menu-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}
.menu-item h3 {
  margin: 10px 0 5px;
}
.menu-item p {
  margin: 5px 0;
}
.menu-item .price {
  font-weight: bold;
  color: #ff5722;
}
.menu-item button {
  background: #ff5722;
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
}
.menu-item button:hover {
  background: #e64a19;
}


#about {
  background: #fff8f0;
  padding: 30px 20px;
  text-align: center;
  border-bottom: 2px solid #ff5722;
  width: 100%;
}
#about h2 {
  color: #ff5722;
  margin-bottom: 10px;
}
#about p {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  color: #333;
}


#promo {
  width: 100%;
  margin-top: 20px;
}
#promo h2 {
  color: #ff5722;
}
#promo i {
  margin-right: 6px;
  color: #ff5722;
}


.cart-popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.cart-content {
  background: #fff;
  border-radius: 10px;
  width: 400px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

.cart-footer {
  margin-top: 15px;
  text-align: right;
}

.order-btn {
  background: #e53935;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
}
.order-btn:hover {
  background: #c62828;
}


.checkout-popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

.checkout-content {
  background: #fff;
  border-radius: 10px;
  width: 400px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease;
}

.checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

#checkout-form input {
  width: 100%;
  padding: 8px;
  margin: 5px 0 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
#checkout-form select,
#checkout-form textarea {
  width: 100%;
  padding: 8px;
  margin: 5px 0 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#checkout-form button {
  background: #4caf50;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
}
#checkout-form button:hover {
  background: #388e3c;
}
#checkout-popup {
  overflow-y: auto;     
  max-height: 90vh;
  backdrop-filter: blur(3px)      
}


@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
  main {
    flex-direction: column;
  }
  #category {
    width: 100%;
    margin-bottom: 20px;
  }
  .menu-item {
    width: 100%;
  }
}
.promo-popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

.promo-content {
  background: #fff;
  border-radius: 10px;
  width: 350px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  animation: fadeIn 0.4s ease;
}

.promo-content h2 {
  color: #ff5722;
  margin-bottom: 10px;
}

.promo-content p {
  color: #333;
  line-height: 1.5;
}

.promo-btn {
  background: #ff5722;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
}

.promo-btn:hover {
  background: #e64a19;
}

.close-promo {
  background: none;
  border: none;
  font-size: 22px;
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}


#service-popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 128, 255, 0.3); 
  display: none; 
  justify-content: center; 
  align-items: center;
  z-index: 1000;
}


#service-popup .service-content {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  width: 380px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: fadeInScale 0.3s ease; 
}


#service-popup .service-header {
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  margin-bottom: 15px;
}

#service-popup .service-header h2 {
  font-size: 20px;
  color: #0077cc;
}

#service-popup .close-btn {
  background: none; 
  border: none; 
  font-size: 22px; 
  cursor: pointer;
  color: #0077cc;
}


#service-popup input {
  padding: 8px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#service-popup button {
  background: #0077cc;
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#service-popup button:hover {
  background: #005fa3;
}

/* Hiệu ứng mở popup */
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}


#contact-footer {
  background: #2c2c3a; 
  color: #fff8f0; 
  padding: 30px 20px;
  text-align: left;
  border-top: 3px solid #ff5722; 
}

.footer-info h3 {
  color: #ff5722; 
  margin-bottom: 10px;
}

.footer-info p {
  margin: 6px 0;
  color: #ddd;
}

.footer-info a {
  color: #ffcc80;
  text-decoration: none;
}

.footer-info a:hover {
  color: #ff5722;
  text-decoration: underline;
}

.footer-social a {
  background: #ff5722;
  color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-right: 10px;
  text-decoration: none;
  transition: 0.3s;
}

.footer-social a:hover {
  background: #e64a19;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid #444;
  padding-top: 10px;
  font-size: 14px;
  color: #aaa;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap; 
  gap: 20px;
}

.footer-info {
  flex: 1;
  min-width: 250px;
}

.footer-map {
  flex: 1;
  min-width: 300px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.footer-map iframe {
  width: 100%;
  height: 220px;
  border: 0;
}