:root {
    --khorram-navy: #071f43;
    --khorram-blue: #1685e5;
    --khorram-red: #e2252d;
    --khorram-light: #f5f8fc;
    --khorram-text: #172033;
    --khorram-muted: #65748b;
    --khorram-radius: 22px;
    --khorram-shadow: 0 18px 45px rgba(7, 31, 67, .12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    direction: rtl;
    font-family: Tahoma, Arial, sans-serif;
    color: var(--khorram-text);
    background: #ffffff;
    line-height: 1.9;
}

a {
    color: var(--khorram-blue);
    text-decoration: none;
}

a:hover {
    color: var(--khorram-red);
}

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

.khorram-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(7, 31, 67, .08);
}

.site-header__inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-branding img {
    max-height: 66px;
    width: auto;
}

.site-title {
    margin: 0;
    color: var(--khorram-navy);
    font-size: 20px;
    font-weight: 900;
}

.site-description {
    margin: 0;
    color: var(--khorram-muted);
    font-size: 13px;
}

.primary-menu ul,
ul.primary-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.primary-menu a {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 13px;
    color: var(--khorram-navy);
    font-weight: 700;
}

.primary-menu a:hover {
    background: rgba(22, 133, 229, .1);
    color: var(--khorram-blue);
}

.site-main {
    min-height: 60vh;
}

.hero-section {
    padding: 78px 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(22,133,229,.18), transparent 34%),
        linear-gradient(135deg, #f7fbff 0%, #ffffff 54%, #f8fbff 100%);
}

.hero-card {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 34px;
    padding: 42px;
    border-radius: 32px;
    background: #ffffff;
    box-shadow: var(--khorram-shadow);
    border: 1px solid rgba(22,133,229,.12);
}

.hero-card h1 {
    margin: 0 0 18px;
    color: var(--khorram-navy);
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.35;
    font-weight: 950;
}

.hero-card p {
    margin: 0 0 24px;
    color: var(--khorram-muted);
    font-size: 17px;
}

.khorram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 22px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--khorram-red), #b90f18);
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(226,37,45,.25);
}

.khorram-btn:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.content-area {
    padding: 48px 0;
}

.post-card,
.page-card {
    padding: 32px;
    border-radius: var(--khorram-radius);
    background: #ffffff;
    box-shadow: var(--khorram-shadow);
    border: 1px solid rgba(7,31,67,.08);
    margin-bottom: 24px;
}

.entry-title {
    color: var(--khorram-navy);
    margin-top: 0;
}

.site-footer {
    background: var(--khorram-navy);
    color: #ffffff;
    padding: 32px 0;
    margin-top: 48px;
}

.site-footer a {
    color: #ffffff;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .site-header__inner,
    .site-footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .primary-menu ul,
    ul.primary-menu {
        flex-wrap: wrap;
    }

    .hero-card {
        grid-template-columns: 1fr;
        padding: 26px;
    }
}

/* ================================
   Single Blog Post - Khorrammachin
   ساختار اختصاصی صفحه تک نوشته راست‌چین
================================ */
.khorram-single-post-page {
    background:
        radial-gradient(circle at 92% 5%, rgba(22, 133, 229, .12), transparent 32%),
        linear-gradient(180deg, #f7fbff 0%, #ffffff 42%, #f7fbff 100%);
}

.khorram-single-hero {
    position: relative;
    padding: 68px 0 46px;
    overflow: hidden;
}

.khorram-single-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(7,31,67,.07), rgba(22,133,229,.03)),
        radial-gradient(circle at 15% 12%, rgba(226,37,45,.09), transparent 28%);
    pointer-events: none;
}

.khorram-single-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
    align-items: center;
    gap: 36px;
}

.khorram-single-hero__content {
    padding: 42px;
    border-radius: 34px;
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(22, 133, 229, .12);
    box-shadow: var(--khorram-shadow);
    backdrop-filter: blur(12px);
}

.khorram-post-category-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.khorram-post-category {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 15px;
    border-radius: 999px;
    background: rgba(22, 133, 229, .10);
    color: var(--khorram-blue);
    font-size: 13px;
    font-weight: 900;
    border: 1px solid rgba(22, 133, 229, .16);
}

.khorram-post-category:hover {
    background: var(--khorram-blue);
    color: #ffffff;
}

.khorram-single-title {
    margin: 0 0 18px;
    color: var(--khorram-navy);
    font-size: clamp(32px, 4.2vw, 58px);
    line-height: 1.34;
    font-weight: 950;
    letter-spacing: -.8px;
}

.khorram-single-excerpt {
    margin: 0 0 26px;
    color: var(--khorram-muted);
    font-size: 17px;
    line-height: 2;
}

.khorram-single-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: #50627d;
    font-size: 14px;
    font-weight: 800;
}

.khorram-meta-item,
.khorram-meta-author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.khorram-meta-avatar,
.khorram-author-avatar {
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(7, 31, 67, .16);
}

.khorram-meta-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--khorram-red);
    opacity: .78;
}

.khorram-single-hero__image {
    position: relative;
    margin: 0;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 26px 70px rgba(7,31,67,.18);
    border: 1px solid rgba(255,255,255,.82);
    min-height: 360px;
    background: var(--khorram-navy);
}

.khorram-single-hero__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(7,31,67,.24));
    pointer-events: none;
}

.khorram-single-hero__image img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    display: block;
}

.khorram-single-body-section {
    padding: 26px 0 74px;
}

.khorram-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.khorram-single-main-card {
    min-width: 0;
    padding: clamp(26px, 4vw, 48px);
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid rgba(7, 31, 67, .08);
    box-shadow: var(--khorram-shadow);
}

.khorram-single-content {
    color: var(--khorram-text);
    font-size: 17px;
    line-height: 2.18;
}

.khorram-single-content > *:first-child {
    margin-top: 0;
}

.khorram-single-content h2,
.khorram-single-content h3,
.khorram-single-content h4 {
    color: var(--khorram-navy);
    line-height: 1.55;
    margin: 34px 0 14px;
    font-weight: 950;
}

.khorram-single-content h2 {
    font-size: clamp(24px, 3vw, 34px);
    padding-right: 16px;
    border-right: 5px solid var(--khorram-red);
}

.khorram-single-content h3 {
    font-size: 24px;
}

.khorram-single-content p {
    margin: 0 0 20px;
}

.khorram-single-content a {
    font-weight: 900;
    border-bottom: 1px dashed rgba(22, 133, 229, .45);
}

.khorram-single-content blockquote {
    margin: 30px 0;
    padding: 24px 28px;
    border-radius: 24px;
    border-right: 6px solid var(--khorram-blue);
    background: linear-gradient(135deg, rgba(22,133,229,.08), rgba(7,31,67,.035));
    color: var(--khorram-navy);
    font-size: 18px;
    font-weight: 800;
}

.khorram-single-content ul,
.khorram-single-content ol {
    padding-right: 24px;
    margin: 0 0 24px;
}

.khorram-single-content li {
    margin-bottom: 8px;
}

.khorram-single-content img {
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(7,31,67,.13);
}

.khorram-single-content table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(7,31,67,.08);
}

.khorram-single-content th,
.khorram-single-content td {
    padding: 14px 16px;
    border: 1px solid rgba(7,31,67,.08);
}

.khorram-single-content th {
    background: var(--khorram-navy);
    color: #ffffff;
}

.khorram-single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 112px;
}

.khorram-sidebar-card {
    padding: 24px;
    border-radius: 26px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(7,31,67,.08);
    box-shadow: 0 16px 42px rgba(7,31,67,.10);
}

.khorram-author-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.khorram-card-label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--khorram-red);
    font-size: 12px;
    font-weight: 950;
}

.khorram-author-card h3 {
    margin: 0 0 8px;
    color: var(--khorram-navy);
    font-size: 18px;
    font-weight: 950;
}

.khorram-author-card p {
    margin: 0;
    color: var(--khorram-muted);
    font-size: 13px;
    line-height: 1.9;
}

.khorram-share-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.khorram-share-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 14px;
    background: var(--khorram-light);
    color: var(--khorram-navy);
    font-size: 13px;
    font-weight: 950;
}

.khorram-share-links a:hover {
    background: var(--khorram-red);
    color: #ffffff;
}

.khorram-latest-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.khorram-latest-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(7,31,67,.08);
}

.khorram-latest-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.khorram-latest-item span {
    color: var(--khorram-navy);
    font-size: 14px;
    font-weight: 950;
    line-height: 1.75;
}

.khorram-latest-item small {
    color: var(--khorram-muted);
    font-size: 12px;
}

.khorram-tags-box {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
    padding-top: 26px;
    border-top: 1px solid rgba(7,31,67,.08);
    color: var(--khorram-navy);
    font-weight: 950;
}

.khorram-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.khorram-tag-list a {
    display: inline-flex;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(22,133,229,.08);
    color: var(--khorram-blue);
    font-size: 13px;
    font-weight: 900;
}

.khorram-tag-list a:hover {
    background: var(--khorram-blue);
    color: #ffffff;
}

.khorram-post-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.khorram-nav-post {
    min-height: 104px;
    padding: 22px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid rgba(7,31,67,.08);
    box-shadow: 0 14px 34px rgba(7,31,67,.08);
}

.khorram-nav-post span {
    display: block;
    margin-bottom: 8px;
    color: var(--khorram-muted);
    font-size: 13px;
    font-weight: 900;
}

.khorram-nav-post a {
    color: var(--khorram-navy);
    font-size: 16px;
    font-weight: 950;
    line-height: 1.8;
}

.khorram-nav-next {
    text-align: left;
}

.khorram-related-posts {
    margin-top: 42px;
}

.khorram-section-heading {
    margin-bottom: 18px;
}

.khorram-section-heading span {
    color: var(--khorram-red);
    font-size: 13px;
    font-weight: 950;
}

.khorram-section-heading h2 {
    margin: 6px 0 0;
    color: var(--khorram-navy);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 950;
}

.khorram-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.khorram-related-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(7,31,67,.08);
    box-shadow: 0 14px 34px rgba(7,31,67,.08);
}

.khorram-related-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 18px;
    overflow: hidden;
    background: var(--khorram-light);
}

.khorram-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.khorram-related-card strong {
    color: var(--khorram-navy);
    font-size: 16px;
    line-height: 1.85;
}

.khorram-related-card small {
    color: var(--khorram-muted);
    font-size: 12px;
    font-weight: 800;
}

.khorram-page-links {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(7,31,67,.08);
    font-weight: 950;
}

@media (max-width: 1024px) {
    .khorram-single-hero__inner,
    .khorram-single-layout {
        grid-template-columns: 1fr;
    }

    .khorram-single-sidebar {
        position: static;
        order: 2;
    }

    .khorram-single-main-card {
        order: 1;
    }
}

@media (max-width: 768px) {
    .khorram-single-hero {
        padding: 42px 0 28px;
    }

    .khorram-single-hero__content {
        padding: 26px;
        border-radius: 26px;
    }

    .khorram-single-hero__image,
    .khorram-single-hero__image img {
        min-height: 250px;
    }

    .khorram-single-layout,
    .khorram-related-grid,
    .khorram-post-navigation {
        grid-template-columns: 1fr;
    }

    .khorram-share-links {
        grid-template-columns: 1fr;
    }

    .khorram-nav-next {
        text-align: right;
    }

    .khorram-single-content {
        font-size: 16px;
    }
}


/* ================================
   Single Post v1.0.9 changes
   حذف کارت نویسنده از بدنه، انتقال اشتراک‌گذاری زیر نام نویسنده، تمام‌عرض شدن محتوا
================================ */
.khorram-hero-share {
    width: 100%;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(7, 31, 67, .08);
}

.khorram-hero-share__label {
    display: block;
    margin-bottom: 10px;
    color: var(--khorram-red);
    font-size: 12px;
    font-weight: 950;
}

.khorram-share-links--hero {
    max-width: 520px;
}

.khorram-single-layout {
    display: block;
}

.khorram-single-main-card {
    width: 100%;
}

.khorram-single-content {
    width: 100%;
}

@media (max-width: 768px) {
    .khorram-share-links--hero {
        grid-template-columns: 1fr;
        max-width: none;
    }
}

/* Khorrammachin Single Post v1.0.11 */
.khm-single-page {
    direction: rtl;
    background:
        radial-gradient(circle at 12% 8%, rgba(211, 36, 51, .12), transparent 24%),
        radial-gradient(circle at 88% 4%, rgba(22, 133, 229, .20), transparent 30%),
        linear-gradient(135deg, #f7fbff 0%, #eef7ff 45%, #ffffff 100%);
    color: #071f43;
    overflow: hidden;
}

.khm-container {
    width: min(1180px, calc(100% - 36px));
    margin-inline: auto;
}

.khm-single-hero {
    position: relative;
    padding: clamp(34px, 5vw, 82px) 0 38px;
    isolation: isolate;
    overflow: hidden;
}

.khm-single-hero-bg {
    position: absolute;
    inset: -80px;
    z-index: -2;
    background-image:
        linear-gradient(135deg, rgba(247, 251, 255, .82), rgba(238, 247, 255, .86)),
        var(--khm-hero-bg);
    background-size: cover;
    background-position: center;
    filter: blur(28px);
    opacity: .44;
    transform: scale(1.08);
}

.khm-single-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 16% 12%, rgba(211, 36, 51, .13), transparent 27%),
        radial-gradient(circle at 80% 20%, rgba(22, 133, 229, .18), transparent 28%),
        linear-gradient(90deg, rgba(255,255,255,.48), rgba(255,255,255,.08));
    pointer-events: none;
}

.khm-single-hero-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, .94fr);
    align-items: stretch;
    gap: clamp(24px, 4vw, 54px);
}

.khm-single-featured-wrap,
.khm-single-title-card {
    min-height: clamp(280px, 34vw, 420px);
    height: clamp(280px, 34vw, 420px);
}

.khm-single-featured-wrap {
    overflow: hidden;
    border-radius: 34px;
    box-shadow: 0 26px 60px rgba(7, 31, 67, .16);
    border: 1px solid rgba(7, 31, 67, .10);
    background: rgba(255,255,255,.58);
}

.khm-single-featured-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.khm-single-featured-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #071f43, #1685e5);
    color: #fff;
    font-weight: 900;
    font-size: 24px;
}

.khm-single-title-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 4vw, 48px);
    border-radius: 34px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 26px 60px rgba(7, 31, 67, .13);
    border: 1px solid rgba(255,255,255,.78);
    backdrop-filter: blur(14px);
}

.khm-single-category {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(22, 133, 229, .12);
    color: #1685e5;
    border: 1px solid rgba(22, 133, 229, .24);
    font-weight: 900;
    text-decoration: none;
    margin-bottom: 18px;
}

.khm-single-title {
    margin: 0 0 24px;
    color: #071f43;
    font-size: clamp(30px, 4vw, 56px);
    line-height: 1.35;
    font-weight: 950;
    letter-spacing: -1.4px;
}

.khm-single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    color: #53647f;
    font-weight: 800;
    font-size: 14px;
}

.khm-single-meta > span:not(:first-child)::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-inline-end: 12px;
    border-radius: 50%;
    background: #d32433;
    vertical-align: middle;
}

.khm-meta-author {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.khm-meta-author img {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(7, 31, 67, .18);
}

.khm-single-share-inline {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(7, 31, 67, .10);
}

.khm-single-share > span {
    display: block;
    color: #d32433;
    font-weight: 950;
    margin-bottom: 12px;
}

.khm-share-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.khm-share-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 15px;
    background: #f3f7fc;
    color: #071f43;
    text-decoration: none;
    font-weight: 900;
    transition: all .2s ease;
}

.khm-share-buttons a:hover {
    background: #1685e5;
    color: #fff;
    transform: translateY(-2px);
}

.khm-single-body-section {
    padding: 24px 0 72px;
}

.khm-single-content-card {
    width: min(980px, 100%);
    margin: 0 auto;
    padding: clamp(24px, 4vw, 46px);
    border-radius: 30px;
    background: rgba(255,255,255,.90);
    border: 1px solid rgba(7,31,67,.08);
    box-shadow: 0 18px 50px rgba(7,31,67,.08);
}

.khm-single-content {
    color: #1d2c42;
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 2.25;
    font-weight: 650;
}

.khm-single-content p {
    margin: 0 0 1.35em;
}

.khm-single-content h2,
.khm-single-content h3,
.khm-single-content h4 {
    color: #071f43;
    line-height: 1.5;
    margin: 1.8em 0 .7em;
    font-weight: 950;
}

.khm-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 22px;
}

.khm-single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid rgba(7,31,67,.10);
}

.khm-single-tags strong {
    color: #071f43;
}

.khm-single-tags a {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(22,133,229,.10);
    color: #1685e5;
    text-decoration: none;
    font-weight: 800;
}

.khm-post-navigation {
    width: min(980px, 100%);
    margin: 26px auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.khm-post-nav-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-height: 112px;
    padding: 12px;
    border-radius: 24px;
    background: rgba(255,255,255,.90);
    border: 1px solid rgba(7,31,67,.08);
    box-shadow: 0 14px 34px rgba(7,31,67,.08);
    color: #071f43;
    text-decoration: none;
    transition: all .2s ease;
}

.khm-post-nav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 44px rgba(7,31,67,.12);
}

.khm-post-nav-thumb {
    width: 92px;
    height: 88px;
    border-radius: 18px;
    object-fit: cover;
    background: #eef5fb;
}

.khm-post-nav-text {
    min-width: 0;
}

.khm-post-nav-text small {
    display: block;
    margin-bottom: 7px;
    color: #d32433;
    font-weight: 950;
}

.khm-post-nav-text strong {
    display: block;
    color: #071f43;
    font-size: 16px;
    line-height: 1.7;
    font-weight: 950;
}

.khm-post-nav-next {
    direction: rtl;
}

.khm-post-nav-prev {
    direction: rtl;
}

.khm-related-posts {
    width: min(980px, 100%);
    margin: 42px auto 0;
}

.khm-section-heading {
    margin-bottom: 18px;
}

.khm-section-heading span {
    color: #d32433;
    font-weight: 950;
}

.khm-section-heading h2 {
    margin: 6px 0 0;
    color: #071f43;
    font-size: 28px;
    font-weight: 950;
}

.khm-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.khm-related-card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(7,31,67,.08);
    box-shadow: 0 14px 34px rgba(7,31,67,.08);
}

.khm-related-thumb {
    display: block;
    height: 170px;
    overflow: hidden;
    background: #eef5fb;
    text-decoration: none;
    color: #071f43;
    font-weight: 950;
}

.khm-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.khm-related-thumb span {
    height: 100%;
    display: grid;
    place-items: center;
}

.khm-related-content {
    padding: 16px;
}

.khm-related-content h3 {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.7;
}

.khm-related-content h3 a {
    color: #071f43;
    text-decoration: none;
}

.khm-related-content p {
    margin: 0;
    color: #53647f;
    line-height: 1.9;
}

@media (max-width: 900px) {
    .khm-single-hero-grid,
    .khm-post-navigation,
    .khm-related-grid {
        grid-template-columns: 1fr;
    }

    .khm-single-featured-wrap,
    .khm-single-title-card {
        height: auto;
        min-height: 0;
    }

    .khm-single-featured-wrap {
        aspect-ratio: 16 / 10;
    }

    .khm-share-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .khm-container {
        width: min(100% - 24px, 1180px);
    }

    .khm-single-title-card,
    .khm-single-content-card {
        border-radius: 24px;
        padding: 22px;
    }

    .khm-post-nav-card {
        grid-template-columns: 76px 1fr;
    }

    .khm-post-nav-thumb {
        width: 76px;
        height: 72px;
        border-radius: 15px;
    }
}

/* Khorrammachin Custom Author + Catalog Products v1.0.12 */
.khm-product-single-page,
.khm-products-archive-page {
    direction: rtl;
    background:
        radial-gradient(circle at 14% 8%, rgba(211, 36, 51, .10), transparent 24%),
        radial-gradient(circle at 88% 2%, rgba(22, 133, 229, .18), transparent 30%),
        linear-gradient(135deg, #f7fbff 0%, #eef7ff 48%, #ffffff 100%);
    color: #071f43;
}

.khm-product-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(38px, 5vw, 82px) 0 40px;
}

.khm-product-bg {
    position: absolute;
    inset: -90px;
    z-index: -2;
    background-image:
        linear-gradient(135deg, rgba(247,251,255,.84), rgba(238,247,255,.9)),
        var(--khm-product-bg);
    background-size: cover;
    background-position: center;
    filter: blur(30px);
    opacity: .42;
    transform: scale(1.08);
}

.khm-product-hero-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, .9fr);
    gap: clamp(24px, 4vw, 54px);
    align-items: stretch;
}

.khm-product-gallery-card,
.khm-product-info-card {
    min-height: clamp(300px, 35vw, 430px);
}

.khm-product-gallery-card {
    overflow: hidden;
    border-radius: 34px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(7,31,67,.10);
    box-shadow: 0 26px 60px rgba(7,31,67,.14);
}

.khm-product-main-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.khm-product-placeholder {
    height: 100%;
    min-height: 320px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #071f43, #1685e5);
    color: #fff;
    font-weight: 950;
    font-size: 24px;
}

.khm-product-info-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 4vw, 48px);
    border-radius: 34px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(255,255,255,.78);
    box-shadow: 0 26px 60px rgba(7,31,67,.12);
    backdrop-filter: blur(14px);
}

.khm-product-label {
    align-self: flex-start;
    display: inline-flex;
    padding: 8px 18px;
    border-radius: 999px;
    color: #1685e5;
    background: rgba(22,133,229,.12);
    border: 1px solid rgba(22,133,229,.24);
    font-weight: 950;
}

.khm-product-info-card h1,
.khm-products-archive-hero h1 {
    margin: 18px 0;
    color: #071f43;
    font-size: clamp(32px, 4.6vw, 58px);
    line-height: 1.35;
    font-weight: 950;
    letter-spacing: -1.2px;
}

.khm-product-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.khm-product-cats a {
    padding: 7px 14px;
    border-radius: 999px;
    background: #f3f7fc;
    color: #071f43;
    text-decoration: none;
    font-weight: 850;
}

.khm-product-excerpt {
    color: #53647f;
    font-weight: 700;
    line-height: 2;
    margin: 0 0 24px;
}

.khm-product-contact-btn,
.khm-product-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 46px;
    padding: 11px 20px;
    border-radius: 16px;
    background: #d32433;
    color: #fff;
    text-decoration: none;
    font-weight: 950;
    box-shadow: 0 14px 30px rgba(211,36,51,.22);
    transition: all .2s ease;
}

.khm-product-contact-btn:hover,
.khm-product-more:hover {
    transform: translateY(-2px);
    background: #b91f2d;
    color: #fff;
}

.khm-product-content-section {
    padding: 28px 0 76px;
}

.khm-product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.khm-product-description-card,
.khm-product-features-card,
.khm-product-card,
.khm-empty-products {
    border-radius: 30px;
    background: rgba(255,255,255,.90);
    border: 1px solid rgba(7,31,67,.08);
    box-shadow: 0 18px 50px rgba(7,31,67,.08);
}

