@font-face {
    font-family: Vazirmatn;
    src: url("../fonts/Vazirmatn-FD-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url("../fonts/Vazirmatn-FD-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url("../fonts/Vazirmatn-FD-ExtraBold.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url("../fonts/Vazirmatn-FD-ExtraLight.woff2") format("woff2");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url("../fonts/Vazirmatn-FD-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url("../fonts/Vazirmatn-FD-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url("../fonts/Vazirmatn-FD-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url("../fonts/Vazirmatn-FD-Thin.woff2") format("woff2");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}


.disabled{
    opacity: 0.6;
    pointer-events: none;
    user-select: none;
}
body {
    font-family: Vazirmatn;
    color: var(--black);
    background: var(--background);
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}
.text-black {
    color: var(--black) !important;
}
.text-dark {
    color: var(--black) !important;
}
.btn-close{
    box-shadow: none !important;
}
.menu {
    background: white;
    padding: 12px 0px;
    position: sticky;
    top: 0px;
    z-index: 999;
    box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.1);
}

.menu .menu-links {
    align-items: center;
}

.menu .menu-links li {
    width: max-content;
    height: max-content;
}

.menu .menu-links li a {
    color: rgb(60, 60, 60);
    font-weight: 400;
    margin-left: 10px;
    font-size: 15px;
}
.breadcrumb a {
    color: #333333;
    font-weight: 600;
}
.border-color-primary {
    border-color: var(--primary) !important;
}
:root {
    --description: #656364;
    --black: #4b3b40;
    --primary: #cb7b82;
    --border: #e1e1e1;
    --background: #fcfafa;
    --bs-border-color: var(--border) !important;
}
.bg-body{
    background: var(--background) !important;
}
.btn-site {
    background: var(--primary) !important;
    color: white !important;
    padding: 10px 24px;
    font-weight: 500;
    border-radius: 8px;
}
.btn-p-site{
    padding: 10px 24px;
}
.search input {
    background: var(--background) !important;
    border: 1px solid var(--border) !important;
    padding: 8px 20px;
}
.search input::placeholder {
    font-size: 15px;
}
div:where(.swal2-container) h2:where(.swal2-title){
    font-size: 24px;
}
div:where(.swal2-container) div:where(.swal2-html-container){
    font-size: 16px;
}
.text-primary {
    color: var(--primary) !important;
}
.text-description {
    color: var(--description) !important;
}
.bg-dark{
    background: var(--black) !important;
    color: white;
}
.btn-basket-menu {
    background: var(--background) !important;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    border: 1px solid var(--border);
}
.btn-basket-menu * {
    fill: var(--black) !important;
}
.badge-basket-count {
    color: white;
    background: var(--primary);
    font-size: 14px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
}
.btn-basket-menu svg {
    width: 24px;
    height: 24px;
    scale: 1.1;
}

.search-content {
    position: absolute;
    width: 100%;
    margin-top: 8px;
    height: 300px;
    background: white;
    border: 1px solid var(--border);
    overflow-y: auto;
    border-radius: 8px;
    z-index: 1200;
}


.product-box .image-list {
    max-height: 400px;
}
.product-box .image-box img {
    height: 400px;
}
.product-box h1{
    line-height: 36px;
}
.product-box .btn-outline-secondary {
    background: white;
    --bs-btn-color: var(--black);
    --bs-btn-border-color: var(--border);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--primary);
    --bs-btn-hover-border-color: var(--border);
    --bs-btn-focus-shadow-rgb: 108, 117, 125;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--primary);
    --bs-btn-active-border-color: var(--border);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--black);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--border);
    --bs-gradient: none;
}
img.remove-white-bg {
    mix-blend-mode: multiply;
  }
