/* làm phần header(home,product,...)*/
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}
.navbar
{ 
    display:flex;
    align-items:center;
    padding:20px; 
}
 nav
{
     flex:1;
     text-align:right;
}
 nav ul
{
     display:inline-block;
     list-style-type: none;
}
 nav ul li
{
     display: inline-block;
     margin-right: 20px;
     font-weight: bold;
}
 a
{
     text-decoration: none;
     color: rgb(75, 65, 72);
}
 .header /*màu nền header*/
{
    background: #FDFC47;  /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #24FE41, #FDFC47);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #24FE41, #FDFC47); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

}
.logo img
{
    width: 180px;
    height: 150px;
}
 .title /* làm cái thanh cam cam dưới chữ*/
{ 
    text-align:center;
    position:relative;
    color:rebeccapurple;
    margin: 0 auto 80px;
    line-height: 60px;
}
.title::after /* làm cái thanh cam cam dưới chữ*/
{ 
    content: '';
    background: #ff523b;
    width: 80px;
    height: 5px;
    border-radius: 5px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}


/*làm list các sản phẩm*/


.categories
{
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 50px;
}
.small
{
    max-width: 1080px;
    padding-left: 25px;
    padding-right: 25px;
}
.row
{
    display: flex; 
}
.row:hover
{
    outline: .2rem solid #222;
}

table
{
    margin-left: 50px;
    margin-right: 50px;
}


/*làm hình ảnh chuyển động*/
.col
{
    flex-basis: 25%;
    padding:10px;
    min-width: 200px;
    margin-bottom: 50px;
    transition: transform 0.5s;
}
.col img
{
    width: 200px;
    height: 170px;
}
.col:hover
{
   
   
    transform: translateY(-5px);
}
h4:hover
{
    color:rgb(255, 131, 127);
}
.cost
{
    color:#da1c1c;
    font-weight: bold;
}
.cost:hover
{
    color: rgb(115, 255, 0);
}
.title
{
    transform: matrix3d();
}
td
{
    border:1px solid black;
    
}
.rating:hover
{
    color:#ff523b;
}


/* chèn hình ở trang home*/


