@font-face {
    font-family: Vazir;
    src: url(../fonts/Vazir-FD-WOL.woff), url(../fonts/Vazir-FD-WOL.woff2), url(../fonts/Vazir-FD-WOL.eot), url(../fonts/Vazir-Bold-FD-WOL.woff), url(../fonts/Vazir-Bold-FD-WOL.woff2), url(../fonts/Vazir-Bold-FD-WOL.eot);
    font-display: swap;
}

@font-face {
    font-family: Dastnevis;
    src: url(../fonts/danstevis.otf);
    font-display: swap;
}

/* html,
body {
    overflow-x: hidden;
} */

body {
    font-family: Vazir, sans-serif !important;
}

p,
a,
input,
label,
textarea,
select,
option,
button {
    font-family: Vazir, sans-serif !important;
    font-size: 13px;
}

th {
    font-weight: 700;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong {
    color: #5d5d5d;
    font-weight: 900;
}

hr {
    background-color: #EDEAFF !important;
    height: 1px !important;
    margin: var(--mk-spacing-large) 0 !important;
    border: none;
}

ul {
    list-style: none;
}

ol,
ul {
    margin-bottom: 0;
}

table,
th,
td {
    border-color: #ffffff50 !important;
}

a {
    color: #8A40FF;
    text-decoration: none !important;
    outline: 0 !important;
    transition: color var(--mk-transition-speed) var(--mk-transition-ease);
}

a:hover {
    transition: all 300ms;
    color: var(--mk-secondary-color);
}

address {
    color: #c2b9b8;
}

p {
    margin-bottom: 0 !important;
    word-wrap: break-word;
}

a i {
    transition: all 300ms;
}

a i:hover {
    transition: all 300ms;
}

figure {
    margin: 0;
}

form {
    position: relative;
}

button,
input,
select,
textarea {
    line-height: 1 !important;
    direction: rtl !important;
}

button[type="submit"].search-submit {
    position: absolute;
    left: 0;
    background-color: transparent !important;
    padding: 0;
    padding-left: 10px;
    padding-right: 10px;
}

.sl-h-inherit {
    height: inherit;
}

body:not(.rtl) button,
body:not(.rtl) input,
body:not(.rtl) select,
body:not(.rtl) textarea {
    direction: ltr !important;
}

body:not(.rtl) button[type="submit"].search-submit {
    left: auto;
    right: 0;
    transform: rotate(90deg);
}

body:not(.rtl) .fa-phone {
    transform: scaleX(1) !important;
}

input {
    border-radius: 3px;
    color: white;
}

button {
    height: 35px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    padding: 10px 10px;
}

.r-btn:hover,
.r-outline-btn:hover {
    background-color: #3f4047 !important;
}

label {
    margin-bottom: 5px;
}

ol,
ul {
    padding: 0;
}

body .wrapper {
    backdrop-filter: blur(70px);
}

.inner-wrapper {
    width: 1280px !important;
    margin: 0 auto;
    max-width: 100%;
}

.home .inner-wrapper {
    box-shadow: 0 0 20px 4px rgba(0, 0, 0, 0.3);
}

.custom-logo {
    width: 100px;
}

.site-logo:hover img {
    width: 100px;
    transition: all 300ms;
    filter: brightness(5);
}

.marketafraz-custom-menu .menu {
    margin: 0;
    list-style: none;
    display: flex;
    gap: 10px;
}

.marketafraz-custom-menu .menu li {
    position: relative !important;
    display: inline-flex !important;
    align-items: center;
}

.marketafraz-custom-menu .menu li a {
    display: inline-flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.marketafraz-custom-menu .menu li.menu-item-has-children>a::after {
    float: left;
    border: none;
    content: "\25bc";
    font-size: small;
    margin-right: 5px;
}

.marketafraz-custom-menu .menu li ul.sub-menu li {
    width: 100%;
    border-bottom: 2px solid #eeeeee3f;
    border-radius: 5px;
}

.marketafraz-custom-menu .menu li ul.sub-menu li:last-child {
    border-bottom: 0px;
}

.marketafraz-custom-menu .menu li.menu-item-has-children ul.sub-menu li.menu-item-has-children>a::after {
    border: none;
    content: "\25bc";
    font-size: small;
    transform: rotate(-90deg);
}

html[dir="rtl"] .marketafraz-custom-menu .menu li.menu-item-has-children ul.sub-menu li.menu-item-has-children>a::after {
    transform: rotate(90deg);
}

.marketafraz-custom-menu .menu li ul.sub-menu li a {
    width: 100%;
    display: inline-block;
    padding: 10px 20px;
}

.marketafraz-custom-menu .menu li>ul.sub-menu {
    transition: all 300ms;
    position: absolute;
    inset-inline: -50%;
    top: 100%;
    visibility: hidden;
    opacity: 0;
    margin: 0;
    min-width: 150px;
    border-radius: 10px;
    z-index: 999;
}

.marketafraz-custom-menu .menu li ul.sub-menu li ul.sub-menu {
    inset-inline-start: 102%;
    top: 0%;
    transform: (0%);
}

.marketafraz-custom-menu .menu li:hover>ul.sub-menu {
    transition: all 300ms;
    visibility: visible;
    opacity: 1;
}

.marketafraz-custom-menu .menu ul.sub-menu li {
    display: block;
    border: 3px solid #ffffffd1;
    box-shadow: 0 0 10px lavender;
}

.mobile-menu {
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    right: -100%;
    transform: translateX(0px);
    overflow-x: hidden;
    transition: 0.5s;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    z-index: 99999;
}

/* The content of the menu */

.mobile-menu .close-btn {
    position: relative;
    top: 0;
    right: 0;
    font-size: 36px;
    width: fit-content;
    margin-bottom: 1.5rem;
    background-color: rgb(201, 20, 20);
    color: white;
    align-self: center;
}

.mobile-menu ul.menu {
    margin: 0;
}

.mobile-menu ul {
    list-style-type: none;
    padding: 0;
}

.mobile-menu li {
    position: relative;
    background-color: #f0f0f0;
    border-bottom: 1px solid #ddd;
    text-align: start;
}

.mobile-menu li:first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.mobile-menu li:last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border-bottom: none;
}

.mobile-menu li:has(ul)::after {
    content: "\25bc";
    position: absolute;
    inset-inline-end: 5%;
    top: 0;
    transform: translateY(50%);
}

.mobile-menu ul ul {
    display: none;
    padding-left: 15px;
}

.mobile-menu a {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
}

.mobile-menu a:hover {
    background-color: #ddd;
}

.mobile-menu li.active>ul {
    display: block;
}

.marketafraz-mobile-menu-container .open-btn {
    font-size: 30px;
    cursor: pointer;
}

.marketafraz-shadow {
    transition: box-shadow 300ms;
    box-shadow: 0 0 10px #bababa;
}

.marketafraz-shadow:hover {
    transition: box-shadow 300ms;
    box-shadow: 0 0 30px #9a9a9a;
}

.widget_marketafraz_post_widget ul li img {
    width: inherit;
}

.widget_marketafraz_post_widget ul li a {
    height: 100%;
    color: inherit;
}

.after-border {
    display: inline-block;
    border-bottom: 7px solid #ddd;
}

.post-thumbnail .attachment-post-thumbnail {
    width: 100%;
}

.attachment-post-thumbnail {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.right-sidebar,
.left-sidebar {
    height: fit-content;
}

.video-box {
    position: relative;
}

.video-box span {
    background-color: #29292977;
    color: #fff;
    position: absolute;
    padding: 10px;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 5px;
}

.video-box::after {
    content: "";
    background-image: url("../images/video-play-icon.png");
    background-size: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    transform: translate(-50%, -50%);
}

.separate-containers .site-main {
    margin-right: 0 !important;
}

form.woocommerce-product-search {
    display: flex;
}

.widget-area.sidebar {
    width: 100% !important;
}

.separate-containers .inside-sidebar {
    border-radius: 10px;
    margin-top: 20px;
}

.sidebar .widget {
    background-color: transparent !important;
}

.comments-area {
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.one-container .container,
.separate-containers .paging-navigation,
.inside-page-header {
    border-radius: 10px;
}

textarea#comment {
    margin-bottom: 10px;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
    border-radius: 10px !important;
}

input.submit,
input[type=submit] {
    transition: filter 300ms;
    line-height: 1;
}

input.submit:hover,
input[type=submit]:hover {
    transition: filter 300ms;
    filter: brightness(0.7);
}

.cat-links {
    margin-left: 2%;
}

.comment-form-rating {
    margin-top: 2%;
    margin-bottom: 2%;
}

aside footer {
    color: #c2b9b8;
}

footer .footer-title {
    border-bottom: 3px solid #595959;
    margin-bottom: 1.5rem !important;
    font-size: x-large;
}

footer p {
    color: #c2b9b8;
}

.footer-absolute,
.footer-absolute p {
    color: #595959 !important;
}

.wp-block-social-links .wp-social-link svg {
    width: 18px;
    height: 18px;
}

body a.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0073aa;
    color: white;
    padding: 15px;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 25px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

body .scroll-to-top:hover {
    background-color: #005177;
}

.word-break-all {
    word-break: break-all;
}

.white-space-nowrap {
    white-space: nowrap;
}

.width-min-content {
    width: min-content;
}

.title-border-grey {
    border-bottom: 3px solid #eeeeee;
}






/**
 * Woocommerce
 * Header cart
 */
/* box cart */
#cart-preview-container {
    transition: all 300ms;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    margin: auto;
    border-radius: 10px;
    border: 3px solid #e4e4e4d1;
    z-index: 999;
}

.cart-wrapper {
    position: relative;
}

.cart-icon {
    position: relative;
}

.cart-count {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    inset-inline-end: -30%;
    border-radius: 50px;
    width: 25px;
    height: 25px;
    padding: 5px;
    bottom: 50%;
    font-size: 12px;
    color: white;
}

.cart-wrapper:hover #cart-preview-container {
    transition: all 300ms;
    opacity: 1;
    visibility: visible;
}

