﻿html {
    font-size: 10px;
}


.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

input, input::placeholder {
    direction: rtl;
}
.form-floating > label{
    left: auto;
    right: 0;
}

form.create-order {
    width: fit-content;
    background-color: #fff;
    padding: 12px;
    border: 1px solid #aaa;
    border-radius: 12px;
    box-shadow: -3px 5px 10px #00000038;
}

.product-list { display: flex; gap: 8px 4px; flex-wrap: wrap; justify-content: space-evenly; }
.product-list .product-item { width: calc((( 100% / 12 ) * 4) - 4px); }
.product-item { }
.product-item .card-body{}
.product-item.disable{background: #00000007;}
.product-item.disable .card-body .thumbnail{opacity: 0.4;}
.product-item .card-body .thumbnail{ aspect-ratio: 1/1; width: 120px; margin: auto; margin-bottom: 6px; }
.product-item .card-body .product-title{font-size: 10px; text-align: center;}
.product-item .card-body .price-wrapper { display:flex; flex-direction: column; align-items: center; }
.product-item .card-body .price-wrapper .price{ color: #00bb00;}
.product-item .card-body .price-wrapper .price:after{ content:"ریال"; padding-right: 4px; font-size: 10px; }
.product-item .card-body .price-wrapper .consumer-price{color: #000000; }
.product-item .card-body .quantity-wrapper { display: flex; justify-content: center; }
.product-item .card-body .quantity-wrapper .quantity{}
.product-item .card-body .quantity-wrapper .unit{}
.product-item .card-footer {display: flex; justify-content: space-evenly; }
.product-item .card-body .tip-wrapper { display: flex; justify-content: center; }
.product-item .card-body .tip-wrapper .tip{}
.product-item .card-footer a{ font-size: 16px; }







/* X-Small devices (portrait phones, less than 576px) */
/* No media query for `xs` since this is the default in Bootstrap */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .product-list .product-item { width: calc((( 100% / 12 ) * 4) - 4px); }
    .product-item .card-body .product-title{ font-size: 12px; }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .product-list .product-item { width: calc((( 100% / 12 ) * 4) - 4px); }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .product-list .product-item { width: calc((( 100% / 12 ) * 3) - 4px); }}

/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    html {font-size: 13px;}
    .product-list .product-item { width: calc((( 100% / 12 ) * 3) - 4px); }
}

/* XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    html {font-size: 14px;}
    .product-list .product-item { width: calc((( 100% / 12 ) * 2) - 4px); }
}