.header{
  position: relative;
  width: 100%;
}

.top-header-menu { 
    position: relative;  
    width: 100%;
    height: 40px; 
    background-color:  #ffbf80;
    /* bottom: 440px ; */
    user-select: none;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    
}

.menu {
    font-size: 1.2em;
    display: flex; /* hiển thị flex */
    align-items: center; /* căn giữa */
}
.menu .menu-a {
    position: relative;  /* cố định vị trí */
    color: black; /* màu chữ */
    text-decoration: none;  /* bỏ gạch chân */
    margin-left: 8em;
}
.menu .menu-icon{
    position: absolute; /* vị trí tuyệt đối */
    top: 0;
    left: 12.5em; /* căn trái */
    width: 40px; /* chiều rộng */
    height: 40px; /* chiều cao */
    display: flex; /* hiển thị flex */
    align-items: center; /* căn giữa */
    justify-content: center; /* căn giữa */
}
header .headerpage{
    position: relative;  /* cố định vị trí */
    top: 0;
    width: 100%;
    height: 100px;
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: center;
    background:  #f7f7f7; /* màu nền */
   
    
}


.logo img{
    display: block;  /* hiển thị logo */
    width: 200px;
    height: 100px;
    border-radius: 50%;
   
    
}
.account-container {
    position: relative;   /* vị trí tương đối */
    display: inline-block;  /* hiển thị inline-block */
    color: black;
    font-family: sans-serif;
  }
  
  .account-icon {
    padding: 5px;
    cursor: pointer; /* con trỏ chuột khi hover */
    gap: 10px;
   
  }
  .account-icon  img{
   margin-right: 7px;
    border-radius: 50%; /* bo tròn hình ảnh */
  }
  
  .account-img {
    vertical-align: middle; /* căn giữa hình ảnh */
  }
  
  .dropdown-menu {
    display: none; /* ẩn menu */
    position: absolute; /* vị trí tuyệt đối */ 
    background-color: white;
    color: black;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);  /* bóng đổ */
    min-width: 160px; 
    z-index: 1; /* độ ưu tiên hiển thị */
  }
  
  .dropdown-menu a {
    padding: 12px 16px; /* khoảng cách bên trong */
    display: block; /* hiển thị block */
    text-decoration: none;  
    color: black;
  }
  
  .dropdown-menu a:hover {
    background-color: #f1f1f1;
  }
  
  .frame-login{
     display: flex;           
    flex-direction: column;  
  }

  .frame-login a:nth-of-type(1){
        order: 2;
  }
  .frame-login a:nth-of-type(2){
        order: 1;
  }
  .role-lo{
    border-bottom: #3b3b3b1c 1px solid;
    position: relative;
  }

  .role-lo::after{
    content: '';
    position: absolute;
    width: 3px;
    height: 0;
    left: 0;
    bottom: 20px;
    background: #ffc080a2;
    transition: transform 0.3s ease;
  }
  .role-lo:hover::after{
    height: 1px;
    transform:  scaleY(39);
  }

  .account-container:hover .dropdown-menu {
    display: block; 
  }
  .search-box{
    position: relative; /* vị trí tương đối */
    display: flex; /* hiển thị flex */
    align-items: center; /* căn giữa */
    justify-content: center; /* căn giữa */
    margin-left: 20px; /* khoảng cách bên trái */
    overflow: hidden; /* ẩn đi những phần thừa */
 
    
  }
  .search-box .input-search {
    width: 400px; /* chiều rộng */
    border-radius: 50px;
    border: none; /* đường viền */
    padding: 13px; /* khoảng cách bên trong */
    font-size: 14px; /* kích thước chữ */
    outline: none; /* bỏ viền */
    overflow: hidden
    
    
  }
  
  
  .search-box button {
    position: absolute;
    right: 0;
    top: 0;
    width: 60px; /* chiều rộng */
    height: 40px; /* chiều cao */
    background: transparent; /* nền trong suốt */
    display: flex; /* hiển thị flex */
    align-items: center; /* căn giữa */
    justify-content: center; /* căn giữa */
    border: none; /* bỏ viền */
    cursor: pointer;
    border-radius: 45px; /* bo tròn */
    
  }
.search-box .search-icon{
  width: 0;
  font-size: 20px;
  margin-right: 20px;

  
  
}
.search-box button:hover {
  background-color: #fcfbfb;
}

header .header-menu{
  position: relative; /* vị trí tương đối */
  background: #f1f1f1; /* màu nền */
  height: 50px;
  width: 100%;
  align-items: center; /* căn giữa */
  display: flex; /* hiển thị flex */
  justify-content: center; /* căn giữa */
  border-top: #ffbf80 1px solid; /* đường viền trên */
  
}
 .menu .menu-a:hover {
    color: #ffbf80; /* màu chữ khi hover */
    font-weight: bold; /* đậm chữ */
    
 }
 /* Basic reset */
