
.archive-box .title-breadcrumbs h1 {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.6em;
    margin: 0px !important;
    color: #111;
}

.way-back svg {
    display: none;
}

/* 1.60.1: خطِ جداکنندهٔ بالا و پایینِ تیترِ آرشیو؛ جای ردیفِ خالیِ «mobile-filter» که برداشته شد. */
/* 1.64.0: خط‌ها روی کلِ قاب (بردکرامپ + تیتر) آمدند، نه فقط روی ردیفِ تیتر. */
.archive-header-position {
    margin-block: 8px 4px;
    /* 1.64.3: مقدارِ مالک؛ !important چون کلاسِ p-0 ِ بوت‌استرپ هم !important دارد */
    padding: 8px 0 !important;
    border-block: 1px solid #ececec;
}
.archive-header-position .way-back h1 {
    margin: 0;
}
.archive-box .hagh-archive-crumbs .breadcrumbs {
    margin: 0 0 4px !important;
}

@media screen and (max-width: 992px) {
    .way-back svg {
        margin-bottom: -2px;
        display: block;
    }
}

.archive-box .title-breadcrumbs .breadcrumbs {
    font-size: 12px !important;
    margin-bottom: 8px;
    color: #5f5f5f;
}

.mobile-filter button {
    background-color: #fff;
    color: #111;
    fill: #111;
    border-radius: 50px;
    font-size: 13px;
    padding: 5px 15px;
    border-width: 1px;
    border-color: #fcf4e9;
    box-shadow: none;
    transition: all ease-in-out 0.4s;
    flex-shrink: 0;
}

.mobile-filter button:hover {
    background-color: #9c0f48;
    color: #fff;
    fill: #fff;
    border-width: 1px !important;
    border-color: #9c0f48;
}

.mobile-filter button svg {
    width: 14px;
}

/* شروع دسته های چایلد */
.hagh-subcat-rail {
    display: flex;
    gap: 14px;
    padding: 14px 4px 18px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    /* 1.64.2: بی این، نقطهٔ گیرِ کارتِ اول ۴ پیکسل بعد از ابتدای ریل است و مرورگر هنگامِ بارگذاری ریل را کمی جلو می‌برد. */
    scroll-padding-inline: 4px;
    scrollbar-width: thin;
    scrollbar-color: #e7d6bd transparent;
    -webkit-overflow-scrolling: touch;
}

/* 1.64.0: فلش‌ها و سایهٔ قدیِ لبه‌ها؛ لبهٔ «ابتدا» در راست‌به‌چپ سمتِ راست است (ویژگی‌های منطقی). */
.hagh-subcat-frame {
    position: relative;
}

.hagh-subcat-frame::before,
.hagh-subcat-frame::after {
    content: "";
    position: absolute;
    inset-block: 0;
    width: 56px;
    z-index: 2;
    pointer-events: none;
    transition: opacity .2s ease;
}

.hagh-subcat-frame::before {
    inset-inline-start: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0));
}

.hagh-subcat-frame::after {
    inset-inline-end: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0));
}

[dir="ltr"] .hagh-subcat-frame::before {
    background: linear-gradient(to right, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0));
}

[dir="ltr"] .hagh-subcat-frame::after {
    background: linear-gradient(to left, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0));
}

.hagh-subcat-frame.is-at-start::before,
.hagh-subcat-frame.is-at-end::after {
    opacity: 0;
}

.hagh-subcat-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-top: -20px;
    padding: 0;
    border: 1px solid #ecdcc4;
    border-radius: 50%;
    background: #fff;
    color: #3a2a1e;
    box-shadow: 0 4px 14px -4px rgba(90, 60, 20, .35);
    cursor: pointer;
    transition: opacity .2s ease, color .2s ease, border-color .2s ease;
}

.hagh-subcat-arrow[hidden] {
    display: none;
}

.hagh-subcat-arrow--start {
    inset-inline-start: 2px;
}

.hagh-subcat-arrow--end {
    inset-inline-end: 2px;
}

