body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: rgb(38, 38, 48);

  overflow-x: hidden;

  display: flex;
  justify-content: center;
  margin-bottom: 300px;
}

/* Nút hamburger ẩn trên desktop */
.hamburger_dt {
  display: none;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  color: #f3f3f3;
  top: 0;

  right: 0;
  position: absolute;
}




/* Nút hamburger ẩn trên desktop */

.banner {
  padding-top: 60px;
  position: relative;
  display: block;
  max-width: 100%;
  height: auto;

  /* r, g, b, alpha (0 = trong suốt, 1 = đậm đặc) */


  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  /* Đảm bảo padding không làm tăng kích thước */
}

.banner img {
  max-width: 100%;
  /* Giúp ảnh không vượt quá phần tử cha */
  height: auto;
  /* Giữ tỷ lệ ảnh */
}


.menu {
  position: fixed;
  /* Fixes the menu at the top */
  top: 0;
  left: 0;
  right: 0;
  background-color: #141216;
  /* Dark background for the menu */
  color: white;
  display: flex;
  justify-content: center;
  /* Center items horizontally */
  align-items: center;
  padding: 10px 20px;
  z-index: 1000;
  /* Ensures the menu is above other content */
  height: 50px;



}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* đúng 3 cột */
  gap: 20px;
}

.item {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.item img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.title {
  font-size: 16px;
  font-weight: bold;
  margin: 10px 0;
}

.buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}


.buttons a {
  flex: 1;
  margin: 0 3px;
  padding: 8px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
}

.buttons a:hover {
  background: #0056b3;
}

.menu .right-button {
  position: absolute;
  /* Positioning the right button independently */
  right: 20px;
  /* Distance from the right edge */
}

.menu button {

  padding: 10px 15px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;

}

.right-button {
  background-color: rgb(255, 92, 187);
  /* Background color for the right-aligned button */
  color: rgb(0, 0, 0);
  /* Text color */
  border: none;
  /* Remove border */
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;

}

.right-button:hover {
  background-color: #b90091;
  color: #ffffff;
}

.center-button-blue {
  background-color: rgb(0, 121, 20);
  /* Background color for the right-aligned button */
  color: rgb(255, 255, 255);
  /* Text color */
  border: none;
  /* Remove border */
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  margin: 10px;
}

.center-button-blue:hover {
  background-color: #00b345;
  color: #ffffff;
}

.center-button-green {
  background-color: rgb(32, 129, 255);
  /* Background color for the right-aligned button */
  color: rgb(255, 255, 255);
  /* Text color */
  border: none;
  /* Remove border */
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  margin: 10px;
}

.center-button-orange-light {
  background-color: #ff7322;
  /* Background color for the right-aligned button */
  color: rgb(255, 255, 255);
  /* Text color */
  border: none;
  /* Remove border */
  padding: 10px 20px;
  font-size: 12px;
  cursor: pointer;
  margin: 10px;
}

.center-button-orange {
  background-color: #ff6131;
  /* Background color for the right-aligned button */
  color: rgb(255, 255, 255);
  /* Text color */
  border: none;
  /* Remove border */
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  margin: 10px;

}

.center-button-orange.active {
  background-color: #007bff;
  /* Blue when active */
}

.center-button-orange:hover {
  background-color: #ff3c00;
  color: #ffffff;
}


.content {
  padding-top: 100px;
  width: 1500px;
  padding: 20px;


}



.container_1line {
  /* random div */
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  margin: 30px auto 0 auto;
  /* giữ nguyên: căn khung giữa trang */

  /* ➜ Căn giữa mọi thứ bên trong */
  place-items: center;
  /* = justify-items + align-items */

  width: 100%;
  max-width: 1200px;
  padding: 0;


  color: #ffffff;
  border-radius: 20px;
  font-size: 25px;
  line-height: 30px;
}


.container-SP {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 110px auto 0 auto;
  /* Đẩy xuống dưới 70*/
  padding: 20px;
  padding-bottom: 100px;

  border-radius: 20px;
}

.container-youtube {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 110px auto 0 auto;
  /* Đẩy xuống dưới 70*/
  padding: 20px;
  padding-bottom: 100px;

  border-radius: 20px;
}

