/*--------------------------- Fonts Start -------------------------*/
@font-face {
    font-family: IranSansEn;
    font-style: normal;
    font-weight: normal;
    src: url('../admin/fonts/iransans/eot/IRANSansWeb(NoEn).eot');
    src: url('../admin/fonts/iransans/eot/IRANSansWeb(NoEn).eot?#iefix') format('embedded-opentype'),
        url('../admin/fonts/iransans/woff2/IRANSansWeb(NoEn).woff2') format('woff2'),
        url('../admin/fonts/iransans/woff/IRANSansWeb(NoEn).woff') format('woff'),
        url('../admin/fonts/iransans/ttf/IRANSansWeb(NoEn).ttf') format('truetype');
}
@font-face {
    font-family: IranSansEn;
    font-style: normal;
    font-weight: bold;
    src: url('../admin/fonts/iransans/eot/IRANSansWeb(NoEn)_Bold.eot');
    src: url('../admin/fonts/iransans/eot/IRANSansWeb(NoEn)_Bold.eot?#iefix') format('embedded-opentype'),
        url('../admin/fonts/iransans/woff2/IRANSansWeb(NoEn)_Bold.woff2') format('woff2'),
        url('../admin/fonts/iransans/woff/IRANSansWeb(NoEn)_Bold.woff') format('woff'),
        url('../admin/fonts/iransans/ttf/IRANSansWeb(NoEn)_Bold.ttf') format('truetype');
}
@font-face {
    font-family: IranSansEn;
    font-style: normal;
    font-weight: 300;
    src: url('../admin/fonts/iransans/eot/IRANSansWeb(NoEn)_Light.eot');
    src: url('../admin/fonts/iransans/eot/IRANSansWeb(NoEn)_Light.eot?#iefix') format('embedded-opentype'),  /* IE6-8 */
        url('../admin/fonts/iransans/woff2/IRANSansWeb(NoEn)_Light.woff2') format('woff2'),  /* FF39+,Chrome36+, Opera24+*/
        url('../admin/fonts/iransans/woff/IRANSansWeb(NoEn)_Light.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
        url('../admin/fonts/iransans/ttf/IRANSansWeb(NoEn)_Light.ttf') format('truetype');
}

@font-face {
    font-family: IranSans;
    font-style: normal;
    font-weight: normal;
    src: url('../admin/fonts/iransans-fanum/eot/IRANSansWeb(FaNum).eot');
    src: url('../admin/fonts/iransans-fanum/eot/IRANSansWeb(FaNum).eot?#iefix') format('embedded-opentype'),
        url('../admin/fonts/iransans-fanum/woff2/IRANSansWeb(FaNum).woff2') format('woff2'),
        url('../admin/fonts/iransans-fanum/woff/IRANSansWeb(FaNum).woff') format('woff'),
        url('../admin/fonts/iransans-fanum/ttf/IRANSansWeb\(FaNum\).ttf') format('truetype');
}
@font-face {
    font-family: IranSans;
    font-style: normal;
    font-weight: bold;
    src: url('../admin/fonts/iransans-fanum/eot/IRANSansWeb(FaNum)_Bold.eot');
    src: url('../admin/fonts/iransans-fanum/eot/IRANSansWeb(FaNum)_Bold.eot?#iefix') format('embedded-opentype'),
        url('../admin/fonts/iransans-fanum/woff2/IRANSansWeb(FaNum)_Bold.woff2') format('woff2'),
        url('../admin/fonts/iransans-fanum/woff/IRANSansWeb(FaNum)_Bold.woff') format('woff'),
        url('../admin/fonts/iransans-fanum/ttf/IRANSansWeb(FaNum)_Bold.ttf') format('truetype');
}
@font-face {
    font-family: IranSans;
    font-style: normal;
    font-weight: lighter;
    src: url('../admin/fonts/iransans-fanum/eot/IRANSansWeb(FaNum)_Light.eot');
    src: url('../admin/fonts/iransans-fanum/eot/IRANSansWeb(FaNum)_Light.eot?#iefix') format('embedded-opentype'),
        url('../admin/fonts/iransans-fanum/woff2/IRANSansWeb(FaNum)_Light.woff2') format('woff2'),
        url('../admin/fonts/iransans-fanum/woff/IRANSansWeb(FaNum)_Light.woff') format('woff'),
        url('../admin/fonts/iransans-fanum/ttf/IRANSansWeb(FaNum)_Light.ttf') format('truetype');
}
/*---------------------------- Fonts End --------------------------*/



/*-------------------------- General Start ------------------------*/
body{
    font-family: IranSans, tahoma;
    font-size: 14px;
    text-align: justify;
    color: #777;
    line-height: 30px;
    background: #fff;
    overflow-x: hidden;
    padding-bottom: 20px;
}
input, select{
    font-family: IranSans, tahoma;
}
select.form-select{
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid #efefef;
    border-radius: 25px;
    padding: 3px 20px;
    height: 30px;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.hide{
    display: none !important;
}
/*--------------------------- General End -------------------------*/



/*---------------------------- Main Start ------------------------*/
.main-wrapper{
    max-width: 1030px;
    margin: 0 auto;
    display: block;
    padding: 0 15px;
}
.header, .top-description{
    width: 100%;
    background: #fff;
    box-shadow: 0px 11px 23px rgba(167, 167, 167, 0.3);
    border-radius: 40px;
    margin: 15px auto 20px;
    color: #aaa;
}
.header{
    position: relative;
    border-radius: 40px 40px 10px 40px;
}
.header h1{
    font: 18px IranSans;
    color: #888;
    text-align: center;
}

.top-info{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    font-size: 13px;
}
.top-info .right{
    justify-content: flex-start;
    width: calc(50% - 43px);
}
.top-info .logo{
    width: 86px;
}
.top-info .logo img{
    max-width: 80px;
    max-height: 80px;
    margin: 0 auto;
    display: inline-block;
}
.top-info .left{
    justify-content: flex-end;
    width: calc(50% - 43px);
}
.top-address{
    width: calc(100% - 30px);
    text-align: center;
    font-size: 13px;
    padding: 0 15px;
}
.qr-box{
    border-radius: 50%;
    padding: 5px;
    position: absolute;
    top: calc(100% - 20px);
    bottom: -20px;
    right: -20px;
    left: calc(100% - 20px);
    width: 30px;
    height: 30px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    color: #777;
    font-size: 20px;
    line-height: 1.8;
    transition: ease 0.3s all;
    box-shadow: 0 0 15px rgb(167 167 167 / 50%);
}

#modal-qrcode{
    width: 100%;
    height: 100%;
    padding: 0;
    z-index: -1;
    right: 0;
    top: 0;
    bottom: 0;
    left: 0;
    position: fixed;
    opacity: 0;
    margin: 0 auto;
    text-align: center;
    transition: ease 0.7s all;
    background: rgba(255, 255, 255, 0.8);
}
#modal-qrcode.active{
    opacity: 1;
    z-index: 999;
}
#modal-qrcode img{
    width: 265px;
    height: 265px;
    display: block;
    padding: 20px;
    border-radius: 20px;
    background-color: #fff;
    position: absolute;
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    transition: ease 0.4s all;
    transform: scale(0.75);
    box-shadow: 0 0 15px rgb(167 167 167 / 50%);
}
#modal-qrcode.active img{
    transform: scale(1);
}