.khm-product-description-card,
.khm-product-features-card,
.khm-empty-products {
    padding: clamp(22px, 3vw, 36px);
}

.khm-product-content {
    color: #1d2c42;
    font-size: 18px;
    line-height: 2.25;
    font-weight: 650;
}

.khm-product-features-list {
    display: grid;
    gap: 12px;
}

.khm-product-feature-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f3f7fc;
    border: 1px solid rgba(7,31,67,.06);
}

.khm-product-feature-row span {
    color: #53647f;
    font-weight: 850;
}

.khm-product-feature-row strong {
    color: #071f43;
    font-weight: 950;
    text-align: left;
}

.khm-products-archive-hero {
    padding: clamp(44px, 6vw, 88px) 0 36px;
    text-align: center;
}

.khm-products-archive-hero .khm-product-label {
    margin-inline: auto;
}

.khm-products-archive-hero p {
    width: min(720px, 100%);
    margin: 0 auto;
    color: #53647f;
    font-weight: 700;
    line-height: 2;
}

.khm-products-grid-section {
    padding: 20px 0 76px;
}

.khm-products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.khm-product-card {
    overflow: hidden;
}

.khm-product-card-img {
    display: block;
    height: 230px;
    overflow: hidden;
    background: #eef5fb;
    color: #071f43;
    text-decoration: none;
    font-weight: 950;
}

.khm-product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.khm-product-card-img span {
    height: 100%;
    display: grid;
    place-items: center;
}

.khm-product-card-content {
    padding: 20px;
}

.khm-product-card-content h2 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.7;
}

.khm-product-card-content h2 a {
    color: #071f43;
    text-decoration: none;
}

.khm-product-card-content p {
    margin: 0 0 18px;
    color: #53647f;
    line-height: 2;
    font-weight: 650;
}

.khm-pagination {
    margin-top: 28px;
    text-align: center;
}

@media (max-width: 980px) {
    .khm-product-hero-grid,
    .khm-product-layout,
    .khm-products-grid {
        grid-template-columns: 1fr;
    }

    .khm-product-gallery-card,
    .khm-product-info-card {
        min-height: 0;
    }

    .khm-product-gallery-card {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 620px) {
    .khm-product-info-card,
    .khm-product-description-card,
    .khm-product-features-card {
        border-radius: 24px;
        padding: 22px;
    }

    .khm-product-feature-row {
        flex-direction: column;
    }
}

/* Khorrammachin Archive Views + Feature Suggestions v1.0.13 */
.khm-articles-archive-page {
    direction: rtl;
    background:
        radial-gradient(circle at 14% 8%, rgba(211, 36, 51, .10), transparent 24%),
        radial-gradient(circle at 88% 2%, rgba(22, 133, 229, .18), transparent 30%),
        linear-gradient(135deg, #f7fbff 0%, #eef7ff 48%, #ffffff 100%);
    color: #071f43;
}

.khm-archive-view-switcher {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    padding: 8px;
    border-radius: 20px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(7,31,67,.08);
    box-shadow: 0 14px 34px rgba(7,31,67,.07);
}

.khm-archive-view-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 18px;
    border-radius: 15px;
    background: #f3f7fc;
    color: #071f43;
    text-decoration: none;
    font-weight: 950;
    transition: all .2s ease;
}

.khm-archive-view-switcher a:hover,
.khm-archive-view-switcher a.is-active {
    background: #1685e5;
    color: #fff;
    transform: translateY(-1px);
}

.khm-products-list {
    display: grid;
    gap: 20px;
}

.khm-products-list .khm-product-card {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: stretch;
}

.khm-products-list .khm-product-card-img {
    height: 100%;
    min-height: 220px;
}

.khm-products-list .khm-product-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.khm-card-cats,
.khm-card-date {
    margin-bottom: 10px;
    color: #53647f;
    font-weight: 800;
    line-height: 1.8;
}

.khm-card-cats a {
    color: #1685e5;
    text-decoration: none;
    font-weight: 900;
}

.khm-card-date {
    color: #d32433;
}

.khm-archive-table-wrap {
    overflow-x: auto;
    border-radius: 26px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(7,31,67,.08);
    box-shadow: 0 18px 50px rgba(7,31,67,.08);
}

.khm-archive-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
    text-align: right;
}

.khm-archive-table th,
.khm-archive-table td {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(7,31,67,.08);
    vertical-align: middle;
}

.khm-archive-table th {
    background: #071f43;
    color: #fff;
    font-weight: 950;
}

.khm-archive-table tbody tr:hover {
    background: rgba(22,133,229,.06);
}

.khm-table-thumb img {
    width: 74px;
    height: 64px;
    object-fit: cover;
    border-radius: 15px;
    display: block;
}

.khm-table-thumb span {
    display: inline-flex;
    width: 74px;
    height: 64px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #eef5fb;
    font-size: 12px;
    font-weight: 800;
}

.khm-pagination .page-numbers,
.khm-pagination a,
.khm-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    margin: 4px;
    padding: 8px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(7,31,67,.08);
    color: #071f43;
    text-decoration: none;
    font-weight: 950;
}

.khm-pagination .current,
.khm-pagination a:hover {
    background: #1685e5;
    color: #fff;
}

@media (max-width: 780px) {
    .khm-products-list .khm-product-card {
        grid-template-columns: 1fr;
    }

    .khm-products-list .khm-product-card-img {
        height: 230px;
        min-height: 230px;
    }

    .khm-archive-view-switcher {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }
}

/* Khorrammachin Single Article Refinements v1.0.16 */
.khm-single-page .khm-single-body-section .khm-container {
    width: min(1180px, calc(100% - 36px));
}

.khm-single-page .khm-single-content-card,
.khm-single-page .khm-post-navigation,
.khm-single-page .khm-related-posts {
    width: 100%;
    max-width: none;
}

.khm-single-page .khm-single-content-card {
    padding: clamp(36px, 4.8vw, 68px);
}

.khm-single-page .khm-single-content {
    text-align: justify;
    text-align-last: auto;
    text-justify: inter-word;
}

.khm-single-page .khm-single-content p,
.khm-single-page .khm-single-content li {
    text-align: justify;
    text-align-last: auto;
    text-justify: inter-word;
}

.khm-single-page .khm-single-title-card {
    padding: clamp(34px, 4.5vw, 62px) !important;
    overflow: hidden;
}

.khm-single-page .khm-single-title-card > * {
    max-width: 100%;
}

.khm-single-page .khm-single-title {
    margin-inline: 0;
    overflow-wrap: anywhere;
}

.khm-single-page .khm-single-meta {
    padding-inline: 2px;
}

.khm-single-page .khm-single-share-inline {
    padding: 24px 0 0;
    margin-top: 26px;
}

.khm-single-page .khm-share-buttons {
    width: 100%;
}

.khm-single-page .khm-share-buttons a {
    min-width: 0;
}

@media (max-width: 900px) {
    .khm-single-page .khm-single-body-section .khm-container {
        width: min(100% - 28px, 1180px);
    }

    .khm-single-page .khm-single-content-card {
        padding: 28px;
    }

    .khm-single-page .khm-single-title-card {
        padding: 28px !important;
    }
}

@media (max-width: 560px) {
    .khm-single-page .khm-single-body-section .khm-container {
        width: min(100% - 20px, 1180px);
    }

    .khm-single-page .khm-single-content-card {
        padding: 22px;
    }

    .khm-single-page .khm-single-title-card {
        padding: 24px !important;
    }
}

/* Khorrammachin Article Header Padding + Collapsible TOC v1.0.17 */
.khm-single-page .khm-single-title-card {
    padding-top: clamp(48px, 5.8vw, 82px) !important;
    padding-bottom: clamp(48px, 5.8vw, 82px) !important;
}

.khm-single-page .khm-single-share-inline {
    padding-top: clamp(26px, 3vw, 36px) !important;
    padding-bottom: clamp(10px, 1.8vw, 22px) !important;
}

.khm-single-page .khm-share-buttons {
    margin-bottom: 2px;
}

.khm-article-toc {
    margin: 0 0 clamp(28px, 4vw, 44px);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(22,133,229,.10), rgba(255,255,255,.92)),
        #f7fbff;
    border: 1px solid rgba(22,133,229,.18);
    box-shadow: 0 14px 34px rgba(7,31,67,.07);
    overflow: hidden;
}

.khm-toc-toggle {
    width: 100%;
    appearance: none;
    border: 0;
    background: transparent;
    color: #071f43;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    font-family: inherit;
    font-size: 18px;
    font-weight: 950;
    text-align: right;
}

.khm-toc-toggle b {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1685e5;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    transition: transform .2s ease;
}

.khm-article-toc.is-collapsed .khm-toc-toggle b {
    transform: rotate(90deg);
}

.khm-toc-panel {
    padding: 0 22px 20px;
}

.khm-article-toc.is-collapsed .khm-toc-panel {
    display: none;
}

.khm-toc-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 9px;
}

.khm-toc-panel li {
    margin: 0;
}

.khm-toc-panel a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 15px;
    background: rgba(255,255,255,.78);
    color: #071f43;
    text-decoration: none;
    font-weight: 850;
    line-height: 1.8;
    transition: all .2s ease;
}

.khm-toc-panel a::before {
    content: "";
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d32433;
}

.khm-toc-panel a:hover {
    background: #1685e5;
    color: #fff;
    transform: translateX(-3px);
}

.khm-toc-panel a:hover::before {
    background: #fff;
}

.khm-toc-level-3 {
    padding-inline-start: 24px;
}

.khm-toc-level-3 a {
    font-size: 15px;
    color: #53647f;
}

.khm-single-content h2,
.khm-single-content h3 {
    scroll-margin-top: 110px;
}

@media (max-width: 560px) {
    .khm-single-page .khm-single-title-card {
        padding-top: 36px !important;
        padding-bottom: 36px !important;
    }

    .khm-toc-toggle {
        padding: 16px;
    }

    .khm-toc-panel {
        padding: 0 16px 16px;
    }

    .khm-toc-level-3 {
        padding-inline-start: 12px;
    }
}


/* Khorrammachin Share Buttons Refinement v1.0.19 */
.khm-share-buttons button,
.khm-share-buttons .khm-share-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 15px;
    background: #f3f7fc;
    color: #071f43;
    text-decoration: none;
    font-weight: 900;
    transition: all .2s ease;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.khm-share-buttons button:hover,
.khm-share-buttons .khm-share-copy:hover {
    background: #1685e5;
    color: #fff;
    transform: translateY(-2px);
}


/* Khorrammachin Custom Share Button v1.0.20 */
.khm-share-buttons button,
.khm-share-buttons .khm-share-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 15px;
    background: #f3f7fc;
    color: #071f43;
    text-decoration: none;
    font-weight: 900;
    transition: all .2s ease;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.khm-share-buttons button:hover,
.khm-share-buttons .khm-share-copy:hover {
    background: #1685e5;
    color: #fff;
    transform: translateY(-2px);
}



/* Khorrammachin Archive Mobile View Switcher + Horizontal Cards v1.0.21 */
@media (max-width: 780px) {
    .khm-archive-view-switcher {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        width: 100% !important;
        gap: 8px !important;
        padding: 8px !important;
    }

    .khm-archive-view-switcher a {
        min-height: 40px !important;
        padding: 8px 6px !important;
        font-size: 13px !important;
        border-radius: 14px !important;
        white-space: nowrap;
    }

    .khm-products-list,
    .khm-articles-list {
        gap: 12px !important;
    }

    .khm-products-list .khm-product-card,
    .khm-articles-list .khm-product-card,
    .khm-archive-view-list .khm-product-card {
        display: grid !important;
        grid-template-columns: 112px minmax(0, 1fr) !important;
        align-items: stretch !important;
        gap: 0 !important;
        min-height: 118px !important;
        border-radius: 20px !important;
        overflow: hidden !important;
    }

    .khm-products-list .khm-product-card-img,
    .khm-articles-list .khm-product-card-img,
    .khm-archive-view-list .khm-product-card-img {
        width: 112px !important;
        height: 100% !important;
        min-height: 118px !important;
        max-height: 150px !important;
        border-radius: 0 !important;
    }

    .khm-products-list .khm-product-card-img img,
    .khm-articles-list .khm-product-card-img img,
    .khm-archive-view-list .khm-product-card-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .khm-products-list .khm-product-card-img span,
    .khm-articles-list .khm-product-card-img span,
    .khm-archive-view-list .khm-product-card-img span {
        font-size: 11px !important;
        padding: 8px !important;
        text-align: center !important;
    }

    .khm-products-list .khm-product-card-content,
    .khm-articles-list .khm-product-card-content,
    .khm-archive-view-list .khm-product-card-content {
        padding: 12px 13px !important;
        justify-content: center !important;
        min-width: 0 !important;
    }

    .khm-products-list .khm-product-card-content h2,
    .khm-articles-list .khm-product-card-content h2,
    .khm-archive-view-list .khm-product-card-content h2 {
        margin: 0 0 5px !important;
        font-size: 14px !important;
        line-height: 1.55 !important;
        font-weight: 950 !important;
    }

    .khm-products-list .khm-product-card-content h2 a,
    .khm-articles-list .khm-product-card-content h2 a,
    .khm-archive-view-list .khm-product-card-content h2 a {
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .khm-products-list .khm-card-cats,
    .khm-articles-list .khm-card-cats,
    .khm-products-list .khm-card-date,
    .khm-articles-list .khm-card-date,
    .khm-archive-view-list .khm-card-cats,
    .khm-archive-view-list .khm-card-date {
        margin-bottom: 4px !important;
        font-size: 11px !important;
        line-height: 1.5 !important;
        font-weight: 800 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .khm-products-list .khm-product-card-content p,
    .khm-articles-list .khm-product-card-content p,
    .khm-archive-view-list .khm-product-card-content p {
        margin: 0 0 7px !important;
        font-size: 12px !important;
        line-height: 1.65 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .khm-products-list .khm-product-more,
    .khm-articles-list .khm-product-more,
    .khm-archive-view-list .khm-product-more {
        min-height: 30px !important;
        padding: 5px 10px !important;
        font-size: 11px !important;
        border-radius: 11px !important;
        align-self: flex-start !important;
        box-shadow: none !important;
    }
}

@media (max-width: 420px) {
    .khm-products-list .khm-product-card,
    .khm-articles-list .khm-product-card,
    .khm-archive-view-list .khm-product-card {
        grid-template-columns: 94px minmax(0, 1fr) !important;
        min-height: 108px !important;
    }

    .khm-products-list .khm-product-card-img,
    .khm-articles-list .khm-product-card-img,
    .khm-archive-view-list .khm-product-card-img {
        width: 94px !important;
        min-height: 108px !important;
    }

    .khm-products-list .khm-product-card-content,
    .khm-articles-list .khm-product-card-content,
    .khm-archive-view-list .khm-product-card-content {
        padding: 10px !important;
    }

    .khm-products-list .khm-product-card-content p,
    .khm-articles-list .khm-product-card-content p,
    .khm-archive-view-list .khm-product-card-content p {
        display: none !important;
    }
}



/* Khorrammachin Comments + Header Button Menu v1.0.23 */
.khm-single-comments-section {
    width: 100%;
    margin: 34px auto 0;
}

.khm-comments-card {
    padding: clamp(22px, 3.5vw, 38px);
    border-radius: 30px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(7,31,67,.08);
    box-shadow: 0 18px 50px rgba(7,31,67,.08);
}

.khm-comments-card .comments-title,
.khm-comments-card .comment-reply-title {
    margin: 0 0 18px;
    color: #071f43;
    font-size: 24px;
    font-weight: 950;
}

.khm-comments-card .comment-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}

.khm-comments-card .comment,
.khm-comments-card .pingback,
.khm-comments-card .trackback {
    margin-bottom: 16px;
    padding: 18px;
    border-radius: 22px;
    background: #f7fbff;
    border: 1px solid rgba(7,31,67,.07);
}

.khm-comments-card .comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #071f43;
    font-weight: 950;
}

.khm-comments-card .comment-author img {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    object-fit: cover;
}

.khm-comments-card .comment-metadata,
.khm-comments-card .reply {
    margin-top: 8px;
    color: #53647f;
    font-size: 13px;
    font-weight: 800;
}

.khm-comments-card .comment-content {
    margin-top: 12px;
    color: #1d2c42;
    line-height: 2;
    font-weight: 650;
}

.khm-comments-card input[type="text"],
.khm-comments-card input[type="email"],
.khm-comments-card input[type="url"],
.khm-comments-card textarea {
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(22,133,229,.25);
    background: #fff;
    color: #071f43;
    padding: 12px 14px;
    box-shadow: 0 8px 20px rgba(7,31,67,.05);
}

.khm-comments-card textarea {
    min-height: 150px;
}

.khm-comments-card .form-submit input,
.khm-comments-card input[type="submit"] {
    min-height: 46px;
    padding: 10px 24px;
    border-radius: 16px;
    background: #d32433;
    color: #fff;
    border: 0;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(211,36,51,.20);
}

.primary-menu .khm-menu-button-item > a,
.primary-menu--custom .khm-menu-button-item > a {
    background: #d32433 !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    padding: 10px 18px !important;
    box-shadow: 0 12px 26px rgba(211,36,51,.22);
    border: 1px solid rgba(211,36,51,.22);
}

.primary-menu .khm-menu-button-item > a:hover,
.primary-menu--custom .khm-menu-button-item > a:hover {
    background: #1685e5 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(22,133,229,.24);
}

@media (max-width: 560px) {
    .khm-comments-card {
        padding: 20px;
        border-radius: 24px;
    }
}



/* Khorrammachin Product Single Refinements v1.0.26 */
.khm-single-hero-grid .khm-single-featured-wrap,
.khm-product-hero-grid .khm-product-gallery-card {
    order: 2;
}

.khm-single-hero-grid .khm-single-title-card,
.khm-product-hero-grid .khm-product-info-card {
    order: 1;
}

.khm-product-layout-full {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 26px !important;
}

.khm-product-layout-full .khm-product-description-card,
.khm-product-layout-full .khm-product-features-card {
    width: 100%;
}

.khm-digikala-features-card {
    padding: clamp(22px, 3vw, 36px);
    border-radius: 30px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(7,31,67,.08);
    box-shadow: 0 18px 50px rgba(7,31,67,.08);
}

.khm-digikala-features-list {
    display: grid !important;
    grid-template-columns: repeat(var(--khm-product-features-cols-desktop, 3), minmax(0, 1fr));
    gap: 12px !important;
}

.khm-digikala-feature-box {
    display: grid !important;
    gap: 8px !important;
    justify-content: stretch !important;
    min-height: 82px;
    padding: 16px 18px !important;
    border-radius: 14px !important;
    background: #f1f2f4 !important;
    border: 0 !important;
    box-shadow: none !important;
}

.khm-digikala-feature-box span {
    color: #7b8493 !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.6;
}

.khm-digikala-feature-box strong {
    color: #071f43 !important;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.8;
    text-align: right !important;
}

@media (max-width: 900px) {
    .khm-single-hero-grid .khm-single-featured-wrap,
    .khm-product-hero-grid .khm-product-gallery-card {
        order: 2;
    }

    .khm-single-hero-grid .khm-single-title-card,
    .khm-product-hero-grid .khm-product-info-card {
        order: 1;
    }

    .khm-digikala-features-list {
        grid-template-columns: repeat(var(--khm-product-features-cols-mobile, 1), minmax(0, 1fr));
    }
}


/* Khorrammachin Product CTA + Container Settings v1.0.27 */
.khm-product-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(0px + var(--khm-sticky-footer-overlap, 0px));
    z-index: 9990;
    padding: 12px 0;
    background: rgba(255,255,255,.94);
    border-top: 1px solid rgba(7,31,67,.08);
    box-shadow: 0 -16px 42px rgba(7,31,67,.14);
    backdrop-filter: blur(14px);
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease, bottom .1s linear;
}

.khm-product-sticky-cta.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.khm-product-sticky-cta-inner {
    display: flex;
    justify-content: center;
}

.khm-product-sticky-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 24px;
    border-radius: 18px;
    background: #d32433;
    color: #fff;
    text-decoration: none;
    font-weight: 950;
    box-shadow: 0 14px 30px rgba(211,36,51,.22);
}

.khm-product-sticky-cta a:hover {
    background: #1685e5;
    color: #fff;
}

@media (max-width: 560px) {
    .khm-product-sticky-cta {
        padding: 10px 0;
    }

    .khm-product-sticky-cta a {
        width: 100%;
        min-height: 48px;
        font-size: 14px;
        border-radius: 16px;
    }
}


/* Khorrammachin Admin Settings Pro UI v1.0.28 */
body.appearance_page_khorrammachin-settings {
    background:
        linear-gradient(135deg, rgba(247,251,255,.90), rgba(235,245,255,.95)),
        url('https://khorrammachine.co/wp-content/uploads/2026/05/khoram-copy.png') center/cover fixed !important;
}

.appearance_page_khorrammachin-settings #wpcontent {
    background: transparent !important;
}

.khm-settings-wrap {
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.khm-settings-header,
.khm-settings-card,
.khm-settings-side,
.khm-settings-submit {
    background: rgba(255,255,255,.94) !important;
    border: 1px solid rgba(7,31,67,.08) !important;
    box-shadow: 0 22px 58px rgba(7,31,67,.13) !important;
    backdrop-filter: blur(18px);
}

.khm-settings-header {
    border-radius: 32px !important;
    padding: 30px 34px !important;
}

.khm-settings-header h1,
.khm-card-title h2 {
    color: #071f43 !important;
}

.khm-settings-header span,
.khm-card-title span {
    display: inline-flex;
    padding: 7px 14px;
    border-radius: 999px;
    color: #1685e5 !important;
    background: rgba(22,133,229,.10) !important;
    font-weight: 900;
}

.khm-settings-layout {
    grid-template-columns: 230px minmax(0,1fr) !important;
}

.khm-settings-side {
    border-radius: 28px !important;
    padding: 12px !important;
}

.khm-settings-side a {
    border-radius: 16px !important;
    background: #f4f8fd !important;
    color: #071f43 !important;
}

.khm-settings-side a:hover,
.khm-settings-side a.is-active {
    background: #d32433 !important;
    color: #fff !important;
}

.khm-settings-card {
    border-radius: 30px !important;
    padding: 28px !important;
}

.khm-settings-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
}

.khm-settings-grid > label,
.khm-clean-field,
.khm-switch-row {
    display: grid !important;
    grid-template-columns: 260px minmax(0,1fr) !important;
    align-items: center !important;
    gap: 16px !important;
    min-height: 58px;
    padding: 14px 16px !important;
    border-radius: 18px !important;
    background: #f7fbff !important;
    border: 1px solid rgba(7,31,67,.07) !important;
    box-shadow: none !important;
}

.khm-switch-row {
    grid-template-columns: 24px minmax(0,1fr) !important;
}

.khm-settings-grid input[type="text"],
.khm-settings-grid input[type="number"],
.khm-settings-grid select,
.khm-clean-field select,
.khm-menu-item-row input[type="text"],
.khm-share-item-row input[type="text"],
.khm-share-item-row select {
    min-height: 44px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(22,133,229,.24) !important;
    background: #fff !important;
    box-shadow: 0 8px 18px rgba(7,31,67,.04) !important;
    color: #071f43 !important;
    font-weight: 700 !important;
}