.cart-preview {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 10px;
    backdrop-filter: blur(25px);
}

.mkz-minicart-item-title {
    color: #2E2E2E;
}

.cart-buttons {
    backdrop-filter: blur(25px);
}

.cart-item {
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.cart-item a {
    text-decoration: none;
    color: #333;
}

.cart-item img {
    width: 80px;
    height: auto;
    border-radius: 10px;
}

.cart-item-price {
    font-weight: bold;
    margin-top: 5px;
}

#cart-spinner {
    width: 20px;
    height: 20px;
    margin-inline-end: 12px;
    border: 4px solid var(--mk-background-secondary);
    border-top: 4px solid var(--mk-accent-color);
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.site-header-cart {
    position: relative;
    margin: 0;
    padding: 0;
}

.site-header-cart .cart-contents {
    text-decoration: none;
}

.site-header-cart .widget_shopping_cart {
    display: none;
}

.site-header-cart .product_list_widget {
    margin: 0;
    padding: 0;
}

/* Account Dropdown */
.header-account {
    position: relative;
    display: flex;
}

.header-account a {
    white-space: nowrap;
}

.header-account .woocommerce-account-drop-down {
    transition: all 300ms;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    padding: 15px;
    top: 100%;
    border-radius: 10px;
    background-size: cover;
    border: 3px solid #e2e2e2d1;
    box-shadow: 0 0 10px lavender;
    z-index: 999;
}

.header-account:hover .woocommerce-account-drop-down {
    transition: all 300ms;
    opacity: 1;
    visibility: visible;
}

.header-account .woocommerce-account-drop-down .woocommerce-MyAccount-navigation {
    width: max-content;
}

.woocommerce-account-drop-down .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 10px !important;
}