ul.social{
    display: block;
    text-align: center;
    margin: 10px auto;
    padding: 0;
}
ul.social li{
    display: inline-block;
    width: 40px;
    height: 40px;
    text-align: center;
    margin: 0 10px;
    list-style: none;
}
ul.social li:first-child{
    margin-right: 0;
}
ul.social li:last-child{
    margin-left: 0;
}
ul.social li a{
    display: block;
}
ul.social li a img{
    max-width: 100%;
}

.top-description{
    width: calc(100% - 30px);
    padding: 15px;
    margin: 15px auto 20px;
    color: #111;
    position: relative;
    font-size: 12px;
    font-weight: bold;
    padding-bottom: 40px;
    transition: ease 0.3s all;
}
.top-description.collapse{
    height: 120px;
    overflow-y: hidden;
    padding-bottom: 0;
}
.top-description.collapse .text{
    height: 120px;
    transition: ease 0.3s all;
}

.top-description:before{
    position: absolute;
    content: "";
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 150px;
    z-index: 1;
    background: -moz-linear-gradient(bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.1) 100%);
    background: -webkit-linear-gradient(bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.1) 100%);
    background: linear-gradient(bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.1) 100%);
    display: none;
    transition: ease 0.3s all;
}
.top-description.collapse:before{
    display: block;
}