.khm-menu-item-row,
.khm-share-item-row {
    background: #f7fbff !important;
    border-radius: 20px !important;
    border: 1px solid rgba(7,31,67,.07) !important;
    box-shadow: 0 10px 22px rgba(7,31,67,.05);
}

.khm-menu-item-row {
    grid-template-columns: 42px 78px 110px minmax(140px,.8fr) minmax(220px,1.3fr) 62px !important;
}

.khm-share-item-row {
    grid-template-columns: 42px 76px 96px minmax(130px,.75fr) 90px 130px minmax(240px,1.5fr) 62px !important;
}

.khm-drag-handle {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #071f43;
    color: #fff;
    cursor: move;
    font-weight: 900;
    user-select: none;
    align-self: end;
    margin-bottom: 9px;
}

.khm-sort-placeholder {
    min-height: 64px;
    border: 2px dashed rgba(22,133,229,.45);
    border-radius: 18px;
    background: rgba(22,133,229,.06);
}

.khm-share-buttons a,
.khm-share-buttons button {
    gap: 8px;
}

.khm-share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    font-weight: 900;
}

@media (max-width: 1100px) {
    .khm-settings-layout,
    .khm-settings-grid > label,
    .khm-clean-field,
    .khm-switch-row,
    .khm-menu-item-row,
    .khm-share-item-row {
        grid-template-columns: 1fr !important;
    }

    .khm-drag-handle {
        margin-bottom: 0;
    }
}



/* Khorrammachin Mobile Header + Hamburger Menu v1.0.38 */
.khm-mobile-menu-toggle,
.khm-mobile-menu-overlay {
    display: none;
}

@media (max-width: 782px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 9999;
    }

    .site-header__inner {
        position: relative;
        display: grid !important;
        grid-template-columns: 48px minmax(0, 1fr) 48px !important;
        align-items: center !important;
        gap: 10px !important;
        min-height: 72px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .site-branding {
        grid-column: 1 / -1 !important;
        display: contents !important;
    }

    .site-branding > a,
    .site-branding .custom-logo-link {
        grid-column: 1 !important;
        grid-row: 1 !important;
        justify-self: start !important;
        align-self: center !important;
        display: inline-flex !important;
        width: 46px !important;
        height: 46px !important;
        border-radius: 15px !important;
        overflow: hidden !important;
        background: #ffffff !important;
        box-shadow: 0 8px 22px rgba(7,31,67,.10) !important;
    }

    .site-branding img,
    .site-branding .custom-logo {
        width: 100% !important;
        height: 100% !important;
        max-width: 46px !important;
        max-height: 46px !important;
        object-fit: contain !important;
        display: block !important;
    }

    .site-branding > div {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: center !important;
        align-self: center !important;
        min-width: 0 !important;
        text-align: center !important;
    }

    .site-title {
        margin: 0 !important;
        text-align: center !important;
        line-height: 1.5 !important;
    }

    .site-title a {
        display: block !important;
        color: #071f43 !important;
        font-size: 16px !important;
        font-weight: 900 !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 58vw !important;
    }

    .site-description {
        display: none !important;
    }

    .khm-mobile-menu-toggle {
        grid-column: 3 !important;
        grid-row: 1 !important;
        justify-self: end !important;
        align-self: center !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 46px !important;
        height: 46px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 16px !important;
        background: #071f43 !important;
        color: #ffffff !important;
        box-shadow: 0 10px 25px rgba(7,31,67,.20) !important;
        cursor: pointer !important;
        z-index: 10002 !important;
    }

    .khm-mobile-menu-icon {
        display: grid !important;
        gap: 5px !important;
        width: 22px !important;
    }

    .khm-mobile-menu-icon i {
        display: block !important;
        height: 3px !important;
        width: 22px !important;
        border-radius: 99px !important;
        background: currentColor !important;
        transition: transform .22s ease, opacity .22s ease !important;
    }

    body.khm-mobile-menu-open .khm-mobile-menu-icon i:nth-child(1) {
        transform: translateY(8px) rotate(45deg) !important;
    }

    body.khm-mobile-menu-open .khm-mobile-menu-icon i:nth-child(2) {
        opacity: 0 !important;
    }

    body.khm-mobile-menu-open .khm-mobile-menu-icon i:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg) !important;
    }

    .site-header .primary-menu {
        position: fixed !important;
        top: 82px !important;
        right: 24px !important;
        left: 24px !important;
        display: block !important;
        width: auto !important;
        max-width: none !important;
        max-height: calc(100vh - 112px) !important;
        overflow-y: auto !important;
        padding: 16px !important;
        border-radius: 24px !important;
        background: rgba(255,255,255,.98) !important;
        border: 1px solid rgba(7,31,67,.08) !important;
        box-shadow: 0 24px 70px rgba(7,31,67,.22) !important;
        transform: translateY(-14px) scale(.98) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: opacity .22s ease, transform .22s ease, visibility .22s ease !important;
        z-index: 10001 !important;
    }

    body.khm-mobile-menu-open .site-header .primary-menu {
        transform: translateY(0) scale(1) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .site-header .primary-menu ul,
    .site-header .primary-menu .primary-menu,
    .site-header .primary-menu--custom {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .site-header .primary-menu li {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .site-header .primary-menu a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 46px !important;
        padding: 11px 14px !important;
        border-radius: 16px !important;
        background: #f3f7fc !important;
        color: #071f43 !important;
        text-decoration: none !important;
        font-size: 14px !important;
        font-weight: 850 !important;
    }

    .site-header .primary-menu a:hover,
    .site-header .primary-menu .current-menu-item > a {
        background: #1685e5 !important;
        color: #ffffff !important;
    }

    .site-header .primary-menu .khm-menu-button-item > a {
        background: #d32433 !important;
        color: #ffffff !important;
        box-shadow: 0 12px 26px rgba(211,36,51,.18) !important;
    }

    .khm-mobile-menu-overlay {
        position: fixed !important;
        inset: 0 !important;
        display: block !important;
        background: rgba(7,31,67,.34) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: opacity .22s ease, visibility .22s ease !important;
        z-index: 10000 !important;
    }

    body.khm-mobile-menu-open .khm-mobile-menu-overlay {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    body.khm-mobile-menu-open {
        overflow: hidden !important;
    }

    body.admin-bar .site-header .primary-menu {
        top: 128px !important;
    }

    body.admin-bar .site-header {
        top: 46px;
    }
}

@media (min-width: 783px) {
    .khm-mobile-menu-toggle,
    .khm-mobile-menu-overlay {
        display: none !important;
    }
}



/* Khorrammachin Mobile Header Swap + Visible Menu Items v1.0.39 */
@media (max-width: 782px) {
    .site-header__inner {
        grid-template-columns: 48px minmax(0, 1fr) 48px !important;
        direction: ltr !important;
    }

    .site-branding {
        grid-column: 1 / -1 !important;
        display: contents !important;
    }

    .site-branding > a,
    .site-branding .custom-logo-link {
        grid-column: 3 !important;
        grid-row: 1 !important;
        justify-self: end !important;
        align-self: center !important;
        direction: rtl !important;
    }

    .site-branding > div {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: center !important;
        align-self: center !important;
        text-align: center !important;
        direction: rtl !important;
    }

    .khm-mobile-menu-toggle {
        grid-column: 1 !important;
        grid-row: 1 !important;
        justify-self: start !important;
        align-self: center !important;
        direction: rtl !important;
    }

    #khm-mobile-menu-panel.primary-menu,
    .site-header nav#khm-mobile-menu-panel.primary-menu {
        position: fixed !important;
        top: 82px !important;
        right: 24px !important;
        left: 24px !important;
        width: auto !important;
        min-width: 0 !important;
        height: auto !important;
        max-height: calc(100vh - 112px) !important;
        overflow-y: auto !important;
        display: block !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        padding: 16px !important;
        border-radius: 24px !important;
        background: #ffffff !important;
        border: 1px solid rgba(7,31,67,.08) !important;
        box-shadow: 0 24px 70px rgba(7,31,67,.24) !important;
        transform: translateY(-14px) scale(.98) !important;
        z-index: 10050 !important;
        direction: rtl !important;
    }

    body.khm-mobile-menu-open #khm-mobile-menu-panel.primary-menu,
    body.khm-mobile-menu-open .site-header nav#khm-mobile-menu-panel.primary-menu {
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translateY(0) scale(1) !important;
    }

    #khm-mobile-menu-panel.primary-menu > ul,
    #khm-mobile-menu-panel.primary-menu ul.primary-menu,
    #khm-mobile-menu-panel.primary-menu .primary-menu,
    #khm-mobile-menu-panel.primary-menu .primary-menu--custom {
        display: grid !important;
        visibility: visible !important;
        opacity: 1 !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        transform: none !important;
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
        border: 0 !important;
        pointer-events: auto !important;
    }

    #khm-mobile-menu-panel.primary-menu li,
    #khm-mobile-menu-panel.primary-menu .menu-item {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        position: static !important;
        transform: none !important;
    }

    #khm-mobile-menu-panel.primary-menu a {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 46px !important;
        padding: 11px 14px !important;
        border-radius: 16px !important;
        background: #f3f7fc !important;
        color: #071f43 !important;
        text-decoration: none !important;
        font-size: 14px !important;
        line-height: 1.8 !important;
        position: static !important;
        transform: none !important;
        white-space: normal !important;
    }

    #khm-mobile-menu-panel.primary-menu a:hover,
    #khm-mobile-menu-panel.primary-menu .current-menu-item > a {
        background: #1685e5 !important;
        color: #ffffff !important;
    }

    #khm-mobile-menu-panel.primary-menu .khm-menu-button-item > a {
        background: #d32433 !important;
        color: #ffffff !important;
        box-shadow: 0 12px 26px rgba(211,36,51,.18) !important;
    }

    .khm-mobile-menu-overlay {
        z-index: 10040 !important;
    }

    .khm-mobile-menu-toggle {
        z-index: 10060 !important;
    }

    body.admin-bar #khm-mobile-menu-panel.primary-menu {
        top: 128px !important;
    }
}



/* Khorrammachin Mobile Header Final Swap v1.0.40 */
@media (max-width: 782px) {
    .site-header__inner {
        grid-template-columns: 48px minmax(0, 1fr) 48px !important;
        direction: ltr !important;
    }

    .site-branding {
        grid-column: 1 / -1 !important;
        display: contents !important;
    }

    /* لوگو سمت چپ */
    .site-branding > a,
    .site-branding .custom-logo-link {
        grid-column: 1 !important;
        grid-row: 1 !important;
        justify-self: start !important;
        align-self: center !important;
        direction: rtl !important;
    }

    /* نام سایت وسط */
    .site-branding > div {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: center !important;
        align-self: center !important;
        text-align: center !important;
        direction: rtl !important;
    }

    /* آیکن منو سمت راست */
    .khm-mobile-menu-toggle {
        grid-column: 3 !important;
        grid-row: 1 !important;
        justify-self: end !important;
        align-self: center !important;
        direction: rtl !important;
    }
}



/* Khorrammachin Contact / About / FAQ Pages v1.0.41 */
.khm-page-shell {
    overflow: hidden;
}

.khm-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(22,133,229,.10);
    color: #1685e5;
    font-weight: 900;
    margin-bottom: 14px;
}

.khm-contact-hero,
.khm-about-hero,
.khm-faq-hero {
    padding: clamp(48px, 7vw, 92px) 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(22,133,229,.12), transparent 30%),
        linear-gradient(135deg, #f7fbff, #fff);
}

.khm-contact-hero-grid,
.khm-about-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(24px, 4vw, 54px);
    align-items: center;
}

.khm-contact-hero-content h1,
.khm-about-hero-content h1,
.khm-faq-hero h1 {
    margin: 0 0 18px;
    color: #071f43;
    font-size: clamp(32px, 4.2vw, 58px);
    line-height: 1.45;
    font-weight: var(--khm-title-font-weight, 800);
}

.khm-contact-hero-content p,
.khm-about-hero-content p,
.khm-faq-hero p {
    margin: 0 0 26px;
    color: #53647f;
    font-size: 17px;
    line-height: 2.15;
}

.khm-contact-hero-actions,
.khm-contact-address-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.khm-contact-hero-actions a,
.khm-contact-address-links a,
.khm-about-hero-content a,
.khm-about-cta-card a,
.khm-faq-more a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 17px;
    background: #d32433;
    color: #fff;
    text-decoration: none;
    font-weight: var(--khm-button-font-weight, 800);
    box-shadow: 0 14px 30px rgba(211,36,51,.18);
}

.khm-contact-hero-actions a:nth-child(2),
.khm-contact-address-links a:nth-child(2) {
    background: #1685e5;
}

.khm-contact-hero-image,
.khm-about-hero-image {
    border-radius: 34px;
    padding: 12px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(7,31,67,.12);
}

.khm-contact-hero-image img,
.khm-about-hero-image img {
    width: 100%;
    height: clamp(260px, 34vw, 430px);
    object-fit: cover;
    border-radius: 26px;
    display: block;
}

.khm-contact-info-section,
.khm-contact-main-section,
.khm-map-section,
.khm-contact-faq-section,
.khm-about-history-section,
.khm-about-products-section,
.khm-about-stats-section,
.khm-about-cta-section,
.khm-faq-full-section {
    padding: clamp(36px, 5vw, 72px) 0;
}

.khm-contact-info-grid,
.khm-about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 18px;
}

.khm-info-card,
.khm-stat-box,
.khm-contact-form-card,
.khm-contact-address-card,
.khm-map-card,
.khm-about-card,
.khm-service-box,
.khm-faq-item {
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(7,31,67,.08);
    border-radius: 28px;
    box-shadow: 0 18px 48px rgba(7,31,67,.08);
}

.khm-info-card,
.khm-stat-box,
.khm-service-box {
    padding: 24px;
}

.khm-info-card span,
.khm-stat-box span {
    display: block;
    color: #53647f;
    margin-bottom: 8px;
    font-weight: 800;
}

.khm-info-card a,
.khm-info-card strong,
.khm-stat-box strong {
    display: block;
    color: #071f43;
    text-decoration: none;
    font-size: 20px;
    line-height: 1.8;
    font-weight: 900;
}

.khm-contact-main-grid,
.khm-map-grid,
.khm-about-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.khm-contact-form-card,
.khm-contact-address-card,
.khm-map-card,
.khm-about-card {
    padding: clamp(24px, 3vw, 40px);
}

.khm-contact-request-form {
    display: grid;
    gap: 16px;
}

.khm-contact-request-form label {
    display: grid;
    gap: 8px;
    color: #071f43;
    font-weight: 850;
}

.khm-contact-request-form input,
.khm-contact-request-form textarea {
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(22,133,229,.25);
    background: #fff;
    color: #071f43;
    padding: 13px 15px;
    box-shadow: 0 8px 18px rgba(7,31,67,.04);
    font-family: inherit;
}

.khm-contact-request-form button {
    min-height: 50px;
    border: 0;
    border-radius: 18px;
    background: #d32433;
    color: #fff;
    font-family: inherit;
    font-weight: var(--khm-button-font-weight, 800);
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(211,36,51,.18);
}

.khm-contact-success {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(15,166,92,.10);
    color: #08713f;
    font-weight: 850;
}

.khm-contact-address-card p,
.khm-about-card p,
.khm-service-box p,
.khm-faq-item p,
.khm-about-cta-card p {
    color: #53647f;
    line-height: 2.15;
    font-size: 16px;
}

.khm-map-frame {
    overflow: hidden;
    border-radius: 24px;
    background: #f3f7fc;
}

.khm-map-frame iframe {
    display: block;
    width: 100%;
    height: 390px;
    border: 0;
}

.khm-faq-list {
    display: grid;
    gap: 16px;
}

.khm-faq-item {
    padding: 0;
    overflow: hidden;
}

.khm-faq-item summary {
    cursor: pointer;
    padding: 18px 22px;
    color: #071f43;
    font-size: 17px;
    font-weight: var(--khm-h2-font-weight, 800);
    list-style: none;
}

.khm-faq-item summary::-webkit-details-marker {
    display: none;
}

.khm-faq-item p {
    margin: 0;
    padding: 0 22px 22px;
}

.khm-faq-more {
    margin-top: 24px;
    text-align: center;
}

.khm-about-bg-card,
.khm-about-cta-card {
    color: #fff;
    background:
        linear-gradient(135deg, rgba(7,31,67,.88), rgba(7,31,67,.70)),
        url('https://khorrammachine.co/wp-content/uploads/2026/06/1231.jpg') center/cover;
}

.khm-about-bg-card h2,
.khm-about-bg-card p,
.khm-about-cta-card h2,
.khm-about-cta-card p {
    color: #fff;
}

.khm-about-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 18px;
}

.khm-service-box h3 {
    margin: 0 0 10px;
    color: #071f43;
    font-size: 20px;
}

.khm-stat-box {
    text-align: center;
}

.khm-stat-box strong {
    font-size: clamp(30px, 4vw, 48px);
    color: #d32433;
}

.khm-about-cta-card {
    border-radius: 34px;
    padding: clamp(30px, 5vw, 64px);
    text-align: center;
    background:
        linear-gradient(135deg, rgba(7,31,67,.88), rgba(211,36,51,.62)),
        url('https://khorrammachine.co/wp-content/uploads/2026/06/preefooter-min-copy.png') center/cover;
    box-shadow: 0 22px 60px rgba(7,31,67,.16);
}

.khm-about-cta-card h2 {
    margin: 0 0 16px;
    font-size: clamp(28px, 4vw, 46px);
}

.khm-reveal {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: opacity .75s ease, transform .75s ease;
    will-change: opacity, transform;
}

.khm-reveal-right {
    transform: translate3d(40px, 0, 0);
}

.khm-reveal-left {
    transform: translate3d(-40px, 0, 0);
}

.khm-reveal-up {
    transform: translate3d(0, 36px, 0);
}

.khm-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (max-width: 980px) {
    .khm-contact-hero-grid,
    .khm-about-hero-grid,
    .khm-contact-main-grid,
    .khm-map-grid,
    .khm-about-two-col {
        grid-template-columns: 1fr;
    }

    .khm-contact-info-grid,
    .khm-about-stats-grid,
    .khm-about-services-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 560px) {
    .khm-contact-info-grid,
    .khm-about-stats-grid,
    .khm-about-services-grid {
        grid-template-columns: 1fr;
    }

    .khm-contact-hero-actions,
    .khm-contact-address-links {
        display: grid;
    }

    .khm-map-frame iframe {
        height: 320px;
    }
}



/* Khorrammachin Footer Design v1.0.43 */
.khm-site-footer {
    position: relative;
    margin-top: 90px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(7, 14, 36, .92), rgba(7, 14, 36, .86)),
        url('https://khorrammachine.co/wp-content/uploads/2026/06/Group-76-1-copy1.png') center/cover no-repeat;
    overflow: hidden;
}

.khm-site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 5%, rgba(22, 133, 229, .16), transparent 28%),
        radial-gradient(circle at 84% 10%, rgba(211, 36, 51, .14), transparent 26%);
    pointer-events: none;
}

.khm-footer-newsletter {
    position: relative;
    z-index: 2;
    transform: translateY(-50%);
    margin-bottom: -70px;
}

.khm-footer-newsletter-card {
    width: min(1040px, calc(100% - 60px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 24px;
    align-items: center;
    min-height: 170px;
    padding: 34px 42px;
    border-radius: 28px;
    background: linear-gradient(135deg, #ffd05b, #ffbf36);
    color: #071f43;
    box-shadow: 0 24px 70px rgba(7, 31, 67, .22);
}

.khm-footer-newsletter-title span {
    display: inline-flex;
    margin-bottom: 8px;
    color: #1685e5;
    font-weight: 900;
}

.khm-footer-newsletter-title h2 {
    margin: 0;
    font-size: clamp(24px, 2.7vw, 34px);
    line-height: 1.55;
    color: #071f43;
}

.khm-footer-newsletter-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 10px;
}

.khm-footer-newsletter-form input {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 15px;
    background: #fff;
    color: #071f43;
    padding: 10px 16px;
    font-family: inherit;
    box-shadow: 0 10px 24px rgba(7, 31, 67, .08);
}

.khm-footer-newsletter-form button {
    min-height: 56px;
    border: 0;
    border-radius: 15px;
    background: #1685e5;
    color: #fff;
    padding: 10px 22px;
    font-family: inherit;
    font-weight: var(--khm-button-font-weight, 800);
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(22, 133, 229, .22);
}

.khm-footer-main,
.khm-footer-bottom {
    position: relative;
    z-index: 2;
}

.khm-footer-main {
    padding: 145px 0 72px;
}

.khm-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr .95fr 1.15fr;
    gap: clamp(24px, 4vw, 54px);
    align-items: start;
}

.khm-footer-brand,
.khm-footer-col,
.khm-footer-contact {
    min-width: 0;
}

.khm-footer-logo-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.khm-footer-logo-row img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    border-radius: 18px;
    background: #fff;
    padding: 6px;
    box-shadow: 0 12px 28px rgba(255,255,255,.08);
}

.khm-footer-logo-row strong {
    display: block;
    font-size: 27px;
    line-height: 1.4;
    color: #fff;
    font-weight: 900;
}

.khm-footer-logo-row span,
.khm-footer-brand p,
.khm-footer-contact p,
.khm-footer-contact-item span {
    color: rgba(255,255,255,.78);
}

.khm-footer-brand p {
    margin: 0 0 22px;
    line-height: 2.1;
    font-size: 15px;
}

.khm-footer-phone-box {
    display: inline-grid;
    gap: 4px;
    padding: 14px 18px;
    border-radius: 20px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
}

.khm-footer-phone-box span {
    color: rgba(255,255,255,.72);
    font-size: 13px;
}

.khm-footer-phone-box a {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    font-weight: 900;
    direction: ltr;
}

.khm-site-footer h3 {
    margin: 0 0 20px;
    color: #fff;
    font-size: 21px;
    font-weight: var(--khm-h3-font-weight, 800);
}

.khm-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.khm-footer-col a,
.khm-footer-contact a,
.khm-footer-bottom a {
    color: rgba(255,255,255,.88);
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.khm-footer-col a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.khm-footer-col a::before {
    content: "‹";
    color: #1685e5;
    font-size: 20px;
    line-height: 1;
}

.khm-footer-col a:hover,
.khm-footer-contact a:hover,
.khm-footer-bottom a:hover {
    color: #ffd05b;
}

.khm-footer-contact {
    display: grid;
    gap: 14px;
}

.khm-footer-contact-item {
    display: grid;
    gap: 6px;
}

.khm-footer-contact-item p {
    margin: 0;
    line-height: 2;
}

.khm-footer-contact-item a {
    direction: ltr;
    display: inline-block;
}

.khm-footer-social {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.khm-footer-social a {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255,255,255,.11);
    color: #fff;
    font-size: 18px;
}

.khm-footer-social a:hover {
    background: #1685e5;
    color: #fff;
    transform: translateY(-3px);
}

.khm-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.10);
    background: rgba(3, 8, 24, .28);
}