.menu-list, .menu-left ul, .column ul {
  list-style: none; /* Bỏ dấu đầu dòng */
  margin: 0;
  padding: 0;
}





/* Mega menu styles */
.main-menu .menu-list {
  position: relative;
  
  
}

.main-menu .menu-item {
  position: relative;
}

.main-menu .menu-item > .a-menu {
  padding: 10px;
  text-decoration: none;
  padding-left: 8em;
  color: black;
  display: block; 
} 

.main-menu .menu-item > .a-menu:hover {
  color: #ffbf80; /* màu chữ khi hover */
  font-weight: bold; /* đậm chữ */
}
.menu-icon:hover .menu-item{
  color: #ffbf80; /* màu chữ khi hover */
  
}

.mega-menu {
  
  position: absolute;
  top: 100%;
  left: -6em;
  width: 900px;
  height: 279px;
  background: #fff;
  border: #3b3b3b 1px solid; /* đường viền */
  box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.3); /* Tạo bóng */ 
  z-index: 999;
  display: none;
}
.menu-item:hover .mega-menu {
  display: block;
  
}

.menu-list  .menu-list-left{
  position: relative;
  height: 100%;
  background: #f1f1f1; /* màu nền */
  width: 15em; /* chiều rộng */
  padding-top: 10px;
  border-right: #3b3b3b 1px solid; /* đường viền bên trái */
  box-shadow: 5px 0 15px rgba(241, 240, 240, 0.3); /* Tạo bóng */ 
  
}
.menu-list-left .active {
  margin-bottom: 5px;
  background-color: transparent;  
  width: 100%;
  height: 40px; /* chiều cao */
  align-items: center;
  display: flex; /* hiển thị flex */
  
}

.menu-list-left .active-a{
  position: absolute;
  color: black; /* màu chữ */
  text-decoration: none; /* bỏ gạch chân */
  padding-left: 20px; /* khoảng cách bên trái */
  font-size: 15px;
  width: 20em;
  height: 40px;
  border-radius: 0 20px 20px 0;
  border: none;
  display: flex;
  background: none;
  align-items: center;
  cursor: pointer; /* con trỏ chuột khi hover */
  transition: all 0.5s ease; /* chuyển động 0.3s */
}
.menu-list-left .active-a:hover {
  background: #ffbf80; /* màu nền khi hover */
  
  
}


.menu-list-left .active:hover .active-a {
  color: #fff; /* màu chữ khi hover */
  font-weight: 200; /* đậm chữ */
}
.menu-right{
  position: absolute;
  width: 80%;
  height: 100%;
  top: 0;
  left: 17em;
  padding: 20px; /* khoảng cách bên trong */
  display: flex; /* hiển thị flex */
  
}
.menu-right .column{
  position: relative;
  width: 100%;
  height: 100%;
  display: flex; /* hiển thị flex */
  flex-direction: column;   /* xuống dòng */
  
}
.menu-right .column .column-a{
  margin-bottom: 20px;
}
.column .text-a{
  text-decoration: none;
  font-size: 15px;
  color: #3b3b3b;
}
.column .text-a:hover{
  color: #ffbf80; /* màu chữ khi hover */
  font-weight: bold; /* đậm chữ */
}
  

.frame-cart{
  position: relative;
  width: 3rem;
  height: 50px;
  border-radius: 50%;
  background-color: #ffc08079;
  display: flex;
  align-items: center; 
  justify-content: center;
}

.icon-bag-outline{
  font-size: 1.5rem;
  color: rgba(59, 35, 35, 0.637);
  text-align: center;
  cursor: pointer;
}
.cart-count{
  position: absolute;
  top: -7px;
  right: -8px;
  background-color: #ffbf80;
  color: black;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;  
}

.mini-cart{
  position: absolute;
  top: 60px;
  right: 0;
  width: 300px;
  padding: 10px;
  background-color: white;
  border: #3b3b3b1c 1px solid;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
}

.cart-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 15px 5px 20px 5px;
  border-bottom: #0000001c 1px solid;
}
.cart-item-details{
  display: flex;
  flex-direction: column;
  margin-left: 10px;
  flex-grow: 1; /* Cho phép phần tử này mở rộng để chiếm không gian còn lại */
}
.text-cart{
   position: relative;
    line-height: 1.4em;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    top: -10px;
}
.price-cart{
  font-size: 14px;
  font-weight: 600;
  color: rgba(248, 0, 0, 0.712);
  
}
.buttom-cart{
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 5px;
  margin-left: 5px;
}

.buttom-cart:hover{
  color: rgba(238, 178, 49, 0.74);
}