@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* Reset CSS mặc định */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;


  background-color: #F5F7FB;
}

/* Phần header chính */
#top {
  background-color: #4CB551; /* Màu xanh nhạt */
  width: 100%;
  height: 65px;
}
#top-logo{
    float: left;
    width: 12%;
    height: 100%;
}

#top-logo img{
  height: 65px;
  width: 110px;
  float: right;
  margin-right: 5px;
}

#top-location{

    font-size: 15px;
    font-weight: bold;
    float: left;
    width: 48%;
    height: 100%;
    line-height: 60px; 
    color: #fafafa; 
}
#top-signup{
    
    width: 20%; 
    font-size: 15px;
    font-weight: bold;
    height: 100% ; 
    float: right; 
    text-align: left ; 
    line-height: 60px; 
   color: #fafafa; 
}
#top-signup a{
    text-decoration: none;
    color: #fafafa; 
}

#cart{
    width: 125px; height: 54%; float: left;
    margin-left: 150px;
    background-color:rgb(94, 188, 108); 
    margin-top: 15px;
    border-radius: 15px; 
    
    
}
#cart a{
    font-size: 13px;
    line-height:35px; 
    color:white; 
    text-decoration: none; 
    border-radius: 15px; 
    text-align:center; 
    float: right;
    padding-right: 13px;
    
}
#cart i{
  color: white;
  padding-top: 10px;
  padding-left: 12px;
}

#menu{
    background-color: #4CB551; /* Màu xanh nhạt */
    width: 100%;
    height: 50px;

    z-index: 10;
    position: relative;
}

.menu-list {
  display: flex;
  justify-content: center;
  gap: 30px;
  list-style: none;
}

#menu-respon{
  padding-top: 8px;
  width: 60px;
  height: 40px;
  display: none;
}
#btn-menu-respon{
  background-color: #4CB551;
  width: 100%;
  height: 100%;
  border: 0;
  color: white;
  font-weight: bold;
  font-size: 24px;
}

/* Từng mục menu */
.menu-list li {

  color: white;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  padding: 5px 0;
  padding-top: 9px;
}

/* Hiệu ứng hover */

.arrow {
  margin-left: 7px;
  transition: transform 0.3s ease;
}

/* Khi hover vào item cha → mũi tên xoay lên */
.menu-item:hover > .arrow {
  transform: rotate(-180deg);
}

.dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  min-width: 180px;
  padding: 8px 0;
  list-style: none;
  z-index: 1000;
}


/* Mỗi mục trong dropdown */
.dropdown li a{
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: #5b5a5a;
  white-space: nowrap;
  transition: background 0.2s;
  text-decoration: none;
}


.dropdown a{
  text-decoration: none;
  color: #5b5a5a;
}
.dropdown li a:hover{
  color: rgb(34, 168, 22); 
}


.menu-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  display: block;
}

#banner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  width: 80%;
  margin: 20px auto;
}

.bannercha {
  
  position: relative;

}
.bannercha img{
  border-radius: 15px;
}
.bannercon {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bannercon img {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

  border-radius: 15px;
}


#banner button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background-color: white;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Nút trái */
#btn-prev {
  left: -20px; /* nửa nút ra ngoài */
}

/* Nút phải */
#btn-next {
  right: -20px;
}

/* Hover */
#banner button:hover {
  background-color: #f0f0f0;
}
#ads{
  width: 80%;
  margin:  auto;
  
}
#ads img{
  width: 100%;
  border-radius: 5px;
}
#content{
  width: 80%;
  height: 955px;
  margin: 10px auto;
  background-color: #37B14B;
  position: relative;
  border-radius: 15px;
}
#logo{
  width: 100%;
  height: 160px;
  
}
#logo-content{
  width: 470px;
  height: 170px;
  position: absolute;
  top: 5px;
  left: 10px;
}
#logo-right{
  position: absolute;
  top: 40px;
  right: 50px;
  width: 190px;
  height: 110px;
}

.product{
  background-color: white;
	padding: 15px;
	border-radius:10px;
	width: 230px;
  height: 380px;
	text-align: center;
	position: relative;
	border: 1px solid #DDD; 
  float: left ;
  margin-left: 11px;
  margin-top: 11px;
  border: 1.5px solid rgb(206, 200, 200);
  transition: all 0.4s ease;
	
}

