html {
    font-size: clamp(14px, 3vw, 18px);
    height: 100%;
}

body {
    margin: 0px;
    direction: rtl;
    display: flex;
    /* flex-wrap: wrap; */
    flex-direction: column;
    min-height: 100%;
}

.menu {
    position: sticky;
    border: solid;
    border-color: rgba(0, 10, 0, 0.2);
    border-width: 0px 0px 1px 0px;
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
    z-index: 100;
    top: 0;
    background-color: white;
}

.menuiconpanel {
    margin-left: 10px;
    display: flex;
}

.menufooter {
    display: none;
    width: 100%;
    border-width: 1px 0px 0px 0px;
    border-style: solid;
    border-color: rgba(0, 10, 0, 0.2);
    background-color: white;
    z-index: 99;
    height: 72px;
}

.menufootercopy {
    display: none;
    width: 100%;
    border-width: 1px 0px 0px 0px;
    border-style: solid;
    border-color: rgba(0, 10, 0, 0.2);
    background-color: white;
    z-index: 99;
    height: 72px;
    pointer-events: none;
}

.logotext {
    display: inline-block;
    font-size: 1.5rem;
}

.logoimg {
    width: calc(1.5 * clamp(12px, 3vw, 16px));
    margin-left: 3px;
}

.sort {
    width: 100%;
}

.sortitem {
    display: inline-block;
}

.menuicon {
    width: 30px;
    transition: 200ms;
    cursor: pointer;
    margin: 5px;
    aspect-ratio: 1 / 1;
}

.searchpanel {
    flex: 1;
    max-width: 500px;
    margin: auto;
    position: relative;
    z-index: 1000;
}

.searchbar {
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: 50ms;
    border-radius: 15px;
    padding: 12px;
    width: 100%;
    outline: none;
    box-sizing: border-box;
    z-index: 1000;
}

.searchpid {
    position: absolute;
    z-index: 1000;
    display: none;
    background-color: white;
    width: 100%;
    border: 1px solid rgba(0, 10, 0, 0.2);
    border-width: 0px 0px 1px 1px;
    border-radius: 0px 0px 8px 8px;
    box-sizing: border-box;
    top: calc(100%);
    padding: 8px;
}

.searchbar:focus {
    border-radius: 8px 8px 0px 0px;
    background-color: rgb(248, 248, 248);
}

.menufooterbutton {
    display: block;
    text-align: center;
    margin-bottom: 5px;
    cursor: pointer;
}

.overlay {
    position: fixed;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
    inset: 0;
    display: none;
}

.main {
    display: none;
    flex-direction: column;
    flex: 1;
}

.footer {
    display: flex;
    justify-content: space-around;
}
.footeritem{
    display: inline-block;
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    max-width: 300px;
}
.logodesktop {
    display: inline-block;
    margin: 3px;
}

.logomobile {
    display: none;
    align-items: center;
    margin: 8px 5px 5px 5px;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    cursor: text;
}

.menubutton {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    background-color: white;
    display: flex;
    align-items: center;
    transition: 200ms;
    cursor: pointer;

}

.category {
    cursor: pointer;
    display: inline-block;
    margin-left: 8px;
    user-select: none;
}

.titr {
    font-size: 1.3rem;
    margin: 3px;
}

.bestprice {
    background-color: rgb(105 200 30);
    border-radius: 12px;
    margin: 10px 20px 0px 20px;
    padding: 8px;
    transform: translate(0);
}

.bestsells {
    margin: 10px 20px 0px 20px;
    padding: 8px;
    transform: translate(0);
}

.login {
    width: 100%;
    max-width: 412px;
    margin: auto;
    box-sizing: border-box;
    padding: 10px;
    display: none;
}

.logininput {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    outline: none;
    padding: 8px;
    box-sizing: border-box;
    width: 100%;
    margin: 2px 0px 2px 0px;
    transition: .3s;
}

.logininput:focus {
    border-color: rgb(105 200 30);
}

.loginbutton {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    outline: none;
    padding: 8px;
    box-sizing: border-box;
    width: 100%;
    margin: 2px 0px 2px 0px;
    background: linear-gradient(rgb(105 200 30) 0 0) left/0% 100% no-repeat;
    transition: 0.5s;
    font-size: 1rem;
}

.loginbutton:active {
    background-color: rgb(105 190 30);

}

/* .productbest {
    max-width: 200px;
    text-align: center;
    background-color: white;
    border-radius: 8px;
    padding: 8px;
    box-sizing: border-box;
    margin: 2px;
}

.productbestimage {
    width: 100%;
    aspect-ratio: 1 / 0.8;
    border-radius: 8px;

}

.productbesttext {
    font-size: 1rem;
} */
.bslide {
    text-align: center;
    background-color: white;
    border-radius: 8px;
    padding: 8px;
    box-sizing: border-box;
    max-width: 200px;
}

.bslideimage {
    width: 100%;
    aspect-ratio: 1 / 0.8;
    border-radius: 8px;
}

.bslitetext {
    font-size: 1rem;
}

.loadingform {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}


.searchresult {
    display: flex;
    width: 100%;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
    padding: 8px;
    box-sizing: border-box;
}

.product {
    width: 30%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px;
    box-sizing: border-box;
    display: inline-block;
    margin-bottom: 5px;
}

.productimage {
    width: 100%;
    aspect-ratio: 1 / 0.8;
    border-radius: 8px;

}

