/*顏色變數設定*/
:root{
    --hight-light: #ffc107;
    --gray:#f3f3f3;
    --dark: #383838;
    --j-green: #146e57;
    --soft: #f7f6f4;
    --bg-white: #fff;
}


body{
    color: var(--dark);
    max-height: 100vh;
    background-color: #d5d5d5;
	font-family: Microsoft JhengHei, sans-serif !important;
}


/*登入頁css*/
#login-wrap{
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url(../img/login-bg.jpg) no-repeat center / cover;
}



.login-content{
    padding: 40px 20px;
    width: 70%;
    background-color: #fff;
    border-radius: 10px;
    height: 500px;
    margin-left: auto;
    margin-right: auto;
    max-width: 1000px;
    align-items: center;
    justify-content: space-between;
    /* From https://css.glass */
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* From https://css.glass */
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.lg-left{
    width: 40%;
}

.lg-right{
    width: 58%;
    border-left: solid;
    border-image: linear-gradient(to bottom, #fff 0%,#ccc 40%,#ccc 62%,#fff 100%) 1 100%;
    border-width: 1px;
    padding-left: 50px;
}


.btn-secondary{
    color: #fff !important;
}

/*---------*/
.bg-gray{
    background-color:var(--gray);
}
.bg-white{
    background-color:#fff;
}

.bg-green{
    background-color: var(--j-green);
    color: var(--soft);
}

.top-fix{
    height: 80px;
    margin-bottom: 15px;
}


.top-fix .d-flex{
    height: 100%;
}


.s-logo{
    width: 30px;
}

.weigh{
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 15px;
}


.shop{
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-left: 5px;
}


.setting{  
    align-items: center;
    padding-top:5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}




.shop{
    font-size: 14px;
}


.btn-light{
    border-color: #bbb;
}


.mt-15{
    margin-top: 15px;
}

.w-15{
    width: 15%;
}

.w-20{
    width: 20%;
}

.w-25{
    width: 25%;
}

.w-30{
    width: 30%;
}

.w-33{
    width: 33%;
}

.w-35{
    width: 35%;
}

.w-40{
    width: 40%;
}

.w-48{
    width: 48%;
}

.w-80{
    width: 80%;
}

.w-90{
    width: 90%;
}

.w-70{
    width: 70%;
}
.w-75{
    width: 75%;
}

.w-60{
    width: 60%;
}

.w-65{
    width: 65%;
}

.w-66{
    width: 66%;
}


.h-60{
    height: 60%;
}

.h-20{
    height: 20%;
}

.h-40{
    height: 40%;
}
.h-45{
    height: 45%;
}

.h-30{
    height: 30%;
}

.h-33{
    height: 33%;
}
.h-50{
    height: 50%;
}
.h-55{
    height: 55%;
}

.bg-green button{
    height: 100%;
    width: 100%;
    color: var(--soft);
    letter-spacing: 1px;
}




.fz-14{
    font-size: 14px;
}

.fz-13{
    font-size: 13px;
}

.fz-15{
    font-size: 15px;
}

.fz-18{
    font-size: 18px;
}
.fz-19{
    font-size: 19px;
}



.fz-20{
    font-size: 20px;
}

.fz-25{
    font-size: 25px;
}



.fw-600{
    font-weight: 600;
}

.fz-35{
    font-size: 35px;
    letter-spacing: 1px;
}

.fz-40{
    font-size: 40px;
    letter-spacing: 1px;
}



#Right{
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

#Left{
    padding-top: 5px;
    max-height:calc(100vh - 15px) ;
    height: calc(100vh - 15px);
    overflow: hidden;
}


.fix-bottom{
    padding-top: 10px;
    position: absolute;
    z-index: 10;
    bottom: 0;
    left: 0;
    background-color: #fff;
    border-top: 2px solid #ddd;
    width: 66%;
}

.bottom-wrap{
    display: flex;
    justify-content: space-between;
}

.b-left{
    height: 100%;
    overflow: hidden;
    overflow-y: auto;
    position: relative;
}

.b-right{
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.b-left-top{
    display: flex;
    height: 78px;
    align-items: center;
    padding: 5px 15px 10px;
    justify-content: space-between;
}

.fix-top{
    position: sticky;
    z-index: 10;
    top: -1px;
    left: 0;
    width: 100%;
    background-color: #d5d5d5;
}

.b-left-top .search{
    position: relative;
}

.b-left-top .main_search{
    height: 52px;
    font-size: 22px;
    padding-right: 48px;
}

.b-left-top .search_mode{
    min-height: 52px;
    font-size: 22px;
    padding: 8px 12px;
}

.b-left-top .search a{
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 52px;
    font-size: 22px;
}

.b-left-inner{
    padding: 15px 15px 130px;
    min-height: 0;
}


.text-ellipsis{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    display: inline-block;
}

.press-wrap {
    display: flex;
    flex-wrap: wrap;
    column-gap: 5px;
}

.press-wrap button{
    width: 32%;
    min-height: 65px;
}

.btn-green{
    background-color: var(--j-green) !important;
    color: var(--soft) !important;
}

.num-keyboard{
    height: 40%;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /*等寬*/
    height: 100%;
}


.print-out {
    height: 65px;
    font-size: 20px;
    margin-top: 5px;
}

.num{
    background-color: #fff;
  /*   border: 1px solid #cbcbcb;
    padding: 2px; */
    font-size: 25px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.num-1,.num-2,.num-3,.num-4,.num-5,.num-6,.num-7,.num-8,.num-9,.num-0,.num-dot,.num-opt{
    display: inline-block;
    border: 1px solid #cbcbcb;
	margin:1px;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    	
	
}
.num-1,.num-2,.num-3,.num-4,.num-5,.num-6,.num-7,.num-8,.num-9,.num-0,.num-dot{
	font-family: "Font Awesome 6 pro";
}

.num-1::before{
   content: "\31";
}
.num-2::before{
   content: "\32";
}
.num-3::before{
   content: "\33";
}
.num-4::before{
   content: "\34";
}
.num-5::before{
   content: "\35";
}
.num-6::before{
   content: "\36";
}
.num-7::before{
   content: "\37";
}
.num-8::before{
   content: "\38";
}
.num-9::before{
   content: "\39";
}
.num-0::before{
   content: "\30";
}
.num-dot::before{
   content: "\2e";
}

.b-right .num{
    padding: 1rem 0.75rem;
}

.modal-body .num{
    padding: 1rem 0.75rem;
}

.b-right .main_numpad .num{
    padding: 0.5rem 0.75rem;
}

.main_numpad,.price-numpad{
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
}

.main_numpad .main-backspace{
    grid-column: 4;
    grid-row: 1 / 3;
}

.main_numpad .num[data-num="s"]{
    grid-column: 4;
    grid-row: 3 / 5;
}

.main_numpad .num[data-num="c"]{
    grid-column: 1;
    grid-row: 4;
}

.main_numpad .num-0{
    grid-column: 2 / 4;
    grid-row: 4;
}

.b-right .main_numpad .num-opt{
    padding: 0.5rem 2px;
    font-size: 20px;
}

.price-numpad .price-backspace{
    grid-column: 4;
    grid-row: 1 / 3;
}

.price-numpad .num[data-num="c"]{
    grid-column: 4;
    grid-row: 3 / 5;
}

.price-numpad .num-0{
    grid-column: 1 / 3;
    grid-row: 4;
}

.price-numpad .num-dot{
    grid-column: 3;
    grid-row: 4;
}

.scale-dialog{
    font-size: 22px;
}

.scale-dialog .modal-dialog{
    max-width: 760px;
}

.scale-dialog .modal-title{
    font-size: 28px;
}

.scale-dialog .form-control{
    font-size: 26px;
    min-height: 54px;
}

.scale-dialog .btn{
    font-size: 24px;
    min-height: 54px;
    padding: 8px 18px;
}

.scale-dialog .numpad .num{
    font-size: 28px;
}

.scale-dialog .close{
    font-size: 36px;
}


.how-much-wrap{
    padding: 5px;
}

.how-much{
    padding: 15px;
    border: 1px solid #cbcbcb;
    border-radius: 5px;
    height: 100%;
}

.r-btn-wrap,.num-keyboard{
    padding-right: 5px;
}

.right-search{
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
   
    padding: 12px 2px;
}


.item-wrap{
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.pd-item{
    width: 23%;
    background-color: #fff;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #cbcbcb;
}

.prod_list.item-wrap{
    gap: 6px;
}

.prod_list .prod_btn{
    position: relative;
    width: calc((100% - 18px) / 4);
    min-width: 0;
    padding: 6px;
}

.prod_list .prod_btn > .mt-2{
    margin-top: 0 !important;
}

.prod_list .prod_btn p{
    display: block;
    font-size: 22px;
    line-height: 1.15;
    margin-bottom: 2px !important;
}

.prod_list .prod_btn p:last-child{
    margin-bottom: 0 !important;
}

.prod_list .prod_btn .fz-13{
    font-size: 16px;
}

.prod_list .prod_btn p:first-child{
    padding-right: 36px;
}

.prod-favorite{
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #969696;
    border-radius: 4px;
    background: #fff;
    color: #666;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.prod-favorite.is-favorite{
    color: #ffc107;
    border-color: #ffc107;
}

.pd-item-pic{
    max-height: 120px;
    min-height: 120px;
    height: 120px;
}

.pd-item-pic img{
    object-fit: cover;
    height: 100%;
    border-radius: 5px;
}

.pd-item.active{
    background-color: var(--j-green);
}

.pd-item.active p{
    color: var(--soft);
}

.pd-item.active .text-danger{
    color: var(--hight-light) !important;
}

.no-item-view{
    width: 60%;
    margin: 50px auto;
}

.cat-page{
    padding-left: 4px;
}

.cat-page ul{
    padding-left: 0;
    display: flex;
    
    margin-bottom: 10px;
}

.cat-page ul li{
    list-style: none;
}

.cat-page ul li a{
    display: block;
    font-size: 18px;
    padding: 4px 8px;
    margin: 0px 6px;
    font-weight: 600;
    border: 1px solid #383838;
    border-radius: 3px;
}

.cat-page ul li a.active{
    background-color: #383838;
    color: #fff !important;
}


.cat{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 15px;
    padding: 0px 10px 10px;
}


.btn-outline-gray{
    border: 1px solid #969696;
    background: #fff;
}


.cat button.btn-outline-gray.active{
    background-color: var(--j-green);
    color: var(--soft);
}

.cat button{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.weigh-pd{
    display: none;
}


.modal-footer{
    justify-content: space-between;
}

.modal-footer button{
    width: 45%;
}


#calpriceModel .modal-dialog{
    max-width: 700px;
}
#calpriceModel .modal-header, 
#calpriceModel .modal-footer,
#calpriceModel .modal-body{
    padding: 0.75rem;
}

#calpriceModel .modal-body .num{
    padding: 0.5rem 0.75rem
 }


#calpriceModel .modal-title{
    font-size: 28px;
}

#calpriceModel  .c-width{
    min-width: 80px;
}
