* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
a {
    display: inline;
    color: white;
    text-decoration: none;
}
h2 {
    color: white;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
	-webkit-appearance: none;
    margin: 0;
}
/*              */
/*     HEARDER  */
/*              */
#header {
    display: flex;
    width: 100%;
    background-color: rgb(39, 110, 160);
    height: 75px;
    position: sticky;
    top: 0;
    z-index: 1;
}

#logo {
    padding: 2px 0px;
    line-height: 75px;
    margin: auto;
    text-align: center;
    height: 75px;
}
#logo img {
    max-width: 100%;
    max-height: 100%;
}

#topmenu {
    font-size: larger;
    font-weight: bold;
    width: 50%;
    list-style: none;
    display: flex;
}
/*              */
/*  MENU CHA    */
/*              */
#topmenu .parent-menu {
    position: relative;
    text-align: center;
    display: inline-table;
    line-height: 69px;
    height: 75px;
    width: 25%;
    transition: 0.15s;
}
#topmenu a {
    display: block;
    text-decoration: none;
}
#topmenu li:hover > a {
    color:black;
}
#topmenu li {
    transition: 0.15s;
}
#topmenu li:hover {
    background-color: rgb(247, 225, 194);
}
/* Menu cấp 1 */
#topmenu ul.sub-topmenu {
    border: 1px solid rgb(79, 77, 77);
    text-align: left;
    list-style: none;
    position: absolute;
    top: 75px;
    background-color: rgba(39, 110, 160, 0.886);
    width: 300px;
    display: none; /* Ẩn các menu con khi không được di chuột đến */
}
#topmenu li:hover > ul.sub-topmenu { /* Khi chuột đi đến li nào thì sẽ hiện sub menu của li đó toán tử '>' */
    display: block;
}
#topmenu ul.sub-topmenu a {
    padding-left: 10px;
    border-bottom: 1px solid rgb(79, 77, 77);
}
/*              */
/*MENU CẤP 2*/
/*              */
#topmenu ul.sub-topmenu ul.sub-topmenu {
    left: 298.5px;
    text-align: left;
    list-style: none;
    background-color: rgba(39, 110, 160, 0.886);
    width: 300px;
}
#topmenu ul.sub-topmenu ul#sub-topmenubook1,
#topmenu ul.sub-topmenu ul#sub-topmenudevice1 {
    top: -1px;
}
#topmenu ul.sub-topmenu ul#sub-topmenubook2,
#topmenu ul.sub-topmenu ul#sub-topmenudevice2 {
    top: 69px;
}
#topmenu ul.sub-topmenu ul#sub-topmenubook3,
#topmenu ul.sub-topmenu ul#sub-topmenudevice3 {
    top: 139px;
}
#topmenu ul.sub-topmenu ul#sub-topmenubook4 {
    top: 209px;
}
#topmenu ul.sub-topmenu ul#sub-topmenubook5 {
    top: 279px;
}
#topmenu ul.sub-topmenu ul#sub-topmenubook6 {
    top: 349px;
}
#topmenu ul.sub-topmenu ul#sub-topmenubook7 {
    top: 419px;
}
/*              */
/*  TÌM KIẾM    */
/*              */
#search {
    height: 35px;
    width: 20%;
    padding: 0px 10px;
    background-color: rgb(211, 211, 208);
    border-radius: 15px;
    margin-top: 20px;
    margin-left: 30px;
}
#search form {
    width: 100%;
}
#search input {
    width: 80%;
    background-color: rgb(211, 211, 208);
    border-radius: 10px;
    border: rgb(211, 211, 208);
    height: 35px;
}
#search input:focus {
    outline: none;
}

#user {
    padding-top: 5px;
    padding-right: 10px;
    margin-left: 10px;
    width: 10%;
    color: white;
    text-align: right;
}
#user i {
    padding-top: 5px;
    cursor: pointer;
    font-size: 20px;
    color: white;
}
#user i:hover {
    color: rgb(211, 211, 208);
}
#username {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    font-size: 12px;
}