.container-LienHe {
  display: grid;
  grid-template-columns: repeat(6, 100px);
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 80px auto 0 auto;
  padding: 20px;
  padding-bottom: 100px;
  align-items: center;
  position: relative;
  border-radius: 20px;
  justify-content: center;
}

.container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 80px auto 0 auto;
  /* Đẩy xuống dưới */
  padding: 20px;
  padding-bottom: 100px;

  border-radius: 20px;
}





.item {
  background-color: #2c2946;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 10px;
  color: #ffffff;

}

.item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.title {
  margin: 10px 0;
  margin-bottom: 0px;
  font-size: 18px;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
}

.blog {

  display: flex;

  gap: 0px;
  /* Khoảng cách giữa ảnh và chữ */
  margin-bottom: 0px;
  padding: 0 0;
  /* Thêm khoảng cách trên và dưới */
  margin-left: 50px;
  margin-right: 50px;
  align-items: center;
  /* Giữ phần tử trên cùng */
  flex-wrap: nowrap;
  /* Ngăn nội dung đẩy ảnh xuống */
  overflow: hidden;
}


.img-left {

  /* Ảnh có chiều rộng cố định */
  margin-right: 30px;

  height: auto;
  flex-shrink: 0;
  margin: 50px 30px 0 auto;
  /* Căn giữa ngang và đẩy xuống 10px */
}

.text-right-dark {

  flex: 1;
  /* Tự động co giãn */
  color: #f3f3f3;
  padding-right: 10px;
  padding-left: 10px;
  padding-bottom: 0;

}

p {
  text-align: justify;
  /* Căn đều hai bên */

}


/* cau hinh luc muc doc sach*/
.text-right-dark-columns {
  position: relative;
  /* Positioning the right button independently */

  padding-left: 0px;
  padding-top: 10px;
  color: #f3f3f3;
  font-size: 25px;
  line-height: 30Px;
  display: flex;
  gap: 10px;
  margin-bottom: 0px;
  padding-bottom: 0px;
}

.col {
  flex: 1;
  padding: 10px;
  column-width: 350px;
  /* Chỉnh sửa "Px" thành "px" */

  margin: 0 auto;
  /* Căn giữa ngang */
  text-align: left
    /* Nếu có nội dung chữ, căn giữa luôn */

}

.section {
  margin-bottom: 15px;
  /* Tạo khoảng cách giữa các phần */
  padding: 15x;
  padding-bottom: 0px;

}

/* cau hinh luc muc doc sach*/


.text-right-light {
  position: relative;
  /* Positioning the right button independently */
  right: 0px;
  /* Distance from the right edge */
  padding-left: 100px;
  padding-top: 40px;
  color: #f3f3f3;
  font-size: 25px;
  line-height: 30Px;

}

a {
  text-decoration: None;
  color: rgb(255, 153, 1);
}

h2 {
  color: rgb(255, 187, 0);
  padding-top: 0px;
  line-height: 45px;
}


/* SEARCH */
#search-box {
  width: 300px;


  font-size: 20px;

  /* Fixes the menu at the top */

  background-color: #fff4f7;
  /* Dark background for the menu */
  color: rgb(0, 0, 0);
  display: flex;
  justify-content: center;
  /* Center items horizontally */
  align-items: center;
  margin-left: 20px;
  z-index: 1000;
  /* Ensures the menu is above other content */
  height: 30px;
  /* Positioning the right button independently */

  /* Distance from the right edge */
  border-radius: 30Px;
}

.highlight {
  background-color: yellow;
  /* Tô nền vàng cho từ khóa */
  font-weight: bold;
  /* Làm đậm chữ */
  color: red;
  /* Màu chữ đỏ */
}

/* SEARCH */


/* POPUP */
.close-btn {
  margin-top: 10px;
  padding: 8px 15px;
  background: red;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden !important;
  /* Không cuộn trang */
  z-index: 9999;
  /* 🔹 Luôn trên tất cả nội dung khác */

}

.popup {
  background: rgb(245, 245, 245);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  width: 700px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 10000;
  /* 🔹 Đảm bảo popup trên cả overlay */
}

.close-btn {
  margin-top: 10px;
  padding: 8px 15px;
  background: red;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}


.overlay.active {
  visibility: visible;
  opacity: 1;
}

.popup-image {
  width: 100%;
  max-width: 500px;
  /* Giới hạn kích thước hình */
  border-radius: 10px;
  margin-bottom: 10px;
}

