@font-face {
    font-family: general;
    src: url(font/Tajawal-Regular-2.ttf);
}

* {
    padding: 0px;
    margin: 0px;
    direction: rtl;
    font-family: general;
    user-select: none;
}





.product {
    flex: 1 1 calc(33.33% - 10px); /* Three in a row by default */
    min-width: 250px; /* Ensure at least two per row if space is limited */
    max-width: 400px; /* Prevent items from being too large */
    background: lightgray;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;

    border-radius: 10px;

    margin: 15px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
}

.product img{
    border-radius: 15px;
}
.product div {
    padding: 10px;
}

.cloth_name {
    font-size: 40px;
    color: #777;
    text-align: right;
    font-weight: bold;
}
.cloth_name span{
    color: #aaa; font-size: 30px; padding: 5px;
}

.price {
    font-size: 30px;
    color: #666;
    text-align: left;
    display: flex;
    justify-content: flex-end;
}


.size_box {
    box-sizing: border-box;
    text-align: right;
    background-color: #fff;
    font-size: 20px;
    padding: 15px;
    color: #555;
    position: fixed;
    top: 0px; left: 0px; width: 100%;
}
.size_box input{
    border: none;
    font-size: 20px;
    max-width: 80px;
    background-color: #fff;
    padding: 10;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.size_box select:focus{
    outline: none;
}
.size_box select{
    font-size: 20px;
    padding: 10px;
    border: none;
    appearance: none;
    color: #555;
    text-align: center;
    background-color: #eee;
    border-radius: 10px;
    min-width: 50px;
    margin-right: 10px;
}
.size_box button{
    font-size: 20px;
    padding: 10px;
    font-family: Arial, Helvetica, sans-serif;
    border: none;
    appearance: none;
    color: #fff;
    text-align: center;
    background-color: #267bfa;
    border-radius: 10px;
    min-width: 50px;
    margin-right: 10px;
}
.size_box button:active{
    background-color: #5093f7;
    color: #fff;
}
.bottom_bar{
    text-align: center;
    direction: ltr;
}
.bottom_bar img{
    height: 30px;
    padding: 10px;
    border-radius: 15px;
    width: 20%;
    border: 3px solid #ffffff00;
}
.bottom_bar img:active{
    background-color: #f5f5f5;
}
.ops{
    font-size: 35px;
    color: #aaa;
    text-align: center;
    padding: 30px;
}
#myCart{
    position: fixed;
    left: 15px;
    bottom: -100px;
    background-color: #ffffffa9;
    backdrop-filter: blur(5px);
    border-radius: 10px;
    z-index: 2;
    padding: 15px;
    display: flex;
    box-shadow: 0px 2px 5px 0px #00000028;
    align-items: center;
    border: #267bfa solid 2px;
    transition: 0.25s;
}
#myCart:active{
    transform: scale(0.9);
    transform-origin: center center;
}
a{
    text-decoration: none;
}
h1{
    color: #888;
    font-size: 50px;
    padding: 10px;
}
#details{
    color: #555;
    font-size: 25px;
    text-align: right;
    line-height: 40px;
    padding: 15px;
}
#add_to_cart{
    background-color: #267bfa;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 20px;
    box-sizing: border-box;
    transition: 0.25s;
    position: fixed;
    left: 15px;
    bottom: 15px;
}
#add_to_cart:active{
    transform: scale(0.9);
    transform-origin: center center;
}
.night{
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: #0000004b;
    z-index: 3;
    display: none;
}
.cart_list{
    background-color: #fff;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    border-radius: 15px 15px 0px 0px;
    position: fixed;
    bottom: -400px;
    left: 0px;
    height: 400px;
    z-index: 4;
    transition: 0.25s;
    overflow-y: auto;
}
.list_item{
    color: #555;
    padding: 10px;
    font-size: 25px;
}
.preprice{
    text-decoration: line-through;
    color: #999;
    font-size: 20px;
    margin-left: 15px;
}
#order_btn{
    padding: 15px;
    margin: 5px;
    border-radius: 10px;
    color: #fff;
    background: #267bfa;
    text-align: center;
    transition: 0.25s;
    display: inline-block;
}
#order_btn:active{
    background-color: #5093f7;
    transform: scale(0.9);
    transform-origin: center center;
}
.more{
    color: #267bfa;
}
.discribe{
    margin-right: 15px;
    text-align: right;
}
footer{
    padding: 30px;
    text-align: center;
    background-color: #eee;
    color: #999;
    font-size: 20px;
}