.hagh-subcat-arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

[dir="ltr"] .hagh-subcat-arrow svg {
    transform: scaleX(-1);
}

.hagh-subcat-arrow:hover:not(:disabled),
.hagh-subcat-arrow:focus-visible {
    color: #911a56;
    border-color: #d9b98a;
}

.hagh-subcat-arrow:focus-visible {
    outline: 2px solid #911a56;
    outline-offset: 2px;
}

.hagh-subcat-arrow:disabled {
    opacity: .35;
    cursor: default;
    box-shadow: none;
}

.hagh-subcat-rail::-webkit-scrollbar {
    height: 4px;
}

.hagh-subcat-rail::-webkit-scrollbar-thumb {
    background: #e7d6bd;
    border-radius: 4px;
}

.hagh-subcat-card {
    flex: 0 0 116px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px 6px 8px;
    background: #fff;
    border: 1px solid #f1e6d6;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(90, 60, 20, .04), 0 6px 18px -10px rgba(90, 60, 20, .18);
    color: #3a2a1e;
    text-align: center;
    text-decoration: none;
    scroll-snap-align: start;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.hagh-subcat-media {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
    background: #faf6f0;
}

.hagh-subcat-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform-origin: center top;
    transition: transform .4s ease;
}

.hagh-subcat-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.8em;
    font-size: 12.5px;
    line-height: 1.4;
    font-weight: 500;
}

.hagh-subcat-card:hover,
.hagh-subcat-card:focus-visible {
    color: #911a56;
    border-color: #d9b98a;
    box-shadow: 0 2px 4px rgba(90, 60, 20, .05), 0 14px 28px -14px rgba(145, 26, 86, .28);
    transform: translateY(-3px);
}

.hagh-subcat-card:hover .hagh-subcat-img {
    transform: scale(1.05);
}

.hagh-subcat-card:focus-visible {
    outline: 2px solid #911a56;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .hagh-subcat-rail {
        gap: 10px;
    }

    .hagh-subcat-card {
        flex-basis: 94px;
        padding: 5px 5px 7px;
        border-radius: 12px;
    }

    .hagh-subcat-title {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hagh-subcat-card,
    .hagh-subcat-img {
        transition: none;
    }
}

/* شروع گرید محصولات */
.product-grid {
    grid-template-columns: repeat(4, 1fr);
}
.mobile-filter{
    display: none !important;
}
@media screen and (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .archive-box .first-column {
        display: none !important;
    }
    .mobile-filter{
        display: flex !important;
    }
}

@media screen and (max-width: 720px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .loop-product-card .card-body .card-title {
        font-size: 12px !important;
        font-weight: bold;
        line-height: 1.8em;
        text-align: center;
    }

    .loop-product-card .card-body .card-text {
        font-size: 12px !important;
        line-height: 1.8em;
        color: #911a56;
        text-align: center;
        font-weight: bold;
    }

    .loop-product-card .card-body .card-text del {
        font-size: 10px !important;
        line-height: 1.8em;
        color: #565656;
        font-weight: normal;
    }

}

.loop-product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

@media screen and (max-width: 600px) {
    .loop-product-card img {
        width: 100%;
        height: 160px;
        object-fit: contain;
    }

    .product4-Carousel-section .loop-product-card img {
        width: 100%;
        height: 160px;
        object-fit: contain;
    }

    .dm-product-loop .carousel-control-next span,
    .dm-product-loop .carousel-control-prev span {
        margin-top: 50px;
    }
}

.loop-product-card .card-body .card-title {
    font-size: 13px;
    font-weight: bold;
    line-height: 1.8em;
    text-align: center;
}

.loop-product-card .card-body .card-text {
    font-size: 15px;
    line-height: 1.8em;
    color: #911a56;
    text-align: center;
    font-weight: bold;
}

.loop-product-card .card-body .card-text del {
    font-size: 13px;
    line-height: 1.8em;
    color: #565656;
    font-weight: normal;
}