.woocommerce-account-drop-down .woocommerce-MyAccount-navigation ul li {
    border-bottom: 2px solid #ffffff27;
    padding-top: 5px;
    padding-bottom: 5px;
}

/* # woocommerce */












/* تنظیمات پایه */
body {
    background-color: var(--mk-background-color);
    color: var(--mk-text-color);
    font-family: var(--mk-font-family-primary);
    font-size: var(--mk-font-size-base);
    line-height: 1.6;
}

/* عناوین */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--mk-text-color);
    margin-block-start: 0;
}

h1,
h1 a,
h1 span {
    font-size: var(--mk-font-size-h1);
}

h2,
h2 a,
h2 span {
    font-size: var(--mk-font-size-h2);
}

h3,
h3 a,
h3 span {
    font-size: var(--mk-font-size-h3);
}

h4,
h4 a,
h4 span {
    font-size: var(--mk-font-size-h4);
}

h5,
h5 a,
h5 span {
    font-size: var(--mk-font-size-h5);
}

h6,
h6 a,
h6 span {
    font-size: var(--mk-font-size-h6);
}

/* پاراگراف‌ها */
p {
    margin-top: 0;
    margin-bottom: 0;
    color: var(--mk-text-muted);
}

li {
    margin-bottom: var(--mk-spacing-small);
    color: var(--mk-text-muted);
}