#btn-toggle-description{
    border: 1px dashed #999;
    background: #fff;
    font: 13px IranSans;
    color: #111;
    padding: 0 25px;
    margin: 0 auto;
    position: absolute;
    bottom: 10px;
    right: 0;
    left: 0;
    width: 160px;
    border-radius: 15px;
    cursor: pointer;
    z-index: 2;
    transition: ease 0.3s all;
    background: #ff3333;
    color: #fff;
}
#btn-toggle-description:hover{
    border: 1px solid #777;
}
#btn-toggle-description.collapse {
    background: #fff;
    color: #333;
}

.categories-box{
    width: calc(100% - 20px);
    background: #fff;
    box-shadow: 0px 11px 23px rgba(167, 167, 167, 0.3);
    border-radius: 20px;
    margin:  5x auto;
    padding: 5px 10px;
}
ul#categories{
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0;
}
ul#categories li{
    position: relative;
    display: inline-block;
    margin-left: 10px;
    color: #aaa;
    border-radius: 15px;
    border: 1px solid #ccc;
    padding: 10px;
    cursor: pointer;
    min-width: 50px;
    text-align: center;
    position: relative;
    transition: ease 0.3s all;
}
ul#categories li:hover{
    border-color: #888;
    color: #888;
}
ul#categories li.active{
    border: 1px solid #111;
    color: #121212;
}
ul#categories li:before{
    content: "";
    height: 100%;
    bottom: 0;
    right: -1px;
    left: -1px;
    z-index: 2;
    border-radius: 15px;
    position: absolute;
    border-bottom: 4px solid #111;
    opacity: 0;
    transition: ease 0.3s all;
}
ul#categories li.active:before{
    opacity: 1;
}
ul#categories li > span{
    font-size: 16px;
    font-weight: bold;
    vertical-align: middle;
}
ul#categories li > i{
    font-size: 20px;
    vertical-align: middle;
    transition: ease 0.3s all;
}

.content{
    margin: 15px 0;
}
.content-top{
    width: 100%;
    margin-bottom: 15px;
    color: #111;
    font-weight:bold;
}
#selected-category{
    display: inline-block;
    width: calc(100% - 150px);
    font-size: 16px;
}
#slc-sort{
    display: inline-block;
    width: 145px;
    outline: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0px 3px 5px rgb(167 167 167 / 30%);
}

#result, .category-products{
    display: flex;
    flex-direction: row;
    width:  100%;
    flex-wrap: wrap;
}
.product-col{
    width: calc(50% - 40px);
    text-align: center;
    padding: 0 20px;
    margin-bottom: 15px;
}
.product{
    box-shadow: 0px 11px 23px rgb(167 167 167 / 30%);
    border-radius: 20px;
    display: flex;
    align-items: center;

}

.product .right{
    width: 100px;
    padding: 10px;
    flex-basis: 100px;
}
.product .right img{
    width: 100px;
    height: 100px;
    border-radius: 10px;
    vertical-align: middle;
    background: #eee;
}
.product .left{
    width: calc( 100% - 140px);
    padding: 10px;
    height: 118px;
    overflow: hidden;
    text-align: right;
    height: auto; /* vertical align*/
}
.product h2{
    font-size: 16px;
    margin: 0;
}
.product .excerpt{
    font-size: 12px;
    line-height: 18px;
    margin: 5px 0;
}
.product .price-box{
    float: left;
    min-width: 115px;
}
.product .arrow{
    float: left;
    width: 20px;
    text-align: center;
}
.product .price-tag{
    float: left;
    width: calc(100% - 30px);
    border-radius: 20px;
    color: #fff;
    background: #ff003d;
    font-weight: bold;
    text-align: center;
    padding: 0 5px;
}
.product .currency{
    font-size: 10px;
}
.product .arrow i{
    font-size: 18px !important;
    vertical-align: middle;
    margin-left: 2px;
}
.product .fa-arrow-circle-up{
    color: #00ca38;
}
.product .fa-arrow-circle-down{
    color: #de0031;
}

.copy-right {
    position: fixed;
    right: 0;
    left: 0;
    bottom: 0;
    box-shadow: 0px -5px 23px rgb(167 167 167 / 30%);
    text-align: center;
    font-size: 13px;
    color: #555;
    background: #fff;
    z-index: 2;
}
.copy-right a{
    color: #111;
    outline: none;
    text-decoration: none;
}
div#loading{
    text-align: center;
    width: 100%;
}
.text-danger{
    color: #e73131 !important;
}