/* POPUP */


.container_DetailSP {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  /* giúp xuống dòng khi màn nhỏ */
  margin-top: 80px;

}

.back {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 100px;

  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin: 0px 0 auto;
}

.product {
  width: 500px;
  /* khung không “thu nhỏ” nữa    */
  max-width: 500px;
  /* vẫn giới hạn trên            */
  margin: auto;
  background: #f7f7f7;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, .1);
}

.main-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}



.thumbnail-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.thumbnail-row img,
.thumbnail-row video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: pointer;
}

.product-title {
  font-size: 20px;
  margin: 15px 0;
}

/* Nút chat */


.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.thumbnail-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 15px;
}



.product-title {
  font-size: 20px;
  margin: 15px 0;
}

/* Nút chat */
.chat-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.chat-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  transition: background 0.3s;
}



.chat-button:hover {
  opacity: 0.9;
}

.chat-button img {
  width: 24px;
  height: 24px;
}

/* detail San Pham GaviShop */


/* Xem Them */
/* Đảm bảo nội dung mở rộng tự nhiên */
.hidden {
  display: none;
}

.expanded {
  display: block;
}

/* Nút Xem thêm */
#toggle-btn {
  color: rgb(255, 255, 255);
  background-color: rgb(8, 141, 79);
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
  margin-top: 10px;
}

#toggle-btn:hover {
  background-color: darkblue;
}

/* Định dạng footer */
.footer {
  position: relative;
  /* Giữ footer ở dưới */
  width: 100%;
  background-color: #222;
  color: white;
  text-align: center;
  padding: 10px 0;
  margin-top: 20px;
  /* Tạo khoảng cách để không bị chồng lên */
}

/* Xem Them */

/* Heart */
/* Định dạng chung cho nút trái tim */
.heart-button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: transform 0.2s ease-in-out;
}

/* Hiệu ứng khi bấm */
.heart-button:active {
  transform: scale(0.9);
}

/* SVG trái tim */
.heart-button svg {
  width: 40px;
  height: 40px;
  fill: red;
  /* Trái tim màu đỏ */
  transition: fill 0.3s ease;
}

/* Hiệu ứng hover đổi màu */
.heart-button:hover svg {
  fill: #cc0000;
  /* Màu đỏ đậm khi hover */
}

/* Heart */

/* Home svg */
/* Định dạng chung cho nút Home */
.home-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  /* Kích thước nhỏ như nút trái tim */
  height: 40px;
  background-color: #007bff;
  /* Màu xanh */
  border-radius: 50%;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease-in-out;
  margin-left: 5px;
}

/* SVG icon Home */
.home-button svg {
  width: 24px;
  height: 24px;
  fill: white;
  /* Màu trắng cho icon */
}

/* Hiệu ứng hover */
.home-button:hover {
  background-color: #3a10f3;
  /* Màu xanh đậm hơn khi hover */
}

/* Hiệu ứng nhấn */
.home-button:active {
  transform: scale(0.9);
}

/* Home svg */

/* affiliate */

.menu_Affiliate {
  position: fixed;
  background-color: hsla(0, 0%, 10%, 0.9);


  /* Dark background for the menu */
  color: white;
  display: flex;
  justify-content: center;
  /* Center items horizontally */
  align-items: center;

  border-radius: 4px;
  /* Ensures the menu is above other content */
  margin: 80px auto -30px auto;
  top: 0;
  z-index: 1000;
  width: 1200px;
}

.menu_Affiliate button {
  border-radius: 20px;

  font-size: small;


}




/* affiliate */



/*                                                                          media */



/*login*/
.login-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.login-box {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  width: 300px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.login-box input {
  width: 90%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.login-box button {
  padding: 10px 20px;
  background-color: #ff6600;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
}

.login-box button:hover {
  background-color: #e65c00;
}

.login-error {
  color: red;
  display: none;
  margin-top: 10px;
}

/* Lớp phủ mờ */
.overlay {
  position: fixed;
  /* Đảm bảo phủ trên toàn bộ trang */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  /* Màu đen mờ */
  display: none;
  /* Ẩn mặc định */
  z-index: 1000;
  /* Lớp phủ luôn ở trên tất cả các phần tử */
}

/* Modal đăng nhập */
#login-modal {
  display: flex;
  /* Hiển thị hộp đăng nhập */
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  /* Màu nền hộp thoại đăng nhập */
  z-index: 1001;
  /* Modal luôn ở trên lớp phủ */
}

/* Nội dung chính bị ẩn */
#main-content {
  display: none;
}