/* شروع ستون اول فیلترها */
@media screen and (max-width: 720px) {
    .archive-box .first-column {
        display: none !important;
    }
}

.filter-box {
    background: #f5f5f586;
    border-radius: 10px;
}

.filter-box select {
    background-color: #fff;
    border-color: #f5f5f5;
    font-size: 14px;
    padding: 10px 10px;
    margin: 0px 0px 10px 0px;
    border-radius: 10px;
    border-style: solid;
    border-width: 2px;
}

.filter-box #filter-form {
    font-size: 14px;
}

.filter-box #filter-form input {
    font-size: 13px;
}

.filter-box .form-control {
    background-color: #fff;
    border-color: #f5f5f5;
    font-size: 13px;
    padding: 10px 10px;
    margin: 0px 0px 10px 0px;
    border-radius: 10px;
    border-style: solid;
    border-width: 2px;
}

.fillter-title {
    font-size: 14px;
    color: #565656;
    line-height: 1.8em;
}

/* کل نوار */
.noUi-horizontal {
    height: 8px !important;
}

/* سفارشی‌سازی نوار اسلایدر */
.noUi-target {
    background-color: #f0f0f0;
    border-radius: 10px;
}

/* سفارشی‌سازی نوار وسط اسلایدر */
.noUi-connect {
    background: linear-gradient(90deg, #9c0f48, #9c0f48);
    border-radius: 10px;
}

/* تغییر شکل و استایل دسته‌ها (handles) */
.noUi-handle {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50%;
    background-color: #9c0f48;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    top: -7px !important;
}

.noUi-handle::after {
    left: 36%;
    height: 60%;
    top: 3px;
}

.noUi-handle::before {
    left: 65%;
    height: 60%;
    top: 3px;
}

/* تغییر شکل دسته‌ها در حالت هاور */
.noUi-handle:hover {
    background-color: #9c0f48;
    transform: scale(1.1);
}

/* تغییر شکل دسته‌ها در حالت فعال (dragging) */
.noUi-handle:focus {
    outline: none;
    background-color: #fcf4e9;
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
    border-color: #9c0f48;
}

.noUi-handle:focus::after,
.noUi-handle:focus::before {
    background-color: #9c0f48;
    border-color: #9c0f48;
}

/* استایل نمایش قیمت زیر رنج */
.price-display {
    font-size: 13px;
    color: #676767;
}

@media screen and (max-width: 600px) {
    .price-display {
        font-size: 11px;
        color: #676767;
    }
}

.price-display #max-price-display,
.price-display #min-price-display {
    color: #000;
    font-size: 14px !important;
}

.price-display img {
    width: 15px;
}

.checkbox-group label {
    font-size: 14px;
    color: #111;
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    width: 15px;
    height: 15px;
    border: 1px solid #56565662;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    margin-bottom: -5px;
    margin-left: 3px;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: #9c0f48;
    border-color: #9c0f48;
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '\2714';
    font-size: 14px;
    color: white;
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
}







.filter-box .switch-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.filter-box .switch-label {
    margin-left: 10px;
    font-size: 14px;
}

.filter-box .switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
}

.filter-box .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.filter-box .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.filter-box .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.filter-box input:checked + .slider {
    background-color: #9c0f48;
}

.filter-box input:checked + .slider:before {
    transform: translateX(18px);
}