.khm-footer-bottom-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: rgba(255,255,255,.82);
    font-size: 14px;
}

@media (max-width: 1100px) {
    .khm-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .khm-footer-newsletter-card {
        grid-template-columns: 1fr;
    }

    .khm-footer-newsletter-form {
        grid-template-columns: 1fr 1fr;
    }

    .khm-footer-newsletter-form button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .khm-site-footer {
        margin-top: 70px;
    }

    .khm-footer-newsletter-card {
        width: calc(100% - 32px);
        padding: 26px;
        border-radius: 24px;
    }

    .khm-footer-newsletter-form {
        grid-template-columns: 1fr;
    }

    .khm-footer-main {
        padding-top: 120px;
    }

    .khm-footer-grid {
        grid-template-columns: 1fr;
    }

    .khm-footer-bottom-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 20px 0;
    }
}



/* Khorrammachin About Image + Footer + FAQ Fixes v1.0.44 */

/* تصویر دسته‌جمعی صفحه درباره ما: نمایش کامل اعضای تیم */
.khm-about-hero-image img {
    object-fit: contain !important;
    object-position: center center !important;
    background: #ffffff !important;
}

/* کارت زرد بالای فوتر باید روی بخش قبلی دیده شود */
.khm-site-footer {
    z-index: 5 !important;
    overflow: visible !important;
}

.khm-footer-newsletter {
    position: relative !important;
    z-index: 50 !important;
}

.khm-footer-newsletter-card {
    position: relative !important;
    z-index: 60 !important;
}

/* اگر بخش قبل از فوتر overflow داشته باشد، کارت زرد زیر آن نرود */
.site-main,
#primary,
.khm-page-shell {
    overflow: visible !important;
}

/* دکمه + و - کنار سوالات */
.khm-faq-item summary {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding-inline-end: 22px !important;
}

.khm-faq-item summary::after {
    content: "+" !important;
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    background: rgba(22,133,229,.10) !important;
    color: #1685e5 !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    transition: background .2s ease, color .2s ease, transform .2s ease !important;
}

.khm-faq-item[open] summary::after {
    content: "−" !important;
    background: #d32433 !important;
    color: #ffffff !important;
}

.khm-faq-item summary:hover::after {
    transform: scale(1.06) !important;
}

/* فوتر موبایل: وسط‌چین کردن منوهای لینک‌های سریع و محصولات */
@media (max-width: 680px) {
    .khm-footer-col {
        text-align: center !important;
    }

    .khm-footer-col h3 {
        text-align: center !important;
    }

    .khm-footer-col ul {
        align-items: center !important;
        justify-items: center !important;
        text-align: center !important;
    }

    .khm-footer-col li {
        text-align: center !important;
        width: 100% !important;
    }

    .khm-footer-col a {
        justify-content: center !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .khm-footer-col a::before {
        display: none !important;
    }
}



/* Khorrammachin Home Blog Final v1.0.46 */
.khm-home-blog-only {
    min-height: auto;
}

.khm-home-blog-section {
    padding: clamp(48px, 6vw, 82px) 0;
    background:
        radial-gradient(circle at 15% 0%, rgba(22,133,229,.10), transparent 30%),
        linear-gradient(135deg, #f7fbff 0%, #ffffff 58%, #f3f7fc 100%);
    overflow: hidden;
}

.khm-home-blog-heading {
    text-align: center;
    margin-bottom: clamp(26px, 3.5vw, 42px);
}

.khm-home-blog-heading h2 {
    margin: 0 0 12px;
    color: #071f43;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.55;
    font-weight: var(--khm-h2-font-weight, 800);
}

.khm-home-blog-heading h2 span,
.khm-home-blog-heading h2 strong {
    color: #1685e5;
}

.khm-home-blog-heading p {
    margin: 0;
    color: #53647f;
    line-height: 2;
    font-size: 16px;
}

.khm-home-blog-layout {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: clamp(18px, 2.4vw, 30px);
    align-items: stretch;
    direction: rtl;
    max-width: 1120px;
    margin: 0 auto;
}

/* مقاله اول: مربع، کاور، ارتفاع کنترل‌شده */
.khm-home-blog-featured {
    width: 100%;
    align-self: stretch;
}

.khm-home-blog-featured-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 0 !important;
    overflow: hidden;
    border-radius: 26px;
    background: #071f43;
    box-shadow: 0 20px 52px rgba(7,31,67,.15);
    text-decoration: none;
}

.khm-home-blog-featured-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7,31,67,.84), rgba(7,31,67,.10) 55%, transparent);
    z-index: 1;
}

.khm-home-blog-featured-image img {
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform .35s ease;
}

.khm-home-blog-featured-image:hover img {
    transform: scale(1.04);
}

.khm-home-blog-featured-content {
    position: absolute;
    right: 22px;
    left: 22px;
    bottom: 20px;
    z-index: 2;
    color: #fff;
}

.khm-home-blog-featured-content h3 {
    margin: 0 0 7px;
    color: #fff;
    font-size: clamp(18px, 2vw, 25px);
    line-height: 1.55;
    font-weight: var(--khm-h3-font-weight, 800);
}

.khm-home-blog-featured-content time,
.khm-home-blog-mini time {
    color: #1685e5;
    font-weight: 800;
    font-size: 13px;
}

.khm-home-blog-featured-content time {
    color: #eaf6ff;
}

.khm-home-blog-arrow,
.khm-home-blog-mini-arrow {
    position: relative;
}

.khm-home-blog-arrow {
    position: absolute;
    right: 22px;
    bottom: 78px;
    z-index: 3;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255,255,255,.20);
    color: #fff;
    border: 1px solid rgba(255,255,255,.35);
}

.khm-home-blog-arrow::before,
.khm-home-blog-mini-arrow::before,
.khm-home-blog-more a span::before {
    content: "";
    width: 10px;
    height: 10px;
    display: block;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(-45deg);
}

.khm-home-blog-list {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
    direction: rtl;
    min-height: 0;
}

.khm-home-blog-mini {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 112px;
    gap: 13px;
    align-items: center;
    min-height: 0;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(22,133,229,.26);
    box-shadow: 0 10px 24px rgba(7,31,67,.055);
    overflow: visible;
}

.khm-home-blog-mini::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    right: -7px;
    width: 14px;
    border-radius: 0 16px 16px 0;
    background: #1685e5;
    z-index: 0;
}

.khm-home-blog-mini > * {
    position: relative;
    z-index: 1;
}

.khm-home-blog-mini-arrow {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 2px solid #1685e5;
    color: #1685e5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    justify-self: center;
    background: #fff;
}

.khm-home-blog-mini-content h3 {
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.7;
    font-weight: var(--khm-h3-font-weight, 800);
}

.khm-home-blog-mini-content h3 a {
    color: #071f43;
    text-decoration: none;
}

.khm-home-blog-mini-content h3 a:hover {
    color: #d32433;
}

.khm-home-blog-mini-thumb {
    display: block;
    width: 112px;
    height: 76px;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f7fc;
}

.khm-home-blog-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* حذف هرگونه تبدیل ایموجی فلش؛ آیکن با CSS ساخته می‌شود */
.khm-home-blog-arrow img.emoji,
.khm-home-blog-mini-arrow img.emoji,
.khm-home-blog-more img.emoji {
    display: none !important;
}

.khm-home-blog-more {
    margin-top: 28px;
    text-align: center;
}

.khm-home-blog-more a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 15px;
    background: #071f43;
    color: #fff;
    text-decoration: none;
    font-weight: var(--khm-button-font-weight, 800);
    box-shadow: 0 14px 30px rgba(7,31,67,.15);
}

.khm-home-blog-more a:hover {
    background: #d32433;
    color: #fff;
}

.khm-home-blog-more a span {
    display: inline-flex;
    color: currentColor;
}

.khm-home-blog-empty {
    text-align: center;
    padding: 28px;
    border-radius: 24px;
    background: #fff;
    color: #53647f;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(7,31,67,.06);
}

@media (max-width: 960px) {
    .khm-home-blog-layout {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .khm-home-blog-featured {
        order: 1;
    }

    .khm-home-blog-list {
        order: 2;
        grid-template-rows: none;
    }
}

@media (max-width: 560px) {
    .khm-home-blog-section {
        padding: 42px 0;
    }

    .khm-home-blog-layout {
        max-width: 100%;
    }

    .khm-home-blog-featured-image {
        border-radius: 22px;
    }

    .khm-home-blog-mini {
        grid-template-columns: 38px minmax(0,1fr) 82px;
        gap: 9px;
        min-height: 92px;
        padding: 10px;
    }

    .khm-home-blog-mini-thumb {
        width: 82px;
        height: 66px;
    }

    .khm-home-blog-mini-content h3 {
        font-size: 13px;
        line-height: 1.6;
    }

    .khm-home-blog-mini time {
        font-size: 12px;
    }

    .khm-home-blog-mini-arrow {
        width: 30px;
        height: 30px;
    }
}



/* Khorrammachin Home Testimonials v1.0.47 */
.khm-home-testimonials-section {
    padding: clamp(50px, 6vw, 82px) 0 28px;
    background:
        radial-gradient(circle at 15% 0%, rgba(22,133,229,.08), transparent 30%),
        linear-gradient(135deg, #f7fbff 0%, #ffffff 58%, #f3f7fc 100%);
    overflow: hidden;
}

.khm-home-testimonials-heading {
    text-align: center;
    margin-bottom: clamp(26px, 3.5vw, 42px);
}

.khm-home-testimonials-heading h2 {
    margin: 0 0 12px;
    color: #071f43;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.55;
    font-weight: var(--khm-h2-font-weight, 800);
}

.khm-home-testimonials-heading h2::first-line {
    color: #071f43;
}

.khm-home-testimonials-heading p {
    margin: 0;
    color: #53647f;
    line-height: 2;
    font-size: 16px;
}

.khm-testimonials-slider {
    position: relative;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 56px 44px;
    direction: rtl;
}

.khm-testimonials-viewport {
    overflow: hidden;
    width: 100%;
}

.khm-testimonials-track {
    display: flex;
    gap: 28px;
    transition: transform .5s ease;
    will-change: transform;
}

.khm-testimonial-card {
    flex: 0 0 calc((100% - 56px) / 3);
    min-height: 238px;
    padding: 26px 26px 22px;
    border-radius: 18px;
    background: #1685e5;
    color: #ffffff;
    box-shadow: 0 18px 44px rgba(22,133,229,.18);
}

.khm-testimonial-user {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.khm-testimonial-avatar {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #071f43, #d32433);
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(7,31,67,.16);
}

.khm-testimonial-user strong {
    display: block;
    color: #071f43;
    font-size: 17px;
    line-height: 1.8;
    font-weight: 900;
}

.khm-testimonial-user span {
    display: block;
    color: rgba(7,31,67,.82);
    font-size: 14px;
    font-weight: 800;
}

.khm-testimonial-text {
    position: relative;
    min-height: 104px;
    padding: 20px 20px;
    border-radius: 12px;
    background: #ffffff;
    color: #071f43;
    font-size: 15px;
    line-height: 2;
    font-weight: 750;
    text-align: justify;
    box-shadow: 0 12px 25px rgba(7,31,67,.08);
}

.khm-testimonial-text::before {
    content: "";
    position: absolute;
    top: -13px;
    right: 38px;
    width: 24px;
    height: 24px;
    background: #ffffff;
    transform: rotate(45deg);
    border-radius: 4px;
}

.khm-testimonial-nav {
    position: absolute;
    top: 50%;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    border: 0;
    background: #071f43;
    color: #ffffff;
    cursor: pointer;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    box-shadow: 0 12px 24px rgba(7,31,67,.16);
}

.khm-testimonial-nav::before {
    content: "";
    width: 10px;
    height: 10px;
    display: block;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
}

.khm-testimonial-prev {
    right: 0;
}

.khm-testimonial-prev::before {
    transform: rotate(135deg);
}

.khm-testimonial-next {
    left: 0;
}

.khm-testimonial-next::before {
    transform: rotate(-45deg);
}

.khm-testimonial-nav:hover {
    background: #d32433;
}

.khm-testimonial-dots {
    position: absolute;
    right: 56px;
    left: 56px;
    bottom: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.khm-testimonial-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(22,133,229,.25);
    cursor: pointer;
}

.khm-testimonial-dots button.is-active {
    background: #d32433;
    transform: scale(1.25);
}

@media (max-width: 980px) {
    .khm-testimonial-card {
        flex-basis: calc((100% - 28px) / 2);
    }
}

@media (max-width: 640px) {
    .khm-testimonials-slider {
        padding: 0 44px 42px;
    }

    .khm-testimonials-track {
        gap: 16px;
    }

    .khm-testimonial-card {
        flex-basis: 100%;
        min-height: 220px;
        padding: 22px;
    }

    .khm-testimonial-nav {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .khm-testimonial-dots {
        right: 44px;
        left: 44px;
    }
}

/* فاصله بین رضایت مشتریان و مقالات */
.khm-home-blog-section {
    padding-top: clamp(36px, 5vw, 70px);
}



/* Khorrammachin Home Benefits Section v1.0.48 */
.khm-home-benefits-section {
    position: relative;
    padding: clamp(58px, 7vw, 105px) 0 clamp(48px, 6vw, 82px);
    background:
        radial-gradient(circle at 16% 16%, rgba(22,133,229,.17), transparent 30%),
        radial-gradient(circle at 84% 88%, rgba(211,36,51,.12), transparent 30%),
        linear-gradient(135deg, #071f43 0%, #0c2348 48%, #07172f 100%);
    color: #ffffff;
    overflow: hidden;
}

.khm-home-benefits-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(120deg, rgba(255,255,255,.035) 0 1px, transparent 1px),
        linear-gradient(35deg, rgba(255,255,255,.026) 0 1px, transparent 1px);
    background-size: 74px 74px, 96px 96px;
    opacity: .55;
    pointer-events: none;
}

.khm-home-benefits-section .khorram-container {
    position: relative;
    z-index: 2;
}

.khm-home-benefits-heading {
    text-align: center;
    margin-bottom: clamp(28px, 4.5vw, 58px);
}

.khm-home-benefits-heading span {
    display: inline-flex;
    margin-bottom: 10px;
    color: #d32433;
    font-weight: 950;
}

.khm-home-benefits-heading h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(27px, 3.4vw, 46px);
    line-height: 1.55;
    font-weight: var(--khm-h2-font-weight, 800);
}

.khm-home-benefits-heading p {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255,255,255,.78);
    line-height: 2.1;
    font-size: 16px;
}

.khm-home-benefits-layout {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(260px, 380px) minmax(240px, 1fr);
    gap: clamp(24px, 4vw, 54px);
    align-items: center;
    direction: rtl;
}

.khm-benefits-col {
    display: grid;
    gap: 28px;
}

.khm-benefit-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 118px;
    padding: 22px 24px;
    border-radius: 16px;
    background: rgba(255,255,255,.075);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 18px 44px rgba(0,0,0,.16);
    transition:
        transform .28s ease,
        background .28s ease,
        border-color .28s ease,
        box-shadow .28s ease,
        color .28s ease;
    overflow: hidden;
}

.khm-benefit-card::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #1685e5;
    transition: width .28s ease, background .28s ease, opacity .28s ease;
    opacity: .95;
}

.khm-benefits-col-right .khm-benefit-card::before {
    left: 0;
}

.khm-benefits-col-left .khm-benefit-card::before {
    right: 0;
}

.khm-benefit-card:hover {
    transform: translateY(-7px);
    background: #ffffff;
    border-color: rgba(255,255,255,.55);
    box-shadow: 0 26px 60px rgba(0,0,0,.24);
}

.khm-benefit-card:hover::before {
    width: 100%;
    background: linear-gradient(135deg, rgba(22,133,229,.10), rgba(211,36,51,.08));
    opacity: 1;
}

.khm-benefit-card > * {
    position: relative;
    z-index: 2;
}

.khm-benefit-icon {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: #ffffff;
    font-size: 24px;
    font-weight: 950;
    transition: background .28s ease, color .28s ease, transform .28s ease;
}

.khm-benefit-card:hover .khm-benefit-icon {
    background: #d32433;
    color: #ffffff;
    transform: rotate(-8deg) scale(1.06);
}

.khm-benefit-card h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: clamp(18px, 1.5vw, 22px);
    line-height: 1.65;
    font-weight: var(--khm-h3-font-weight, 800);
    transition: color .28s ease;
}

.khm-benefit-card p {
    margin: 0;
    color: rgba(255,255,255,.74);
    font-size: 14px;
    line-height: 1.95;
    transition: color .28s ease;
}

.khm-benefit-card:hover h3 {
    color: #071f43;
}

.khm-benefit-card:hover p {
    color: #53647f;
}

.khm-benefits-machine {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 420px;
}

.khm-benefits-machine::before {
    content: "";
    position: absolute;
    width: min(340px, 78vw);
    height: min(340px, 78vw);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(22,133,229,.28), rgba(22,133,229,.07) 52%, transparent 72%);
    filter: blur(3px);
    animation: khmBenefitGlow 4s ease-in-out infinite alternate;
}

.khm-benefits-machine img {
    position: relative;
    z-index: 2;
    width: min(360px, 80vw);
    max-height: 470px;
    object-fit: contain;
    filter: drop-shadow(0 26px 40px rgba(0,0,0,.35));
    animation: khmBenefitFloat 4.6s ease-in-out infinite;
}

@keyframes khmBenefitFloat {
    from {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes khmBenefitGlow {
    from {
        transform: scale(.96);
        opacity: .75;
    }
    to {
        transform: scale(1.08);
        opacity: 1;
    }
}

@media (max-width: 1050px) {
    .khm-home-benefits-layout {
        grid-template-columns: 1fr;
        max-width: 720px;
        margin: 0 auto;
    }

    .khm-benefits-machine {
        order: -1;
        min-height: 310px;
    }

    .khm-benefits-machine img {
        width: min(310px, 76vw);
        max-height: 360px;
    }

    .khm-benefits-col {
        gap: 18px;
    }
}

@media (max-width: 560px) {
    .khm-home-benefits-section {
        padding: 48px 0;
    }

    .khm-benefit-card {
        min-height: auto;
        padding: 18px;
        gap: 14px;
    }

    .khm-benefit-icon {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .khm-benefits-machine {
        min-height: 260px;
    }

    .khm-benefits-machine img {
        width: min(260px, 78vw);
    }
}


/* Khorrammachin Requested Fixes v1.0.49 */
.khm-home-benefits-section .khorram-container {
    width: min(1120px, calc(100% - 60px)) !important;
    max-width: 1120px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 680px) {
    html, body {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .khm-site-footer,
    .khm-site-footer *,
    .khm-page-shell,
    .site-main,
    #primary {
        max-width: 100vw !important;
    }

    .khm-site-footer .khm-reveal,
    .khm-site-footer .khm-reveal-left,
    .khm-site-footer .khm-reveal-right,
    .khm-site-footer .khm-reveal-up,
    .khm-reveal-left,
    .khm-reveal-right {
        transform: translate3d(0, 24px, 0) !important;
    }

    .khm-site-footer .khm-reveal.is-visible,
    .khm-reveal.is-visible {
        transform: translate3d(0, 0, 0) !important;
    }

    .khm-home-benefits-section .khorram-container {
        width: calc(100% - 32px) !important;
        max-width: calc(100% - 32px) !important;
    }
}



/* Khorrammachin Home Fullscreen Slider v1.0.52 */
body.home .site-header,
body.front-page .site-header {
    position: absolute !important;
    top: 0;
    right: 0;
    left: 0;
    z-index: 10020;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

body.home .site-header::before,
body.front-page .site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(7,31,67,.45), rgba(7,31,67,0));
    pointer-events: none;
    z-index: -1;
}

body.home .site-header .site-title a,
body.front-page .site-header .site-title a,
body.home .site-header .primary-menu a,
body.front-page .site-header .primary-menu a {
    color: #ffffff !important;
}

body.home .site-header .primary-menu a:hover,
body.front-page .site-header .primary-menu a:hover {
    color: #ffd05b !important;
}

body.home .site-header .khm-menu-button-item > a,
body.front-page .site-header .khm-menu-button-item > a {
    background: rgba(211,36,51,.92) !important;
    color: #ffffff !important;
}

body.home .khm-mobile-menu-toggle,
body.front-page .khm-mobile-menu-toggle {
    background: rgba(255,255,255,.18) !important;
    color: #ffffff !important;
    backdrop-filter: blur(10px);
}

.khm-home-hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 620px;
    overflow: hidden;
    background: #071f43;
    margin-top: 0;
}

.khm-home-hero-slides,
.khm-home-hero-slide {
    position: absolute;
    inset: 0;
}

.khm-home-hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s ease, visibility .9s ease;
    overflow: hidden;
}

.khm-home-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.khm-home-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 9s linear;
}

.khm-home-hero-slide.is-active img {
    transform: scale(1.12);
}

.khm-home-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7,31,67,.90), rgba(7,31,67,.50) 44%, rgba(7,31,67,.12)),
        radial-gradient(circle at 16% 58%, rgba(22,133,229,.24), transparent 34%);
    z-index: 2;
}

.khm-home-hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    direction: ltr;
}

.khm-home-hero-text {
    width: min(560px, 92vw);
    color: #ffffff;
    text-align: left;
    direction: rtl;
}

.khm-home-hero-text span {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 15px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    color: #ffd05b;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.khm-home-hero-text h1 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: clamp(42px, 6vw, 86px);
    line-height: 1.2;
    font-weight: var(--khm-h1-font-weight, 800);
}

.khm-home-hero-text p {
    margin: 0 0 28px;
    color: rgba(255,255,255,.86);
    font-size: clamp(16px, 1.7vw, 22px);
    line-height: 2.05;
    max-width: 620px;
}

.khm-home-hero-text a {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 25px;
    border-radius: 17px;
    background: #d32433;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: var(--khm-button-font-weight, 800);
    box-shadow: 0 16px 34px rgba(211,36,51,.25);
}

.khm-home-hero-text a:hover {
    background: #1685e5;
    color: #ffffff !important;
}

.khm-home-hero-dots {
    position: absolute;
    right: 50%;
    bottom: 32px;
    transform: translateX(50%);
    z-index: 4;
    display: flex;
    gap: 10px;
}

.khm-home-hero-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.45);
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}

.khm-home-hero-dots button.is-active {
    width: 30px;
    background: #d32433;
}

.khm-slider-admin-box {
    margin-top: 18px;
    padding: 18px;
    border-radius: 22px;
    background: #f7fbff;
    border: 1px solid rgba(7,31,67,.07);
    box-shadow: 0 8px 20px rgba(7,31,67,.04);
}

