@font-face {
    font-family: btitrb;
    src: url('../fonts/B Titr Bold.ttf');
}

@font-face {
    font-family: vazir;
    src: url('../fonts/Vazir.ttf');
}

@font-face {
    font-family: davat;
    src: url('../fonts/B Davat.ttf');
}

@font-face {
    font-family: taha-r;
    src: url('../fonts/Bahij Uthman Taha-Regular.ttf');
}

@font-face {
    font-family: taha-b;
    src: url('../fonts/Bahij Uthman Taha-Bold.ttf');
}

@font-face {
    font-family: BNazanin;
    src: url('../fonts/B Nazanin.ttf');
}

@font-face {
    font-family: iransans;
    src: url('../fonts/IRANSans.ttf');
}

@font-face {
    font-family: bmitrab;
    src: url('../fonts/B Mitra Bold.ttf');
}

@font-face {
    font-family: bmitra;
    src: url('../fonts/B Mitra.ttf');
}

@font-face {
    font-family: times;
    src: url('../fonts/times.ttf');
}

.davat {
    font-family: davat;
}

.vazir {
    font-family: vazir;
}

.taha-r {
    font-family: taha-r;
}

.taha-b {
    font-family: taha-b;
}

.btitrb {
    font-family: btitrb;
}

.iransans {
    font-family: iransans;
}

.bmitrab {
    font-family: bmitrab;
}

.bmitra-n {
    font-family: bmitra;
    font-weight: 600;
}

.bmitra {
    font-family: bmitra;
}

.bnazanin {
    font-family: BNazanin;
}

.calibri {
    font-family: calibri;
}

.times {
    font-family: times;
}

.bold {
    font-weight: bold;
}

.dir-ltr {
    direction: ltr !important;
}

.dir-rtl {
    direction: rtl !important;
}

.text-justify {
    text-align: justify !important;
}

html {
    min-height: 100%;
    position: relative;
}
body {
    padding-top: 70px;
    padding-bottom: 30px;
    margin-bottom: 60px;
}

.form-signin {
    max-width: 480px;
    padding: 1rem;
}

.form-signin .form-floating:focus-within {
    z-index: 2;
}

.form-signin input[type="text"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.text-underline {
    text-decoration: underline !important;
}

/* Sticky Footer */
footer.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    /* Set the fixed height of the footer here */
    height: 52px;
    color: #fff !important;
    background-color: #495057;
}

footer.footer p {
    direction: ltr !important;
    font-family: calibri;
    margin: 16px 0;
}
/* End of Sticky Footer*/

/* Change Default Font in DatePicker */
.mds-bs-persian-datetime-picker-popover {
    font-family: vazir !important;
}

/* Bootstrap-Select */
div.filter-option-inner-inner {
    text-align: right !important;
}
a.disabled.active.selected span.bs-ok-default.check-mark {
    display: none !important;
}

.hide {
    display: none !important;
}

/* Select2 */
.select2 {
    width: 100% !important;
}

.select2-results {
    background: #f8f9fa !important;
}

.select2-selection {
    background: #f8f9fa !important;
}

.select2-container .select2-selection--single,
.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
    min-width: 60px;
}
/* End of Select2 */

.btn-xs {
    --bs-btn-padding-y: .25rem;
    --bs-btn-padding-x: .5rem;
    --bs-btn-font-size: .75rem;
}

.d-block {
    display: block !important;
}

.d-inline {
    display: inline-block !important;
}

.d-hide-inline,
.d-hide-block {
    display: none;
}

/* Print Queries */
@media print {

    .not_in_print, .alert {
        display: none !important;
    }

    .d-hide-inline {
        display: inline !important;
    }

    .d-hide-block {
        display: block !important;
    }

    .table-bordered {
        border: 1px solid #000;
    }

    ::-webkit-scrollbar,
    ::-webkit-scrollbar-track,
    ::-webkit-scrollbar-thumb {
        display: none !important;
    }
}

/* Scrollbar */
/* width */
::-webkit-scrollbar {
    width: 14px;
}
/* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px rgb(204, 254, 179);
    background-color: rgba(44, 142, 70, 0.4);
}
/* Handle */
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom right, rgb(25, 135, 84) 0%, #0ee681 100%);
    transition: 1s;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #19c172;
}
/* End of Scrollbar */