.divdonggoi{
  width: 100%;
  height: 18px;
  
}
.product .photo { width:150px; height:150px;cursor: pointer;}
.donggoi {
  
  display: inline-block;
  background-color: #dce8f6;      
  color: #694ca1;                
  font-size: 11px;               
  padding: 3px 6px;                              
  line-height: 1;
  box-shadow: 0 0px 6px rgba(202, 199, 199, 0.3);
  float: left; 
  cursor: pointer;
    
}

.product:hover{
  border: 1.5px solid #37B14B;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}


.name{ 
  cursor: pointer;
  text-align: left; 
  margin-top: 8px;
  float: left;
  text-decoration:none;  
  font-size:13px; 
  color: black;
  line-height: 1.4; 
}



.price{ 
  cursor: pointer;
  margin-top: 10px;
  float: left;color:#E83A45; font-size:16px; font-weight: bold;}

.buy {
  cursor: pointer;
  background-color: #4CB551;
  color: white;
  padding: 11px 45px;
  border-radius: 8px;
  border: none;
  position: absolute;
  bottom: 10px; /* cách đáy 15px, bạn chỉnh tùy thích */
  left: 12px;
}

#csskgd{
  width: 80%;
  height: 955px;
  margin: 27px auto;
  background-color: #F3588B;
  position: relative;
  border-radius: 20px;
}

#logo-csskgd{
  width: 100%;
  height: 150px;
  
}
#logo-csskgd img{
  width: 100%;
  height: 121px;
  
}
#chat {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 2;
  

}
#chat img{
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}
#footer{
  width: 100%;
  height: 580px;
  background-color: rgb(255, 255, 255);
}
#footer img{
  width: 100%;
}
#footer-information{
  width: 80%;
  height: 300px;
  margin: 50px auto;
  
}
#infor1{
  width: 26%;
  height: 230px;
  
  float: left;
}
#infor1 h3{
  color: #4b4949;
  font-size: 17.5px;
  padding-left: 20px;
  
}
#infor1 ul{
  font-size: 14px;
  color: #4b4949;
  padding-top: 30px;
  padding-left: 20px;
  line-height: 35px; 
  list-style:none;
}
#infor2{
  float: left;
  width: 22%;
  height: 230px;
  
}
h3{
  color: #4b4949;
  font-size: 17.5px;
  padding-left: 20px;
  
}
#infor2 ul{
  font-size: 14px;
  color: #4b4949;
  padding-top: 15px;
  padding-left: 20px;
  line-height: 35px; 
  list-style:none;
}
#infor3{
  float: left;
  width: 22%;
  height: 230px;
  
}
#infor3 ul{
  font-size: 14px;
  color: #4b4949;
  padding-top: 15px;
  padding-left: 20px;
  line-height: 35px; 
  list-style:none;
}

#infor4{
  float: left;
  width: 30%;
  height: 260px;
}

#footer-information a{
  font-size: 14px;text-decoration: none;color: #4b4949;
}

/*dangnhap*/
#signup-form{
  background: #88a6f4;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  width: 250px;
  position: relative;

}
#signup-form h2{
  color: #F0FAFF;
  margin-bottom: 10px;
  text-align: center;
}

#signup-form button{
  padding: 10px;
  background: #FFF;
  color: black;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600px;

}


.form {
  display: none;
  flex-direction: column;
}

.form.active {
  display: flex;
}
#login-form a{
  text-decoration: none;
  margin-bottom: 15px;

}
#login-form{
  background: #FFF;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  width: 250px;
  position: relative;

}
#login-form h2{
  color: black;
  margin-bottom: 10px;
  text-align: center;
}

#login-form button{
  padding: 10px;
  background: #4070F4;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600px;

}

input[type="text"],
input[type="email"],
input[type="password"] {
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.container label {
  margin-bottom: 15px;
  font-size: 14px;
}



.container button:hover {
  background: #2563eb;
}



.container p {
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
}


.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4); /* Nền tối mờ */
  z-index: 40;
}

/* Đảm bảo container hiển thị trên overlay */
.container {
  position: fixed; /* Sửa từ relative → fixed */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 42;
  display: none; /* ban đầu ẩn đi */
  flex-direction: column;
}



[class*="col-"]{
	float: left;
	padding: 15px;
}

