:root{
    --primary-color:#9f1717;
    --second-color:#5a9f17;
    --black3:#333;
}

*{
    box-sizing: border-box;
}
html, body{
    padding: 0;
    margin: 0;
    height: 100%;
    background: #ddd;
    font-family: 'Roboto', sans-serif;
}
body{
    width: 450px;
    margin: 0 auto;
    border: 1px solid red;
}

.toolbar{
    width: 100%;
    background: var(--black3);
    display: flex;
    height: 65px;
}

.toolbar .left{
    width: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.loginButton {
    padding: 10px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
    border-radius: 5px;
}
.toolbar .center {
    width: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.toolbar .right{
    width: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
}
main{
    overflow: hidden;
    width: 100%;
    height: calc(100% - 65px);
    background: #fff;
    position: relative;
}
.tab{
    width: 100%;
    height: 120px;
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 10px;
}
.tab::-webkit-scrollbar {
    display: none;
}
.tab button{
    outline: none;
    cursor: pointer;
    transition: 0.3s;
    padding: 0;
    margin-right: 10px;
    border-radius: 5px;
    background: #efefef;
    width: 102px;
    height: 100px;
    display: inline-block;
    position: relative;
    border:1px solid var(--primary-color);
}
.tab button.active{
    background-color: var(--primary-color);
    color: #fff;
}
.tab button img {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
}
.tab button p {
    font-size: 11px;
    margin: 0;
    position: relative;
    height: 25px;
    width: 92px;
    top: 29px;
    padding: 0 5px;
    white-space: initial;
    overflow: hidden;
}
.search{
    padding: 10px;
    width: 100%;
    height: 50px;
    margin-bottom: 15px;
    position:relative;
}
.search input{
    width: 100%;
    height: 40px;
    border:1px solid #ddd;
    padding: 5px;
}
.search button{
    position: absolute;
    right: 10px;
    height: 40px;
    width: 40px;
    background: var(--primary-color);
    border: none;
    color: #fff;
}
.search input:focus{
    outline: none;
}
.tabContent{
    height: calc(100% - 185px);
    overflow-y: scroll;
}
.tabContent::-webkit-scrollbar {
    width: 3px;
}
.tabContent::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.tabContent::-webkit-scrollbar-thumb {
    background: #888;
}
.tabContent::-webkit-scrollbar-thumb:hover {
    background: #555;
}
.productList{
    width: 100%;
    padding: 0 10px;
}
.productList .productListTitle{
    width: 100%;
    color:var(--primary-color);
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.3rem;
}
.productList .productListItem{
    display: flex;
    width: 100%;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 5px;
    height: 82px;
    margin-bottom: 10px;
    border:1px solid rgba(0,0,0,0.15);
}
.productList .productListItem:last-child{
    margin-bottom: 60px;
}
.productList .productListItem .productItemImage{
    width: 80px;
    height: 80px;
}
.productList .productListItem .productItemImage img{
    width: 80px;
    height: 80px;
}
.productList .productListItem .productItemName{
    width: 70%;
    padding-left: 10px;
    display: inline-grid;
    align-items: center;
}
.productList .productListItem .productItemName .title{
    margin: 0 0 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.productList .productListItem .productItemName .subTitle{
    margin: 0;
    font-size: 0.9rem;
    opacity: .75;
}
.productList .productListItem .productItemName a{
    color:var(--primary-color);
    text-decoration: none;
}
.productList .productListItem .productItemCart{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 15%;
}
.productList .productListItem .productItemCart i{
    font-size: 1.5rem;
    background: var(--primary-color);
    padding: 10px;
    color:#fff;
    border-radius: 50%;
    cursor: pointer;
}
.cartButton{
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
    text-align: center;
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 99;
    border:1px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.cartButton .notification{
    position: absolute;
    margin: 0;
    color: #fff;
    font-size: 12px;
    background: var(--primary-color);
    right: -4px;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    top: -4px;
    border-radius: 50%;
}

/*Detail Page*/
.detailProductImage{
    width: 100%;
    text-align: center;
    margin: 15px 0;
    position: relative;
}
.detailProductImage img{
    width: 240px;
    height: 240px;
    border-radius: 5px;
}
.detailContent{
    width: 268px;
    margin: 15px auto;
    text-align: center;
    color: #CB4545;
}
.detailProductTitle h3{
    color:var(--second-color);
    font-size: 1.3rem;
}
.detailProductPrice{
    color:var(--second-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.detailProductCounter{
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}
.detailProductCounter button{
    width: 30px;
    height: 30px;
    font-size: 20px;
    border-radius: 5px;
    border: 1px solid #333;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.detailProductCounter .minus{
    border: none;
    color: #fff;
    background:#C64A4A;
}
.detailProductCounter .plus{
    border: none;
    color: #fff;
    background:#5a9f17;
}
.detailProductCounter input{
    width: 60px;
    height: 30px;
    border-radius: 5px;
    border: 1px solid #dedede;
    text-align: center;
    margin: 0 15px;
    box-sizing: border-box;
    font-size: 20px;
    color: #000;
    font-weight: 700;
}
.addToCart{
    position: absolute;
    bottom: 0;
    height: 54px;
    color: #fff;
    width: 100%;
    font-size: 1.6rem;
    background: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}
.icon-arrow-left22{
    font-size: 1.5rem;
    background: var(--primary-color);
    padding: 10px 20px;
    color:#fff;
    border-radius: 5px;
    cursor: pointer;
}

/*Cart*/

.cartList{
    height: calc(100% - 50px);
    margin: 10px 0 10px 0;
    overflow-y: scroll;
}
.cartList .productListItem:last-child{
    margin-bottom: 100px;
}
.tableBox {
    margin-top: 10px;
    padding: 0 10px;
    width: 100%;
    height: 60px;
    box-sizing: border-box;
}
.tableBox input {
    width: 100%;
    height: 60px;
    box-sizing: border-box;
    padding-left: 10px;
    font-size: 22px;
}

#loginBtn {
    width: 100%;
    margin-top: 15px;
    height: 40px;
    background: var(--primary-color);
    color: #fff;
    font-size: 1.1rem;
    border: none;
    border-radius: 5px;
}

.centeredPage {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.centeredPage .emptyCart{
    padding:15px;
    background:#dedede;
    text-align:center;
    border-radius:10px;
}
.centeredPage .emptyCart i{
    font-size:26px;
}
.centeredPage .emptyCart a{
    text-decoration:none;
    color:var(--primary-color);
}

.icon-lock5 {
    padding: 10px;
    background: var(--primary-color);
    border-radius: 5px;
    color: #fff;
}

@media only screen and (max-width: 451px) {
    body {
        width:100%;
    }
}

.filters{
    width:100%;
    padding:10px;
}
.filters button{
    width: 100%;
    height:40px;
    background:var(--primary-color);
    color:#fff;
    border:1px solid var(--primary-color);
    cursor:pointer;
}

.overlay {
    position: absolute;
    left: 0;
    background: rgba(0,0,0,0.50);
    width: 100%;
    height: 100%;
    top: 0;
    z-index: 999;
    display: none;
}
.modal {
    width: 80%;
    height: 80%;
    position: absolute;
    top: 10%;
    background: #fff;
    z-index: 9999;
    left: 10%;
    border-radius: 10px;
    border: 1px solid red;
    padding: 15px;
    display:none;
}
.modal .modalTitle{
        width: 100%;
    border-bottom: 1px solid #dedede;
    margin-bottom: 5px;
    padding-bottom: 5px;
}
.modal .modalContent{
    width: 100%;
    height: 96%;
}
.modal .modalContent .modalFilterContent{
    display: grid;
    height: 90%;
    overflow: hidden;
    overflow-y: scroll;
    grid-gap: 5px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    margin-bottom:3%;
}
.modal .modalContent .modalFilterContent::-webkit-scrollbar {
    display: none;
}
.modal .modalContent .modalFilterContent .filterButton{
    background:#dedede;
    color:#333;
    border:1px solid #dedede;
    border-radius:5px;
    padding:10px;
    cursor:pointer;
    font-weight:700;
    max-height:36.66px;
}
.modalFilterAction{
    width:100%;
    display:flex;
    justify-content:space-between;
    height:7%;
}
.modal .modalContent .modalFilterContent .filterButton.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}
.modal .modalContent .modalFilterContent .filterButton:hover{
    background:var(--primary-color);
    border-color:var(--primary-color);
    color:#fff;
}

.modalFilterAction button {
    font-size: 15px;
    border-radius: 5px;
    border: 1px solid #333;
    padding: 0 10px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.modalFilterAction .hideModal {
    border: none;
    color: #fff;
    background: #C64A4A;
}

.modalFilterAction .applyFilter {
    border: none;
    color: #fff;
    background: #5a9f17;
}