/* Swiper Slideshow */
.slideshow-wrapper {
    margin-top: -14px;
    width: 100% !important;
    height: 400px !important;
}
.slideshow-wrapper-inner {
    width: 100% !important;
    height: 400px !important;
}
.slideshow-slide {
    position: relative;
    width: 100% !important;
    height: 400px !important;
}
.slideshow-slide img {
    width: 100% !important;
    height: 400px !important;
    object-fit: cover !important;
    object-position: center !important;
    clip-path: polygon(0 0, 100% 0%, 100% 80%, 0 100%);
}
.slideshow-slide .slider-bg-info {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    clip-path: polygon(0 0, 100% 0%, 100% 80%, 0 100%);
}
.slideshow-slide .slider-bg-info p {
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 5px;
    margin-bottom: 10px;
}
.slideshow-slide .slider-bg-info h2 {
    text-align :center;
    font-size: 45px;
    font-weight: 600;
    margin-bottom: 25px;
}
.slideshow-slide .slider-bg-info button {
    padding: 15px 25px;
    border-radius: 30px;
    color: #393939;
    border: none;
    background: white;
    font-size: 17px;
    font-weight: 400;
    cursor: pointer;
    transition: .3s;
}
.slideshow-slide .slider-bg-info button:hover {
    background: #393939;
    color: white;
}
.slideshow-wrapper .swiper-pagination-bullet {
    height: 10px;
    width: 10px;
    background: #000;
    opacity: 0.5;
    transition: .3s;
}
.slideshow-wrapper .swiper-pagination-bullet-active {
    width: 20px;
    opacity: 1;
    border-radius: 7px;
}
.slideshow-wrapper .swiper-button-prev,
.slideshow-wrapper .swiper-button-next {
    color: #fff;
}
@media (max-width: 768px) {
    .slideshow-wrapper {
        height: 300px !important;
    }
    .slideshow-slide {
        height: 300px !important;
    }
    .slideshow-slide img {
        height: 300px !important;
    }
    .slideshow-slide .slider-bg-info button {
        padding: 10px 20px;
        font-size: 15px;
    }
}
@media (max-width: 576px) {
    .slideshow-wrapper {
        height: 200px !important;
    }
    .slideshow-slide {
        height: 200px !important;
    }
    .slideshow-slide img {
        height: 200px !important;
    }
    .slideshow-slide .slider-bg-info button {
        padding: 10px 20px;
        font-size: 12px;
    }
}

/* Cart Sidebar */
#cartSidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1050;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
}
#cartSidebar.open {
    transform: translateX(0%) !important;
}
#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1049;
    display: none;
}
#overlay.show {
    display: block;
}
#cartItemsContainer {
    flex-grow: 1;
    overflow-y: auto;
    max-height: calc(100vh - 150px);
}



/* NAVBAR */
/* Modern clean theme for subsistence materials site */
.navbar.customer-navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}
.navbar.customer-navbar .navbar-brand {
    color: #198754 !important;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.navbar.customer-navbar .navbar-toggler {
    border: none;
}
.navbar.customer-navbar .navbar-toggler:focus {
    box-shadow: none;
}
/* Nav links */
.navbar.customer-navbar .nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 0.5rem 0.9rem;
    border-radius: 0.4rem;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.navbar.customer-navbar .nav-link:hover,
.navbar.customer-navbar .nav-link.active {
    color: #198754 !important;
    background-color: rgba(25, 135, 84, 0.08);
}
/* Dropdowns */
.navbar.customer-navbar .dropdown-menu {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: #fff;
}
.navbar.customer-navbar .dropdown-item {
    font-weight: 500;
    padding: 0.6rem 1rem;
}
.navbar.customer-navbar .dropdown-item:hover, .dropdown-item.active {
    background-color: rgba(25, 135, 84, 0.08);
    color: #198754;
}
/* Offcanvas for mobile */
.navbar.customer-navbar .offcanvas {
    background-color: #fff;
}
.navbar.customer-navbar .offcanvas-header {
    background-color: #f8f9fa;
}
.navbar.customer-navbar .offcanvas .nav-link {
    color: #333 !important;
}
.navbar.customer-navbar .offcanvas .nav-link:hover {
    color: #198754 !important;
}
/* Optional subtle hover glow for active link */
.navbar.customer-navbar .nav-link.active i,
.navbar.customer-navbar .nav-link:hover i {
    color: #198754 !important;
}
/* ./NAVBAR */