.web-image
{
    background-image:url("picture/fruit2.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    height: 700px;
    display: block;
    margin-left: auto;
    margin-right: auto;
   
}
.begin-text
{
    text-align: center;
    position:absolute;
    top: 30%;
    left: 20%;
    color:white;
}


/*làm khung explore để chuyển sang product*/


.explore
{
    display: inline-block;
    background: #ff3b3b;
    color: #fff;
    padding: 10px 30px;
    margin: 30px ;
    border-radius: 30px;/*tạo khung 4 góc tròn tròn*/
    transition: transform 0.5s;
}
.explore:hover
{
    transform: translateY(-10px);
}



/*làm footer*/


.footer
{
    background: #000;
    color: #8a8a8a;
    font-size: 14px;
    padding: 20px;
}
.footer p
{
    color:#8a8a8a;
}
.footer h3
{
    color:#fff;
    margin-bottom: 20px;
}
.cointainer
{
    max-width: 1000px;
    margin: auto;
    padding-left: 10px;
    padding-right: 10px;
}
.row2
{
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: left;
    display: flex;
}
.footer-col1
{
    margin-bottom: 20px;
    margin-right: 250px;
}
.footer-col2
{
    margin-bottom: 20px;
    margin-left: 100px;

}
ul
{
    list-style-type: none;
}
.app-logo
{
    margin-top: 20px;
}
.app-logo img
{
    width: 140px;
}
.footer hr
{
    border: none;
    background: #b5b5b5;
    height: 2px;
    margin: 20px 0;
}



/* Làm từng product */
.product
{
    margin-left: 50px;
    padding: 60px;
    
}
.product img
{
    width: 400px;
    height: 450px;
    margin-top: 30px;
}
.col-2
{
    flex-basis: 25%;
    padding:10px;
    min-width: 200px;
    margin-bottom: 50px;
    margin-left: 120px;
    transition: transform 0.5s;
}
.col-2:hover
{
    transform: translateY(-5px);
}
.productfont
{
    font-family: "Sofia", sans-serif;
    font-size: 30px;
}
.col-2 h2:hover
{
    color:rgb(255, 131, 127);
}
.col-2 input /*chỉnh kích thước khung input*/
{ 
    width: 40px;
    height: 20px;
    font-size: 20px;
}
input /*khi nhấp vào thì cái khung không bị in đậm*/
{ 
    outline: none;
}
.col input /*chỉnh kích thước khung input*/
{ 
    width: 45px;
    height: 20px;
    font-size: 20px;
}



/* làm dropdown list cho product */

.dropdown 
{
    position: relative;
    display: inline-block;
}
  
.dropdown-content 
{
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 80px;
}
  
.dropdown-content a 
{
    color: black;
    padding: 4px 4px;
    text-align: left;
    display: block;
}
  
.dropdown-content a:hover 
{
    background-color: #ddd;
}
  
.dropdown:hover .dropdown-content 
{
    display: block;
}
  
.shopname
{
    padding-left: 350px;
    padding-top: 50px;
}


/* làm giỏ hàng(cart) */
.cart
{
    font-size: 25px;
}
.fa-shopping-cart
{
    color: red;
}
.add-cart
{
    display: inline-block;
    background: #ff3b3b;
    color: #fff;
    padding: 10px 25px;
    margin: 10px ;
    border-radius: 30px;/*tạo khung 4 góc tròn tròn*/
    transition: transform 0.5s;
    cursor: pointer;
}

.product-container,.gio
{
    display: flex;
    flex-wrap: wrap;
    margin-top: 50px;
}

.product-container,.gio
{
    max-width: 650px;
    margin: 0 auto;
    margin-top: 50px;
}
.product-header
{
    width:100%;
    max-width: 650px;
    display: flex;
    justify-content: flex-start;
    border-bottom: 4px solid lightgrey;
    margin: 0 auto;
}
.product-title
{
    display: flex;
    width: 45%;
    align-items: center;
}
.price
{
    border-bottom: 1px solid lightgray;
    width: 15%;
    display: flex;
    align-items: center;
}
.quantity
{
    width: 30%;
    border-bottom: 1px solid lightgray;
    display: flex;
    align-items: center;
}
.total
{
    width: 10%;
    border-bottom: 1px solid lightgray;
    display: flex;
    align-items: center;
}
.pp
{
    width: 45%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid lightgray;
}
.pp span
{
    padding-left: 40px;
}
.pp p
{
    padding-right: 20px;
    cursor: pointer;
}
.product-image
{
    width: 100px;
    height: 100px;
}


.basketTotalContainer
{
    display: flex;
    justify-content: flex-end;
    width: 100%;
    padding: 10px 0;
}
.basketTotalTitle
{
    width: 30%;
}
.basketTotal
{
    width: 10%;
}

.empty
{
    display: inline-block;
    background: #ff3b3b;
    color: #fff;
    padding: 10px 15px;
    margin: 10px ;
    border-radius: 30px;/*tạo khung 4 góc tròn tròn*/
    transition: transform 0.5s;
    cursor: pointer;
}
.empty2
{
    padding: 100px 0 120px 200px;
}

.new-col
{
    flex-basis: 25%;
    padding:10px;
    min-width: 200px;
    transition: transform 0.5s;
}
.new-col:hover
{
    transform: translateY(-5px);
}

/* login logout (đăng nhập đăng ký) */

.khung
{
    display: none;
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    padding-top: 60px;
}
.formlog
{
    background-color: #fefefe;
    margin: 5% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */
    border: 1px solid #888;
    width: 80%;
}
input[type=text]
{
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
.login
{
    font-size: 40px;
    text-align: center;
}
.login i
{
   
    font-size: 20px;
    text-align:right;
    cursor: pointer;
}

.dangnhap
{
    cursor: pointer;
}


/* làm phần preview(nhấp vô không chuyển trang) */
.products-preview{
    position: fixed;
    top:0; left:0;
    min-height: 725px;
    width: 100%;
    background: rgba(0,0,0,.8);
    display: none;
    align-items: center;
    justify-content: center;
 }
 
 .products-preview .preview{
    display: none;
    padding:32px;
    text-align: center;
    background: #fff;
    position: relative;
    margin: 30px;
    width: 80px;
 }
 .products-preview .preview.active{
    display: inline-block;
 }
.fa-times{
    position: absolute;
    top:9px; right:20.5px;
    cursor: pointer;
    color:#444;
    font-size: 20px;
 }
 .preview
 {
     flex-basis: 25%;
     padding:10px;
     min-width: 200px;
     margin-bottom: 50px;
     transition: transform 0.5s;
 }
 .preview img
 {
     width: 200px;
     height: 170px;
 }
 .preview:hover
 {  
     transform: translateY(-5px);
 }
 .theclose
 {
    font-size: 25px;
 }
 
 @media (max-width:991px){

    html{
       font-size: 55%;
    }
 
 }
 
 @media (max-width:768px){
 
    .products-preview .preview img{
       height: 25rem;
    }
 
 }
 
 @media (max-width:450px){
 
    html{
       font-size: 50%;
    }
 
 }




 /* làm khung search */
 
 .wrapper{
    max-width: 450px;
    margin: 40px auto;
  }
  .wrapper .search-input{
    background: #fff;
    width: 100%;
    border-radius: 5px;
    position: relative;
    box-shadow: 0px 1px 5px 3px rgba(0,0,0,0.12);
  }
  .search-input input{
    height: 55px;
    width: 100%;
    outline: none;
    border: none;
    border-radius: 5px;
    padding: 0 60px 0 20px;
    font-size: 18px;
    box-shadow: 0px 1px 5px rgba(0,0,0,0.1);
  }
  .search-input.active input{
    border-radius: 5px 5px 0 0;
  }
  .search-input .autocom-box{
    padding: 0;
    opacity: 0;
    pointer-events: none;
    max-height: 280px;
    overflow-y: auto;
  }
  .search-input.active .autocom-box{
    padding: 10px 8px;
    opacity: 1;
    pointer-events: auto;
  }
  .autocom-box li{
    list-style: none;
    padding: 8px 12px;
    display: none;
    width: 100%;
    cursor: default;
    border-radius: 3px;
  }
  .search-input.active .autocom-box li{
    display: block;
  }
  .autocom-box li:hover{
    background: #efefef;
  }
  .search-input .icon{
    position: absolute;
    right: 0px;
    top: 0px;
    height: 55px;
    width: 55px;
    text-align: center;
    line-height: 55px;
    font-size: 20px;
    color: #644bff;
    cursor: pointer;
  }