/* =========THANH ĐIỀU HƯỚNG=========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  /* =========================================
   NÚT ĐĂNG NHẬP / ĐĂNG KÝ TRÊN NAVBAR 
   ========================================= */
.nav-auth {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: 15px; /* Tạo khoảng cách với nút giỏ hàng */
}

/* Kiểu dáng chung cho cả 2 nút */
.nav-menu .nav-btn-login {
    padding: 8px 18px !important; /* Ghi đè padding mặc định của menu */
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Nút Đăng ký: Nền nâu, chữ trắng */
.nav-menu .nav-btn-login {
    background-color: #4a3022;
    color: #fff !important;
    border: 1.5px solid #4a3022;
}

.nav-menu .nav-btn-login:hover {
    background-color: #8d494a;
    border-color: #8d494a;
}
  .navbar {
    background-color: #3b2314; 
  }
  
  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    height: 56px;
    padding: 0 1.5rem;
  }
  
  .logo {
    font-family: "Raleway", sans-serif; 
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
  }
  
  .nav-menu {
    font-family: "Raleway", sans-serif;
    display: flex;
    align-items: center;
    list-style: none;
  }
  
  .nav-menu a {
    display: block;
    color: #e0cfc5;
    text-decoration: none;
    font-size: 0.88rem;
    padding: 0 1rem;
    line-height: 56px;
    transition: color 0.2s;
  }
  
  .nav-menu a:hover { 
    color: #fff; 
}
  
  .nav-menu a.active {
    color: #fff;
    border-bottom: 2px solid #c8956c; /* gạch chân */
  }
  
  .cart-icon {
    position: relative;
    font-size: 1.1rem;
  }
  
  /* Style cho trạng thái đã đăng nhập */
  .user-logged-in {
      display: flex;
      align-items: center;
      gap: 15px;
      height: 56px;
  }

  .nav-user-link {
      color: #e0cfc5;
      font-size: 1.4rem;
      transition: color 0.3s;
  }

  .nav-user-link:hover { color: #fff; }

  .nav-logout-btn {
      background: none;
      border: none;
      color: #e0cfc5;
      cursor: pointer;
      font-size: 1.1rem;
      padding: 5px;
      transition: color 0.3s;
  }

  .nav-logout-btn:hover { color: #e74c3c; }

  /* Nút Back to Top */
  #backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: #c8956c;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  }

  #backToTop:hover {
    background-color: #3b2314;
  }

  .cart-count {
    background: #c0392b;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 10px;
    right: 4px;
  }
  /* ======= BANNER ======= */
.banner {
    position: relative;
    width: 100%;
    height: 480px; /* chiều cao banner */
    background-image: url('/assets/images/banner.jpg');   /* ảnh nền */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  /* =====Hiệu ứng bay lơ lửng=====*/
  .banner::before{
    content: '☕';
    position: absolute;
    font-size: 20rem;       /*kích thước*/
    opacity: 0.05;
    animation: floatCoffee 10s ease-in-out infinite;  /*lặp vô hạn 10s*/
  }
  @keyframes floatCoffee{
    0%, 100%{
      transform: translate(-50%,-50%) rotate(0deg);
      top: 50%;
      left: 30%;
    }
    50%{
      transform: translate(-50%,-50%) rotate(180deg);
      top: 45%;
      left: 70%;
    }
  }
  /* Lớp phủ tối lên ảnh để chữ nổi bật */
  .banner-overlay {
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center , trasparent 0%, rgba(0,0,0,0.3) 100%);
  }
  
  /* Nội dung nằm trên lớp phủ */
  .banner-content {
    font-family: "Raleway", sans-serif;
    position: relative;         /* z-index cao hơn overlay */
    z-index: 10;
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
  }
  
  .banner-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 1rem;
  }
  
  .banner-subtitle {
    font-size: 1rem;
    color: #d4c4b0;             /* trắng ngà, nhẹ hơn tiêu đề */
    margin-bottom: 1.8rem;
  }
  
  /* Nút CTA */
  .btn_btn-primary {
    display: inline-block;
    padding: 0.65rem 2rem;
    background-color: #c8956c;  /* màu be/caramel như trong ảnh */
    color: #fff;
    text-decoration: none;
    border-radius: 999px;       /* bo tròn hoàn toàn */
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s, transform 0.15s;
  }
  
  .btn_btn-primary:hover {
    background-color: #b07d55;
    transform: translateY(-2px); /* hiệu ứng nổi lên khi hover */
  }
  
  /* ===== FEATURED MENU ===== */