/* موبایل: نوار چیپ‌های فیلتر بالای ستون محصولات چسبان می‌ماند (داخل همان ستون، تا پایان محصولات) */
@media screen and (max-width: 991.98px) {
    .hagh-archive-chipbar {
        position: sticky;
        top: 0;
        /* 1.60.2: ۲۰ = بالاتر از هر کارتِ محصول (هر کارت لایهٔ صفرِ خودش را دارد)، زیرِ هدر (۱۰۰) و نوارِ پایین (۹۰). */
        z-index: 20;
        margin-inline: -4px;
        padding: 0;
        background: #fff;
        box-shadow: 0 6px 10px -10px rgba(90, 60, 20, .4);
    }

    .hagh-archive-chipbar .dms-mobile-bar {
        position: static;
        align-items: center;
        gap: 6px;
        margin: 0;
        padding: 8px 10px;
        box-shadow: none;
        scrollbar-width: none;
        /* محو شدن لبهٔ انتهایی: نشانهٔ اینکه نوار به‌صورت افقی اسکرول می‌خورد */
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px);
        mask-image: linear-gradient(to right, transparent 0, #000 28px);
    }

    .hagh-archive-chipbar .dms-mobile-bar::-webkit-scrollbar {
        display: none;
    }

    .hagh-archive-chipbar .dms-mobile-bar .dms-mobile-bar__chips {
        gap: 6px;
        padding-inline-end: 24px;
    }

    .hagh-archive-chipbar .dms-mobile-bar .dms-mobile-bar__btn,
    .hagh-archive-chipbar .dms-mobile-bar .dms-chip {
        flex-shrink: 0;
        height: 32px;
        padding: 0 12px;
        gap: 5px;
        border-color: #eee3d4;
        font-size: 12.5px;
        white-space: nowrap;
    }

    .hagh-archive-chipbar .dms-mobile-bar svg {
        width: 14px;
        height: 14px;
    }
}
/*استایل دسته خاص*/
/* کدهای CSS محصور شده در کلاس والد برای جلوگیری از تداخل */
.special-category-wrapper .special-cat-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

.special-category-wrapper .special-cat-card {
    background-color: #fcf4e9;
    border-radius: 15px;
    padding: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03); /* شدو بسیار ملایم */
    transition: all 0.3s ease-in-out;
    border: 1px solid transparent;
}

/* اکشن هاور روی باکس */
.special-category-wrapper .special-cat-link:hover .special-cat-card {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #f0e2cf; /* یک حاشیه ملایم موقع هاور برای تمایز بهتر */
}

.special-category-wrapper .special-cat-image-wrapper img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
}
@media screen and (max-width: 800px) {
    .special-category-wrapper .special-cat-image-wrapper img {
        width: 80px;
        height: 80px;
    }
}

.special-category-wrapper .special-cat-title {
    font-size: 16px;
    color: #333;
    font-weight: 700;
}

.special-category-wrapper .special-cat-btn {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    background-color: #ffffff;
    border: 1px solid #eaddcc;
    border-radius: 6px;
    color: #666;
    align-self: flex-start; /* باعث می‌شود دکمه به اندازه محتوایش عرض بگیرد و در سمت راست قرار گیرد */
    transition: background-color 0.2s ease;
}

.special-category-wrapper .special-cat-link:hover .special-cat-btn {
    background-color: #fcf4e9;
    color: #111;
    border-color: #d1bfae;
}

/* سایدبار فیلتر چسبان در دسکتاپ؛ اگر از ارتفاع صفحه بلندتر باشد، داخل خودش اسکرول می‌شود */
/* overflow-x:hidden سراسری (theme.css) body را ظرف اسکرول می‌کند و sticky را از کار می‌اندازد؛ clip همان برش را بدون آن اثر می‌دهد */
html,
body {
    overflow-x: clip;
}

@media (min-width: 992px) {
    .hagh-archive-sidebar {
        position: sticky;
        top: 16px;
        align-self: flex-start;
        /* 1.64.3: هم‌تراز با بالای کارت‌های ریلِ زیردسته‌ها (فاصلهٔ ۸ ستون + ۱۴ ریل)، نه چسبیده به زیرِ هدر */
        margin-block-start: 22px;
        max-height: calc(100vh - 32px);
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: #e7d6bd transparent;
    }
}

/* کارت محصول در گرید آرشیو */
#posts-container > .col {
    display: flex;
}

#posts-container {
    --bs-gutter-x: .5rem;
    --bs-gutter-y: .5rem;
}

#posts-container .product-cards {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 0 0 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #f3ebe0;
    border-radius: 12px;
    transition: border-color .25s ease, box-shadow .25s ease;
}

