/* ========== Reset và chung ========== */








nav button:hover {
  background: #ff90a0;
}

/* ========== Danh sách menu ========== */
#menu-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;
}



.menu-item:hover {
  transform: scale(1.03);
}

.menu-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.menu-item .info {
  padding: 0.8rem;
}





/* ========== Topping ========== */
.topping-container {
  margin-top: 0.8rem;
  background: #ffe0e9;
  padding: 0.8rem;
  border-radius: 12px;
}

.topping-container label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #555;
}

.topping-container input[type="checkbox"] {
  margin-right: 8px;
}

.toppings li {
  font-size: 0.8rem;
}

.item-main-xuongdong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.toppings-wrapper {
  display: block;
  margin-top: 6px;
  padding-left: 16px;
}

.item-toppings {
  list-style-type: disc;
  margin: 0;
  padding-left: 20px;
  font-size: 0.9rem;
  color: #444;
  font-size: 13px;
}


/* ========== Responsive ========== */
@media(min-width: 600px) {
  #menu-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(min-width: 900px) {
  #menu-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 182, 185, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup.hidden {
  display: none;
}

.popup-content {
  position: relative;
  background: white;
  border-radius: 20px;
  max-width: 800px;
  width: 90%;
  padding: 1.5rem;
  position: relative;
  animation: fadeIn 0.3s;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.popup-body {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: flex-start;
}

.popup-image img {
  max-width: 200px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.popup-info {
  flex: 1;
}

.popup-info h2 {
  margin: 0 0 0.5rem;
}

.popup-info p, .popup-info div {
  margin: 0.3rem 0;
  color: #555;
}

.popup-section {
  margin-top: 1rem;
}

.popup-section strong {
  display: block;
  margin-bottom: 0.5rem;
}

.options label {
  display: inline-block;
  margin-right: 1rem;
}

/* .popup-actions { */
  /* display: flex; */
  /* align-items: center; */
  /* gap: 1rem; */
  /* margin-top: 1.5rem; */
/* } */

.popup-actions {
  position: sticky;
  bottom: 0;
  background: white;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  /* border-top: 1px solid #ccc; */
}

#popup-price{
	font-weight: bold;
    color: #ff6f91;
}
.quantity-input {
  width: 60px;
  padding: 0.4rem;
  font-size: 1rem;
}

.add-cart-btn {
  background-color: #ffb6b9;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 25px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.add-cart-btn:hover {
  background-color: #ff90a0;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 2rem;
  cursor: pointer;
  color: #ff6f91;
}


.popup-section {
  margin-bottom: 0.5rem;
}



.topping-item,
.size-item {
  margin-bottom: 4px; 
  line-height: 1.2;
}

.topping-item label,
.size-item label {
  font-size: 14px; 
}

.options {
  display: flex;
  flex-wrap: wrap;
}

.size-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.topping-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
@media (max-width: 800px) {
 .popup-content {
    padding: 1rem;
    width: 90%;
    max-height: 90vh; /* Giới hạn chiều cao tối đa */
    overflow-y: auto;  /* Bật cuộn dọc khi nội dung dài */
    box-sizing: border-box;
  }
}

@media (max-width: 600px) {
  .popup-content {
    padding: 1rem;
    width: 90%;
    max-height: 90vh; /* Giới hạn chiều cao tối đa */
    overflow-y: auto;  /* Bật cuộn dọc khi nội dung dài */
    box-sizing: border-box;
  }

  .popup-body {
    flex-direction: column;
    align-items: center;
  }

  .popup-image img {
    width: 150px;       /* Giới hạn kích thước ảnh */
    height: auto;
    border-radius: 8px;
  }

  .popup-info {
    width: 100%;
    text-align: left;
  }

  .popup-actions {
    width: 100%;
    gap: 0.5rem;
  }

  .add-cart-btn {
    width: 60%;
    text-align: center;
  }

  .topping-item,
  .size-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
}




/* ========== Toast ========== */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffb6b9;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 20px;
  font-size: 1rem;
  z-index: 2000;
  animation: fadeInOut 3s;
}

.toast.hidden {
  display: none;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateX(-50%) translateY(20px);}
  10% { opacity: 1; transform: translateX(-50%) translateY(0);}
  90% { opacity: 1; transform: translateX(-50%) translateY(0);}
  100% { opacity: 0; transform: translateX(-50%) translateY(20px);}
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* ========== Giỏ hàng ========== */
.cart {
  position: fixed;

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  max-width: 400px;
  max-height: 75vh;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  padding: 1rem;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cart.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.cart h2 {
  margin: 0;
  text-align: center;
  color: #ff6f91;
  font-size: 1.4rem;
}

/* Danh sách sản phẩm */
#cart-items {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  overflow-y: auto;
  flex-grow: 1;
  max-height: 300px;
}

/* Một item */
.cart-item {
  margin-bottom: 0.8rem;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 0.5rem;
}