.btn-outline-primary {
    background: white;
    --bs-btn-color: var(--black);
    --bs-btn-border-color: var(--border);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--primary);
    --bs-btn-hover-border-color: var(--border);
    --bs-btn-focus-shadow-rgb: 108, 117, 125;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--primary);
    --bs-btn-active-border-color: var(--border);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--black);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--border);
    --bs-gradient: none;
}
@media (max-width: 576px) {
    #payment-information form.row .col-12{
        padding-right: 0px;
        padding-left: 0px;
    }
    .steps{
        padding-left: 20px;
    }
    .container {
        width: 100%;
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }
    .breadcrumb {
        font-size: 14px;
        display: flex;
        overflow-x: auto;
        width: max-content;
    }
    .product-box .image-mobile{
        border-radius: 0px !important;
        border-right-width: 0px !important;
        border-left-width: 0px !important;
    }
    .steps .icon-box{
        width: 56px !important;
        height: 56px!important;
    }
    .steps .icon-box svg{
        scale: 0.7;
    }
    .steps span.border-line{
        margin-top: 28px !important;
        width: 34px !important;
        height: 1px;
        border-top: 2px dashed var(--black);
        opacity: 0.6;
    }
    .steps p{
        font-size: 15px;
    }
    div:where(.swal2-container) h2:where(.swal2-title){
        font-size: 20px !important;
    }
    div:where(.swal2-container) div:where(.swal2-html-container){
        font-size: 15px !important;
    }
}
@media (max-width: 992px) {
    .product-taps{
        background: white;
        padding-top: 16px;
        padding-bottom: 16px;

    }
    .product-box .image-mobile{
        border: 1px solid var(--border);
        border-radius: 8px;
    }
    .form-box{
        background: var(--background) !important;
        border-width: 0px !important;
        height: 100vh;
    }
    .btn-get-product{
        position: fixed;
        bottom: 0px;
        background: white;
        padding-top: 16px;
        padding-bottom: 16px;
        z-index: 998;
        box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.1);
        left: 0px;
        right: 0px;
        padding-right: 1.5rem;
        padding-left: 1.5rem;
        border-bottom: 1px solid var(--border);
    }

}
.swiper-pagination .swiper-pagination-bullet{
    background: white;
    border: 1px solid var(--black);
    opacity:1;
}
.swiper-pagination .swiper-pagination-bullet-active{
    background: var(--primary);
    border: 0px solid var(--black);
    opacity:1;
    width: 16px;
    border-radius: 16px;
    box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.1);
}
/* برای کل صفحه */
body::-webkit-scrollbar {
    width: 4px;
  }

  body::-webkit-scrollbar-track {
    background: transparent;
  }

  body::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: 10px;
    transition: background-color 0.3s;
  }

  body::-webkit-scrollbar-thumb:hover {
    background-color: #555;
  }

  /* برای فایرفاکس */
  body {
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
  }
.steps .icon-box{
    width: 70px;
    height: 70px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}