.khm-slider-admin-images {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.khm-slider-admin-image-row {
    display: grid;
    grid-template-columns: 42px 100px minmax(0,1fr) 80px;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(7,31,67,.08);
}

.khm-slider-admin-image-row img {
    width: 100px;
    height: 58px;
    object-fit: cover;
    border-radius: 12px;
    background: #f3f7fc;
}

.khm-slider-admin-image-row input {
    direction: ltr;
    text-align: left;
}

@media (max-width: 782px) {
    body.home .site-header,
    body.front-page .site-header {
        position: absolute !important;
        top: 0 !important;
    }

    .khm-home-hero-slider {
        min-height: 560px;
        height: 100vh;
    }

    .khm-home-hero-overlay {
        background:
            linear-gradient(to top, rgba(7,31,67,.86), rgba(7,31,67,.44) 58%, rgba(7,31,67,.36)),
            radial-gradient(circle at 50% 60%, rgba(22,133,229,.18), transparent 40%);
    }

    .khm-home-hero-content {
        justify-content: center;
        align-items: flex-end;
        padding-bottom: 86px;
    }

    .khm-home-hero-text {
        text-align: center;
        width: min(92vw, 560px);
    }

    .khm-home-hero-text h1 {
        font-size: clamp(34px, 11vw, 56px);
    }

    .khm-home-hero-text p {
        font-size: 15px;
        line-height: 2;
    }

    .khm-slider-admin-image-row {
        grid-template-columns: 1fr;
    }
}



/* Khorrammachin Home Slider Fixes v1.0.53 */
/* متن اسلایدر در سمت راست */
.khm-home-hero-overlay {
    background:
        linear-gradient(270deg, rgba(7,31,67,.92), rgba(7,31,67,.55) 45%, rgba(7,31,67,.12)) !important,
        radial-gradient(circle at 84% 58%, rgba(22,133,229,.24), transparent 34%) !important;
}

.khm-home-hero-content {
    justify-content: flex-end !important;
    direction: rtl !important;
}

.khm-home-hero-text {
    text-align: right !important;
    direction: rtl !important;
    animation: khmHeroTextEnter .95s ease both;
}

.khm-home-hero-text span {
    animation: khmHeroTextEnter .75s ease .12s both;
}

.khm-home-hero-text h1 {
    animation: khmHeroTextEnter .85s ease .22s both;
}

.khm-home-hero-text p {
    animation: khmHeroTextEnter .9s ease .34s both;
}

.khm-home-hero-text a {
    animation: khmHeroTextEnter .9s ease .48s both;
}

@keyframes khmHeroTextEnter {
    from {
        opacity: 0;
        transform: translate3d(46px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* پنل تنظیمات اسلایدر در تنظیمات قالب */
#khm-settings-home-slider.khm-settings-section-active {
    display: block !important;
}

.khm-slider-admin-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.khm-slider-admin-images {
    width: 100% !important;
    max-width: 100% !important;
}

@media (max-width: 782px) {
    .khm-home-hero-content {
        justify-content: center !important;
        align-items: flex-end !important;
    }

    .khm-home-hero-text {
        text-align: center !important;
    }

    @keyframes khmHeroTextEnter {
        from {
            opacity: 0;
            transform: translate3d(0, 28px, 0);
        }
        to {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }
    }
}



/* Khorrammachin Home Slider Right Alignment Final v1.0.54 */
.khm-home-hero-content {
    justify-content: flex-start !important;
    direction: rtl !important;
}

.khm-home-hero-text {
    margin-right: 0 !important;
    margin-left: auto !important;
    text-align: right !important;
    direction: rtl !important;
    transform-origin: right center !important;
}

.khm-home-hero-text span,
.khm-home-hero-text h1,
.khm-home-hero-text p,
.khm-home-hero-text a {
    text-align: right !important;
}

.khm-home-hero-text a {
    margin-right: 0 !important;
    margin-left: auto !important;
}

.khm-home-hero-overlay {
    background:
        linear-gradient(90deg, rgba(7,31,67,.14), rgba(7,31,67,.52) 48%, rgba(7,31,67,.92)) !important,
        radial-gradient(circle at 82% 56%, rgba(22,133,229,.24), transparent 34%) !important;
}

@keyframes khmHeroTextEnter {
    from {
        opacity: 0;
        transform: translate3d(-46px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@media (max-width: 782px) {
    .khm-home-hero-content {
        justify-content: center !important;
        align-items: flex-end !important;
    }

    .khm-home-hero-text {
        margin-right: auto !important;
        margin-left: auto !important;
        text-align: center !important;
    }

    .khm-home-hero-text span,
    .khm-home-hero-text h1,
    .khm-home-hero-text p,
    .khm-home-hero-text a {
        text-align: center !important;
    }

    .khm-home-hero-text a {
        margin-right: auto !important;
        margin-left: auto !important;
    }

    @keyframes khmHeroTextEnter {
        from {
            opacity: 0;
            transform: translate3d(0, 28px, 0);
        }
        to {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }
    }
}



/* Khorrammachin Slider Gradient + Title + Desktop Padding Fix v1.0.55 */

/* گرادینت خوانایی اسلایدر سمت راست */
.khm-home-hero-overlay {
    background:
        linear-gradient(90deg, rgba(7,31,67,.06) 0%, rgba(7,31,67,.28) 38%, rgba(7,31,67,.76) 68%, rgba(7,31,67,.96) 100%) !important,
        radial-gradient(circle at 82% 50%, rgba(22,133,229,.25), transparent 36%) !important;
}

/* حذف ظاهری نوشته کوچک در صورت باقی‌ماندن از کش یا نسخه قبلی */
.khm-home-hero-text > span {
    display: none !important;
}

/* عنوان بزرگ در همان جای راست و بدون شکست خط */
.khm-home-hero-text h1 {
    white-space: nowrap !important;
    max-width: none !important;
    width: auto !important;
    display: block !important;
}

/* در دسکتاپ پدینگ اضافه پایین صفحات حذف شود و فاصله به حالت قبلی برگردد */
@media (min-width: 769px) {
    .site-main,
    #primary,
    .khm-page-shell,
    .khm-single-page,
    .khm-archive-page,
    .khm-products-archive,
    .khm-articles-archive,
    .khm-contact-page,
    .khm-about-page,
    .khm-faq-page,
    .khm-home-blog-section,
    .khm-home-testimonials-section,
    .khm-home-benefits-section {
        padding-bottom: initial !important;
    }
}

@media (max-width: 782px) {
    .khm-home-hero-text h1 {
        white-space: normal !important;
    }

    .khm-home-hero-overlay {
        background:
            linear-gradient(to top, rgba(7,31,67,.88), rgba(7,31,67,.45) 58%, rgba(7,31,67,.32)) !important,
            radial-gradient(circle at 50% 58%, rgba(22,133,229,.20), transparent 42%) !important;
    }
}



/* Khorrammachin Slider Real Right Gradient + Home Bottom Gap v1.0.57 */

/*
 * گرادینت واقعی سمت راست:
 * با pseudo-element جداگانه و z-index بالاتر اعمال می‌شود تا هیچ گرادینت قبلی آن را خنثی نکند.
 */
.khm-home-hero-overlay {
    background: transparent !important;
}

.khm-home-hero-overlay::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background:
        linear-gradient(270deg,
            rgba(7,31,67,.98) 0%,
            rgba(7,31,67,.86) 24%,
            rgba(7,31,67,.48) 52%,
            rgba(7,31,67,.12) 78%,
            rgba(7,31,67,0) 100%
        ) !important;
    pointer-events: none !important;
}

.khm-home-hero-overlay::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: radial-gradient(circle at 82% 50%, rgba(22,133,229,.30), transparent 38%) !important;
    pointer-events: none !important;
}

/* عنوان اسلایدر از تنظیمات */
.khm-home-hero-text h1 {
    font-size: var(--khm-slider-title-size, 74px) !important;
    font-weight: var(--khm-slider-title-weight, 800) !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
}

/*
 * فاصله پایین فقط صفحه اصلی:
 * فقط آخرین سکشن صفحه اصلی، یعنی بخش مقالات، 50px فاصله اضافه می‌گیرد.
 * هیچ پدینگ عمومی روی همه صفحات یا همه سکشن‌ها اعمال نمی‌شود.
 */
body.home .khm-home-blog-section,
body.front-page .khm-home-blog-section {
    padding-bottom: calc(clamp(48px, 6vw, 82px) + 50px) !important;
}

@media (max-width: 782px) {
    .khm-home-hero-overlay::before {
        background:
            linear-gradient(to top,
                rgba(7,31,67,.88) 0%,
                rgba(7,31,67,.48) 58%,
                rgba(7,31,67,.26) 100%
            ) !important;
    }

    .khm-home-hero-overlay::after {
        background: radial-gradient(circle at 50% 58%, rgba(22,133,229,.20), transparent 42%) !important;
    }

    .khm-home-hero-text h1 {
        white-space: normal !important;
        font-size: min(var(--khm-slider-title-size, 74px), 54px) !important;
    }

    body.home .khm-home-blog-section,
    body.front-page .khm-home-blog-section {
        padding-bottom: calc(42px + 50px) !important;
    }
}



/* Khorrammachin Home Products Showcase v1.0.58 */
.khm-home-products-showcase {
    position: relative;
    padding: clamp(54px, 7vw, 96px) 0;
    background:
        radial-gradient(circle at 12% 6%, rgba(22,133,229,.10), transparent 34%),
        radial-gradient(circle at 84% 92%, rgba(211,36,51,.08), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f7fbff 50%, #f3f7fc 100%);
    overflow: hidden;
}

.khm-home-products-showcase::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(22,133,229,.28), transparent);
}

.khm-home-products-heading {
    text-align: center;
    margin-bottom: clamp(30px, 4vw, 56px);
}

.khm-home-products-heading span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(211,36,51,.08);
    color: #d32433;
    font-weight: 950;
    margin-bottom: 12px;
}

.khm-home-products-heading h2 {
    margin: 0 0 13px;
    color: #071f43;
    font-size: clamp(28px, 3.4vw, 46px);
    line-height: 1.55;
    font-weight: var(--khm-h2-font-weight, 800);
}

.khm-home-products-heading p {
    max-width: 760px;
    margin: 0 auto;
    color: #53647f;
    line-height: 2.1;
    font-size: 16px;
}

.khm-home-products-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: 180px;
    gap: 18px;
    direction: rtl;
}

.khm-home-product-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #071f43;
    box-shadow: 0 20px 50px rgba(7,31,67,.12);
    isolation: isolate;
}

.khm-home-product-featured {
    grid-column: span 2;
    grid-row: span 2;
}

.khm-home-product-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
}

.khm-home-product-media,
.khm-home-product-media img {
    width: 100%;
    height: 100%;
}

.khm-home-product-media {
    position: absolute;
    inset: 0;
    background: #071f43;
}

.khm-home-product-media img {
    display: block;
    object-fit: cover;
    transition: transform .55s ease, filter .55s ease;
}

.khm-home-product-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(7,31,67,.88), rgba(7,31,67,.24) 60%, rgba(7,31,67,.02)),
        linear-gradient(135deg, rgba(22,133,229,.22), transparent 42%);
    z-index: 1;
    transition: opacity .35s ease;
}

.khm-product-glow {
    position: absolute;
    inset: auto -25% -35% -25%;
    height: 58%;
    background: radial-gradient(circle, rgba(211,36,51,.42), transparent 62%);
    opacity: .0;
    transform: translateY(30px);
    transition: opacity .45s ease, transform .45s ease;
    z-index: 2;
}

.khm-home-product-content {
    position: absolute;
    z-index: 3;
    inset-inline: 18px;
    bottom: 18px;
    display: grid;
    gap: 8px;
}

.khm-home-product-number {
    width: 42px;
    height: 32px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.16);
    color: #ffd05b;
    font-weight: 950;
    backdrop-filter: blur(10px);
}

.khm-home-product-content h3 {
    margin: 0;
    color: #fff;
    font-size: 17px;
    line-height: 1.7;
    font-weight: var(--khm-h3-font-weight, 800);
    text-shadow: 0 7px 18px rgba(0,0,0,.25);
}

.khm-home-product-featured .khm-home-product-content h3 {
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.55;
}

.khm-home-product-more {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.92);
    font-size: 13px;
    font-weight: 850;
    opacity: .0;
    transform: translateY(8px);
    transition: opacity .35s ease, transform .35s ease;
}

.khm-home-product-more::before {
    content: "";
    width: 24px;
    height: 2px;
    border-radius: 99px;
    background: #d32433;
}

.khm-home-product-card:hover .khm-home-product-media img {
    transform: scale(1.10) rotate(.6deg);
    filter: saturate(1.08) contrast(1.05);
}

.khm-home-product-card:hover .khm-product-glow {
    opacity: 1;
    transform: translateY(0);
}

.khm-home-product-card:hover .khm-home-product-more {
    opacity: 1;
    transform: translateY(0);
}

.khm-home-product-card:hover {
    box-shadow: 0 28px 70px rgba(7,31,67,.22);
}

.khm-home-products-all {
    margin-top: 34px;
    text-align: center;
}

.khm-home-products-all a {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    border-radius: 17px;
    background: #071f43;
    color: #fff;
    text-decoration: none;
    font-weight: var(--khm-button-font-weight, 800);
    box-shadow: 0 16px 34px rgba(7,31,67,.14);
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.khm-home-products-all a:hover {
    background: #d32433;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(211,36,51,.18);
}

.khm-home-products-empty {
    text-align: center;
    padding: 28px;
    border-radius: 24px;
    background: #fff;
    color: #53647f;
    font-weight: 850;
    box-shadow: 0 12px 28px rgba(7,31,67,.06);
}

/* فاصله پایین سکشن مزیت‌ها */
.khm-home-benefits-section {
    padding-bottom: calc(clamp(48px, 6vw, 82px) + 30px) !important;
}

@media (max-width: 1100px) {
    .khm-home-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: 190px;
    }

    .khm-home-product-featured {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    .khm-home-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 170px;
        gap: 12px;
    }

    .khm-home-product-featured {
        grid-column: span 2;
        grid-row: span 2;
    }

    .khm-home-product-content {
        inset-inline: 13px;
        bottom: 13px;
    }

    .khm-home-product-content h3 {
        font-size: 14px;
    }

    .khm-home-product-featured .khm-home-product-content h3 {
        font-size: 22px;
    }
}

@media (max-width: 430px) {
    .khm-home-products-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 210px;
    }

    .khm-home-product-featured {
        grid-column: span 1;
        grid-row: span 1;
    }
}



/* Khorrammachin Home Products Model 2 v1.0.59 */
#khm-settings-home-products.khm-settings-section-active {
    display: block !important;
}

/* مدل دوم: کارت‌های حرفه‌ای نمایشگاهی */
.khm-home-products-model2 {
    background:
        radial-gradient(circle at 14% 10%, rgba(211,36,51,.10), transparent 32%),
        radial-gradient(circle at 88% 18%, rgba(22,133,229,.14), transparent 34%),
        linear-gradient(135deg, #071f43 0%, #0b244c 48%, #07162f 100%) !important;
    color: #ffffff;
}

.khm-home-products-model2::before {
    height: 100%;
    background-image:
        linear-gradient(115deg, rgba(255,255,255,.035) 0 1px, transparent 1px),
        linear-gradient(35deg, rgba(255,255,255,.025) 0 1px, transparent 1px) !important;
    background-size: 92px 92px, 118px 118px !important;
    opacity: .65;
    pointer-events: none;
}

.khm-home-products-model2 .khm-home-products-heading span {
    background: rgba(255,255,255,.12);
    color: #ffd05b;
}

.khm-home-products-model2 .khm-home-products-heading h2 {
    color: #ffffff;
}

.khm-home-products-model2 .khm-home-products-heading p {
    color: rgba(255,255,255,.74);
}

.khm-home-products-model2 .khm-home-products-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    grid-auto-rows: 210px;
    gap: 20px;
    max-width: 1220px;
    margin: 0 auto;
}

.khm-home-products-model2 .khm-home-product-card {
    border-radius: 30px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.11);
    box-shadow: 0 28px 70px rgba(0,0,0,.22);
    transform: translateZ(0);
}

.khm-home-products-model2 .khm-home-product-featured {
    grid-column: span 2;
    grid-row: span 2;
    border-radius: 38px;
}

.khm-home-products-model2 .khm-home-product-card:nth-child(6) {
    grid-column: span 2;
}

.khm-home-products-model2 .khm-home-product-card:nth-child(9) {
    grid-column: span 2;
}

.khm-home-products-model2 .khm-home-product-card::after {
    background:
        linear-gradient(to top, rgba(7,31,67,.92), rgba(7,31,67,.38) 58%, rgba(7,31,67,.02)),
        linear-gradient(135deg, rgba(211,36,51,.22), rgba(22,133,229,.10) 45%, transparent) !important;
}

.khm-home-products-model2 .khm-home-product-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: inherit;
    border: 1px solid rgba(255,255,255,.12);
    z-index: 3;
    pointer-events: none;
    opacity: .8;
    transition: opacity .35s ease, inset .35s ease, border-color .35s ease;
}

.khm-home-products-model2 .khm-home-product-link::before {
    content: "";
    position: absolute;
    top: -35%;
    right: -65%;
    width: 95%;
    height: 170%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
    transform: rotate(18deg) translateX(0);
    z-index: 4;
    opacity: 0;
    transition: transform .75s ease, opacity .35s ease;
    pointer-events: none;
}

.khm-home-products-model2 .khm-home-product-card:hover .khm-home-product-link::before {
    opacity: 1;
    transform: rotate(18deg) translateX(-210%);
}

.khm-home-products-model2 .khm-home-product-card:hover::before {
    inset: 8px;
    opacity: 1;
    border-color: rgba(255,208,91,.55);
}

.khm-home-products-model2 .khm-home-product-media img {
    transform: scale(1.02);
    filter: saturate(1.02) contrast(1.02);
}

.khm-home-products-model2 .khm-home-product-card:hover .khm-home-product-media img {
    transform: scale(1.14) rotate(.7deg);
    filter: saturate(1.15) contrast(1.08);
}

.khm-home-products-model2 .khm-product-glow {
    inset: auto -25% -45% -25%;
    height: 65%;
    background:
        radial-gradient(circle, rgba(255,208,91,.34), transparent 52%),
        radial-gradient(circle, rgba(211,36,51,.42), transparent 64%);
}

.khm-home-products-model2 .khm-home-product-content {
    inset-inline: 24px;
    bottom: 24px;
    gap: 10px;
}

.khm-home-products-model2 .khm-home-product-number {
    width: 46px;
    height: 36px;
    background: #ffd05b;
    color: #071f43;
    box-shadow: 0 12px 28px rgba(255,208,91,.18);
}

.khm-home-products-model2 .khm-home-product-content h3 {
    font-size: 19px;
    color: #ffffff;
}

.khm-home-products-model2 .khm-home-product-featured .khm-home-product-content h3 {
    font-size: clamp(28px, 3vw, 42px);
    max-width: 82%;
}

.khm-home-products-model2 .khm-home-product-more {
    opacity: 1;
    transform: none;
    color: #ffd05b;
    font-size: 14px;
}

.khm-home-products-model2 .khm-home-product-more::before {
    background: #ffd05b;
    width: 32px;
}

.khm-home-products-model2 .khm-home-products-all a {
    background: #ffd05b;
    color: #071f43;
    box-shadow: 0 16px 34px rgba(255,208,91,.18);
}

.khm-home-products-model2 .khm-home-products-all a:hover {
    background: #d32433;
    color: #ffffff;
}

@media (max-width: 1100px) {
    .khm-home-products-model2 .khm-home-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: 200px;
    }

    .khm-home-products-model2 .khm-home-product-featured {
        grid-column: span 2;
        grid-row: span 2;
    }

    .khm-home-products-model2 .khm-home-product-card:nth-child(6),
    .khm-home-products-model2 .khm-home-product-card:nth-child(9) {
        grid-column: span 1;
    }
}

@media (max-width: 760px) {
    .khm-home-products-model2 .khm-home-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 178px;
        gap: 12px;
    }

    .khm-home-products-model2 .khm-home-product-featured {
        grid-column: span 2;
        grid-row: span 2;
    }

    .khm-home-products-model2 .khm-home-product-content {
        inset-inline: 14px;
        bottom: 14px;
    }

    .khm-home-products-model2 .khm-home-product-featured .khm-home-product-content h3 {
        font-size: 24px;
    }

    .khm-home-products-model2 .khm-home-product-content h3 {
        font-size: 14px;
    }
}

@media (max-width: 430px) {
    .khm-home-products-model2 .khm-home-products-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    .khm-home-products-model2 .khm-home-product-featured {
        grid-column: span 1;
        grid-row: span 1;
    }

    .khm-home-products-model2 .khm-home-product-featured .khm-home-product-content h3 {
        font-size: 21px;
        max-width: 100%;
    }
}



/* Khorrammachin Home Products Model 3 v1.0.62 */
.khm-home-products-model3 {
    position: relative;
    color: #ffffff;
    background:
        radial-gradient(circle at 88% 12%, rgba(22,133,229,.28), transparent 30%),
        radial-gradient(circle at 15% 88%, rgba(211,36,51,.20), transparent 34%),
        linear-gradient(135deg, #030916 0%, #071f43 46%, #061126 100%) !important;
}

.khm-home-products-model3::before {
    height: 100%;
    background:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) !important;
    background-size: 54px 54px !important;
    opacity: .65 !important;
}

.khm-home-products-model3::after {
    content: "";
    position: absolute;
    inset: 8% 5%;
    border-radius: 46px;
    border: 1px solid rgba(255,255,255,.08);
    pointer-events: none;
}

.khm-home-products-model3 .khorram-container {
    position: relative;
    z-index: 2;
}

.khm-home-products-model3 .khm-home-products-heading span {
    background: linear-gradient(135deg, rgba(255,208,91,.18), rgba(211,36,51,.18));
    color: #ffd05b;
    border: 1px solid rgba(255,208,91,.22);
}

.khm-home-products-model3 .khm-home-products-heading h2 {
    color: #ffffff;
}

.khm-home-products-model3 .khm-home-products-heading p {
    color: rgba(255,255,255,.72);
}

.khm-home-products-model3 .khm-home-products-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 132px;
    gap: 18px;
    max-width: 1240px;
    margin: 0 auto;
    perspective: 1300px;
}

.khm-home-products-model3 .khm-home-product-card {
    grid-column: span 3;
    grid-row: span 2;
    border-radius: 26px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow:
        0 30px 70px rgba(0,0,0,.26),
        inset 0 1px 0 rgba(255,255,255,.08);
    transform-style: preserve-3d;
    transition: transform .38s ease, box-shadow .38s ease, border-color .38s ease;
}

.khm-home-products-model3 .khm-home-product-card:nth-child(1) {
    grid-column: span 6;
    grid-row: span 4;
    border-radius: 42px;
}

.khm-home-products-model3 .khm-home-product-card:nth-child(4),
.khm-home-products-model3 .khm-home-product-card:nth-child(7),
.khm-home-products-model3 .khm-home-product-card:nth-child(10),
.khm-home-products-model3 .khm-home-product-card:nth-child(13),
.khm-home-products-model3 .khm-home-product-card:nth-child(16) {
    grid-column: span 6;
}

.khm-home-products-model3 .khm-home-product-card:hover {
    transform: translateY(-10px) rotateX(3deg) rotateY(-2deg);
    border-color: rgba(255,208,91,.45);
    box-shadow:
        0 40px 90px rgba(0,0,0,.34),
        0 0 0 1px rgba(255,208,91,.10),
        inset 0 1px 0 rgba(255,255,255,.16);
}