.item-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.item-name {
  flex: 1;
  font-weight: 600;
  font-size: 1rem;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-price {
  white-space: nowrap;
  font-weight: bold;
  color: #ff6f91;
  margin-left: 10px;
}

.item-main button {
  background: #ff4d4f;
  border: none;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Số lượng */
.quantity-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}

.quantity-input {
  width: 18px;
  height: 28px;
  text-align: center;
  border: none;
  outline: none;
  font-size: 13px;
}

.quantity-btn {
  width: 28px;
  height: 28px;
  background: #f0f0f0;
  border: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
  text-align: center;
}

.quantity-btn:hover {
  background: #ddd;
}

/* Tổng tiền */
#cart-total {
  margin-top: 0.5rem;
  font-weight: bold;
  text-align: right;
  color: #ff6f91;
  font-size: 1.2rem;
}

/* Nút thanh toán / đóng giỏ */
.cart-buttons {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.cart-buttons button {
  flex: 1;
  background: #ffb6b9;
  color: white;
  border: none;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.cart-buttons button:hover {
  background: #ff90a0;
}

/* ========== Tìm kiếm ========== */
.search-container {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}



/* ========== Icon giỏ hàng ========== */
#cart-icon {
  position: fixed;        /* Cố định trên màn hình */
  right: 20px;            
  bottom: 20px;          
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  background: #ffb6b9; 
  border-radius: 20px;      
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2); /* Đổ bóng nhẹ */
  z-index: 9999;            
}



/* ========== Button thanh toán ========== */
.checkout-btn {
    width: 100%;
    background: #ffb6b9;
    border: none;
    padding: 0.8rem;
    border-radius: 25px;
    color: white;
    font-size: 1rem;
    margin-top: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

/* ========== Button xóa sản phẩm ========== */
.remove-btn {
  background-color: transparent;
  border: none;
  color: #ff4d4f;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 4px 8px;
  border-radius: 50%;
  line-height: 1;
}

.remove-btn:hover {
  background-color: #ffeaea;
  color: #d9363e;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}
.cart-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  color: #ff4d4f;
  cursor: pointer;
  z-index: 10;
  font-weight: bold;
}



/* bổ sung input */
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.cart-item .item-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
}

.cart-item .item-name {
  font-weight: 600;
  font-size: 1rem;
  color: #333;
  margin-right: 10px;
  white-space: nowrap;
}

.cart-item .quantity-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.cart-item .item-price {
  font-weight: bold;
  color: #ff6f91;
  margin: 0 10px;
  white-space: nowrap;
  font-size: 12px;
}

.cart-item .remove-btn {
  margin-left: auto;
}



/* Ẩn các mũi tên của input type="number" */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-input[type="number"] {
  -moz-appearance: textfield; /* Cho Firefox */
}




/* ========== Thông tin wifi ========== */
.qrwifi {
  position: fixed;

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  max-width: 400px;
  max-height: 85vh;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  padding: 1rem;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.qrwifi.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.qrwifi h2 {
  margin: 0;
  text-align: center;
  color: #ff6f91;
  font-size: 1.4rem;
}
.qrwifi-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  color: #ff4d4f;
  cursor: pointer;
  z-index: 10;
  font-weight: bold;
}

/* Danh sách wifi */
#qrwifi-items {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    overflow-y: auto;
    flex-grow: 1;
    max-height: 300px;

    display: flex;
    flex-direction: column;
    align-items: center; /* Căn giữa nội dung theo chiều ngang */
    justify-content: flex-start; /* Có thể đổi thành center nếu muốn căn giữa dọc luôn */
}

.wifi-info {
	padding-left: 5px;
}
.wifi-info li {
	list-style: none;
    /* padding: 0.5rem 0; */
    font-size: 16px;
    color: #333;
	font-weight: bold;
    border-bottom: 1px solid #ddd;
}

.wifi-info li:last-child {
    border-bottom: none;
}

.wifi-name::before {
    content: "📶 ";
}

.wifi-pass::before {
    content: "🔒 ";
    color: #e53935;
}


/* ========== Thông tin bank ========== */
.qrbank {
  position: fixed;

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  max-width: 400px;
  max-height: 85vh;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  padding: 1rem;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.qrbank.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.qrbank h2 {
  margin: 0;
  text-align: center;
  color: #ff6f91;
  font-size: 1.4rem;
}
.qrbank-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  color: #ff4d4f;
  cursor: pointer;
  z-index: 10;
  font-weight: bold;
}

/* Danh sách bank */
#qrbank-items {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    overflow-y: auto;
    flex-grow: 1;
    max-height: 300px;

    display: flex;
    flex-direction: column;
    align-items: center; /* Căn giữa nội dung theo chiều ngang */
    justify-content: flex-start; /* Có thể đổi thành center nếu muốn căn giữa dọc luôn */
}

.bank-info {
	padding-left: 5px;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.bank-info li {
    list-style: none;
    /* padding: 0.5rem 0; */
    font-size: 16px;
    color: #333;
	font-weight: bold;
    border-bottom: 1px solid #ddd;
}

.bank-info li:last-child {
    border-bottom: none;
}

.bank-name::before {
    content: "🏦";
    font-size: 18px;
}

.bank-account::before {
    content: "💳";
    font-size: 18px;
    color: #3498db;
}

.bank-name-user::before {
    content: "👤";
    font-size: 18px;
    color: #27ae60;
}