.steps a{
    position: relative;
}
.steps p{
    color: var(--black);
    position: absolute;
    width: max-content;
    left: 50%;
    right: 50%;
    top: 118%;
    font-weight: 500;
    margin: auto;
    transform: translateX(50%) !important;
}
.steps span.border-line{
    margin-top: 35px;
    width: 50px;
    height: 1px;
    border-top: 2px dashed var(--black);
    opacity: 0.6;
}
.steps a:not(.step-active) {
    opacity: 0.7 !important;
}
.step-active .cls-2{fill:var(--primary)}
.step-active .icon-box{
    background: white;
    border: 2px solid var(--border);
    box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.05);
}
.form-control:focus , .form-select:focus{
    border-color: var(--primary);
}
.form-control , .form-select{
    box-shadow: none !important;
    border-color: var(--border);
}
.form-box{
    max-width: 500px;
    border-radius: 12px;
}
.form-box .input-number-box input{
    padding: 10px 20px;
}
.form-box ::placeholder{
    font-size: 15px;
}
.form-control , .form-select{
    background-color: var(--background);
}
#step-2 .btn-outline-primary{
    --bs-btn-color: var(--black);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--primary);
    --bs-btn-hover-border-color: var(--primary);
    --bs-btn-focus-shadow-rgb: 13,110,253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--primary);
    --bs-btn-active-border-color: var(--primary);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--primary);
    --bs-btn-disabled-bg:  #fff;
    --bs-btn-disabled-border-color: var(--primary);
    --bs-gradient: none;
}
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}
.form-check-input:focus {
    background-color: var(--primary);
    border-color: var(--primary) ;
    box-shadow: 0 0 0 .25rem var(--background);
}
.panel .sidebar-box{
    max-width: 300px;
}
.panel .sidebar{
    padding: 20px 20px;
    border-radius: 12px;
    background: white;
    border: 1px solid var(--border);
    top: 140px;
}
.panel .sidebar svg{
    width: 20px;
    height: 20px;
}
.panel .profile .user-icon{
    width: 50px;
    height: 50px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.panel .sidebar .active-link{
    background: var(--background);
    font-weight: bold;
    padding: 8px 12px !important;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.custom-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
}

.custom-pagination a,
.custom-pagination span {
    padding: 6px 12px;
    border: 1px solid var(--border);
    color: var(--black);
    text-decoration: none;
    border-radius: 4px;
    min-width: 36px;
    text-align: center;
    user-select: none;
    transition: background-color 0.3s ease;
}

.custom-pagination a:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.custom-pagination .current {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    pointer-events: none;
    font-weight: bold;
}

.custom-pagination .disabled {
    color: #999;
    border-color: #ddd;
    pointer-events: none;
}
.panel .card-site-bg{
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 0.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

@media (max-width: 480px) {
    .custom-pagination {
        gap: 4px;
        padding: 8px 0;
    }
    .custom-pagination a,
    .custom-pagination span {
        padding: 5px 8px;
        min-width: 28px;
        font-size: 14px;
    }
}
@media (max-width: 576px){
    .article-container .row > div{
        padding-left: 0px;
        padding-right: 0px;
    }
    .panel .card-site-bg{
        border-width: 0px;
        background: none;
        border-radius: 0px;
        padding: 0 !important;
    }


}
@media (max-width: 1200px) {
    .panel .sidebar-box {
        max-width: 100%;
      }
}
.bottom-mobile-sidebar{
    position: fixed;
    bottom: 0px;
    background: white;
    z-index: 998;
    box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.05);
    inset: 0px;
    top: unset;
}
.bottom-mobile-sidebar a{
    font-weight: 500;
    font-size: 12px;
}
.bottom-mobile-sidebar a.active-link{
    font-weight: bold;
    color: var(--primary) !important;
}
.bottom-mobile-sidebar-space{
    padding-bottom: 76px;
}
.footer {
    background-color: var(--background);
    border-top: 1px solid var(--border);
  }

  .footer .text-description {
    color: var(--description);
  }

  .footer a:hover {
    color: var(--primary) !important;
  }

.panel-mobile-dashboard .header{
    background-color: color-mix(in srgb, var(--primary) 20%, white);
    height: 120px;
    padding-bottom: 70px;
}
.panel-mobile-dashboard .profile{

    margin-top: -70px;
    background: white;
    border: 1px solid var(--border);
    padding: 20px 20px;
}


/* عنوان مقاله */
.article-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--black);
    margin-bottom: 10px;
}