.khm-home-products-model3 .khm-home-product-card::after {
    background:
        linear-gradient(to top, rgba(3,9,22,.94), rgba(7,31,67,.48) 58%, rgba(7,31,67,.06)),
        linear-gradient(135deg, rgba(255,208,91,.16), transparent 34%, rgba(22,133,229,.22)) !important;
}

.khm-home-products-model3 .khm-home-product-link::after {
    content: "";
    position: absolute;
    inset: 14px;
    z-index: 4;
    border-radius: inherit;
    border: 1px solid rgba(255,255,255,.14);
    pointer-events: none;
    opacity: .72;
    transition: inset .3s ease, opacity .3s ease, border-color .3s ease;
}

.khm-home-products-model3 .khm-home-product-card:hover .khm-home-product-link::after {
    inset: 9px;
    opacity: 1;
    border-color: rgba(255,208,91,.54);
}

.khm-home-products-model3 .khm-home-product-link::before {
    content: "";
    position: absolute;
    inset: -80% auto auto -70%;
    width: 55%;
    height: 240%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.30), transparent);
    transform: rotate(22deg);
    z-index: 5;
    opacity: 0;
    transition: left .85s ease, opacity .28s ease;
    pointer-events: none;
}

.khm-home-products-model3 .khm-home-product-card:hover .khm-home-product-link::before {
    left: 130%;
    opacity: 1;
}

.khm-home-products-model3 .khm-home-product-media img {
    transform: scale(1.04);
    filter: saturate(1.04) contrast(1.03);
}

.khm-home-products-model3 .khm-home-product-card:hover .khm-home-product-media img {
    transform: scale(1.16);
    filter: saturate(1.20) contrast(1.10);
}

.khm-home-products-model3 .khm-product-glow {
    opacity: .25;
    background:
        radial-gradient(circle, rgba(255,208,91,.36), transparent 48%),
        radial-gradient(circle, rgba(211,36,51,.36), transparent 65%);
}

.khm-home-products-model3 .khm-home-product-content {
    inset-inline: 24px;
    bottom: 24px;
    z-index: 6;
    gap: 10px;
}

.khm-home-products-model3 .khm-home-product-number {
    width: 48px;
    height: 36px;
    background: rgba(255,208,91,.94);
    color: #071f43;
    box-shadow: 0 14px 30px rgba(255,208,91,.20);
}

.khm-home-products-model3 .khm-home-product-content h3 {
    color: #ffffff;
    font-size: 18px;
}

.khm-home-products-model3 .khm-home-product-card:nth-child(1) .khm-home-product-content h3 {
    font-size: clamp(30px, 3.4vw, 48px);
    max-width: 84%;
}

.khm-home-products-model3 .khm-home-product-more {
    opacity: 1;
    transform: none;
    color: #ffd05b;
}

.khm-home-products-model3 .khm-home-product-more::before {
    background: #ffd05b;
    width: 34px;
}

.khm-home-products-model3 .khm-home-products-all a {
    background: linear-gradient(135deg, #ffd05b, #ffba2b);
    color: #071f43;
    box-shadow: 0 18px 42px rgba(255,208,91,.18);
}

.khm-home-products-model3 .khm-home-products-all a:hover {
    background: #d32433;
    color: #ffffff;
}

#khm-settings-home-slider.khm-settings-section-active,
#khm-settings-home-products.khm-settings-section-active {
    display: block !important;
}

.khm-slider-admin-images {
    display: grid !important;
    gap: 12px !important;
    margin-top: 14px !important;
}

.khm-slider-admin-image-row {
    display: grid !important;
    grid-template-columns: 42px 100px minmax(0,1fr) 80px !important;
    gap: 12px !important;
    align-items: center !important;
    padding: 12px !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    border: 1px solid rgba(7,31,67,.08) !important;
}

.khm-slider-admin-image-row img {
    width: 100px !important;
    height: 58px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
}

.khm-slider-admin-image-row input {
    direction: ltr !important;
    text-align: left !important;
    min-width: 0 !important;
}

@media (max-width: 1180px) {
    .khm-home-products-model3 .khm-home-products-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-auto-rows: 150px;
    }

    .khm-home-products-model3 .khm-home-product-card,
    .khm-home-products-model3 .khm-home-product-card:nth-child(4),
    .khm-home-products-model3 .khm-home-product-card:nth-child(7),
    .khm-home-products-model3 .khm-home-product-card:nth-child(10),
    .khm-home-products-model3 .khm-home-product-card:nth-child(13),
    .khm-home-products-model3 .khm-home-product-card:nth-child(16) {
        grid-column: span 3;
        grid-row: span 2;
    }

    .khm-home-products-model3 .khm-home-product-card:nth-child(1) {
        grid-column: span 6;
        grid-row: span 2;
    }
}

@media (max-width: 680px) {
    .khm-home-products-model3 .khm-home-products-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
        gap: 14px;
    }

    .khm-home-products-model3 .khm-home-product-card,
    .khm-home-products-model3 .khm-home-product-card:nth-child(1),
    .khm-home-products-model3 .khm-home-product-card:nth-child(4),
    .khm-home-products-model3 .khm-home-product-card:nth-child(7),
    .khm-home-products-model3 .khm-home-product-card:nth-child(10),
    .khm-home-products-model3 .khm-home-product-card:nth-child(13),
    .khm-home-products-model3 .khm-home-product-card:nth-child(16) {
        grid-column: span 1;
        grid-row: span 1;
        border-radius: 26px;
    }

    .khm-home-products-model3 .khm-home-product-card:nth-child(1) .khm-home-product-content h3 {
        font-size: 24px;
        max-width: 100%;
    }

    .khm-slider-admin-image-row {
        grid-template-columns: 1fr !important;
    }
}



/* Khorrammachin Home Products Model 4 + 5 v1.0.63 */

/* مدل چهارم: کارت محصول کلاسیک، ۴ محصول در هر ردیف */
.khm-home-products-model4 {
    background:
        radial-gradient(circle at 15% 10%, rgba(22,133,229,.10), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f7fbff 54%, #eef5fd 100%) !important;
}

.khm-home-products-model4 .khm-home-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 22px;
    max-width: 1220px;
    margin: 0 auto;
}

.khm-home-products-model4 .khm-home-product-card,
.khm-home-products-model4 .khm-home-product-featured {
    grid-column: auto !important;
    grid-row: auto !important;
    min-height: auto;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(7,31,67,.08);
    box-shadow: 0 18px 44px rgba(7,31,67,.08);
    overflow: hidden;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.khm-home-products-model4 .khm-home-product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(22,133,229,.22);
    box-shadow: 0 28px 64px rgba(7,31,67,.16);
}

.khm-home-products-model4 .khm-home-product-link {
    display: grid;
    grid-template-rows: 230px auto;
    height: auto;
    min-height: 100%;
    color: #071f43;
    background: #ffffff;
}

.khm-home-products-model4 .khm-home-product-media {
    position: relative;
    inset: auto;
    width: 100%;
    height: 230px;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f7fc, #ffffff);
}

.khm-home-products-model4 .khm-home-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.khm-home-products-model4 .khm-home-product-card::after {
    display: none;
}

.khm-home-products-model4 .khm-product-glow {
    display: none;
}

.khm-home-products-model4 .khm-home-product-content {
    position: relative;
    inset: auto;
    z-index: 2;
    display: grid;
    gap: 10px;
    padding: 18px 18px 20px;
    min-height: 142px;
    background: #ffffff;
}

.khm-home-products-model4 .khm-home-product-number {
    width: 42px;
    height: 30px;
    background: rgba(22,133,229,.10);
    color: #1685e5;
    box-shadow: none;
}

.khm-home-products-model4 .khm-home-product-content h3,
.khm-home-products-model4 .khm-home-product-featured .khm-home-product-content h3 {
    color: #071f43;
    font-size: 17px;
    line-height: 1.75;
    font-weight: var(--khm-h3-font-weight, 800);
    text-shadow: none;
}

.khm-home-products-model4 .khm-home-product-more {
    opacity: 1;
    transform: none;
    width: max-content;
    padding: 8px 13px;
    border-radius: 12px;
    background: #071f43;
    color: #ffffff;
    font-size: 12px;
}

.khm-home-products-model4 .khm-home-product-more::before {
    display: none;
}

.khm-home-products-model4 .khm-home-product-card:hover .khm-home-product-more {
    background: #d32433;
    color: #ffffff;
}

/* مدل پنجم: یک محصول بزرگ وسط و ۹ محصول دور آن */
.khm-home-products-model5 {
    position: relative;
    background:
        radial-gradient(circle at 50% 50%, rgba(22,133,229,.22), transparent 28%),
        radial-gradient(circle at 86% 15%, rgba(211,36,51,.14), transparent 32%),
        linear-gradient(135deg, #071f43 0%, #07172f 100%) !important;
    color: #ffffff;
    overflow: hidden;
}

.khm-home-products-model5 .khorram-container {
    position: relative;
    z-index: 2;
}

.khm-home-products-model5 .khm-home-products-heading span {
    background: rgba(255,208,91,.14);
    color: #ffd05b;
    border: 1px solid rgba(255,208,91,.18);
}

.khm-home-products-model5 .khm-home-products-heading h2 {
    color: #ffffff;
}

.khm-home-products-model5 .khm-home-products-heading p {
    color: rgba(255,255,255,.72);
}

.khm-home-products-model5 .khm-home-products-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: repeat(3, 190px);
    gap: 18px;
    max-width: 1240px;
    margin: 0 auto;
    direction: rtl;
}

.khm-home-products-model5 .khm-home-product-card {
    border-radius: 24px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 20px 50px rgba(0,0,0,.22);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.khm-home-products-model5 .khm-home-product-card:nth-child(1) {
    grid-column: 2 / span 3;
    grid-row: 1 / span 3;
    border-radius: 42px;
    box-shadow: 0 36px 90px rgba(0,0,0,.34);
}

.khm-home-products-model5 .khm-home-product-card:nth-child(2) { grid-column: 1; grid-row: 1; }
.khm-home-products-model5 .khm-home-product-card:nth-child(3) { grid-column: 1; grid-row: 2; }
.khm-home-products-model5 .khm-home-product-card:nth-child(4) { grid-column: 1; grid-row: 3; }
.khm-home-products-model5 .khm-home-product-card:nth-child(5) { grid-column: 5; grid-row: 1; }
.khm-home-products-model5 .khm-home-product-card:nth-child(6) { grid-column: 5; grid-row: 2; }
.khm-home-products-model5 .khm-home-product-card:nth-child(7) { grid-column: 5; grid-row: 3; }

/* اگر تعداد بیشتر از ۷ باشد، کنار پایین به شکل کارت‌های کشیده نمایش داده شوند */
.khm-home-products-model5 .khm-home-product-card:nth-child(n+8) {
    grid-column: span 1;
    grid-row: auto;
}

.khm-home-products-model5 .khm-home-product-card:hover {
    transform: translateY(-8px) scale(1.015);
    border-color: rgba(255,208,91,.45);
    box-shadow: 0 32px 80px rgba(0,0,0,.32);
}

.khm-home-products-model5 .khm-home-product-card::after {
    background:
        linear-gradient(to top, rgba(7,31,67,.93), rgba(7,31,67,.36) 58%, rgba(7,31,67,.04)),
        radial-gradient(circle at 50% 100%, rgba(211,36,51,.25), transparent 48%) !important;
}

.khm-home-products-model5 .khm-home-product-card:nth-child(1)::after {
    background:
        linear-gradient(to top, rgba(7,31,67,.92), rgba(7,31,67,.30) 58%, rgba(7,31,67,.02)),
        radial-gradient(circle at 50% 100%, rgba(255,208,91,.22), transparent 45%) !important;
}

.khm-home-products-model5 .khm-home-product-media img {
    transform: scale(1.03);
}

.khm-home-products-model5 .khm-home-product-card:hover .khm-home-product-media img {
    transform: scale(1.13);
}

.khm-home-products-model5 .khm-home-product-content {
    inset-inline: 15px;
    bottom: 15px;
    gap: 7px;
}

.khm-home-products-model5 .khm-home-product-card:nth-child(1) .khm-home-product-content {
    inset-inline: 30px;
    bottom: 30px;
}

.khm-home-products-model5 .khm-home-product-number {
    width: 42px;
    height: 30px;
    background: #ffd05b;
    color: #071f43;
    box-shadow: 0 12px 28px rgba(255,208,91,.16);
}

.khm-home-products-model5 .khm-home-product-content h3 {
    color: #ffffff;
    font-size: 15px;
    line-height: 1.65;
}

.khm-home-products-model5 .khm-home-product-card:nth-child(1) .khm-home-product-content h3 {
    font-size: clamp(30px, 3.3vw, 48px);
    max-width: 82%;
}

.khm-home-products-model5 .khm-home-product-more {
    opacity: 1;
    transform: none;
    color: #ffd05b;
    font-size: 12px;
}

.khm-home-products-model5 .khm-home-product-card:nth-child(1) .khm-home-product-more {
    font-size: 14px;
}

.khm-home-products-model5 .khm-home-product-more::before {
    background: #ffd05b;
}

.khm-home-products-model5 .khm-home-products-all a {
    background: #ffd05b;
    color: #071f43;
}

.khm-home-products-model5 .khm-home-products-all a:hover {
    background: #d32433;
    color: #ffffff;
}

@media (max-width: 1100px) {
    .khm-home-products-model4 .khm-home-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .khm-home-products-model5 .khm-home-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: auto;
        grid-auto-rows: 210px;
    }

    .khm-home-products-model5 .khm-home-product-card,
    .khm-home-products-model5 .khm-home-product-card:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .khm-home-products-model5 .khm-home-product-card:nth-child(1) {
        grid-column: span 3;
        grid-row: span 2;
    }
}

@media (max-width: 760px) {
    .khm-home-products-model4 .khm-home-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .khm-home-products-model4 .khm-home-product-link {
        grid-template-rows: 170px auto;
    }

    .khm-home-products-model4 .khm-home-product-media {
        height: 170px;
    }

    .khm-home-products-model5 .khm-home-products-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 230px;
        gap: 14px;
    }

    .khm-home-products-model5 .khm-home-product-card,
    .khm-home-products-model5 .khm-home-product-card:nth-child(n),
    .khm-home-products-model5 .khm-home-product-card:nth-child(1) {
        grid-column: span 1;
        grid-row: span 1;
        border-radius: 26px;
    }

    .khm-home-products-model5 .khm-home-product-card:nth-child(1) .khm-home-product-content {
        inset-inline: 16px;
        bottom: 16px;
    }

    .khm-home-products-model5 .khm-home-product-card:nth-child(1) .khm-home-product-content h3 {
        font-size: 22px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .khm-home-products-model4 .khm-home-products-grid {
        grid-template-columns: 1fr;
    }
}



/* Khorrammachin Requested Layout Fixes v1.0.64 */

/* 1: تصاویر کارت محصولات و مقالات در حالت کارتی مربع شوند */
.khm-archive-view-grid .khm-product-card-img {
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
}

.khm-archive-view-grid .khm-product-card-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* 2: تعداد کارت در هر ردیف از تنظیمات */
.khm-archive-view-grid .khm-products-grid {
    grid-template-columns: repeat(var(--khm-archive-grid-cols, 3), minmax(0, 1fr)) !important;
}

@media (max-width: 980px) {
    .khm-archive-view-grid .khm-products-grid {
        grid-template-columns: repeat(min(var(--khm-archive-grid-cols, 3), 2), minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    .khm-archive-view-grid .khm-products-grid {
        grid-template-columns: 1fr !important;
    }
}

/* 3: عنوان محصول اول صفحه اصلی هم‌اندازه بقیه محصولات باشد */
.khm-home-product-featured .khm-home-product-content h3,
.khm-home-products-model2 .khm-home-product-featured .khm-home-product-content h3,
.khm-home-products-model3 .khm-home-product-card:nth-child(1) .khm-home-product-content h3,
.khm-home-products-model4 .khm-home-product-featured .khm-home-product-content h3,
.khm-home-products-model5 .khm-home-product-card:nth-child(1) .khm-home-product-content h3 {
    font-size: 17px !important;
    line-height: 1.7 !important;
    max-width: 100% !important;
}

/* 4: حذف شماره محصولات روی تصاویر صفحه اصلی */
.khm-home-product-number {
    display: none !important;
}

/* 5: افکت بزرگنمایی برای اولین عکس اسلایدر هم اجرا شود */
.khm-home-hero-slide.is-active img {
    animation: khmHomeSliderZoom 9s linear forwards !important;
}

@keyframes khmHomeSliderZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.12);
    }
}

.khm-slide-device-hidden {
    display: none !important;
}

/* 7: کارت زرد فوتر در موبایل ۵۰ پیکسل پایین‌تر بیاید */
@media (max-width: 680px) {
    .khm-footer-newsletter {
        transform: translateY(calc(-50% + 50px)) !important;
        margin-bottom: -20px !important;
    }
}

/* 9: دکمه شناور محصول با فوتر حرکت نکند و فوتر روی آن بیاید */
.khm-product-sticky-cta {
    bottom: 0 !important;
    z-index: 20 !important;
    transition: transform .25s ease, opacity .25s ease !important;
}

.khm-site-footer {
    position: relative !important;
    z-index: 50 !important;
}



/* Khorrammachin Card Button Align + Mobile Menu + Header Scope Fix v1.0.65 */

/* 1) دکمه‌های مشاهده محصول / مطالعه مقاله در انتهای کارت و در یک راستا */
.khm-archive-view-grid .khm-product-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.khm-archive-view-grid .khm-product-card > .khm-product-card-img {
    flex: 0 0 auto !important;
}

.khm-archive-view-grid .khm-product-card-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: 100% !important;
}

.khm-archive-view-grid .khm-product-card-content p {
    margin-bottom: 18px !important;
}

.khm-archive-view-grid .khm-product-card-content .khm-product-more {
    margin-top: auto !important;
    align-self: center !important;
}

/* برای کارت‌هایی که تاریخ یا دسته‌بندی دارند، چینش داخلی حفظ شود */
.khm-archive-view-grid .khm-card-cats,
.khm-archive-view-grid .khm-card-date {
    flex: 0 0 auto !important;
}

/* 2) اصلاح قطعی بسته بودن منوی موبایل؛ وقتی بسته است هیچ کلیک و انتقالی نداشته باشد */
@media (max-width: 782px) {
    body:not(.khm-mobile-menu-open) .site-header .primary-menu,
    body:not(.khm-mobile-menu-open) .site-header .primary-menu *,
    body:not(.khm-mobile-menu-open) #khm-mobile-menu-panel,
    body:not(.khm-mobile-menu-open) #khm-mobile-menu-panel * {
        pointer-events: none !important;
    }

    body:not(.khm-mobile-menu-open) .site-header .primary-menu,
    body:not(.khm-mobile-menu-open) #khm-mobile-menu-panel {
        opacity: 0 !important;
        visibility: hidden !important;
        clip-path: inset(0 0 100% 0) !important;
        transform: translateY(-18px) scale(.96) !important;
        max-height: 0 !important;
        overflow: hidden !important;
    }

    body.khm-mobile-menu-open .site-header .primary-menu,
    body.khm-mobile-menu-open #khm-mobile-menu-panel {
        opacity: 1 !important;
        visibility: visible !important;
        clip-path: inset(0 0 0 0) !important;
        transform: translateY(0) scale(1) !important;
        max-height: calc(100vh - 112px) !important;
        overflow-y: auto !important;
        pointer-events: auto !important;
    }

    body.khm-mobile-menu-open .site-header .primary-menu *,
    body.khm-mobile-menu-open #khm-mobile-menu-panel * {
        pointer-events: auto !important;
    }

    body:not(.khm-mobile-menu-open) .khm-mobile-menu-overlay {
        display: none !important;
        pointer-events: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    body.khm-mobile-menu-open .khm-mobile-menu-overlay {
        display: block !important;
        pointer-events: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* 3) هدر شفاف فقط برای صفحه اصلی باشد؛ صفحات مقالات، محصولات و داخلی هدر معمولی داشته باشند */
body:not(.home) .site-header,
body.blog .site-header,
body.archive .site-header,
body.single .site-header,
body.category .site-header,
body.search .site-header,
body.error404 .site-header,
body.page:not(.home) .site-header,
body.post-type-archive .site-header,
body.post-type-archive-khm_product .site-header,
body.tax-khm_product_cat .site-header {
    position: sticky !important;
    top: 0 !important;
    right: auto !important;
    left: auto !important;
    z-index: 9999 !important;
    background: rgba(255,255,255,.94) !important;
    border: 0 !important;
    box-shadow: 0 10px 30px rgba(7,31,67,.08) !important;
    backdrop-filter: blur(12px) !important;
}

body:not(.home) .site-header::before,
body.blog .site-header::before,
body.archive .site-header::before,
body.single .site-header::before,
body.category .site-header::before,
body.search .site-header::before,
body.error404 .site-header::before,
body.page:not(.home) .site-header::before,
body.post-type-archive .site-header::before,
body.post-type-archive-khm_product .site-header::before,
body.tax-khm_product_cat .site-header::before {
    display: none !important;
    content: none !important;
}

body:not(.home) .site-header .site-title a,
body:not(.home) .site-header .primary-menu a,
body.blog .site-header .site-title a,
body.blog .site-header .primary-menu a,
body.archive .site-header .site-title a,
body.archive .site-header .primary-menu a,
body.single .site-header .site-title a,
body.single .site-header .primary-menu a,
body.page:not(.home) .site-header .site-title a,
body.page:not(.home) .site-header .primary-menu a,
body.post-type-archive .site-header .site-title a,
body.post-type-archive .site-header .primary-menu a,
body.tax-khm_product_cat .site-header .site-title a,
body.tax-khm_product_cat .site-header .primary-menu a {
    color: #071f43 !important;
}

body:not(.home) .site-header .primary-menu a:hover,
body.blog .site-header .primary-menu a:hover,
body.archive .site-header .primary-menu a:hover,
body.single .site-header .primary-menu a:hover,
body.page:not(.home) .site-header .primary-menu a:hover,
body.post-type-archive .site-header .primary-menu a:hover,
body.tax-khm_product_cat .site-header .primary-menu a:hover {
    color: #1685e5 !important;
}

/* صفحه اصلی همچنان هدر اختصاصی و شفاف داشته باشد */
body.home:not(.blog):not(.archive):not(.single):not(.category):not(.tax-khm_product_cat) .site-header {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 10020 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}



/* Khorrammachin Justify Text + About Counters v1.0.66 */

/* همه متن‌های اصلی صفحات مقاله، محصول، درباره ما، تماس با ما و آرشیوها justify باشند */
.site-main p,
.site-main li,
.entry-content p,
.entry-content li,
.khm-single-content-card p,
.khm-single-content-card li,
.khm-product-content-card p,
.khm-product-content-card li,
.khm-product-full-description p,
.khm-product-full-description li,
.khm-product-excerpt,
.khm-about-page p,
.khm-about-page li,
.khm-contact-page p,
.khm-contact-page li,
.khm-faq-page p,
.khm-faq-page li,
.khm-archive-page p,
.khm-archive-page li,
.khm-product-card-content p,
.khm-home-product-content p {
    text-align: justify !important;
    text-align-last: auto !important;
}

/* مواردی که نباید justify شوند */
.site-main h1,
.site-main h2,
.site-main h3,
.site-main h4,
.site-main h5,
.site-main h6,
.site-main a,
.site-main button,
.site-main input,
.site-main textarea,
.site-main select,
.khm-share-buttons,
.khm-product-more,
.khm-product-contact-btn,
.khm-home-products-all,
.khm-home-blog-more,
.khm-contact-submit,
.khm-footer-newsletter-form,
.khm-stat-box span,
.khm-stat-box strong {
    text-align: inherit;
}

.khm-stat-box {
    position: relative;
}

.khm-stat-box strong.khm-count-number {
    display: inline-flex;
    direction: ltr;
    unicode-bidi: isolate;
    line-height: 1.2;
}

.khm-stat-box .khm-count-plus {
    display: inline-flex !important;
    margin-inline-start: 4px;
    color: #d32433;
    font-weight: 950;
    font-size: clamp(24px, 2.4vw, 38px);
    line-height: 1;
    vertical-align: top;
}

.khm-stat-box > span:last-child {
    display: block;
}



/* Khorrammachin Footer Mobile + Slider Restore + Transparent Front Header v1.0.67 */

/* کادر زرد فوتر در موبایل ۵۰px دیگر پایین‌تر */
@media (max-width: 680px) {
    .khm-footer-newsletter {
        transform: translateY(calc(-50% + 100px)) !important;
        margin-bottom: -70px !important;
    }
}

/* اطمینان از نمایش اسلایدر صفحه اصلی */
.khm-home-hero-slider {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 100vh !important;
    min-height: 620px !important;
    overflow: hidden !important;
    background: #071f43 !important;
}

.khm-home-hero-slide.khm-slide-device-hidden {
    display: none !important;
}

.khm-home-hero-slide.is-active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* هدر شفاف فقط روی صفحه اصلی واقعی و روی اسلایدر */
body.khm-front-page-active .site-header,
body.home .site-header,
body.front-page .site-header {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 10020 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    backdrop-filter: none !important;
}

body.khm-front-page-active .site-header::before,
body.home .site-header::before,
body.front-page .site-header::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to bottom, rgba(7,31,67,.45), rgba(7,31,67,0)) !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