.producttext {
    display: block;
}

.loading {
    width: 50px;
    height: 50px;
    border: 5px solid #ddd;
    border-top: 5px solid rgb(105 190 30);
    border-radius: 50%;
    animation: load 1s linear infinite;
}

.grow {
    flex: 1;
}

.account {
    box-sizing: border-box;
    padding: 10px;
    width: 100%;
    align-items: center;
    display: none;
    flex-wrap: wrap;
}

.accountmenu {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 10px;
    width: 30%;
    box-sizing: border-box;
}

.accountdata {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    display: inline-block;
    flex: 1;
    padding: 8px;
    box-sizing: border-box;
    text-align: center;
    margin-right: 8px;
}

.accountdatabtn {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 8px;
    width: 100%;
    max-width: 350px;
    box-sizing: border-box;
    background: linear-gradient(rgb(105 200 30) 0 0) left/0% 100% no-repeat;
    transition: 0.5s;
}

.accountdatabtn:active {
    background-color: rgb(105 190 30);
}

.accountmenuitem {
    width: 100%;
    margin: 5px;
    cursor: pointer;
}

.accountinput {
    border-width: 0px 0px 0px 0px;
    border-bottom: 2px dashed rgba(0, 0, 0, 0.5);
    outline: none;
    padding: 5px;
    box-sizing: border-box;
    margin-bottom: 8px;
    width: 100%;
    max-width: 350px;
}

.productview {
    display: none;
    align-items: center;
    flex-wrap: wrap;
}

.productdata {
    padding: 8px;
    text-align: center;
}

.pvimage {
    width: 40%;
    aspect-ratio: 1 / 0.8;
    border-radius: 8px;
}

.pvtext {
    white-space: pre-line;
    margin-bottom: 5px;
    text-align: center;
}

.pvitem {
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    padding: 5px;
}

.productinfo {
    display: flex;
    justify-content: space-around;
    flex: 1;
    flex-wrap: wrap;
}

.map {
    height: 180px;
    border-radius: 8px;
    max-width: 350px;
    margin: 8px auto;
    z-index: 1;
}

.pacbtn {
    box-sizing: border-box;
    padding: 8px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.3);
    width: 15%;
    background-color: white;
    transition: 250ms;
}

.pacbtn:active {
    background-color: #ddd;
}

.pacnumber {
    outline: none;
    border-width: 1px 0px 1px 0px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.3);
    padding: 8px;
    box-sizing: border-box;
    width: 70%;
    background-color: white;
    text-align: center;
    -moz-appearance: textfield;
}

.pacnumber::-webkit-inner-spin-button,
.pacnumber::-webkit-outer-spin-button {
    -webkit-appearance: none;
}


.productprice {
    justify-content: center;
    display: flex;
    flex-direction: column;
    padding: 8px;
    flex: 1;
    max-width: 200px;
}

.cart {
    padding: 8px;
    max-width: 550px;
    width: 100%;
    box-sizing: border-box;
    margin: auto;
    margin-top: 8px;
    display: none;
}

.cartitem {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.productaddtocart {
    margin-top: 5px;
    display: flex;
    flex-wrap: nowrap;
}

.carttitle {
    margin: 0px;
}

.cartitemwi {
    font-size: 0.7rem;
    cursor: pointer;
}

.postcheckeds {
    display: none;
}

.postitem {
    background-color: #ddd;
    padding: 8px;
    border-radius: 8px;
    width: 100%;
    display: block;
    box-sizing: border-box;
    margin: 5px 0px 5px 0px;
    transition: 250ms;
}

.postitem:has(input:checked) {
    background-color: #84df72;
}

.loadingformbest {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(238, 238, 238);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

.searchtitr {
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 8px;
    box-sizing: border-box;
    cursor: pointer;
}

@keyframes load {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (hover: hover) and (pointer: fine) {
    .menuicon:hover {
        transform: scale(1.05);
    }

    .menubutton:hover {
        background-color: rgb(248, 248, 248);
    }

    .loginbutton:hover {
        background-size: 100% 100%;
    }

    .accountdatabtn:hover {
        background-size: 100% 100%;
    }

    .pacbtn:hover {
        background-color: #ddd;
    }
}

@media (max-width: 700px) {
    .product {
        width: 49%;
    }
}

@media (max-width: 400px) {
    .product {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-around;
        flex-wrap: balance;

    }

    .productimage {
        height: 80px;
        width: auto;
    }


}

@media (max-width: 550px) {
    .menufooter {
        position: fixed;
        bottom: 0px;
        display: flex;
        justify-content: space-around;
    }

    .menufootercopy {
        display: flex;
        justify-content: space-around;
        opacity: 0;
    }

    .logodesktop {
        display: none;
    }

    .logomobile {
        display: flex;
    }

    .menuiconpanel {
        display: none;
    }

    .searchpanel {
        position: fixed;
        top: 1%;
        right: 0;
        width: 100%;
        display: none;
        max-width: 550px;
    }

    .accountmenu {
        display: flex;
        gap: 5px;
        align-items: center;
        width: 100%;
        justify-content: space-around;
    }

    .accountmenuitem {
        width: auto;
    }

    .accountdata {
        margin-right: 0px;
        margin-top: 5px;
    }

    .pvimage {
        width: 100%;
    }

    .productinfo {
        border-top: 1px solid rgba(0, 0, 0, 0.4);
        border-radius: 12px;
    }
}