#user-bar {
  position: absolute;
  top: 10px;
  right: 10px;

  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
}

#user-bar button {
  margin-left: 10px;
}

/*login*/


.chat-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s;
  z-index: 1000
}

.chat-btn:hover {
  transform: scale(1.1)
}

.chat-btn img {
  width: 80px;
  height: 80px
}

.chat-btn.zalo {
  bottom: 180px;
}

.chat-btn.whatsapp {
  bottom: 60px;
}

.chat-btn.messenger {
  bottom: 300px;
}

.chat-btn.chatme {
  bottom: 420px;
}

.chat-btn-row.zalo {
  bottom: 60px;
  right: 120px;
}

.chat-btn-row.whatsapp {
  bottom: 60px;
}

.chat-btn-row.messenger {
  bottom: 60px;
  right: 220px;
}



/* Chế độ điện thoại (dưới 768px) */
@media (max-width: 899px) {
  .product {
    background: #f1f1f1;
    padding: 20px;
    border-radius: 10px;
    max-width: 300px;
    margin: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-top: 0;
  }



  .thumbnail-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
  }

  .thumbnail-row img,
  .thumbnail-row video {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    cursor: pointer;
  }



  .chat-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s;
    z-index: 1000
  }

  .chat-btn img {
    width: 50px;
    height: 50px
  }

  .chat-btn.zalo {
    bottom: 120px;
    right:30px;
  }

  .chat-btn.whatsapp {
    bottom: 60px;
    right:30px;
  }

  .chat-btn.messenger {
    bottom: 180px;
    right:30px;
  }

  .chat-btn.chatme {
    bottom: 240px;
    right:30px;
  }

 

  #user-bar button {
    display: none !important
  }

  #user-bar {
    display: none !important
  }

  .banner {
    display: none;
    ;
  }

  .title {
    font-size: 11px;
    font-weight: bold;
    margin: 5px 0;
  }

  .menu_Affiliate {
    position: fixed;
    right: 12px;
    /* Căn menu sát bên phải */
    top: 10px;
    /* Đưa menu lên trên */


    color: white;
    display: flex;
    flex-direction: column;
    /* Xếp menu theo chiều dọc */
    align-items: center;

    width: 60px;
    /* Giảm chiều rộng */
    padding: 1px;
    /* Giảm padding */
    border-radius: 1px;
    z-index: 1000;
  }

  .menu_Affiliate a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    /* Giảm khoảng cách giữa các mục menu */
    font-size: 10px;
    /* Giảm kích thước chữ */
    display: block;
    text-align: center;
  }



  .container-LienHe {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    /* Tự động điều chỉnh số cột */
    padding: 15px;
    /* Padding vừa phải */
    width: 80%;
    max-width: 400px;
  }

  .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 100px;
    margin: 50px auto 0 auto;
    border-radius: 20px;

  }

  .container-SP {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 70%;
    max-width: 768px;
    margin: 50px 80px 0 auto;
    padding: 20px;
    padding-bottom: 100px;
    margin-top: 120px;
    border-radius: 20px;
  }

  .blog {
    padding-right: 20px;
    padding-left: 20px;

    flex-direction: column;
    /* Xếp dọc thay vì ngang */
    text-align: left;
    /* Căn giữa nội dung */
    display: flex;
    align-items: flex-start;

    max-width: 100%;
    /* Giới hạn chiều rộng tối đa để vừa màn hình */
    box-sizing: border-box;
    /* Đảm bảo padding không làm tràn */
    margin: 0 auto;
    margin-left: 15px;
    /* Khoảng cách bên trái 10px */
    margin-right: 15px;
    /* Khoảng cách bên phải 10px */

  }

  .blog p {
    padding-left: 10px;
    /* Chừa padding trái 10px cho <p> */
    padding-right: 10px;
    /* Chừa padding phải 10px cho <p> */
  }



  .img-left img {
    max-width: 100%;
    /* Ảnh chiếm toàn bộ chiều rộng */
    margin-top: 50px;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    align-items: flex-start;

    margin-bottom: 0px;

  }

  .img-left {
    order: 0;
    /* Đưa ảnh lên trên */
    margin-bottom: 10px;
    /* Thêm khoảng cách dưới ảnh */
    width: 100%;
    /* Ảnh full chiều ngang */
    max-width: 300px;
    /* Giới hạn kích thước */
    align-items: flex-start;
    display: flex;
    margin: 0 auto;


  }

  .menu {
    position: flex;
    height: 50px;
    /* Đảm bảo đủ không gian cho hamburger và search-box */
    top: 0;
    right: 0;



  }

  .menu #search-box {
    display: block;
    /* Hiện lại khi active */
    width: 80%;
    /* Kích thước vừa đủ, không chiếm toàn màn hình */
    max-width: 130px;
    /* Giới hạn tối đa để không quá rộng */
    margin-top: 8px;
    left: 0;
    margin-left: 0;
    /* Căn giữa và thêm khoảng cách */

    /* Khoảng đệm bên trong nút */
    text-align: center;
    font-size: 16px;
    /* Kích thước chữ vừa phải */

    border: none;
    /* Loại bỏ viền nếu không cần */
    border-radius: 5px;
    /* Bo góc nhẹ cho đẹp */
  }


  .hamburger_dt {
    display: block !important;
    /* Hiện hamburger */
    position: absolute;
    /* Gắn hamburger vào vị trí cố định */
    top: 10px;
    /* Đặt cách top một chút */
    right: 10px;
    /* Đặt cách trái một chút */
    z-index: 9999;
    /* Đảm bảo hamburger luôn ở trên */


  }


  .buttons {
    display: flex;
    flex-direction: column;
    width: 150px;
    margin-top: 10px;
    padding-top: 5px;
    width: 100%;
    gap: 5px;
  }


  .buttons a {
    flex: 1;
    margin: 0 3px;
    padding: 8px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 8px;
  }

  .menu .center-button-orange,
  .menu .heart-button,
  .menu .home-button {
    display: none;
    /* Ẩn các mục menu mặc định */
  }

  .banner {

    display: none;
  }

  /* Phần cần kiểm tra và đảm bảo căn phải */
  .menu.active_dt .home-button {
    display: block;
    width: 80%;
    max-width: 100px;
    margin: 8px 115px 8px auto;
    /* margin-left: auto đẩy nút sang phải */
    padding: 10px;

    text-align: center;
    font-size: 16px;

    border: none;
    border-radius: 5px;
  }

  .menu.active_dt .heart-button,
  .menu.active_dt .center-button-orange {
    display: block;
    width: 60%;
    max-width: 150px;
    margin: 8px 10px 8px auto;
    /* margin-left: auto đẩy nút sang phải */
    padding: 10px;
    margin-right: 100px;
    text-align: center;
    font-size: 16px;

    border: none;
    border-radius: 5px;
  }

  .menu .center-button-green {
    position: block;
    right: 0;
    margin-right: 10px;
    right: 10px;
  }

  .menu.active_dt .center-button-green {

    display: block;
    width: 60%;
    max-width: 150px;
    margin: 8px 10px 8px auto;
    /* margin-left: auto đẩy nút sang phải */
    padding: 10px;
    margin-right: 50px;
    text-align: center;
    font-size: 16px;

    border: none;
    border-radius: 5px;
  }

  .menu.active_dt #search-box {
    display: none;
  }



  .menu.active_dt {
    display: block;
    position: fixed;
    /* Fix menu ở vị trí cố định */
    top: 0;
    left: 0;
    right: 0;
    padding: 10px;
    width: 100%;
    /* Chiếm toàn bộ chiều ngang */
    z-index: 1000;

  }


  .menu-buttons {
    display: none;
  }


  .banner {

    display: block;
    /* Cần để margin auto hoạt động trên ảnh */
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    /* Căn giữa ngang */
    margin: 0px auto 0 auto;
    /* Dịch ảnh xuống 10px */


  }

  .banner img {

    width: 100vw;
    /* Chiều ngang luôn bằng màn hình */
    height: auto;
    max-height: 80vh;
    /* Giữ ảnh không quá lớn */
    object-fit: contain;
    margin: 0px auto 0 auto;
    /* Dịch ảnh xuống 10px */
    display: block;

  }


  .left-ad,
  .right-ad {
    display: none !important;
    /* Đảm bảo quảng cáo bị ẩn */
  }

  .wrapper {
    padding: 0 !important;
    /* Xóa padding khi quảng cáo bị ẩn */
  }



}