body.khm-front-page-active .site-header .site-title a,
body.khm-front-page-active .site-header .primary-menu a,
body.home .site-header .site-title a,
body.home .site-header .primary-menu a,
body.front-page .site-header .site-title a,
body.front-page .site-header .primary-menu a {
    color: #ffffff !important;
}

body.khm-front-page-active .site-header .primary-menu a:hover,
body.home .site-header .primary-menu a:hover,
body.front-page .site-header .primary-menu a:hover {
    color: #ffd05b !important;
}

body.khm-front-page-active .site-header .khm-menu-button-item > a,
body.home .site-header .khm-menu-button-item > a,
body.front-page .site-header .khm-menu-button-item > a {
    background: rgba(211,36,51,.92) !important;
    color: #ffffff !important;
}

body.khm-front-page-active .khm-mobile-menu-toggle,
body.home .khm-mobile-menu-toggle,
body.front-page .khm-mobile-menu-toggle {
    background: rgba(255,255,255,.18) !important;
    color: #ffffff !important;
    backdrop-filter: blur(10px) !important;
}



/* Khorrammachin Strict Front Page Header Scope v1.0.68 */

/*
 * بسیار مهم:
 * هدر شفاف فقط و فقط روی صفحه اصلی واقعی فعال است.
 * حتی اگر صفحه مقالات کلاس body.home یا front-page از وردپرس بگیرد،
 * تا وقتی khm-front-page-active نداشته باشد هدر معمولی می‌شود.
 */

/* تمام صفحات غیر از صفحه اصلی واقعی */
body:not(.khm-front-page-active) .site-header {
    position: sticky !important;
    top: 0 !important;
    right: auto !important;
    left: auto !important;
    z-index: 9999 !important;
    background: rgba(255,255,255,.96) !important;
    border: 0 !important;
    box-shadow: 0 10px 30px rgba(7,31,67,.08) !important;
    backdrop-filter: blur(12px) !important;
}

body:not(.khm-front-page-active) .site-header::before {
    display: none !important;
    content: none !important;
    background: none !important;
}

body:not(.khm-front-page-active) .site-header .site-title a,
body:not(.khm-front-page-active) .site-header .primary-menu a {
    color: #071f43 !important;
}

body:not(.khm-front-page-active) .site-header .primary-menu a:hover {
    color: #1685e5 !important;
}

body:not(.khm-front-page-active) .site-header .khm-menu-button-item > a {
    background: #d32433 !important;
    color: #ffffff !important;
}

body:not(.khm-front-page-active) .khm-mobile-menu-toggle {
    background: #071f43 !important;
    color: #ffffff !important;
    backdrop-filter: none !important;
}

/* فقط صفحه اصلی واقعی */
body.khm-front-page-active .site-header {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 10020 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    backdrop-filter: none !important;
}

body.khm-front-page-active .site-header::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to bottom, rgba(7,31,67,.45), rgba(7,31,67,0)) !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

body.khm-front-page-active .site-header .site-title a,
body.khm-front-page-active .site-header .primary-menu a {
    color: #ffffff !important;
}

body.khm-front-page-active .site-header .primary-menu a:hover {
    color: #ffd05b !important;
}

body.khm-front-page-active .site-header .khm-menu-button-item > a {
    background: rgba(211,36,51,.92) !important;
    color: #ffffff !important;
}

body.khm-front-page-active .khm-mobile-menu-toggle {
    background: rgba(255,255,255,.18) !important;
    color: #ffffff !important;
    backdrop-filter: blur(10px) !important;
}



/* Khorrammachin Header Absolute Isolation + Slider Content Toggle v1.0.69 */

/*
 * اصلاح قطعی:
 * هیچ صفحه‌ای به جز صفحه اصلی واقعی با کلاس khm-front-page-active حق استفاده از هدر شفاف را ندارد.
 * این قانون حتی body.home و body.front-page وردپرس را هم خنثی می‌کند.
 */
html body:not(.khm-front-page-active) .site-header,
html body.home:not(.khm-front-page-active) .site-header,
html body.front-page:not(.khm-front-page-active) .site-header,
html body.blog .site-header,
html body.archive .site-header,
html body.category .site-header,
html body.single .site-header,
html body.page:not(.khm-front-page-active) .site-header,
html body.post-type-archive .site-header,
html body.tax-khm_product_cat .site-header {
    position: sticky !important;
    top: 0 !important;
    right: auto !important;
    left: auto !important;
    z-index: 9999 !important;
    background: rgba(255,255,255,.96) !important;
    box-shadow: 0 10px 30px rgba(7,31,67,.08) !important;
    border: 0 !important;
    backdrop-filter: blur(12px) !important;
}

html body:not(.khm-front-page-active) .site-header::before,
html body.home:not(.khm-front-page-active) .site-header::before,
html body.front-page:not(.khm-front-page-active) .site-header::before,
html body.blog .site-header::before,
html body.archive .site-header::before,
html body.category .site-header::before,
html body.single .site-header::before,
html body.page:not(.khm-front-page-active) .site-header::before,
html body.post-type-archive .site-header::before,
html body.tax-khm_product_cat .site-header::before {
    display: none !important;
    content: none !important;
    background: none !important;
}

html body:not(.khm-front-page-active) .site-header .site-title a,
html body:not(.khm-front-page-active) .site-header .primary-menu a,
html body.home:not(.khm-front-page-active) .site-header .site-title a,
html body.home:not(.khm-front-page-active) .site-header .primary-menu a,
html body.front-page:not(.khm-front-page-active) .site-header .site-title a,
html body.front-page:not(.khm-front-page-active) .site-header .primary-menu a,
html body.blog .site-header .site-title a,
html body.blog .site-header .primary-menu a,
html body.archive .site-header .site-title a,
html body.archive .site-header .primary-menu a,
html body.single .site-header .site-title a,
html body.single .site-header .primary-menu a,
html body.page:not(.khm-front-page-active) .site-header .site-title a,
html body.page:not(.khm-front-page-active) .site-header .primary-menu a {
    color: #071f43 !important;
}

html body:not(.khm-front-page-active) .site-header .khm-menu-button-item > a,
html body.home:not(.khm-front-page-active) .site-header .khm-menu-button-item > a,
html body.front-page:not(.khm-front-page-active) .site-header .khm-menu-button-item > a,
html body.blog .site-header .khm-menu-button-item > a,
html body.archive .site-header .khm-menu-button-item > a,
html body.single .site-header .khm-menu-button-item > a,
html body.page:not(.khm-front-page-active) .site-header .khm-menu-button-item > a {
    background: #d32433 !important;
    color: #ffffff !important;
}

/* فقط صفحه اصلی واقعی */
html body.khm-front-page-active .site-header {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 10020 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    backdrop-filter: none !important;
}

html body.khm-front-page-active .site-header::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to bottom, rgba(7,31,67,.45), rgba(7,31,67,0)) !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

html body.khm-front-page-active .site-header .site-title a,
html body.khm-front-page-active .site-header .primary-menu a {
    color: #ffffff !important;
}

/* گزینه تنظیمات اسلایدر: حذف متن و گرادینت */
.khm-home-hero-slider.khm-slider-content-disabled .khm-home-hero-overlay,
.khm-home-hero-slider.khm-slider-content-disabled .khm-home-hero-overlay::before,
.khm-home-hero-slider.khm-slider-content-disabled .khm-home-hero-overlay::after,
.khm-home-hero-slider.khm-slider-content-disabled .khm-home-hero-content {
    display: none !important;
}

.khm-home-hero-slider.khm-slider-content-disabled .khm-home-hero-slide::before,
.khm-home-hero-slider.khm-slider-content-disabled .khm-home-hero-slide::after {
    display: none !important;
    content: none !important;
}

.khm-toggle-setting span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.9;
}



/* Khorrammachin Separate Home Transparent Header Final v1.0.70 */

/*
 * راه‌حل نهایی:
 * هدر شفاف صفحه اصلی دیگر با body.home یا body.front-page کنترل نمی‌شود.
 * فقط هدر جداگانه‌ای که در header.php کلاس khm-home-transparent-header دارد شفاف است.
 * تمام هدرهای دیگر، حتی صفحه مقالات، همیشه هدر معمولی هستند.
 */

/* هدر معمولی تمام صفحات غیر از صفحه اصلی */
.site-header:not(.khm-home-transparent-header),
.khm-default-header {
    position: sticky !important;
    top: 0 !important;
    right: auto !important;
    left: auto !important;
    z-index: 9999 !important;
    background: rgba(255,255,255,.96) !important;
    box-shadow: 0 10px 30px rgba(7,31,67,.08) !important;
    border: 0 !important;
    backdrop-filter: blur(12px) !important;
}

.site-header:not(.khm-home-transparent-header)::before,
.khm-default-header::before {
    display: none !important;
    content: none !important;
    background: none !important;
}

.site-header:not(.khm-home-transparent-header) .site-title a,
.site-header:not(.khm-home-transparent-header) .primary-menu a,
.khm-default-header .site-title a,
.khm-default-header .primary-menu a {
    color: #071f43 !important;
}

.site-header:not(.khm-home-transparent-header) .primary-menu a:hover,
.khm-default-header .primary-menu a:hover {
    color: #1685e5 !important;
}

.site-header:not(.khm-home-transparent-header) .khm-menu-button-item > a,
.khm-default-header .khm-menu-button-item > a {
    background: #d32433 !important;
    color: #ffffff !important;
}

.site-header:not(.khm-home-transparent-header) .khm-mobile-menu-toggle,
.khm-default-header .khm-mobile-menu-toggle {
    background: #071f43 !important;
    color: #ffffff !important;
    backdrop-filter: none !important;
}

/* هدر جداگانه و شفاف فقط برای صفحه اصلی */
.khm-home-transparent-header {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 10020 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    backdrop-filter: none !important;
}

.khm-home-transparent-header::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to bottom, rgba(7,31,67,.45), rgba(7,31,67,0)) !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.khm-home-transparent-header .site-title a,
.khm-home-transparent-header .primary-menu a {
    color: #ffffff !important;
}

.khm-home-transparent-header .primary-menu a:hover {
    color: #ffd05b !important;
}

.khm-home-transparent-header .khm-menu-button-item > a {
    background: rgba(211,36,51,.92) !important;
    color: #ffffff !important;
}

.khm-home-transparent-header .khm-mobile-menu-toggle {
    background: rgba(255,255,255,.18) !important;
    color: #ffffff !important;
    backdrop-filter: blur(10px) !important;
}

/* منوی موبایل در هدر شفاف، هنگام باز شدن خوانا باشد */
@media (max-width: 782px) {
    .khm-home-transparent-header .primary-menu {
        background: rgba(255,255,255,.98) !important;
    }

    .khm-home-transparent-header .primary-menu a {
        color: #071f43 !important;
    }

    .khm-home-transparent-header .primary-menu a:hover {
        color: #1685e5 !important;
    }
}



/* Khorrammachin One-Time Final Transparent Home Header Fix v1.0.71 */

/*
 * قاعده نهایی:
 * فقط خود هدر با کلاس khm-home-transparent-header شفاف است.
 * هدر صفحه مقالات و همه صفحات دیگر کلاس khm-default-header می‌گیرد و معمولی است.
 */

/* همه هدرهای معمولی */
html body header.site-header.khm-default-header {
    position: sticky !important;
    top: 0 !important;
    right: auto !important;
    left: auto !important;
    z-index: 9999 !important;
    background: rgba(255,255,255,.96) !important;
    box-shadow: 0 10px 30px rgba(7,31,67,.08) !important;
    border: 0 !important;
    backdrop-filter: blur(12px) !important;
}

html body header.site-header.khm-default-header::before {
    display: none !important;
    content: none !important;
    background: none !important;
}

html body header.site-header.khm-default-header .site-title a,
html body header.site-header.khm-default-header .primary-menu a {
    color: #071f43 !important;
}

html body header.site-header.khm-default-header .primary-menu a:hover {
    color: #1685e5 !important;
}

html body header.site-header.khm-default-header .khm-menu-button-item > a {
    background: #d32433 !important;
    color: #ffffff !important;
}

html body header.site-header.khm-default-header .khm-mobile-menu-toggle {
    background: #071f43 !important;
    color: #ffffff !important;
    backdrop-filter: none !important;
}

/* فقط هدر جداگانه صفحه اصلی */
html body header.site-header.khm-home-transparent-header {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 10020 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    backdrop-filter: none !important;
}

html body header.site-header.khm-home-transparent-header::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to bottom, rgba(7,31,67,.42), rgba(7,31,67,0)) !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

html body header.site-header.khm-home-transparent-header .site-title a,
html body header.site-header.khm-home-transparent-header .primary-menu a {
    color: #ffffff !important;
}

html body header.site-header.khm-home-transparent-header .primary-menu a:hover {
    color: #ffd05b !important;
}

html body header.site-header.khm-home-transparent-header .khm-menu-button-item > a {
    background: rgba(211,36,51,.92) !important;
    color: #ffffff !important;
}

html body header.site-header.khm-home-transparent-header .khm-mobile-menu-toggle {
    background: rgba(255,255,255,.18) !important;
    color: #ffffff !important;
    backdrop-filter: blur(10px) !important;
}

/* در صفحه اصلی، اسلایدر از بالای صفحه شروع شود تا هدر روی آن بنشیند */
html body.khm-front-page-active .khm-home-hero-slider,
html body .khm-home-transparent-header ~ main .khm-home-hero-slider {
    margin-top: 0 !important;
}

/* منوی بازشده موبایل همیشه خوانا باشد */
@media (max-width: 782px) {
    html body header.site-header.khm-home-transparent-header .primary-menu {
        background: rgba(255,255,255,.98) !important;
    }

    html body header.site-header.khm-home-transparent-header .primary-menu a {
        color: #071f43 !important;
    }

    html body header.site-header.khm-home-transparent-header .primary-menu a:hover {
        color: #1685e5 !important;
    }
}



/* Khorrammachin Separate Desktop Tablet Mobile Slider v1.0.72 */

/* نمایش جداگانه اسلایدر دسکتاپ، تبلت و موبایل */
.khm-home-hero-device-stage,
.khm-home-hero-slides {
    position: absolute !important;
    inset: 0 !important;
}

.khm-home-hero-slides {
    display: none !important;
}

.khm-home-hero-slides.is-active-device {
    display: block !important;
}

.khm-home-hero-slide {
    position: absolute !important;
    inset: 0 !important;
}

/* اگر جاوااسکریپت دیرتر لود شد، دسکتاپ پیش‌فرض دیده شود */
.khm-home-hero-slides-desktop {
    display: block !important;
}

@media (max-width: 1024px) {
    .khm-home-hero-slides-desktop {
        display: none;
    }

    .khm-home-hero-slides-tablet {
        display: block !important;
    }
}

@media (max-width: 767px) {
    .khm-home-hero-slides-tablet {
        display: none;
    }

    .khm-home-hero-slides-mobile {
        display: block !important;
    }
}

/* وقتی JS فعال شد، گروه فعال را نشان بده */
.khm-home-hero-slides.is-active-device {
    display: block !important;
}

/* دسته‌بندی واضح تنظیمات تصاویر اسلایدر */
.khm-slider-device-box {
    border-width: 2px !important;
    margin-top: 18px !important;
    position: relative !important;
}

.khm-slider-device-box::before {
    position: absolute;
    top: -13px;
    right: 22px;
    padding: 4px 12px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.6;
}

.khm-slider-device-box-desktop {
    border-color: rgba(7,31,67,.20) !important;
}

.khm-slider-device-box-desktop::before {
    content: "دسکتاپ";
    background: #071f43;
}

.khm-slider-device-box-tablet {
    border-color: rgba(22,133,229,.26) !important;
}

.khm-slider-device-box-tablet::before {
    content: "تبلت";
    background: #1685e5;
}

.khm-slider-device-box-mobile {
    border-color: rgba(211,36,51,.26) !important;
}

.khm-slider-device-box-mobile::before {
    content: "موبایل";
    background: #d32433;
}

.khm-slider-device-box .khm-menu-repeater-head strong {
    padding-top: 8px;
}



/* Khorrammachin Three Separate Home Sliders v1.0.73 */

/*
 * سه اسلایدر واقعی و جدا:
 * دسکتاپ، تبلت، موبایل.
 * در هر دستگاه فقط اسلایدر همان دستگاه دیده می‌شود و دو اسلایدر دیگر کاملاً مخفی هستند.
 */
.khm-home-hero-separate-sliders,
.khm-home-hero-device-slider,
.khm-device-hero-slides,
.khm-device-hero-slide {
    position: absolute !important;
    inset: 0 !important;
}

.khm-home-hero-device-slider {
    display: none !important;
    overflow: hidden !important;
    z-index: 1 !important;
}

.khm-hero-slider-desktop {
    display: block !important;
}

.khm-device-hero-slide {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity .9s ease, visibility .9s ease !important;
    overflow: hidden !important;
}

.khm-device-hero-slide.is-active {
    opacity: 1 !important;
    visibility: visible !important;
}

.khm-device-hero-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transform: scale(1) !important;
}

.khm-device-hero-slide.is-active img {
    animation: khmThreeSliderZoom 9s linear forwards !important;
}

@keyframes khmThreeSliderZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.12);
    }
}

.khm-device-hero-dots {
    position: absolute !important;
    right: 50% !important;
    bottom: 32px !important;
    transform: translateX(50%) !important;
    z-index: 5 !important;
    display: flex !important;
    gap: 10px !important;
}

.khm-device-hero-dots button {
    width: 9px !important;
    height: 9px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.48) !important;
    cursor: pointer !important;
    transition: width .25s ease, background .25s ease !important;
}

.khm-device-hero-dots button.is-active {
    width: 30px !important;
    background: #d32433 !important;
}

/* تبلت: فقط اسلایدر تبلت */
@media (min-width: 768px) and (max-width: 1024px) {
    .khm-hero-slider-desktop,
    .khm-hero-slider-mobile {
        display: none !important;
    }

    .khm-hero-slider-tablet {
        display: block !important;
    }
}

/* موبایل: فقط اسلایدر موبایل */
@media (max-width: 767px) {
    .khm-hero-slider-desktop,
    .khm-hero-slider-tablet {
        display: none !important;
    }

    .khm-hero-slider-mobile {
        display: block !important;
    }

    .khm-device-hero-dots {
        bottom: 24px !important;
    }
}

/* برای جلوگیری از تداخل نسخه‌های قبلی اسلایدر */
.khm-home-hero-device-stage,
.khm-home-hero-slides[data-device-slides],
.khm-home-hero-slides-desktop,
.khm-home-hero-slides-tablet,
.khm-home-hero-slides-mobile {
    display: none !important;
}

/* دسته‌بندی واضح در تنظیمات اسلایدر */
.khm-slider-device-box {
    border-width: 2px !important;
    margin-top: 22px !important;
    position: relative !important;
}

.khm-slider-device-box::before {
    position: absolute !important;
    top: -14px !important;
    right: 20px !important;
    padding: 4px 12px !important;
    border-radius: 999px !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1.6 !important;
}

.khm-slider-device-box-desktop::before {
    content: "دسکتاپ";
    background: #071f43;
}

.khm-slider-device-box-tablet::before {
    content: "تبلت";
    background: #1685e5;
}

.khm-slider-device-box-mobile::before {
    content: "موبایل";
    background: #d32433;
}

/* کوچک شدن پیش‌نمایش عکس‌ها در تنظیمات */
.khm-slider-admin-image-row {
    grid-template-columns: 34px 58px minmax(0,1fr) 62px !important;
    gap: 8px !important;
    padding: 8px !important;
}

.khm-slider-admin-image-row img {
    width: 58px !important;
    height: 40px !important;
    max-width: 58px !important;
    max-height: 40px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
}

.khm-slider-admin-image-row input {
    font-size: 12px !important;
}

.khm-slider-admin-image-row .button-link-delete {
    font-size: 12px !important;
}



/* Khorrammachin Real Three Separate Sliders Final v1.0.74 */

/*
 * این نسخه دیگر از کلاس‌های قدیمی khm-home-hero-slider استفاده نمی‌کند.
 * سه سکشن واقعی ساخته شده:
 * .khm-real-home-slider-desktop
 * .khm-real-home-slider-tablet
 * .khm-real-home-slider-mobile
 * در هر دستگاه دو سکشن دیگر display:none هستند.
 */
.khm-real-home-slider {
    position: relative !important;
    width: 100% !important;
    height: 100vh !important;
    min-height: 620px !important;
    overflow: hidden !important;
    background: #071f43 !important;
}

.khm-real-home-slider-tablet,
.khm-real-home-slider-mobile {
    display: none !important;
}

.khm-real-home-slider-desktop {
    display: block !important;
}

.khm-real-slider-slides,
.khm-real-slider-slide {
    position: absolute !important;
    inset: 0 !important;
}

.khm-real-slider-slide {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity .9s ease, visibility .9s ease !important;
    overflow: hidden !important;
}