a.vanillatop {
    border-radius: 50%;
    bottom: -60px;
    display: block;
    height: 40px;
    line-height: 52px;
    position: fixed;
    right: 20px;
    text-align: center;
    transition: ease 0.4s all;
    width: 40px;
    z-index: 9999;
    background: rgba(100,100,100, 0.6);
    color: #fff;
}
a.vanillatop.active{
    bottom: 10px;
}
a.vanillatop.active:hover{
    background: rgba(100,100,100, 0.9);
}
/*---------------------------- Main End --------------------------*/



/*-------------------------- Login Start -------------------------*/
.login-box{
    width: calc(100% - 40px);
    display: block;
    background: #fff;
    box-shadow: 0px 11px 23px rgb(167 167 167 / 30%);
    border-radius: 40px;
    margin: 20px auto;
    color: #777;
    padding: 20px;
    text-align: center;
    font-family: IranSans;
}
.text-danger{
    color: #dc3545;
}
.btn{
    display: inline-block;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    background-color: #00b6cc;
    border: 2px solid #00b6cc;
    border-radius: 25px;
    color: white;
    position: relative;
    cursor: pointer;
    font-family: IranSans;
    font-size: 15px;
    font-weight: normal;
    padding: 4px 30px;
    border-radius: 50px;
    min-width: 100px;

    transition: all 0.2s ease-in-out;
}
#btn-login i{
    vertical-align: middle;
    font-size: 16px;
    margin-left: 3px;
    display: inline-block;
}
#txt-pass{
    width: 320px;
    max-width: 100%;
    margin-bottom: 20px;
    border: none;
    font-style: normal;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    color: #000d3e;
    text-align: right;
    padding: 0.4rem 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 25px;
    outline: none;
    text-align: center;
    transition: all 0.25s ease-in-out;
}
#txt-pass:focus, #txt-pass:active{
    border: 1px solid #ccc;
}

/*--------------------------- Login End --------------------------*/



/*------------------------ Responsive Start -----------------------*/
@media(max-width:991px){
    .product-col{
        width: calc(50% - 10px);
        padding: 0 5px;
    }
}
@media(max-width:767px){
    .product-col {
        width: 100%;
        padding: 0;
    }
    .product .right {
        width: 80px;
        padding: 5px;
        flex-basis: 80px;
    }
    .product .right img {
        width: 80px;
        height: 80px;
    }
    .product .left {
        width: calc( 100% - 100px);
        padding: 5px;
        height: auto;
        max-height: 120px;
    }
}
@media (max-width: 576px){
    .product h2 {
        font-size: 15px;
        margin: 1px 0 0 0;
    }
    .product .price-tag {
        font-size: 13px;
    }
    .product .currency {
        font-size: 8px;
    }
    .product .price-box {
        min-width: 100px;
    }
}
/*------------------------- Responsive End -------------------------*/

/*------------------------- dark theme -------------------------*/

/* Dark Mode Styles Motlaghian */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

.header.dark-mode, .top-description.dark-mode, .categories-box.dark-mode, .login-box.dark-mode {
    background-color: #1e1e1e;
    color: #e0e0e0;
    box-shadow: 0px 11px 23px rgba(0, 0, 0, 0.5);
}

.btn.dark-mode {
    background-color: #333;
    border-color: #444;
    color: #e0e0e0;
}

.product.dark-mode {
    background-color: #1e1e1e;
    box-shadow: 0px 11px 23px rgba(0, 0, 0, 0.5);
}

body.dark-mode .header {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

.copy-right.dark-mode {
background-color: #1e1e1e;
    color: #e0e0e0;
}

/* Button styles for light and dark mode */
#theme-toggle {
        display: block;
    margin: 0px auto;
    background-color: #00b6cc;
    color: #fff;
    border: 2px solid #00b6cc;
    border-radius: 25px;
    padding: 5px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;

}

#theme-toggle.dark-mode {
    background-color: #444;
    color: #e0e0e0;
    border: 2px solid #555;
}

#theme-toggle:hover {
    background-color: #007b8c;
    border-color: #007b8c;
}

#theme-toggle.dark-mode:hover {
    background-color: #666;
    border-color: #777;
}
a.dark-mode {
    color: #eeee;
}