/* اطلاعات نویسنده و تاریخ */
.article-meta {
    font-size: 0.9rem;
    color: var(--description);
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* تصویر شاخص */
.article-image {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}


/* بخش برچسب‌ها */
.article-tags {
    margin-top: 30px;
}

.article-tags span {
    display: inline-block;
    background-color: #f6e7e9;
    color: var(--primary);
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 8px;
    margin: 0 6px 6px 0;
}

/* مطالب مرتبط */
.related-articles {
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

.related-articles h5 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 16px;
    font-weight: bold;
}

.related-articles ul {
    list-style: none;
    padding-right: 0;
}

.related-articles li {
    margin-bottom: 10px;
}

.related-articles a {
    text-decoration: none;
    color: var(--black);
    transition: color 0.2s;
}

.related-articles a:hover {
    color: var(--primary);
}

.description li {
    list-style: unset;
}

.description h2 {
    font-size: 1.875rem;
    /* حدود 30px */
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.875rem;
}

.description h3 {
    font-size: 1.5rem;
    /* حدود 24px */
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.75rem;
}

.description h4 {
    font-size: 1.25rem;
    /* حدود 20px */
    font-weight: 500;
    color: var(--black);
    margin-bottom: 0.625rem;
}

.description h5 {
    font-size: 1.125rem;
    /* حدود 18px */
    font-weight: 500;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.description h6 {
    font-size: 1rem;
    /* حدود 16px */
    font-weight: 500;
    color: var(--black);
    margin-bottom: 0.4rem;
}
.description a {
    color: var(--primary);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s ease;
}
.description p,.description li,.description span{
    line-height: 2;
    color: var(--black);
}
.description img {
    max-width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
    height: unset !important;
    display: block;
    margin: 1.5rem auto;
    border-radius: 8px;
}
.nav-tabs .nav-item button{
    color: var(--description) !important;
    font-weight: 400;
    padding: 0px;
    background: none;
    border: 0px !important;
    padding-bottom: 10px;
    margin-left: 16px;
    font-size: 14px;
}
.nav-tabs .nav-item .active{
    color: var(--black) !important;
    background: none;
    font-weight: 600;
    border: 0px;
    border-radius: 0px;
    border-bottom: 3px solid var(--primary) !important;
}
input[type='radio'].recommended + label{
    cursor: pointer;
}
input[type='radio'].recommended{
    width: 0px;
    height: 0px;
    position: absolute;
}

input[type='radio'].recommended:checked + label .icon-bold{
    display: flex !important;
}
input[type='radio'].recommended:checked + label .icon-lighter{
    display: none !important;
}
input[type='radio'].recommended:checked + label{
    background: var(--primary) !important;
    color: white;
}
.rating {
    direction: rtl;
    unicode-bidi: bidi-override;
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 2rem;
  }

  .rating input {
    display: none;
  }

  .rating label{
    cursor: pointer;
    color: #ccc;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    transition: color 0.2s ease;
  }

  .rating input:checked ~ label,
  .rating label:hover,
  .rating label:hover ~ label {
    color: var(--primary) !important;
  }

  .rating label::before {
    font-size: 2rem;
    content: "★";
    height: 36px;
  }
  @keyframes opacity-modal {
    0% {
       opacity: 0;
    }

    100% {
        opacity: 1;
    }
}
.drop-box {
    position: absolute;
    top: 100%;
    margin-top: 6px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    width: 360px;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.05);
    padding: 16px 20px;
  }
  .drop-box-back{
    display: none;
  }
  /* وقتی قراره نمایش داده بشه */
  .drop-box.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  @media (max-width: 992px) {
    .drop-box-back{
        display: block;
        background: rgba(0, 0, 0, 0.4);
        position: fixed;
        z-index: 998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease, transform 0.4s ease;
        inset: 0;
        cursor: pointer;
      }
      .drop-box-back.show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
      }
    .drop-box{
        top: unset !important;
        inset: 0px;
        position: fixed;
        width: auto;
        z-index: 1000;
    }
}

/* استایل برای باکس لودینگ */
.loading-product-box {
    width: 100%;
    height: 200px; /* اندازه باکس */
    background: rgba(0, 0, 0, 0.376); /* دوباره به سیاه برمی‌گردد */
    border-radius: 8px;
    animation: colorChange 2s ease-in-out infinite; /* انیمیشن تغییر رنگ */
}

.contact-us-information .box{
    border: 1px solid var(--border) ;
    border-radius: 8px;
    background: white;
    height: 76px;
    padding-right: 16px;
    padding-left: 15px;
  }
  .contact-us-information .box .lable-title{
    font-size: 14px !important;
    font-weight: 400;
    padding-bottom: 2px !important;
    color: var(--description)
  }
  .contact-us-information .box .title{
    font-size: 15px !important;
    font-weight: 600;
    color: var(--black)
  }
  .phone-icon-box {
    background: var(--background);
    width: 50px;
    height: 50px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
  }
/* انیمیشن برای تغییر رنگ پس‌زمینه */
@keyframes colorChange {
    0% {
        background: rgba(0, 0, 0, 0.376); /* دوباره به سیاه برمی‌گردد */
    }
    50% {
        background: rgba(0, 0, 0, 0.676); /* دوباره به سیاه برمی‌گردد */
    }
    100% {
        background: rgba(0, 0, 0, 0.376); /* دوباره به سیاه برمی‌گردد */
    }
}
@media(max-width: 576px) {
    .product-item {
        background: none !important;
        border-width: 0px !important;
        padding: 0px;
    }

    .product-item * {
        font-size: 14px;
    }
    .product-item .badge{
        font-size: 12px;
    }
    .product-item img {
        border: 1px solid var(--border);
    }

}

.product-item {
    border: 1px solid #ddd;
    padding: 10px;
}

.product-item img {
    max-width: 100%;
    height: auto;
}

.product-item h3 {
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* تعداد خطوط مجاز */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