.khm-real-slider-slide.is-active {
    opacity: 1 !important;
    visibility: visible !important;
}

.khm-real-slider-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.khm-real-slider-slide.is-active img {
    animation: khmRealSliderZoom 9s linear forwards !important;
}

@keyframes khmRealSliderZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.12);
    }
}

.khm-real-slider-overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    background:
        linear-gradient(to left, rgba(7,31,67,.96) 0%, rgba(7,31,67,.78) 28%, rgba(7,31,67,.38) 58%, rgba(7,31,67,.06) 100%),
        radial-gradient(circle at 82% 50%, rgba(22,133,229,.28), transparent 36%) !important;
}

.khm-real-slider-content {
    position: relative !important;
    z-index: 3 !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    direction: rtl !important;
}

.khm-real-slider-text {
    width: min(560px, 92vw) !important;
    margin-right: 0 !important;
    margin-left: auto !important;
    color: #ffffff !important;
    text-align: right !important;
    direction: rtl !important;
    animation: khmHeroTextEnter .95s ease both !important;
}

.khm-real-slider-text h1 {
    margin: 0 0 16px !important;
    color: #ffffff !important;
    font-size: var(--khm-slider-title-size, 74px) !important;
    font-weight: var(--khm-slider-title-weight, 800) !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
}

.khm-real-slider-text p {
    margin: 0 0 28px !important;
    color: rgba(255,255,255,.86) !important;
    font-size: clamp(16px, 1.7vw, 22px) !important;
    line-height: 2.05 !important;
    max-width: 620px !important;
}

.khm-real-slider-text a {
    min-height: 52px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 13px 25px !important;
    border-radius: 17px !important;
    background: #d32433 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: var(--khm-button-font-weight, 800) !important;
    box-shadow: 0 16px 34px rgba(211,36,51,.25) !important;
}

.khm-real-slider-dots {
    position: absolute !important;
    right: 50% !important;
    bottom: 32px !important;
    transform: translateX(50%) !important;
    z-index: 4 !important;
    display: flex !important;
    gap: 10px !important;
}

.khm-real-slider-dots button {
    width: 9px !important;
    height: 9px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.45) !important;
    cursor: pointer !important;
    transition: width .25s ease, background .25s ease !important;
}

.khm-real-slider-dots button.is-active {
    width: 30px !important;
    background: #d32433 !important;
}

/* حالت بدون متن و بدون گرادینت */
.khm-real-home-slider.khm-slider-content-disabled .khm-real-slider-overlay,
.khm-real-home-slider.khm-slider-content-disabled .khm-real-slider-content {
    display: none !important;
}

/* تبلت: فقط اسلایدر تبلت */
@media (min-width: 768px) and (max-width: 1024px) {
    .khm-real-home-slider-desktop,
    .khm-real-home-slider-mobile {
        display: none !important;
    }

    .khm-real-home-slider-tablet {
        display: block !important;
        min-height: 620px !important;
    }
}

/* موبایل: فقط اسلایدر موبایل */
@media (max-width: 767px) {
    .khm-real-home-slider-desktop,
    .khm-real-home-slider-tablet {
        display: none !important;
    }

    .khm-real-home-slider-mobile {
        display: block !important;
        min-height: 560px !important;
    }

    .khm-real-slider-overlay {
        background:
            linear-gradient(to top, rgba(7,31,67,.88), rgba(7,31,67,.45) 58%, rgba(7,31,67,.32)),
            radial-gradient(circle at 50% 58%, rgba(22,133,229,.20), transparent 42%) !important;
    }

    .khm-real-slider-content {
        justify-content: center !important;
        align-items: flex-end !important;
        padding-bottom: 86px !important;
    }

    .khm-real-slider-text {
        width: min(92vw, 560px) !important;
        margin-right: auto !important;
        margin-left: auto !important;
        text-align: center !important;
    }

    .khm-real-slider-text h1 {
        white-space: normal !important;
        font-size: min(var(--khm-slider-title-size, 74px), 54px) !important;
    }

    .khm-real-slider-text p {
        font-size: 15px !important;
        line-height: 2 !important;
    }

    .khm-real-slider-dots {
        bottom: 24px !important;
    }
}

/* حذف نمایش احتمالی اسلایدرهای قدیمی */
.khm-home-hero-slider,
.khm-home-hero-device-stage,
.khm-home-hero-separate-sliders {
    display: none !important;
}

/* پیش‌نمایش کوچک تصاویر در تنظیمات */
.khm-slider-admin-image-row {
    grid-template-columns: 34px 58px minmax(0,1fr) 62px !important;
    gap: 8px !important;
    padding: 8px !important;
}

.khm-slider-admin-image-row img {
    width: 58px !important;
    height: 40px !important;
    max-width: 58px !important;
    max-height: 40px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
}

.khm-slider-admin-image-row input {
    font-size: 12px !important;
    min-width: 0 !important;
}

.khm-slider-admin-image-row .button-link-delete {
    font-size: 12px !important;
}



/* Khorrammachin KMX Final Independent Device Sliders v1.0.76 */
.kmx-device-slider {
    position: relative !important;
    width: 100% !important;
    height: 100vh !important;
    min-height: 620px !important;
    overflow: hidden !important;
    background: #071f43 !important;
}

.kmx-slider-tablet,
.kmx-slider-mobile {
    display: none !important;
}

.kmx-slider-desktop {
    display: block !important;
}

.kmx-slider-slides,
.kmx-slider-slide {
    position: absolute !important;
    inset: 0 !important;
}

.kmx-slider-slide {
    opacity: 0 !important;
    visibility: hidden !important;
    overflow: hidden !important;
    transition: opacity .9s ease, visibility .9s ease !important;
}

.kmx-slider-slide.is-active {
    opacity: 1 !important;
    visibility: visible !important;
}

.kmx-slider-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.kmx-slider-slide.is-active img {
    animation: kmxSliderZoom 9s linear forwards !important;
}

.kmx-slider-overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    background:
        linear-gradient(to left, rgba(7,31,67,.96) 0%, rgba(7,31,67,.78) 28%, rgba(7,31,67,.38) 58%, rgba(7,31,67,.06) 100%),
        radial-gradient(circle at 82% 50%, rgba(22,133,229,.28), transparent 36%) !important;
}

.kmx-slider-content {
    position: relative !important;
    z-index: 3 !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    direction: rtl !important;
}

.kmx-slider-text {
    width: min(560px, 92vw) !important;
    margin-right: 0 !important;
    margin-left: auto !important;
    color: #ffffff !important;
    text-align: right !important;
}

.kmx-slider-text h1 {
    margin: 0 0 16px !important;
    color: #ffffff !important;
    font-size: var(--khm-slider-title-size, 74px) !important;
    font-weight: var(--khm-slider-title-weight, 800) !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
}

.kmx-slider-text p {
    margin: 0 0 28px !important;
    color: rgba(255,255,255,.86) !important;
    font-size: clamp(16px, 1.7vw, 22px) !important;
    line-height: 2.05 !important;
}

.kmx-slider-text a {
    min-height: 52px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 13px 25px !important;
    border-radius: 17px !important;
    background: #d32433 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.kmx-slider-dots {
    position: absolute !important;
    right: 50% !important;
    bottom: 32px !important;
    transform: translateX(50%) !important;
    z-index: 5 !important;
    display: flex !important;
    gap: 10px !important;
}

.kmx-slider-dots button {
    width: 9px !important;
    height: 9px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.45) !important;
}

.kmx-slider-dots button.is-active {
    width: 30px !important;
    background: #d32433 !important;
}

.kmx-device-slider.kmx-slider-content-disabled .kmx-slider-overlay,
.kmx-device-slider.kmx-slider-content-disabled .kmx-slider-content {
    display: none !important;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .kmx-slider-desktop,
    .kmx-slider-mobile {
        display: none !important;
    }

    .kmx-slider-tablet {
        display: block !important;
        min-height: 620px !important;
    }
}

@media (max-width: 767px) {
    .kmx-slider-desktop,
    .kmx-slider-tablet {
        display: none !important;
    }

    .kmx-slider-mobile {
        display: block !important;
        min-height: 560px !important;
    }

    .kmx-slider-content {
        justify-content: center !important;
        align-items: flex-end !important;
        padding-bottom: 86px !important;
    }

    .kmx-slider-text {
        width: min(92vw, 560px) !important;
        margin-right: auto !important;
        margin-left: auto !important;
        text-align: center !important;
    }

    .kmx-slider-text h1 {
        white-space: normal !important;
        font-size: min(var(--khm-slider-title-size, 74px), 54px) !important;
    }
}

/* مخفی‌سازی کامل سیستم‌های قبلی برای جلوگیری از تداخل */
.khm-home-hero-slider,
.khm-home-hero-device-stage,
.khm-home-hero-separate-sliders,
.khm-real-home-slider {
    display: none !important;
}

/* کوچک‌سازی پیش‌نمایش عکس در تنظیمات */
.khm-slider-admin-image-row {
    grid-template-columns: 30px 46px minmax(0,1fr) 56px !important;
    gap: 7px !important;
    padding: 7px !important;
}

.khm-slider-admin-image-row img {
    width: 46px !important;
    height: 32px !important;
    max-width: 46px !important;
    max-height: 32px !important;
    object-fit: cover !important;
    border-radius: 7px !important;
}



/* Khorrammachin Separate Slider Settings Pages v1.0.77 */
#khm-settings-slider-desktop.khm-settings-section-active,
#khm-settings-slider-tablet.khm-settings-section-active,
#khm-settings-slider-mobile.khm-settings-section-active {
    display: block !important;
}

.khm-settings-side a[href="#khm-settings-slider-desktop"],
.khm-settings-side a[href="#khm-settings-slider-tablet"],
.khm-settings-side a[href="#khm-settings-slider-mobile"] {
    position: relative;
}

.khm-settings-side a[href="#khm-settings-slider-desktop"]::before,
.khm-settings-side a[href="#khm-settings-slider-tablet"]::before,
.khm-settings-side a[href="#khm-settings-slider-mobile"]::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 99px;
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
}

.khm-settings-side a[href="#khm-settings-slider-desktop"]::before {
    background: #071f43;
}

.khm-settings-side a[href="#khm-settings-slider-tablet"]::before {
    background: #1685e5;
}

.khm-settings-side a[href="#khm-settings-slider-mobile"]::before {
    background: #d32433;
}



/* Khorrammachin Slider Width Guard v1.0.79 */

/* جلوگیری از بیرون‌زدگی عرض اسلایدر و عکس‌ها، مخصوصاً هنگام لود موبایل */
html,
body,
#page,
.site,
.site-main,
.kmx-device-slider,
.kmx-slider-slides,
.kmx-slider-slide {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

html,
body {
    overflow-x: clip !important;
}

@supports not (overflow-x: clip) {
    html,
    body {
        overflow-x: hidden !important;
    }
}

.kmx-device-slider,
.kmx-slider-width-guard {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    contain: paint !important;
}

.kmx-slider-slides,
.kmx-slider-slide {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    right: 0 !important;
    left: 0 !important;
}

.kmx-slider-slide img,
.kmx-device-slider img {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center center !important;
}

/* بزرگنمایی عکس فقط داخل کادر بریده شود و عرض صفحه را زیاد نکند */
.kmx-slider-slide.is-active {
    overflow: hidden !important;
}

.kmx-slider-slide.is-active img {
    transform-origin: center center !important;
    will-change: transform !important;
}

/* در موبایل هیچ المان اسلایدر نباید بیشتر از عرض viewport شود */
@media (max-width: 767px) {
    .kmx-device-slider,
    .kmx-slider-mobile,
    .kmx-slider-slides,
    .kmx-slider-slide,
    .kmx-slider-slide img {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
}



/* Khorrammachin Mobile Slider Width-Based Height v1.0.80 */

/*
 * در موبایل اسلایدر نباید 100vh باشد.
 * عکس موبایل با عرض 100% صفحه نمایش داده می‌شود و ارتفاع بر اساس نسبت خود تصویر ساخته می‌شود.
 */
@media (max-width: 767px) {
    .kmx-device-slider.kmx-slider-mobile {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .kmx-slider-mobile .kmx-slider-slides {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        overflow: hidden !important;
    }

    .kmx-slider-mobile .kmx-slider-slide {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        opacity: 0 !important;
        visibility: hidden !important;
        overflow: hidden !important;
    }

    .kmx-slider-mobile .kmx-slider-slide.is-active {
        position: relative !important;
        inset: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: 100% !important;
        height: auto !important;
    }

    .kmx-slider-mobile .kmx-slider-slide img,
    .kmx-device-slider.kmx-slider-mobile img {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        max-height: none !important;
        display: block !important;
        object-fit: contain !important;
        object-position: center center !important;
    }

    .kmx-slider-mobile .kmx-slider-overlay,
    .kmx-slider-mobile .kmx-slider-content {
        position: absolute !important;
        inset: 0 !important;
        height: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .kmx-slider-mobile .kmx-slider-content {
        padding-bottom: 42px !important;
    }

    .kmx-slider-mobile .kmx-slider-dots {
        bottom: 14px !important;
    }
}



/* Khorrammachin Slider Height Mode Options v1.0.81 */

/*
 * هر اسلایدر یک گزینه مستقل دارد:
 * kmx-mode-vh    = ارتفاع 100vh
 * kmx-mode-width = ارتفاع بر اساس عرض و نسبت تصویر
 */
.kmx-device-slider.kmx-mode-vh {
    height: 100vh !important;
    min-height: 620px !important;
    max-height: none !important;
}

.kmx-device-slider.kmx-mode-vh .kmx-slider-slides,
.kmx-device-slider.kmx-mode-vh .kmx-slider-slide {
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
}

.kmx-device-slider.kmx-mode-vh .kmx-slider-slide.is-active {
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
}

.kmx-device-slider.kmx-mode-vh .kmx-slider-slide img,
.kmx-device-slider.kmx-mode-vh img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.kmx-device-slider.kmx-mode-width {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.kmx-device-slider.kmx-mode-width .kmx-slider-slides {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    overflow: hidden !important;
}

.kmx-device-slider.kmx-mode-width .kmx-slider-slide {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

.kmx-device-slider.kmx-mode-width .kmx-slider-slide.is-active {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

.kmx-device-slider.kmx-mode-width .kmx-slider-slide img,
.kmx-device-slider.kmx-mode-width img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
}

.kmx-device-slider.kmx-mode-width .kmx-slider-overlay,
.kmx-device-slider.kmx-mode-width .kmx-slider-content {
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
}

@media (max-width: 767px) {
    .kmx-device-slider.kmx-mode-vh.kmx-slider-mobile {
        height: 100vh !important;
        min-height: 560px !important;
        max-height: none !important;
    }

    .kmx-device-slider.kmx-mode-vh.kmx-slider-mobile .kmx-slider-slides,
    .kmx-device-slider.kmx-mode-vh.kmx-slider-mobile .kmx-slider-slide,
    .kmx-device-slider.kmx-mode-vh.kmx-slider-mobile .kmx-slider-slide.is-active {
        position: absolute !important;
        inset: 0 !important;
        height: 100% !important;
    }

    .kmx-device-slider.kmx-mode-vh.kmx-slider-mobile img {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .kmx-device-slider.kmx-mode-width.kmx-slider-mobile {
        height: auto !important;
        min-height: 0 !important;
    }

    .kmx-device-slider.kmx-mode-width.kmx-slider-mobile img {
        height: auto !important;
        object-fit: contain !important;
    }
}



/* Khorrammachin Tablet Slider Mode Fix + Front Speed v1.0.82 */

/* حالت تبلت: اگر نمایش بر اساس عرض تصویر فعال باشد، هیچ min-height قبلی نباید باقی بماند */
@media (min-width: 768px) and (max-width: 1024px) {
    .kmx-device-slider.kmx-slider-tablet.kmx-mode-width {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .kmx-device-slider.kmx-slider-tablet.kmx-mode-width .kmx-slider-slides {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .kmx-device-slider.kmx-slider-tablet.kmx-mode-width .kmx-slider-slide {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    .kmx-device-slider.kmx-slider-tablet.kmx-mode-width .kmx-slider-slide.is-active {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .kmx-device-slider.kmx-slider-tablet.kmx-mode-width .kmx-slider-slide img,
    .kmx-device-slider.kmx-slider-tablet.kmx-mode-width img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
        display: block !important;
    }

    .kmx-device-slider.kmx-slider-tablet.kmx-mode-width .kmx-slider-overlay,
    .kmx-device-slider.kmx-slider-tablet.kmx-mode-width .kmx-slider-content {
        position: absolute !important;
        inset: 0 !important;
        height: 100% !important;
    }

    .kmx-device-slider.kmx-slider-tablet.kmx-mode-vh {
        height: 100vh !important;
        min-height: 620px !important;
    }

    .kmx-device-slider.kmx-slider-tablet.kmx-mode-vh .kmx-slider-slides,
    .kmx-device-slider.kmx-slider-tablet.kmx-mode-vh .kmx-slider-slide,
    .kmx-device-slider.kmx-slider-tablet.kmx-mode-vh .kmx-slider-slide.is-active {
        position: absolute !important;
        inset: 0 !important;
        height: 100% !important;
    }

    .kmx-device-slider.kmx-slider-tablet.kmx-mode-vh img {
        height: 100% !important;
        object-fit: cover !important;
    }
}

/* بهینه‌سازی رندر صفحه اول */
.kmx-device-slider,
.khm-home-products-showcase,
.khm-home-blog-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 800px;
}

.kmx-device-slider {
    content-visibility: visible;
}



/* Khorrammachin About Counter Visibility Fix v1.0.83 */
.khm-about-stats-grid .khm-stat-box {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 150px !important;
}

.khm-stat-number-line {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    direction: ltr !important;
    unicode-bidi: isolate !important;
    width: 100% !important;
    margin-bottom: 10px !important;
}

.khm-stat-number-line .khm-count-number,
.khm-about-stats-grid .khm-stat-box strong.khm-count-number {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 34px !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: #d32433 !important;
    font-size: clamp(32px, 4vw, 52px) !important;
    line-height: 1.1 !important;
    font-weight: 950 !important;
    text-align: center !important;
    direction: ltr !important;
    unicode-bidi: isolate !important;
}

.khm-stat-number-line .khm-count-plus,
.khm-about-stats-grid .khm-stat-box .khm-count-plus {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: #d32433 !important;
    font-size: clamp(24px, 2.8vw, 38px) !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    margin: 0 !important;
}

.khm-about-stats-grid .khm-stat-box .khm-stat-label {
    display: block !important;
    margin: 0 !important;
    color: #53647f !important;
    font-weight: 800 !important;
    font-size: 17px !important;
    line-height: 1.8 !important;
}



/* Khorrammachin Related Products Carousel v1.0.84 */
.khm-related-products-section {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0 0 24px;
    padding: clamp(22px, 3vw, 34px);
    border-radius: 34px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(7,31,67,.08);
    box-shadow: 0 18px 50px rgba(7,31,67,.08);
    overflow: hidden;
}

.khm-related-products-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.khm-related-products-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.khm-related-products-controls button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #071f43;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(7,31,67,.14);
    transition: transform .2s ease, background .2s ease, opacity .2s ease;
}

.khm-related-products-controls button:hover {
    transform: translateY(-2px);
    background: #d32433;
}

.khm-related-products-controls button:disabled {
    opacity: .35;
    cursor: not-allowed;
    transform: none;
}

.khm-related-products-viewport {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.khm-related-products-track {
    --khm-related-columns: 4;
    --khm-related-gap: 18px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--khm-related-gap) * (var(--khm-related-columns) - 1))) / var(--khm-related-columns));
    gap: var(--khm-related-gap);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 2px 14px;
    direction: rtl;
}

.khm-related-products-track::-webkit-scrollbar {
    display: none;
}

.khm-related-product-card {
    scroll-snap-align: start;
    min-width: 0;
}

.khm-related-product-link {
    min-height: 100%;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 18px;
    padding: 14px 14px 20px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid rgba(7,31,67,.08);
    box-shadow: 0 14px 38px rgba(7,31,67,.10);
    text-decoration: none;
    color: #071f43;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.khm-related-product-link:hover {
    transform: translateY(-7px);
    border-color: rgba(22,133,229,.22);
    box-shadow: 0 24px 58px rgba(7,31,67,.16);
    color: #071f43;
}

.khm-related-product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    overflow: hidden;
    background: #1e6d85;
    border: 3px solid rgba(7,31,67,.92);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: clamp(18px, 1.8vw, 28px);
    font-weight: 850;
}

.khm-related-product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .3s ease;
}

.khm-related-product-link:hover .khm-related-product-image img {
    transform: scale(1.06);
}

.khm-related-product-link h3 {
    margin: 0;
    color: #071f43;
    font-size: clamp(18px, 1.25vw, 23px);
    line-height: 1.75;
    text-align: center;
    font-weight: var(--khm-h3-font-weight, 800);
}

@media (max-width: 1024px) {
    .khm-related-products-track {
        --khm-related-columns: 2;
    }
}

@media (max-width: 640px) {
    .khm-related-products-section {
        padding: 18px;
        border-radius: 26px;
    }

    .khm-related-products-head {
        align-items: flex-start;
    }

    .khm-related-products-controls button {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .khm-related-products-track {
        --khm-related-columns: 1;
        --khm-related-gap: 14px;
    }

    .khm-related-product-link {
        border-radius: 24px;
        padding: 12px 12px 18px;
    }

    .khm-related-product-image {
        border-radius: 20px;
    }
}



/* Khorrammachin Related Carousel Controls Fix v1.0.85 */

/* حذف سایه زیاد کارت‌های محصولات مرتبط */
.khm-related-products-section {
    box-shadow: none !important;
    border: 1px solid rgba(7,31,67,.08) !important;
}

.khm-related-product-link {
    box-shadow: none !important;
    border: 1px solid rgba(7,31,67,.10) !important;
}

.khm-related-product-link:hover {
    box-shadow: none !important;
}

/* فلش‌های SVG */
.khm-related-products-controls {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex: 0 0 auto !important;
}

.khm-related-products-controls button {
    width: 44px !important;
    height: 44px !important;
    border: 0 !important;
    border-radius: 15px !important;
    background: #071f43 !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: transform .2s ease, background .2s ease, opacity .2s ease !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.khm-related-products-controls button svg {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.4 !important;
}

.khm-related-products-controls button:hover {
    transform: translateY(-2px) !important;
    background: #d32433 !important;
}

.khm-related-products-controls button:disabled {
    opacity: .35 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* اسکرول و درگ با ماوس */
.khm-related-products-track {
    direction: ltr !important;
    cursor: grab !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    scroll-padding-inline: 0 !important;
}

.khm-related-products-track.is-dragging {
    cursor: grabbing !important;
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
}

.khm-related-products-track.is-dragging a,
.khm-related-products-track.is-dragging img {
    pointer-events: none !important;
}

.khm-related-product-card,
.khm-related-product-link {
    direction: rtl !important;
}

@media (max-width: 640px) {
    .khm-related-products-controls button {
        width: 40px !important;
        height: 40px !important;
        border-radius: 13px !important;
    }

    .khm-related-products-controls button svg {
        width: 22px !important;
        height: 22px !important;
    }
}