/*              */
/*     BANNER   */
/*              */
#banner {
    clear: both;
    width: 100%;
    height: 550px;
    overflow: hidden;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    justify-content: center;
}
#previous-banner,
#next-banner {
    display: inline;
    height: 550px;
    line-height: 550px;
    font-size: 50px;
    cursor: pointer;
    color: black;
}
#previous-banner {
    padding-left: 20px;
    float: left;
}
#next-banner {
    padding-right: 20px;
    float: right;
}
#previous i:hover,
#next i:hover {
    color: rgb(111, 111, 110);
}

/*              */
/*  CONTENT     */
/*              */
#content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.15;
    color: black;
    background-color: rgb(234, 234, 230);
    text-align: center;
    margin-left: 100px;
    margin-right: 100px;
    margin-bottom: 40px;
}
.headline {
    margin-top: 40px;
}
#content #headline h3 {
    font-size: 18px;
    color: #bebebe;
    padding: 10px 20px;
    text-transform: uppercase;
    border: 1px solid #bebebe;
    display: inline-block;
    color: #555;
    font-weight: 600;
}
#content #support h2,
#content #support h3,
#content #support p {
    color: black;
    text-align: left;
    margin: 5px 50px;
}
/*              */
/*Filter and sort*/
/*              */
#content .btFilter {
    cursor: pointer;
    display: block;
    margin-left: 15px;
    margin-bottom: 5px;
    border: 1px solid #000;
    width: 150px;
    height: 40px;
    line-height: 40px;
    display:  none;
}
#content .filter i {
    font-size: 18px ;
}
.filterAndSort {
    top: 75px;
    z-index: 1;
    border: black solid 1px;
    background-color: #fff;
    overflow: hidden;
    position: fixed;
    height: 100%;
    width: 265px;
    transition: 0.5s;
    overflow-y: scroll;
    overflow-x: hidden;
    left: -266px;
}
.filterAndSort .tittleFilter,
.filterAndSort .mainFilter .filter .options .filter1 .tittleFilter1,
.filterAndSort .mainFilter .filter .options .filter3 .tittleFilter1 {
    border-bottom: #bebebe solid 0.5px;
}
.filterAndSort .tittleFilter h4 {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    padding-left: 20px;
    padding-bottom: 20px;
    font-size: 20px;
}
.filterAndSort .tittleFilter h4 span {
    line-height: 24px;
    height: 24px;
}
.filterAndSort .tittleFilter h4 i {
    line-height: 24px;
    height: 24px;
    font-size: 25px;
    padding-right: 20px;
    cursor: pointer;
}
.filterAndSort .mainFilter .sort .options .sort1,
.filterAndSort .mainFilter .sort .options .sort2,
.filterAndSort .mainFilter .filter .options .filter2 {
    padding-top: 20px;
    padding-left: 20px;
    padding-bottom: 20px;
    border-bottom: #bebebe solid 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    
}
.filterAndSort .mainFilter .sort .options,
.filterAndSort .mainFilter .filter .options {
    display: none;
}
.filterAndSort .mainFilter .filter .options .filter1 .tittleFilter1,
.filterAndSort .mainFilter .filter .options .filter3 .tittleFilter1 {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    padding-left: 20px;
    padding-bottom: 20px;
    text-transform: uppercase;
}
.tittleFilter1 i {
    line-height: 24px;
    height: 24px;
    padding-right: 20px;
    cursor: pointer;
}
.filter1 .option1 div,
.filter3 .option2 div {
    padding-top: 20px;
    padding-left: 20px;
    padding-bottom: 20px;
    border-bottom: #bebebe solid 0.5px;
    text-transform: uppercase;
    cursor: pointer;
}
.filter1 .option1,
.filter3 .option2,
.filter3 {
    display: none;
}
/*              */
/*  PRODUCTS    */
/*              */
.products {
    display: flex;
    flex-wrap: wrap;
    /* justify-content: space-between; */
    list-style: none;
}
.products li {
    flex-basis: 25%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    margin-bottom: 30px;
}
.products li img {
    max-width: 100%;
    height: 450px;
    width: 360px;
}
.product-info {
    padding: 10px 0px;
}
.product-info .product-cat {
    display: block;
    text-transform: uppercase;
    font-size: 11px;
    color:#9e9e9e;
}
.product-info .product-name {
    font-weight: 600;
    display: block;
    text-transform: uppercase;
    color: black;
    font-size: 15px;
    padding: 6px 0px;
}
.product-info .product-price {
    font-weight: 600;
    padding: 3px 0px;
}
.product-top .buynow {
    text-transform: uppercase;
    text-decoration: none;
    display: block;
    background-color: #446084;
    color: #fff;
    padding: 10px 0px;
    position: absolute;
    width: 100%;
    bottom: -36px;  /* Ban đầu sẽ xuất hiện trôi nổi ngoài product-top*/
    transition: 0.25s ease-in-out;  /* Làm chậm quá trình hiện mua ngay */
    opacity: 0.85;
}
.product-top .product-thumb img {
    display: block;
}
.product-top .product-thumb {
    display: block;
}
.product-top {
    position: relative;
    overflow: hidden; /* Phần nào bên ngoài product-top sẽ ẩn đi vì buynow đang nằm trôi nổi bên ngoài */
}
.products li :hover > .buynow {
    bottom: 0px; /* Xuất hiện trong product-top */
}
.products li :hover > .product-thumb img {
    filter: opacity(80%); /* Làm mờ hình khi hover vào li */
    transform: scale(1.05);
}