/* بلوک‌های نقل قول */
blockquote {
    border-left: 4px solid var(--mk-primary-color);
    margin: var(--mk-spacing-base) 0;
    padding-left: var(--mk-spacing-base);
    font-style: italic;
    color: var(--mk-text-muted);
}

/* جداول */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--mk-spacing-large);
}

tr:nth-child(even) {
    background-color: var(--mk-background-secondary);
}

/* فرم‌ها */
input,
textarea,
select {
    padding: var(--mk-spacing-small);
    border-radius: var(--mk-border-radius-base);
    font-size: var(--mk-font-size-base);
    color: var(--mk-text-color);
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    background-color: var(--mk-primary-color);
    color: var(--mk-background-color);
}

button {
    padding: var(--mk-spacing-base);
    border-radius: var(--mk-border-radius-base);
    cursor: pointer;
    font-size: var(--mk-font-size-base);
    transition: background-color var(--mk-transition-speed) var(--mk-transition-ease);
}

button:hover {
    background-color: var(--mk-secondary-color);
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    border: 1px solid;
    border-color: var(--mk-border-color);
    border-radius: 3px;
    line-height: 1;
    padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    border-color: var(--mk-border-color);
}

textarea:focus,
button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
    border-color: var(--mk-border-color);
    outline: none;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
    color: #666;
    border: 1px solid var(--mk-border-color);
    border-radius: 3px;
    padding: var(--mk-spacing-small);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
    color: #111;
}

select {
    border: 1px solid var(--mk-border-color);
}

textarea {
    width: 100%;
}

/* تصاویر */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--mk-border-radius-base);
}

/* پیام‌های هشدار */
.alert {
    background-color: var(--mk-accent-color);
    color: var(--mk-text-color);
    padding: var(--mk-spacing-base);
    border-radius: var(--mk-border-radius-base);
    margin-bottom: var(--mk-spacing-large);
    text-align: center;
}

.mk-primary-color {
    color: var(--mk-primary-color);
}

.mk-primary-bgcolor {
    background-color: var(--mk-primary-color);
}

.mk-accent-color {
    color: var(--mk-accent-color);
}

.mk-secondary-color {
    color: var(--mk-secondary-color);
}

.mk-secondary-bgcolor {
    background-color: var(--mk-secondary-color);
}

header h1,
footer p {
    margin: 0;
}

/* کد و پیش‌نمایش کد */
code {
    background-color: var(--mk-background-secondary);
    color: var(--mk-text-muted);
    padding: 2px 4px;
    border-radius: var(--mk-border-radius-small);
}