/* 1.60.2: هر کارت لایهٔ خودش را دارد. لایه‌های داخلِ کارت (تصویرها ۲ و ۳، لینکِ کلِ کارت ۴، بج‌ها ۵) با نوارِ
   چسبانِ فیلتر (.hagh-archive-chipbar) در یک لایه بودند؛ بجِ پیش‌فروش/تخفیف با همان ۵ و جلوتر در صفحه رویِ
   نوار می‌آمد و تصویرِ دومِ هاور هم با آن رقابت می‌کرد. isolation همهٔ داخلِ کارت را یک لایهٔ صفر می‌کند،
   پس ترتیبِ داخلیِ کارت دست نمی‌خورد و هیچ‌چیزش از کارت بیرون نمی‌زند. */
#posts-container > *,
#posts-container .product-cards {
    position: relative;
    isolation: isolate;
}
/* (هر فرزندِ گرید، نه فقط کارتِ قالب: کارت‌های افزونه‌ها، مثلِ بجِ «شگفت‌انگیز» با z-index:10، هم همین‌جا می‌نشینند.) */

/* بج‌ها همیشه روی تصویر (تصویر دوم هنگام هاور روی آن‌ها نیاید) و در گوشه */
/* کل کارت لینک: لایهٔ stretched-link بالای تصاویر (theme.css به تصاویر z-index 2 و 3 داده) */
#posts-container .product-cards .stretched-link::after {
    z-index: 4;
}

#posts-container .product-image-wrapper > .position-absolute {
    top: 8px;
    inset-inline-end: 8px;
    inset-inline-start: auto;
    z-index: 5;
    pointer-events: none;
}

#posts-container .product-image-wrapper .sale-perc .badge {
    padding: 3px 7px !important;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

#posts-container .product-cards:hover {
    border-color: #e6d3b6;
    box-shadow: 0 12px 26px -18px rgba(90, 60, 20, .35);
}

#posts-container .product-image-wrapper {
    aspect-ratio: 1 / 1;
    border-radius: 0;
    background: #faf6f0;
}

#posts-container .product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

#posts-container .hagh-card-title-wrap,
#posts-container .hagh-card-price {
    padding-inline: 8px;
}

.hagh-card-title-wrap {
    padding: 10px 4px 0;
}

.hagh-card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.9em;
    margin: 0;
    color: #2b1f17;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.45;
    text-align: center;
}

.hagh-card-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    margin-top: auto;
    padding: 10px 4px 0;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
}

.hagh-card-price .price {
    flex-wrap: nowrap !important;
    justify-content: center;
    gap: 6px;
}

.hagh-card-price del {
    color: #a39486;
    font-size: 12px;
    font-weight: 400;
    text-decoration-thickness: 1px;
}

.hagh-card-price .small.text-muted {
    font-size: 11.5px;
    font-weight: 400;
}

.hagh-card-from {
    color: #8a7b6f;
    font-size: 11px;
    line-height: 1;
}

@media (max-width: 576px) {
    #posts-container .product-cards {
        padding: 0 0 10px;
        border-radius: 10px;
    }

    #posts-container .hagh-card-title-wrap,
    #posts-container .hagh-card-price {
        padding-inline: 6px;
    }

    .hagh-card-title {
        font-size: 12.5px;
    }

    .hagh-card-price {
        font-size: 13px;
    }

    .hagh-card-price del {
        font-size: 11px;
    }
}

/* صفحه‌بندی آرشیو */
.archive-box .dms-pagination {
    --dms-primary: #911a56;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 24px 0 8px;
    padding: 0;
    list-style: none;
}

.dms-pagination__item {
    margin: 0;
}

.archive-box .dms-pagination .dms-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #f1e6d6;
    border-radius: 10px;
    background: #fff;
    color: #3a2a1e;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.archive-box .dms-pagination a.dms-pagination__link:hover {
    color: #911a56;
    border-color: #d9b98a;
    background: #fcf4e9;
}

.archive-box .dms-pagination a.dms-pagination__link:focus-visible {
    outline: 2px solid #911a56;
    outline-offset: 2px;
}