/* Chế độ iPad (768px - 1024px) */



@media (min-width: 900px) and (max-width: 1024px) {
  .banner {
    display: none;
    ;
  }

  body {
    font-size: 14px;
    /* Nhỏ hơn một chút */
  }

  .container-LienHe {
    .container-LienHe {
      grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
      /* Tự động điều chỉnh số cột */
      padding: 15px;
      /* Padding vừa phải */
      width: 80%;
      max-width: 400px;
    }
  }



  .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 80%;
    max-width: 768px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 100px;

    border-radius: 20px;
  }

  .container-SP {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 80%;
    max-width: 768px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 100px;

    border-radius: 20px;
  }

  .blog {
    padding-right: 50px;
    padding-left: 50px;

    flex-direction: column;
    /* Xếp dọc thay vì ngang */
    text-align: left;
    /* Căn giữa nội dung */
    display: flex;
    align-items: flex-start;

    max-width: 100%;
    /* Giới hạn chiều rộng tối đa để vừa màn hình */
    box-sizing: border-box;
    /* Đảm bảo padding không làm tràn */
    margin: 0 auto;
    margin-left: 60px;
    /* Khoảng cách bên trái 10px */
    margin-right: 60px;
    /* Khoảng cách bên phải 10px */
    margin-top: 50px;
  }

  .blog p {
    padding-left: 10px;
    /* Chừa padding trái 10px cho <p> */
    padding-right: 10px;
    /* Chừa padding phải 10px cho <p> */
  }



  .img-left img {
    max-width: 100%;
    /* Ảnh chiếm toàn bộ chiều rộng */
    margin-top: 50px;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    align-items: flex-start;

    margin-bottom: 0px;

  }

  .img-left {
    order: 0;
    /* Đưa ảnh lên trên */
    margin-bottom: 10px;
    /* Thêm khoảng cách dưới ảnh */
    width: 100%;
    /* Ảnh full chiều ngang */
    max-width: 300px;
    /* Giới hạn kích thước */
    align-items: flex-start;
    display: flex;
    margin: 0 auto;


  }

  .menu {
    position: flex;
    height: 50px;
    /* Đảm bảo đủ không gian cho hamburger và search-box */
    top: 0;
    right: 0;



  }

  .menu #search-box {
    display: block;
    /* Hiện lại khi active */
    width: 80%;
    /* Kích thước vừa đủ, không chiếm toàn màn hình */
    max-width: 130px;
    /* Giới hạn tối đa để không quá rộng */
    margin-top: 8px;
    left: 0;
    margin-left: 0;
    /* Căn giữa và thêm khoảng cách */

    /* Khoảng đệm bên trong nút */
    text-align: center;
    font-size: 16px;
    /* Kích thước chữ vừa phải */

    border: none;
    /* Loại bỏ viền nếu không cần */
    border-radius: 5px;
    /* Bo góc nhẹ cho đẹp */
  }


  .hamburger_dt {
    display: block !important;
    /* Hiện hamburger */
    position: fixed;
    /* Gắn hamburger vào vị trí cố định */
    top: 10px;
    /* Đặt cách top một chút */
    right: 10px;
    /* Đặt cách trái một chút */
    z-index: 9999;
    /* Đảm bảo hamburger luôn ở trên */


  }



  .menu .center-button-orange,
  .menu .heart-button,
  .menu .home-button {
    display: none;
    /* Ẩn các mục menu mặc định */
  }

  /* Phần cần kiểm tra và đảm bảo căn phải */
  .menu.active_dt .home-button {
    display: block;
    width: 80%;
    max-width: 100px;
    margin: 8px 115px 8px auto;
    /* margin-left: auto đẩy nút sang phải */
    padding: 10px;

    text-align: center;
    font-size: 16px;

    border: none;
    border-radius: 5px;
  }

  .menu.active_dt .heart-button,
  .menu.active_dt .center-button-orange {
    display: block;
    width: 60%;
    max-width: 150px;
    margin: 8px 10px 8px auto;
    /* margin-left: auto đẩy nút sang phải */
    padding: 10px;
    margin-right: 100px;
    text-align: center;
    font-size: 16px;

    border: none;
    border-radius: 5px;
  }

  .menu .center-button-green {
    position: block;
    right: 0;
    margin-right: 10px;
    right: 10px;
  }

  .menu.active_dt .center-button-green {

    display: block;
    width: 60%;
    max-width: 150px;
    margin: 8px 10px 8px auto;
    /* margin-left: auto đẩy nút sang phải */
    padding: 10px;
    margin-right: 50px;
    text-align: center;
    font-size: 16px;

    border: none;
    border-radius: 5px;
  }

  .menu.active_dt #search-box {
    display: none;
  }



  .menu.active_dt {
    display: block;
    position: fixed;
    /* Fix menu ở vị trí cố định */
    top: 0;
    left: 0;
    right: 0;
    padding: 10px;
    width: 100%;
    /* Chiếm toàn bộ chiều ngang */
    z-index: 1000;

  }


  .menu-buttons {
    display: none;
  }


  .banner {

    display: block;
    /* Cần để margin auto hoạt động trên ảnh */
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    /* Căn giữa ngang */
    margin: 0px auto 0 auto;
    /* Dịch ảnh xuống 10px */
  }

  .banner img {

    width: 100vw;
    /* Chiều ngang luôn bằng màn hình */
    height: auto;
    max-height: 80vh;
    /* Giữ ảnh không quá lớn */
    object-fit: contain;
    margin: 0px auto 0 auto;
    /* Dịch ảnh xuống 10px */
    display: block;

  }

  .left-ad,
  .right-ad {
    display: none !important;
    /* Đảm bảo quảng cáo bị ẩn */
  }

  .wrapper {
    padding: 0 !important;
    /* Xóa padding khi quảng cáo bị ẩn */
  }

}