/*              */
/*  CHUYỂN TRANG*/
/*              */
.content-paging {
    justify-content: space-between;
    margin: auto;
    margin-bottom: 40px;
    padding-bottom: 5px;
}
.page {
    display: inline-flex;
    list-style: none;
    height: 40px;
}
.button-prev-next-active {
    color: rgb(39, 110, 160);
}
.button-prev-next-active i {
    font-size: 20px;
    cursor: pointer;
    height: 40px;
    line-height: 42px;
}
.button-prev-next {
    color: white;
}
.button-prev-next i {
    font-size: 20px;
    height: 40px;
    line-height: 42px;
}
.number-page {
    justify-content: space-between;
    width: 100%;
    display: inline-flex;
    border-radius: 5px;
}
.number-page li {
    margin-left: 3px;
    margin-right: 3px;
    background-color: white;;
    width: 40px;
    border-radius: 25px;
    height: 40px;
    line-height: 40px;
    font-size: 16px;
}
.number-page:first-child {
    margin-left: 6px;
}
.number-page:last-child {
    margin-right: 6px;
}
.number-page #active {
    background-color: rgb(39, 110, 160);;
    color: white;
}
.number-page li:hover {
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.296);
}

/*              */
/*    FOOTER    */
/*              */
#footer {
    position: relative;
    display: flex;
    justify-content: space-between;
    background-color: rgb(39, 110, 160);
    width: 100%;
}
#aboutus {
    flex-direction: column;
    padding-top: 30px;
    padding-left: 100px;
    padding-bottom: 30px;
    width: 50%;
    float: left;
}
#aboutus p {
    color: white;
}
#aboutus i {
    margin-top: 30px;
    text-align: center;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background-color: white;
    border-radius: 50px;
    font-size: 20px;
    color: black;
}

#contact {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    font-style: italic;
    padding-top: 100px;
    padding-right: 100px;
    display: inline-table;
    width: 50%;
    float: left;
    text-align: center;
    color: white;
}
#contact div {
    margin-top: 20px;
    font-size: 30px;
}
#contact i {
    color: black;
}
#contact i:hover {
    color: white;
}
#copyright {
    font-size: 11px;
    position: absolute;
    bottom: 5px;
    right: 20px;
}

#backtotop {
    font-size: 30px;
    width: 50px;
    height: 50px;
    background-color: rgb(239, 175, 66) ;
    color: aliceblue;
    position: fixed;
    display: flex;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
#backtotop:hover {
    background-color: white;
}
#backtotop :hover {
    color:rgb(239, 175, 66) ;
}

/*                 */
/*CHI TIẾT SẢN PHẨM*/
/*                 */
#wrapper {
    display: none;
    background-color: white;
    width: 50%;
    position: relative;
    position: fixed;
    margin-top: 75px;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}