.archive-box .dms-pagination .dms-pagination__item.is-active .dms-pagination__link {
    color: #fff;
    border-color: #911a56;
    background: #911a56;
    box-shadow: 0 6px 14px -8px rgba(145, 26, 86, .6);
}

.archive-box .dms-pagination .dms-pagination__item.is-disabled .dms-pagination__link {
    min-width: 24px;
    padding: 0 4px;
    border-color: transparent;
    background: transparent;
    color: #a8968a;
}

.archive-box .dms-pagination .dms-pagination__link.prev,
.archive-box .dms-pagination .dms-pagination__link.next {
    padding: 0 16px;
    color: #911a56;
}

@media (max-width: 576px) {
    .archive-box .dms-pagination {
        gap: 4px;
    }

    .archive-box .dms-pagination .dms-pagination__link {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }
}

/* توضیحات دسته */
.hagh-archive-desc {
    position: relative;
    margin: 24px 0 32px;
    padding: 24px 28px;
    background: #fff;
    border: 1px solid #f1e6d6;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(90, 60, 20, .04), 0 10px 30px -18px rgba(90, 60, 20, .2);
    color: #4a3b30;
    font-size: 14px;
    line-height: 2;
}

.hagh-archive-desc__heading {
    margin: 0 0 16px;
    line-height: 1.2;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1e6d6;
    color: #911a56;
    font-size: 17px;
    font-weight: 700;
}

.hagh-archive-desc__body h1,
.hagh-archive-desc__body h2,
.hagh-archive-desc__body h3,
.hagh-archive-desc__body h4,
.hagh-archive-desc__body h5,
.hagh-archive-desc__body h6 {
    margin: 24px 0 8px;
    color: #2b1f17;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.8;
}

.hagh-archive-desc__body h1:first-child,
.hagh-archive-desc__body h2:first-child,
.hagh-archive-desc__body h3:first-child,
.hagh-archive-desc__body h4:first-child {
    margin-top: 0;
}

.hagh-archive-desc__body p {
    margin: 0 0 12px;
}

.hagh-archive-desc__body a {
    color: #911a56;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: #d9b98a;
    text-underline-offset: 4px;
    transition: text-decoration-color .2s ease;
}

.hagh-archive-desc__body a:hover {
    text-decoration-color: #911a56;
}

.hagh-archive-desc__body ul,
.hagh-archive-desc__body ol {
    margin: 0 0 12px;
    padding-inline-start: 20px;
}

.hagh-archive-desc__body li {
    margin-bottom: 4px;
}

.hagh-archive-desc__body li::marker {
    color: #c9a26b;
}

.hagh-archive-desc__body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.hagh-archive-desc__body table {
    width: 100%;
    margin: 0 0 12px;
    border-collapse: collapse;
}

.hagh-archive-desc__body th,
.hagh-archive-desc__body td {
    padding: 8px 12px;
    border: 1px solid #f1e6d6;
}

.hagh-archive-desc__body blockquote {
    margin: 0 0 12px;
    padding: 8px 16px;
    border-inline-start: 3px solid #d9b98a;
    background: #fcf8f2;
    border-radius: 8px;
}

.hagh-archive-desc.is-collapsed .hagh-archive-desc__body {
    max-height: 220px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
    mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

.hagh-archive-desc__toggle {
    display: flex;
    margin: 16px auto 0;
    padding: 8px 24px;
    border: 1px solid #d9b98a;
    border-radius: 999px;
    background: #fff;
    color: #911a56;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.hagh-archive-desc__toggle:hover {
    color: #fff;
    border-color: #911a56;
    background: #911a56;
}

.hagh-archive-desc__toggle:focus-visible {
    outline: 2px solid #911a56;
    outline-offset: 2px;
}

.hagh-archive-desc__toggle[hidden] {
    display: none;
}

@media (max-width: 768px) {
    .hagh-archive-desc {
        padding: 18px 16px;
        border-radius: 14px;
        font-size: 13.5px;
    }
}