@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: #F0F0F0 ;
}

/* 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;
}

/* 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;
}


.customer-form {
  background: white;
  padding: 15px 20px;
  border-radius: 8px;
  width: 40%;   
  height: 340px;           /* ✅ Rộng 80% */
  margin: 0 auto;          /* ✅ Căn giữa */
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  box-shadow: -4px 0 10px rgba(129, 127, 127, 0.15), 4px 0 10px rgba(129, 127, 127, 0.15);
  margin-bottom: 25px;

}


.customer-form h3 {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: bold;
}

.customer-form .row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.customer-form input {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;

}
.customer-form input[type="text"]:focus{
    box-shadow: -1px -1px 3px #47be57, 1px 1px 3px #47be57;
    outline: none;  
}

.customer-form .row input {
  flex: 1;
}

input[type="radio"]{
  margin-top: 10px;
  width: 15px;
  height: 15px;
  
}
label {
  margin-right: 5px;
  font-size: 13px;
} 

#diachi{
  width: 100%;
}
#ghichu{
  width: 100%;
  margin-top: 11px;
}

#danhsachsp {
  width: 40%;
  height: auto;
  margin: 0px  auto;
  margin-bottom: 10px;
  background-color: white;
  box-shadow: -4px 0 10px rgba(129, 127, 127, 0.15), 4px 0 10px rgba(129, 127, 127, 0.15);
  border-radius: 10px;
  margin-top: 25px;

}
#dathang{
  margin-top: 20px;
  width: 100%;
  height: 50px;
  border-radius: 6px;
  background-color: #47be57;
  color: #F0F0F0;
  border: 0 ;
  font-weight: bold;
  font-size: 17px;
  cursor: pointer;
}



/*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;
}
#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;
}
#giotrong{
  width:80%; height:100px; position:relative; margin: auto;
}
#giotrong p{
  position: absolute; top:16px; left:110px; font-size:15px
}
#giotrong a{
  position: absolute; top:46px;cursor:pointer; left:10px; color:#39B54A;display: inline-block;padding: 10px 150px;font-weight: bold;text-decoration: none;border-radius: 5px; border:1px solid #39B54A 
}

[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%}

  .buy{
    position: absolute;
    width: 80%;
    bottom : 10px;
    left: 29px;
  }

  #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;
}
#danhsachsp {
  width: 80%;


}
  #hoten{
    width: 100%;
  }
  #sdt{
    width: 100%;
  }
  .customer-form .row {
  display: contents;
  gap: 10px;
  margin-bottom: 10px;
}
.customer-form {
  
  width: 80%;
  height: 420px;      

}

  #giotrong p{
    left: 10px;
    font-size: 13px;

  }

  #giotrong a {
      font-size: 15px;
      position: absolute; 
      top:40px;
      cursor:pointer; 
       color:#39B54A;display: inline-block;padding: 10px 40px;text-decoration: none;border-radius: 5px; border:1px solid #39B54A 

  }




}



/*Đị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%}


  .buy{
    position: absolute;
    width: 80%;
    bottom : 10px;
    left: 29px;
  }

  #top-logo{
    margin-left: 50px;

  }
  #top-signup{
    
    width: 25%;
  }
  #cart{
    margin-left: 270px;
  
  }
  .menu-list li {
  font-size: 9px;
  }
  .menu-list {

  gap: 21px;

  }
  #hoten{
    width: 100%;
  }
  #sdt{
    width: 100%;
  }
  .customer-form .row {
  display: contents;
  gap: 10px;
  margin-bottom: 10px;
}
.customer-form {
  
  height: 420px;       

}
 #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;

  }
    #giotrong p{
    left: 10px;
    font-size: 13px;

  }

  #giotrong a {
      font-size: 15px;
      position: static; 
      margin-top:40px;
      cursor:pointer; 
       color:#39B54A;display: inline-block;padding: 10px 40px;text-decoration: none;border-radius: 5px; border:1px solid #39B54A 

  }



}









/*Đị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%}
	
}