* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header container riêng cho header rộng hơn */
.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Header Styles - toàn màn hình với thiết kế đẹp hơn */
.header {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 100%;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

/* Header scroll effect */
.header.scrolled {
  padding: 0.7rem 0;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.95),
    rgba(247, 147, 30, 0.95)
  );
  backdrop-filter: blur(15px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  min-width: fit-content;
}

.logo i {
  margin-right: 10px;
  color: #fff;
  font-size: 2rem;
}

.navigation {
  flex: 1;
  display: flex;
  justify-content: center;
}

.navigation .nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  border: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: fit-content;
}

.search-box {
  position: relative;
}

.search-box input {
  padding: 0.8rem 3rem 0.8rem 1.2rem;
  border: none;
  border-radius: 30px;
  width: 280px;
  outline: none;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.search-box input:focus {
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.search-box input::placeholder {
  color: #999;
}

.search-box i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 1rem;
}

.cart-icon {
  position: relative;
  cursor: pointer;
  font-size: 1.6rem;
  padding: 0.8rem;
  transition: all 0.3s ease;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.cart-icon:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #e74c3c;
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Banner Styles - thiết kế giống hình mẫu */
.banner {
  background: transparent;
  color: #333;
  padding: 4rem 0;
  margin: 0;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  overflow: hidden;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  z-index: 1;
}

.banner-food-image {
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
  background: url("https://lavenderstudio.com.vn/wp-content/uploads/2017/03/chup-san-pham.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 0 50% 50% 0;
  z-index: 2;
}

.banner-content {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  border-radius: 20px;
  padding: 3rem 4rem;
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.3);
  z-index: 3;
  position: relative;
  max-width: 600px;
  text-align: center;
  color: white;
  margin-left: auto;
  margin-right: 9rem;
}

.banner-logo {
  background: rgba(255, 255, 255, 0.2);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem auto;
  font-size: 2.5rem;
  color: white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Hiệu ứng lắc nhẹ */
@keyframes gentleFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-8px) rotate(0.5deg);
  }
  50% {
    transform: translateY(-5px) rotate(0deg);
  }
  75% {
    transform: translateY(-12px) rotate(-0.5deg);
  }
}
.banner-content span {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  margin-top: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.banner-content h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  color: white;
}

.banner-content p {
  font-size: 1.2rem;
  opacity: 0.95;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.9);
}

/* Filter Section */
.filter-section {
  margin: 3rem 0 2rem 0;
  padding-top: 2rem;
}

.filter-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.1);
}

#resultCount {
  font-weight: 600;
  color: #555;
  font-size: 1.1rem;
}

.sort-dropdown select {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  outline: none;
  background: white;
  cursor: pointer;
}

/* Food Grid */
.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.food-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.food-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.food-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e74c3c;
  color: white;
  padding: 0.3rem 0.7rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: bold;
}

.food-info {
  padding: 1.5rem;
}

.food-name {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
}

.food-description {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.food-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.food-price {
  font-size: 1.3rem;
  font-weight: bold;
  color: #e74c3c;
}

.add-to-cart {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.add-to-cart:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* Loading */
.loading {
  text-align: center;
  padding: 3rem;
  color: #666;
}

.loading i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #ff6b35;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 3rem 0;
}

.pagination a,
.pagination span {
  padding: 0.7rem 1rem;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #333;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: #ff6b35;
  color: white;
  border-color: #ff6b35;
}

.pagination .current {
  background: #ff6b35;
  color: white;
  border-color: #ff6b35;
}

.pagination .disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Footer */
.footer {
  background: #2c3e50;
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
  position: relative;
  z-index: 999;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: #ff6b35;
}

.footer-section p {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.footer-section i {
  margin-right: 0.5rem;
  color: #ff6b35;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #ff6b35;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #34495e;
  color: #bdc3c7;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
}

.modal-header h3 {
  color: #333;
}

.close {
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}

.modal-body {
  padding: 1.5rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.cart-item:last-child {
  border-bottom: none;
}

.item-info {
  flex: 1;
}

.item-name {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.item-price {
  color: #e74c3c;
  font-weight: bold;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-btn {
  background: #ff6b35;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid #eee;
  text-align: center;
}

.total {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #333;
}

.btn-order {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  width: 100%;
}

.btn-order:hover {
  background: linear-gradient(135deg, #e55a2b, #e6841a);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* Order Modal Styles */
.modal-content.large {
  max-width: 700px;
  width: 90%;
}

.order-summary {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.order-summary h4 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid #eee;
}

.order-item:last-child {
  border-bottom: none;
}

.order-item-info {
  flex: 1;
}

.order-item-name {
  font-weight: 600;
  color: #333;
}

.order-item-price {
  color: #666;
  font-size: 0.9rem;
}

.order-item-quantity {
  color: #ff6b35;
  font-weight: 600;
  margin-left: 1rem;
}

.order-total {
  text-align: right;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #ff6b35;
  font-size: 1.2rem;
}

.customer-info {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #eee;
}

.customer-info h4 {
  color: #333;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.1);
}

.btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e55a2b, #e6841a);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem 0;
  }

  .navigation {
    order: 3;
    width: 100%;
  }

  .navigation .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .nav-link {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }

  .header-actions {
    order: 2;
    justify-content: center;
    width: 100%;
  }

  .search-box input {
    width: 220px;
  }

  .banner-content h1 {
    font-size: 2rem;
  }

  .food-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }

  .filter-info {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .modal-content.large {
    max-width: 95%;
    margin: 2% auto;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile banner adjustments */
  .banner {
    padding: 3rem 0;
    min-height: 50vh;
  }

  .banner-food-image {
    width: 60%;
    border-radius: 0 40% 40% 0;
  }

  .banner-content {
    padding: 2rem 2.5rem;
    margin-right: 1rem;
    max-width: 400px;
  }

  .banner-logo {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .banner-content h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .banner-content span {
    font-size: 2rem;
  }

  .banner-content p {
    font-size: 1.1rem;
  }

  /* Mobile header adjustments */
  .header-container {
    padding: 0 15px;
  }

  .logo {
    font-size: 1.6rem;
    order: 1;
  }

  .logo i {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .header-container {
    padding: 0 10px;
  }

  .header {
    padding: 0.8rem 0;
  }

  .header-content {
    gap: 0.8rem;
  }

  .logo {
    font-size: 1.4rem;
  }

  .logo i {
    font-size: 1.6rem;
    margin-right: 8px;
  }

  .navigation .nav-menu {
    gap: 0.3rem;
  }

  .nav-link {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }

  .search-box input {
    width: 180px;
    padding: 0.7rem 2.5rem 0.7rem 1rem;
    font-size: 0.85rem;
  }

  .cart-icon {
    font-size: 1.4rem;
    padding: 0.6rem;
  }

  .banner {
    padding: 2rem 0;
    min-height: 40vh;
  }

  .banner-food-image {
    width: 70%;
    border-radius: 0 30% 30% 0;
  }

  .banner-content {
    padding: 1.5rem 2rem;
    margin-right: 0.5rem;
    max-width: 320px;
  }

  .banner-logo {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .banner-content h1 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
  }

  .banner-content span {
    font-size: 1.6rem;
  }

  .banner-content p {
    font-size: 1rem;
  }

  .food-grid {
    grid-template-columns: 1fr;
  }
}
.back-p {
  background-image: url("https://media.loveitopcdn.com/21/tranh-treo-tuong-hai-san-trang-tri-quan-nhau-2.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  left: 50%;
  right: 50%;
}