.featured-menu {
  background-color: #f5f0eb;
  padding: 4rem 1.5rem;
}

.featured-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.featured-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.featured-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2c1a0e;
  margin-bottom: 0.6rem;
}

.featured-divider {
  width: 50px;
  height: 3px;
  background-color: #c8956c;
  margin: 0.5rem auto 0.8rem;
  border-radius: 2px;
}

.featured-subtitle {
  font-size: 0.95rem;
  color: #888;
}

/* Grid 4 cột */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* Card */
.menu-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* Ảnh */
.card-img-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.menu-card:hover .card-img-wrapper img {
  transform: scale(1.05); /* zoom nhẹ khi hover */
}

/* Nội dung card */
.card-body {
  padding: 1rem 1.1rem 1.2rem;
}

.card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #2c1a0e;
  margin-bottom: 0.4rem;
}

.card-desc {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.5;
  margin-bottom: 1rem;
  min-height: 54px; /* giữ chiều cao đều nhau */
}

/* Footer card: giá + nút */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-price {
  font-size: 1rem;
  font-weight: 700;
  color: #c8956c;
}

.btn-add-cart {
  background-color: #3b2314;
  color: #fff;
  border: none;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.btn-add-cart:hover {
  background-color: #c8956c;
}

/* Responsive: 2 cột trên tablet */
@media (max-width: 900px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive: 1 cột trên mobile */
@media (max-width: 500px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== QUICK ORDER ===== */
.quick-order {
  font-family: "Raleway", sans-serif;
  background-color: #fff;
  padding: 4rem 1.5rem;
}

.quick-order-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.quick-order .featured-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2c1a0e;
  margin-bottom: 0.5rem;
}

.quick-order .featured-subtitle {
  font-size: 0.95rem;
  color: #888;
  margin-bottom: 2.5rem;
}

/* Layout 2 cột: form | info */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 2rem;
  text-align: left;
}

/* ===== FORM ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 500;
  color: #2c1a0e;
}

.form-group input,
.form-group textarea {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #c8956c;
}

/* ===== VALIDATION ERROR ===== */
.form-group input.input-error,
.form-group textarea.input-error {
  border-color: #e74c3c;
  background-color: #fff8f8;
}

.form-group input.input-error:focus,
.form-group textarea.input-error:focus {
  border-color: #e74c3c;
}

.error-msg {
  font-size: 0.8rem;
  color: #e74c3c;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.error-msg::before {
  content: "⚠";
  font-size: 0.75rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #bbb;
}

/* Nút gửi */
.btn-contact {
  width: 100%;
  padding: 0.75rem;
  background-color: #c8956c;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background-color 0.2s, transform 0.15s;
}

.btn-contact:hover {
  background-color: #b07d55;
  transform: translateY(-2px);
}

/* ===== INFO BOXES ===== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-box {
  border: 1px solid #ece8e3;
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  background-color: #faf8f5;
}

.info-box h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2c1a0e;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-box p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
}

/* ===== FOOTER ===== */
.footer {
  background-color: #2c1a0e;
  color: #d4c4b0;
  padding: 2rem 1.5rem 0;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo + social cùng 1 hàng */
.footer-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Logo */
.footer-logo .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.footer-logo p {
  font-size: 0.88rem;
  color: #a89080;
  line-height: 1.6;
}

/* Icon mạng xã hội */
.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.2rem;
}

.social-link a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4c4b0;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.social-link a:hover {
  background-color: #c8956c;
  color: #fff;
}

/* Dòng copyright */
.footer-bottom {
  text-align: center;
  padding: 1rem 0;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: #7a6a5a;
}