/* --- GIAO DIỆN CHUNG & KHỞI TẠO --- */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fcfaf7;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* --- HEADER TOP BANNER --- */
#top {
  background-color: #3e2723;
  color: #fff;
  padding: 10px 0;
  font-size: 14px;
}

#top-content {
  width: 85%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#top-content-right a {
  color: #d7ccc8;
  cursor: pointer;
}

#top-content-right a:hover {
  color: #fff;
  text-decoration: underline;
}

#banner {
  background-color: #fff;
  padding: 20px 0;
  border-bottom: 1px solid #f0e6df;
}

#banner-content {
  width: 85%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

/* Phóng to riêng logo chính lên kích thước lộng lẫy */
#banner_content_logo img,
#banner-content-logo img,
.banner_content_logo img,
.banner-content-logo img {
    width: 95px !important;        /* Kích thước to tròn hoàn hảo */
    height: 95px !important;       
    border-radius: 50% !important; /* Bo tròn xịn */
    object-fit: cover !important;  
    background-color: transparent !important; /* Xóa nền xám */
    background: none !important;
    padding: 0 !important;         /* Xóa khoảng đệm thừa */
}

.banner-feature {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Chỉ ép nhỏ đúng 3 cái icon tính năng, tuyệt đối không động vào logo chính */
.banner-feature img, 
.banner-feature-detail img,
div[class*="banner-feature"] img {
    width: 55px !important;      /* Khung icon nhỏ 45px */
    height: 55px !important;     
    object-fit: contain !important; 
    border-radius: 50% !important;  
    background-color: #f3f3f3 !important; /* Nền xám mờ cho 3 icon */
    padding: 6px !important;     
    box-sizing: border-box !important; 
    display: inline-block;
}

/* Đảm bảo chữ và hình nằm thẳng hàng, không bị nhảy dòng */
.banner-feature {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.banner-feature-detail {
  font-size: 13px;
  line-height: 1.4;
}

/* Khối bao giỏ hàng bên phải banner */
#banner-content-cart {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Nút giỏ hàng hình quả trứng */
.cart-box {
  background-color: #6f5946;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 14.5px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.cart-box:hover {
  background-color: #5d4a3a;
}

.cart-box:active {
  transform: scale(0.98);
}

/* --- THANH MENU ĐIỀU HƯỚNG --- */
#menu {
  background-color: #6f5946;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#menu-content {
  width: 85%;
  margin: 0 auto;
}

#menu-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

#menu-content ul li a {
  display: block;
  padding: 18px 25px;
  color: #f5ebe6;
  font-weight: 600;
  font-size: 15px;
}

#menu-content ul li a:hover, 
#menu-content ul li a.active {
  background-color: #5d4a3a;
  color: #fff;
}

/* --- KHU VỰC MAIN (DANH MỤC & SLIDESHOW) --- */
#main {
  padding: 30px 0;
  min-height: 600px;
}

#main-content {
  width: 85%;
  margin: 0 auto 40px auto;
  display: grid;
  grid-template-columns: 22% 53% 22%;
  gap: 1.5%;
}

/* Danh mục bên trái */
#list-cate {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

#list-cate h1 {
  font-size: 18px;
  color: #6f5946;
  margin-top: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0e6df;
}

#list-cate ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#list-cate ul li {
  padding: 12px 10px;
  border-bottom: 1px solid #f9f6f3;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

#list-cate ul li:hover {
  background-color: #fdf8f5;
  color: #6f5946;
  padding-left: 15px;
}

/* Slideshow ở giữa */
#slideshow img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Quảng cáo bên phải */
#ads {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#ads img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* --- KHỐI DANH SÁCH SẢN PHẨM (GRID) --- */
.cate h1 {
  font-size: 22px;
  color: #3e2723;
  border-left: 5px solid #6f5946;
  padding-left: 12px;
  margin-bottom: 25px;
}

.cate-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Chia đều thành 4 cột cố định */
  gap: 20px;
}

.cate-product {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  
  /* Flexbox giúp các nút luôn đẩy xuống đáy, thẳng hàng nhau */
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
}

.cate-product:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.cate-product img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
}

.cate-product h1 {
  font-size: 16px;
  color: #444;
  margin: 12px 0 6px 0;
  height: 42px; /* Giữ chiều cao cố định cho tên món ăn */
  overflow: hidden;
  border: none;
  padding: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cate-product span {
  font-weight: bold;
  color: #8b7355;
  font-size: 15px;
  display: block;
  margin-bottom: 10px;
}

/* Style cho các nút bấm hành động */
.cate-product-btn {
  background-color: #fff;
  color: #6f5946;
  border: 1px solid #6f5946;
  padding: 8px 16px;
  border-radius: 4px;
  margin-top: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.2s;
}

.cate-product-btn:hover {
  background-color: #f5ebe6;
}

/* Nút Mua ngay màu nâu đất */
.cate-product-btn.btn-buy-now {
  background-color: #6f5946;
  color: #fff;
  border: 1px solid #6f5946;
}

.cate-product-btn.btn-buy-now:hover {
  background-color: #5d4a3a;
}

/* --- GIAO DIỆN CHI TIẾT SẢN PHẨM --- */
.view-section {
  width: 85%;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  box-sizing: border-box;
}

.detail-container {
  display: flex;
  gap: 40px;
  margin-top: 20px;
}

.detail-img {
  width: 40%;
  height: 350px;
  object-fit: cover;
  border-radius: 8px;
}

.detail-info {
  width: 60%;
}

.detail-price {
  font-size: 24px;
  font-weight: bold;
  color: #8b7355;
  margin: 15px 0;
}

/* --- FOOTER --- */
#footer {
  background-color: #2b1d16;
  color: #d7ccc8;
  padding: 40px 0 20px 0;
  margin-top: 60px;
}

#footer-content {
  width: 85%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 35% 20% 25% 20%;
  gap: 2%;
}

#footer h2, #footer h3 {
  color: #fff;
  font-size: 18px;
  margin-top: 0;
}

#footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer ul li {
  margin-bottom: 10px;
  font-size: 14px;
}

#footer a {
  color: #b09b8b;
}

#footer a:hover {
  color: #fff;
  text-decoration: underline;
}