#close {
    position: absolute;
    top:3px;
    right: 6px;
}
#close i {
    cursor: pointer;
    font-size: 30px;
}
#detail {
    display: flex;
}
#detail #imgdetailPro {
    text-align: center;
    width: 60%;
    padding-top: 50px;
    padding-left: 50px;
    padding-bottom: 20px;
}
#detail #imgdetailPro img {
    width: 300px;
    height: 400px;
    max-width: 100%;
}
#detail ul li:first-child {
    padding-right: 10px;
}
#detail-pro {
    width: 40%;
    display: flex;
    padding-right: 20px;
    margin-bottom: 50px;
}
#detail-pro ul {
    list-style: none;
}
#detail-pro li {
    padding-top: 30px;
}
#detail-pro li input {
    text-align: center;
    width: 25px;
}
#detail-pro h3 {
    color: red;
}
#detail #addtocart div {
    font-weight: 500;
    cursor: pointer;
    line-height: 50px;
    margin-top: 20px;
    padding-top: 0px;
    border: solid 5px burlywood;
    background-color: burlywood;
    width: 50%;
    margin: auto;
    text-align: center;
}
#detail #addtocart div:hover {
    background-color: white;
}
/*              */
/*SHOPPING CART */
/*              */
#listProductsBuy {
    border: black solid 0.5px;
    margin-bottom: 40px;
}
#listProductsBuy .productsBuy {
    width: 100%;
    display: flex;
    list-style: none;
    text-align: center;
    border-bottom: black solid 0.5px;
}
#listProductsBuy ul:last-child {

    border-bottom: none;
}
#listProductsBuy .productsBuy li {
    margin: auto;
    font-weight: 500;
    font-size: 15px;
    flex-basis: 16.667%;
}
#listProductsBuy .img-Pro {
    padding-top: 5px;
    padding-bottom: 5px;
    width: 100%;
}
#listProductsBuy .img-Pro img {
    width: 40%;
}
#listProductsBuy .productsBuy i {
    font-size: 20px;
    cursor: pointer;
}
#listProductsBuy .productsBuy i:hover {
    color: rgb(242, 120, 38);
    padding-bottom: 5px;
}
#buy {
    padding-top: 10px;
    padding-bottom: 10px;
    width: 20%;
    margin: auto;
}
#buy ul {
    list-style: none;
    display: flex;
    text-align: center;
    width: 100%;
}
#buy ul li {
    margin: auto;
    
}
#buy ul li:first-child {
    font-size: 18px;

}
#buy ul li input {
    width: 100%;
    height: 40px;
    font-size: 15px;
    padding-left: 10px;
    padding-right: 10px;
    background-color: rgb(242, 120, 38);
    border: rgb(242, 120, 38) solid 2px;
}
#buy ul li input:hover {
    margin-bottom: 5px;
    background-color: rgb(241, 129, 55);
    border: black solid 2px;
    cursor: pointer;
}
/* MEDIA */
@media only screen and (max-width: 1456px) {
    #aboutus {
        padding-left: 10px;
    }
    #contact {
        padding-right: 10px;
    }
}
@media only screen and (max-width: 1274px) {
    #footer {
        flex-direction: column;
    }
    #aboutus {
        width: 100%;
        text-align: center;
    }
    #contact {
        padding-top: 0px;
        padding-left: 200px;
        padding-right: 200px;
        width: 100%;
        text-align: center;
    }
    .products li {
        flex-basis: 33.333%;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
        margin-bottom: 30px;
    }

}
@media only screen and (max-width: 1172px) {
    #detail #imgdetailPro img {
        width: 200px;
        height: 300px;
        max-width: 100%;
    }
    #detail-pro h1 {
        font-size: 20px;
    }
}
@media only screen and (max-width: 1046px) {
    #header {
        flex-direction: column;
        height: auto;
    }
    #search {
        display: none;
    }
    #topmenu {
        width: 100%;
    }
    #user {
        width: auto;
        padding: 0;
        right: 10px;
        top: 5px;
        position: absolute;
        height: auto;
    }
    .products li {
        flex-basis: 50%;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
        margin-bottom: 30px;
    }
    #wrapper {
        margin-top: 150px;
    }
}