/* Khi màn hình nhỏ hơn hoặc bằng 1280px, quảng cáo thu nhỏ lại */
@media (min-width: 1025px) and (max-width: 1280px) {
  .banner {
    display: none;
    ;
  }

  .left-ad,
  .right-ad {
    display: none !important;
    /* Đảm bảo quảng cáo bị ẩn */
  }

  .wrapper {
    padding: 0 !important;
    /* Xóa padding khi quảng cáo bị ẩn */
  }


}

@media (min-width: 1281px) and (max-width: 1919px) {

  .left-ad,
  .right-ad {
    width: 160px;
    height: 600px;


    text-align: center;
    line-height: 600px;
    font-size: 18px;
    color: #666;
    position: fixed;
    top: 53%;
    transform: translateY(-50%);


  }


}



/* media */

/* QC */
.wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 1500px;
  position: relative;
  margin-top: 0px;
  padding: 0 10px;
  /* Chừa khoảng trống hai bên cho quảng cáo */
  box-sizing: border-box;



}

.left-ad,
.right-ad {
  width: 160px;
  height: 600px;


  text-align: center;
  line-height: 800px;
  font-size: 18px;
  color: #666;
  position: fixed;
  top: 53%;
  transform: translateY(-50%);


}

.left-ad {
  left: 10px;
}

.right-ad {
  right: 10px;
}


.right-ad-button {

  text-align: center;
  margin-top: 340px;
  font-size: 18px;
  color: #ffffff;
  position: fixed;
  top: 53%;
  transform: translateY(-50%);
  right: 10px;
  width: 160px;
  height: 60px;
  background-color: #007bff;
  /* Xanh dương tươi, bạn có thể đổi thành green nếu muốn */
  line-height: 60px;
  /* Canh giữa theo chiều dọc */
  text-decoration: none;
}

.left-ad-button {

  text-align: center;
  margin-top: 340px;
  font-size: 18px;
  color: #ffffff;
  position: fixed;
  top: 53%;
  transform: translateY(-50%);
  left: 10px;
  width: 160px;
  height: 60px;
  background-color: #007bff;
  /* Xanh dương tươi, bạn có thể đổi thành green nếu muốn */
  line-height: 60px;
  /* Canh giữa theo chiều dọc */
  text-decoration: none;
}


.left-ad-button:hover {
  background: #0056b3;
}




.right-ad-button:hover {
  background: #0056b3;
}





/* QC */