pre {
    background-color: var(--mk-background-secondary);
    color: var(--mk-text-muted);
    padding: var(--mk-spacing-base);
    border-radius: var(--mk-border-radius-base);
    overflow-x: auto;
}

.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

@media (min-width: 768px) {
    .mkz-position-sticky {
        position: sticky !important;
        top: 40px;
        height: fit-content !important;
    }
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-end {
    text-align: end;
}

.absolute {
    position: absolute;
}

.fw-bolder {
    font-weight: bolder;
}

.mkz-visibility-hidden {
    visibility: hidden;
}

.mkz-gap-12 {
    gap: 12px;
}

.mkz-scroll-x-snap {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* mkz-scroll-x-snap */
@media (max-width: 768px) {
    .mkz-scroll-x-snap {
        display: flex !important;
        gap: 16px;
        padding: 0 12px;
    }
    
    .mkz-scroll-x-snap .mkz-scroll-item {
        flex: 0 0 80%;
        scroll-snap-align: start;
    }

    /* مخفی کردن اسکرول‌بار (دلخواه) */
    .mkz-scroll-x-snap::-webkit-scrollbar {
        display: none;
    }
}

/* #mkz-scroll-x-snap */

/*
********
toggle expand-close button and lines
********
*/
.mkz-toggleable {
    position: relative;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* افکت fade در حالت بسته */
.mkz-toggleable:not(.mkz-expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, transparent, #ffffff);
    /* گرادیان محو شدن */
    pointer-events: none;
}

.mkz-toggleable.mkz-no-toggle::after {
    display: none;
}

.mkz-toggleable.mkz-expanded::after {
    display: none;
}

/* استایل کانتینر دکمه و خط‌ها */
.mkz-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

/* استایل دکمه toggle */
.mkz-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 12px;
    background-color: transparent;
    color: var(--mk-primary-color, #6600ff);
    border-radius: 50%;
    border: 1px solid var(--mk-primary-color, #6600ff);
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.mkz-toggle-btn:hover {
    background-color: var(--mk-primary-color, #6600ff);
    color: #ffffff;
    transform: scale(1.1);
}

.mkz-toggle-btn i {
    transition: transform 0.3s ease;
}

.mkz-toggle-btn.mkz-expanded {
    color: white;
    background-color: var(--mk-primary-color, #6600ff);
}

.mkz-toggle-btn.mkz-expanded i {
    transform: rotate(180deg);
}

/* استایل خط‌های کنار دکمه */
.mkz-toggle-line {
    width: 40%;
    height: 1px;
    background-color: #ddd;
}

.mkz-toggle-line.left {
    transform: translateX(10px);
}

.mkz-toggle-line.right {
    transform: translateX(-10px);
}

/* مخفی کردن کانتینر برای محتوای کوتاه */
.mkz-toggle-container.hidden {
    display: none;
}

/* #toggle expand-close button and lines */

/* mkz skeleton */
/* .mkz-skeleton-target {
    visibility: hidden;
}

.skeleton {
    background: linear-gradient(90deg, #ddd, #f5f5f5, #ddd);
    background-size: 200% 100%;
    animation: skeleton-loading 1.2s infinite linear;
    display: inline-block;
    border-radius: 10px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
} */
/* end mkz skeleton */


.mkz-loading-wrapper {
    width: 101%;
    height: 101%;
    backdrop-filter: blur(10px);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9;
}

.mkz-loading {
    text-align: center;
    margin-block-start: 13rem;
}

.mkz-loading span {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: var(--mk-primary-color);
    /* رنگ آبی مشابه دکمه */
    border-radius: 50%;
    margin: 0 4px;
    animation: mkz-loading-bounce 1.4s infinite ease-in-out;
}

.mkz-loading span:nth-child(2) {
    animation-delay: -0.32s;
}

.mkz-loading span:nth-child(3) {
    animation-delay: -0.16s;
}

@keyframes mkz-loading-bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}