/*Định dạng cho mobile*/
@media only screen and (max-width:768px){
	.col-s-1{width: 8.33%;}
	.col-s-2{width:16.6%}
	.col-s-3{width: 25%}
	.col-s-4{width: 33.33%}
	.col-s-5{width: 41.66%}
	.col-s-6{width:50%}
	.col-s-7{width: 58.33%}
	.col-s-8{width:66.66%}
	.col-s-9{width: 75%}
	.col-s-10{width: 83.33%}
	.col-s-11{width: 91.66%}
	.col-s-12{width:100%}
   #logo-right{
    display: none ;
  }
  #logo-content{
    width: 95%;
  }
  .product{
    margin-left: 28px;
  }
  #content{
    height: 4100px;
    width: 80%;
   
  }
  .bannercha{
    display: none;
  }

  .bannercon{
    width: 100%;
  }
  .buy{
    position: absolute;
    width: 80%;
    bottom : 10px;
    left: 29px;
  }
  #csskgd{
    height: 4100px;
    width: 80%;
  }
  #infor3,#infor2,#infor4{
    display: none;
  }
  #infor1{
    width: 100%;
  }
  #footer-information{
    height: 220px;
  }
  #footer{
    height: 400px;
  }
  #top-location{
    display: none;
  }
  #top-logo{
    margin-left: 70px;

  }
  #top-signup{
    height: 10px;
    width: 30%;
 
    margin-right: 10px;
  }
  #cart{
    margin-left: 20px;
    width: 120px;
  
  }
  #cart a{
    font-size: 12px;
  }

#menu{
    background-color: #4CB551; /* Màu xanh nhạt */
    width: 100%;
    height: 50px;

    z-index: 10;
    position: relative;
}

.menu-list {
  display: none;
    flex-direction: column; /* Hiển thị dọc */
    align-items: flex-start;
    background-color: #4CB551;
    padding: 10px;
    gap: 10px;
}

/* Từng mục menu */
.menu-list li {

    width: 100%; /* Đảm bảo chiếm toàn dòng */
    border-bottom: 1px solid white;
    padding: 10px 0;
}
  .menu-list.show {
    display: flex;
  }


  #top-signup a{
    text-decoration: none;
    color: #fafafa; 
    font-size: 10px;
  }
  #menu-respon{

  display: flex;
}
}


/*Định dạng cho taplet*/
@media only screen and (min-width: 768px) and (max-width: 1024px){
	.col-m-1{width: 8.33%;}
	.col-m-2{width:16.6%}
	.col-m-3{width: 25%}
	.col-m-4{width: 33.33%}
	.col-m-5{width: 43.22%}
	.col-m-6{width:50%}
	.col-m-7{width: 58.33%}
	.col-m-8{width:66.66%}
	.col-m-9{width: 75%}
	.col-m-10{width: 83.33%}
	.col-m-11{width: 91.66%}
	.col-m-12{width:100%}
  #logo-right{
    display: none ;
  }
  .product{
    margin-left: 28px;
  }
  #content{
    height: 2140px;
    width: 80%;
   
  }
  .bannercha{
    display: none;
  }

  .bannercon{
    width: 100%;
  }
  .buy{
    position: absolute;
    width: 80%;
    bottom : 10px;
    left: 29px;
  }
  #csskgd{
    height: 2140px;
    width: 80%;
  }
  #infor3,#infor2{
    display: none;
  }
  #infor1,#infor4{
    width: 50%;
  }
  #footer-information{
    height: 220px;
  }
  #footer{
    height: 480px;
  }
  #top-location{
    display: none;
  }
  #top-logo{
    margin-left: 50px;

  }
  #top-signup{
    
    width: 25%;
  }
  #cart{
    margin-left: 270px;
  
  }
  .menu-list li {
  font-size: 9px;
  }
  .menu-list {

  gap: 21px;

  }

}









/*Định dạng cho desktop*/
@media only screen and (min-width:1024px){
	.col-x-1{width: 8.33%;}
	.col-x-2{width:18.9%}
	.col-x-3{width: 25%}
	.col-x-4{width: 33.33%}
	.col-x-5{width: 41.66%}
	.col-x-6{width:50%}
	.col-x-7{width: 58.33%}
	.col-x-8{width:66.66%}
	.col-x-9{width: 75%}
	.col-x-10{width: 83.33%}
	.col-x-11{width: 91.66%}
	.col-x-12{width:100%}
	
}

