
@font-face {
    font-family: "Vazirmatn";
    src: url("/fonts/Vazirmatn.eot");
    src: url("/fonts/Vazirmatn.woff") format("woff"), url("/fonts/Vazirmatn.svg#Vazirmatn") format("svg"),url("fonts/Vazirmatn.ttf") format("truetype");
}

.vazirmatn {
    font-family: Vazirmatn !important;
}

.font-16 {
    font-size: 16px !important;
}

.form-label {
    margin-bottom: 10px !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
}

.input-ltr {
    text-align: left !important;
    direction: ltr !important;
}

.text-danger {
    font-family: Vazirmatn !important;
}

.mr-top-5 {
    margin-top: 5px !important;
}

.mr-top-10 {
    margin-top: 10px !important;
}

.mr-top-20 {
    margin-top: 20px !important;
}

.font-12 {
    font-size: 12px;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.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;
}

.table-sm tbody tr td {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.my-form * {
    font-family: Vazirmatn !important;
}

.my-form .form-label {
    font-size: 14px !important;
}

.field-validation-error {
    font-size: 13px !important;
    margin-top: 5px;
}

.datepicker-container * {
    font-family: Vazirmatn !important;
}

.text-left {
    text-align: left !important;
    direction:ltr !important;
}
.my-nav-menu li{
    padding-right: 15px !important;
}
.my-nav-menu li a{
    color: #fff;
}
.footer-text{
    text-decoration: unset !important;
}

.jshop_pagination {
    margin-left: auto;
    margin-right: auto
}

.pagination ul {
    padding: 0;
    list-style: none;
    display: inline-block;
    margin-top: 15px;
    margin-bottom: 0
}

.pagination li {
    display: inline-block;
    margin: 0 0 0 -1px;
    border: 1px solid #ddd;
    color: #666;
    background: #fff;
    border-radius: 5px;
}

    .pagination li span,
    .pagination li a {
        display: inline-block;
        padding: 7px 10px;
        color: #777;
        border-radius: 5px;
    }

        .pagination li a:hover {
            background: #160ad6 !important;
            color: #fff;
        }

.iziToast-message{
    font-family: Vazirmatn;
}

/* =========================================================
   Responsive / Mobile improvements (applies to all pages)
   ========================================================= */

/* Never let content push the page wider than the viewport */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Smooth horizontal scrolling for all responsive tables */
.table-responsive {
    -webkit-overflow-scrolling: touch;
}

/* Safety net: any data table that was NOT wrapped in .table-responsive
   will still scroll horizontally instead of breaking the layout on mobile. */
.card-body > table.table,
.card-body .row > table.table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* The custom pagination table should never overflow the viewport */
.jshop_pagination {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pagination ul {
    white-space: nowrap;
}

/* Tablet and below */
@media (max-width: 991.98px) {
    .content {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Phones */
@media (max-width: 767.98px) {
    .content {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .card-body {
        padding: 1rem;
    }

    h4.card-title,
    .card-title {
        font-size: 1.05rem;
    }

    /* Keep data-table cells on one line so horizontal scroll works cleanly */
    .table-responsive table.table td,
    .table-responsive table.table th,
    .card-body > table.table td,
    .card-body > table.table th {
        white-space: nowrap;
    }

    /* Buttons placed inside table cells stay usable */
    .table td .btn,
    .table th .btn {
        margin-bottom: 4px;
    }

    /* Make action buttons that sit side by side wrap nicely */
    .d-flex.gap-2 {
        flex-wrap: wrap;
    }
}

/* Very small phones */
@media (max-width: 575.98px) {
    html {
        font-size: 13px;
    }

    .card-body {
        padding: 0.85rem;
    }
}

/* =========================================================
   ShoppingBasket – quantity stepper + add-to-cart control
   ========================================================= */
.order-cell {
    min-width: 170px;
    vertical-align: middle;
}

.qty-add-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.qty-stepper {
    width: 150px;
    flex: 0 0 auto;
}

.qty-stepper .qty-btn {
    font-weight: 700;
    min-width: 32px;
    line-height: 1;
}

/* Remove native number spinners for a cleaner stepper */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input {
    -moz-appearance: textfield;
    appearance: textfield;
    min-width: 52px!important;
}

/* On wider screens keep the column compact: icon-only add button */
.btn-add-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-add-cart .add-cart-text {
    display: none;
}

/* Phones & small tablets: make the whole control large and touch friendly */
@media (max-width: 767.98px) {
    .order-cell {
        min-width: 220px;
        white-space: normal !important;
    }

    .qty-add-wrapper {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    /* Bigger stepper for touch */
    .qty-stepper {
        width: 100%;
    }

    .qty-stepper .qty-btn {
        min-width: 46px;
        font-size: 1.25rem;
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }

    .qty-input {
        font-size: 1.05rem;
        min-height: 44px;
    }

    /* Full-width, clearly labelled add button */
    .btn-add-cart {
        width: 100%;
        min-height: 44px;
        font-size: 0.95rem;
    }

    .btn-add-cart .add-cart-text {
        display: inline;
    }

/* Select2 RTL Styling */
.select2-container--default.select2-container--rtl .select2-selection--single {
    text-align: right;
}

.select2-container--default .select2-selection--single {
    border-color: #dee2e6 !important;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.select2-dropdown {
    border-color: #dee2e6 !important;
}

.select2-search__field {
    font-family: Vazirmatn !important;
}

.select2-container--default .select2-results__option {
    font-family: Vazirmatn !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #0d6efd !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #e9ecef;
    color: #000;
}

html[dir="rtl"] .select2-container--default .select2-selection__rendered {
    padding-left: 0;
    padding-right: 8px;
}

html[dir="rtl"] .select2-container--default .select2-selection--single .select2-selection__arrow {
    left: 8px;
    right: auto;
}
