/**
 * Avin Product Archive & AJAX Catalog Filter Styles
 * استایل‌های جامع و اختصاصی صفحه آرشیو محصولات، فیلتر ایجکس، مدال موبایل، کارت‌ها و سئو
 * مطابق سند دستوری پروژه آوین (AVIN Project Constitution v1.0)
 *
 * @package HelloElementorChild
 * @version 3.8.9.8
 */

/* ==========================================================================
   ۱. متغیرها و کانتینر اصلی
   ========================================================================== */
.avin-archive-wrapper {
    --avin-pink: #CF2F71;
    --avin-pink-hover: #B82361;
    --avin-pink-light: #FDF2F8;
    --avin-pink-subtle: #FCE7F3;
    --avin-price: #079B32;
    --avin-price-old: #E5394F;
    --avin-text: #373435;
    --avin-text-muted: #8A8588;
    --avin-border: #E8E2E5;
    --avin-border-light: #F1F5F9;
    --avin-surface: #FFFFFF;
    --avin-page-bg: #FFFFFF;
    --avin-radius-card: 18px;
    --avin-radius-sm: 12px;
    --avin-radius-pill: 9999px;

    direction: rtl;
    text-align: right;
    font-family: 'IRANYekanX', 'IRANYekanXFaNum', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--avin-text);
    margin: 0 auto;
    max-width: 1282px !important;
    padding: 10px 16px 50px;
    box-sizing: border-box;
}

.avin-archive-wrapper *,
.avin-archive-wrapper *::before,
.avin-archive-wrapper *::after {
    box-sizing: border-box;
}

/* حذف کامل اوت‌لاین‌های پیش‌فرض و خطوط فوکوس مرورگر */
.avin-archive-wrapper input,
.avin-archive-wrapper select,
.avin-archive-wrapper button,
.avin-archive-wrapper textarea,
.avin-filter-card input,
.avin-filter-card select,
.avin-filter-card button,
.avin-custom-select,
.avin-custom-select * {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.avin-archive-wrapper input:focus,
.avin-archive-wrapper input:active,
.avin-archive-wrapper input:focus-visible,
.avin-filter-card input:focus,
.avin-filter-card input:active,
.avin-filter-card input:focus-visible {
    outline: none !important;
}

/* ==========================================================================
   ۲. مسیر راهنما (Breadcrumbs)
   ========================================================================== */
.avin-archive-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--avin-text-muted);
    margin-bottom: 20px;
}
.avin-archive-breadcrumbs a {
    color: var(--avin-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.avin-archive-breadcrumbs a:hover {
    color: var(--avin-pink);
}
.avin-archive-breadcrumbs .crumb-sep {
    color: #cbd5e1;
    font-size: 11px;
}
.avin-archive-breadcrumbs .crumb-current {
    color: var(--avin-text);
    font-weight: 600;
}

/* ==========================================================================
   ۳. هیرو هدر دسته‌بندی (Category Hero Header)
   تمیز و روی پس‌زمینه سفید بدون کادر باکس یا بردر بیرونی (مطابق رفرنس)
   ========================================================================== */
.avin-archive-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 28px 0;
    margin-bottom: 24px;
}

.avin-archive-hero__content {
    flex: 1;
    max-width: 650px;
}

.avin-archive-hero__title {
    font-size: 26px;
    font-weight: 850;
    line-height: 1.4;
    color: var(--avin-pink);
    margin: 0 0 12px 0;
}

.avin-archive-hero__desc {
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--avin-text-muted);
    margin: 0;
}

.avin-archive-hero__banner {
    flex: 0 0 44%;
    max-width: 480px;
    height: 215px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.avin-archive-hero__banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   ۴. طرح‌بندی دو ستونه دسکتاپ (Sidebar + Main Grid)
   ========================================================================== */
.avin-archive-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
}

.avin-archive-sidebar {
    flex: 0 0 260px;
    width: 260px;
    position: sticky;
    top: 24px;
    z-index: 10;
}

.avin-archive-main {
    flex: 1;
    min-width: 0;
}

/* ==========================================================================
   ۵. کارت فیلتر (Filter Card) - مشترک بین دسکتاپ و مدال موبایل
   ========================================================================== */
.avin-filter-card {
    background: var(--avin-surface);
    border: 1px solid var(--avin-border);
    border-radius: 18px;
    padding: 22px 18px;
    box-sizing: border-box;
    margin-top: 60px !important; /* هماهنگ با استایل کاستوم برای تراز با گرید محصولات */
}

/* در مدال فیلتر موبایل نباید مارجین بالا داشته باشد */
.avin-filter-modal .avin-filter-card {
    margin-top: 0 !important;
}

.avin-filter-card__header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 16px;
}

.avin-filter-card__title {
    font-size: 18px;
    font-weight: 800;
    color: var(--avin-pink);
    margin: 0;
    text-align: center;
}

/* دکمه بستن در مدال موبایل */
.avin-filter-modal-close {
    display: none;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--avin-pink-light);
    color: var(--avin-pink);
    border: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}

.avin-filter-group {
    margin-bottom: 14px;
    position: relative;
}

.avin-filter-group:last-of-type {
    margin-bottom: 18px;
}

.avin-filter-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--avin-text);
    margin-bottom: 6px;
}

.avin-filter-label .filter-icon {
    display: inline-flex;
    align-items: center;
    color: var(--avin-text);
}
.avin-filter-label .filter-icon svg {
    width: 17px;
    height: 17px;
}

/* فیلد جستجو - مطابق استایل سفارشی آوین (اسکوپ‌شده داخل کارت فیلتر تا با ویجت سرچ هدر تداخل نکند) */
.avin-filter-card .avin-search-wrap {
    position: relative !important;
    width: 100% !important;
    margin-bottom: 16px !important;
}
.avin-filter-card .avin-search-wrap .avin-search-input,
.avin-filter-card .avin-search-input {
    width: 100% !important;
    height: 42px !important;
    padding-right: 14px !important;
    padding-left: 42px !important;
    font-size: 13px !important;
    font-family: inherit !important;
    border: 1.5px solid #FFEDF4 !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    color: var(--avin-text, #1e293b) !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.avin-filter-card .avin-search-wrap .avin-search-input:focus,
.avin-filter-card .avin-search-input:focus {
    border-color: var(--avin-pink, #cf2f71) !important;
    box-shadow: 0 0 0 3px rgba(207, 47, 113, 0.08) !important;
    outline: none !important;
}
.avin-filter-card .avin-search-wrap .avin-search-input::placeholder,
.avin-filter-card .avin-search-input::placeholder {
    color: #94a3b8 !important;
    font-size: 12.5px !important;
}
.avin-filter-card .avin-search-wrap .avin-search-btn,
.avin-filter-card .avin-search-btn {
    position: absolute !important;
    left: 12px !important;
    right: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    outline: none !important;
    transition: color 0.2s ease !important;
    z-index: 2 !important;
}
.avin-filter-card .avin-search-wrap .avin-search-btn:hover,
.avin-filter-card .avin-search-btn:hover {
    color: var(--avin-pink, #cf2f71) !important;
}
.avin-filter-card .avin-search-btn svg {
    width: 17px;
    height: 17px;
}

/* دراپ‌داون‌های سفارشی اختصاصی (بدون پاپ‌آپ ویندوز/کروم) */
.avin-select-wrap select,
select.avin-select,
select.avin-sort-select,
select.avin-select-hidden {
    display: none !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    outline: none !important;
}

.avin-select-wrap .avin-select-arrow {
    display: none !important;
}

.avin-select-wrap {
    position: relative;
    width: 100%;
}

.avin-custom-select {
    position: relative;
    width: 100%;
    font-family: inherit;
    box-sizing: border-box;
}

.avin-custom-select__trigger {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--avin-text);
    background: #ffffff;
    border: 1.5px solid var(--avin-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    outline: none !important;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.avin-custom-select__trigger:hover,
.avin-custom-select.is-open .avin-custom-select__trigger {
    border-color: var(--avin-pink) !important;
}

.avin-custom-select__text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
}

.avin-custom-select__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    color: #64748b;
    transition: transform 0.2s ease;
}

.avin-custom-select.is-open .avin-custom-select__arrow svg {
    transform: rotate(180deg);
}

.avin-custom-select__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 999;
    background: #ffffff;
    border: 1px solid var(--avin-border);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    max-height: 200px;
    overflow-y: auto;
    display: none;
    margin: 0;
    padding: 4px 0;
    box-sizing: border-box;
}

.avin-custom-select.is-open .avin-custom-select__dropdown {
    display: block;
}

.avin-custom-select__dropdown::-webkit-scrollbar {
    width: 5px;
}
.avin-custom-select__dropdown::-webkit-scrollbar-thumb {
    background: #f472b6;
    border-radius: 4px;
}

.avin-custom-select__list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.avin-custom-select__item {
    padding: 8px 12px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--avin-text);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: center;
    user-select: none;
}

.avin-custom-select__item:hover {
    background: var(--avin-pink-light);
    color: var(--avin-pink);
}

.avin-custom-select__item.is-active {
    background: var(--avin-pink-subtle);
    color: var(--avin-pink);
    font-weight: 700;
}

/* اسلایدر قیمت */
.avin-price-inputs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}
.avin-price-box {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--avin-border);
    border-radius: 12px;
    padding: 6px 8px;
    background: #ffffff;
    font-size: 12px;
    color: var(--avin-text-muted);
}
.avin-price-box input {
    border: none;
    outline: none !important;
    text-align: center;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    color: var(--avin-text);
    width: 100%;
    background: transparent;
    padding: 0;
}

.avin-range-slider-container {
    position: relative;
    height: 20px;
    display: flex;
    align-items: center;
    padding: 0 6px;
}
.avin-slider-track-bg {
    position: absolute;
    height: 4px;
    width: 100%;
    left: 0;
    right: 0;
    background: #e2e8f0;
    border-radius: 2px;
    z-index: 1;
}
.avin-slider-track-fill {
    position: absolute;
    height: 4px;
    background: var(--avin-pink);
    border-radius: 2px;
    z-index: 2;
}
.avin-range-slider-container input[type="range"] {
    position: absolute;
    width: 100%;
    left: 0;
    right: 0;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    z-index: 3;
    margin: 0;
    outline: none !important;
}
.avin-range-slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #64748b;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.15s ease, background-color 0.15s ease;
}
.avin-range-slider-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: var(--avin-pink);
}

/* دو دکمه اکشن در یک سطر در کنار هم (مطابق رفرنس) */
.avin-filter-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
}
.avin-filter-submit-btn {
    flex: 1.2;
    height: 40px;
    background: var(--avin-pink);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 750;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    outline: none !important;
    transition: background-color 0.2s ease, transform 0.15s ease;
}
.avin-filter-submit-btn:hover {
    background: var(--avin-pink-hover);
    transform: translateY(-1px);
}
.avin-filter-reset-btn {
    flex: 1;
    height: 40px;
    background: #ffffff;
    color: var(--avin-text-muted);
    border: 1.5px solid var(--avin-border);
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none !important;
    transition: all 0.2s ease;
}
.avin-filter-reset-btn:hover {
    background: var(--avin-pink-light);
    color: var(--avin-pink);
    border-color: #fbcfe8;
}

/* ==========================================================================
   ۶. تولبار محصولات (Toolbar)
   «نمایش بر اساس» تراز شده در سمت چپ بالای گرید در دسکتاپ
   ========================================================================== */
.avin-archive-toolbar {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    width: 100%;
}

.avin-toolbar-desktop {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    width: auto;
    margin-right: auto; /* در راست‌چین، این پراپرتی باکس را به چپ می‌برد */
}
.avin-toolbar-desktop label {
    font-size: 13px;
    font-weight: 700;
    color: var(--avin-text);
    margin-bottom: 0;
    white-space: nowrap;
}
.avin-toolbar-desktop .avin-select-wrap {
    min-width: 140px;
    width: 160px;
}

.avin-toolbar-mobile {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.avin-toolbar-mobile__title {
    font-size: 18px;
    font-weight: 850;
    color: var(--avin-pink);
    margin: 0;
}
.avin-mobile-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--avin-pink);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    outline: none !important;
}

/* ==========================================================================
   ۷. گرید محصولات و کارت استاندارد آوین (Product Grid & Cards)
   مطابق بخش ۳ سند دستوری و تصاویر مرجع da935577.jpg و 3081a699.jpg
   ========================================================================== */
.avin-products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 28px 16px !important;
    margin-bottom: 36px !important;
    width: 100% !important;
    transition: opacity 0.25s ease !important;
}

.avin-products-grid.is-loading {
    opacity: 0.45 !important;
    pointer-events: none !important;
}

/* کارت محصول آوین در گرید آرشیو - منطبق ۱۰۰٪ بر ساختار کاروسل (Frame 890 و Frame 892) */
.avin-products-grid .avin-card,
.avin-products-grid .avin-archive-product-card,
.avin-products-grid .ykpc-card,
.avin-products-grid .yk-product {
    position: relative !important;
    height: 340px !important;
    min-height: 340px !important;
    max-height: 340px !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    border-radius: 0 !important;
    transition: transform 0.35s ease !important;
}

.avin-products-grid .avin-card:hover,
.avin-products-grid .ykpc-card:hover,
.avin-products-grid .yk-product:hover {
    transform: translateY(-4px) !important;
}

/* کادر تصویر محصول در دسکتاپ (Frame 890 فیگما) - پوشش کامل تا ۵۸ پیکسل مانده به پایین */
.avin-products-grid .yk-product__visual-link,
.avin-products-grid .ykpc-image-link {
    position: absolute !important;
    top: 0 !important;
    bottom: 58px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1 !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    background: #f8fafc !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05) !important;
    text-decoration: none !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.avin-products-grid .yk-product__visual {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 22px !important;
    background: #f8fafc !important;
}

.avin-products-grid .yk-product__image,
.avin-products-grid .ykpc-product-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    border: none !important;
    box-shadow: none !important;
    transition: transform 0.45s ease, opacity 0.4s ease !important;
}

.avin-products-grid .yk-product:hover .yk-product__image,
.avin-products-grid .ykpc-card:hover .ykpc-product-image {
    transform: scale(1.04) !important;
}

.avin-products-grid .yk-product:hover .yk-product__image--primary.has-gallery {
    opacity: 0 !important;
}

.avin-products-grid .yk-product:hover .yk-product__image--secondary {
    opacity: 1 !important;
    transform: scale(1.04) !important;
}

/* نشان‌ها در گوشه بالا سمت چپ */
.avin-products-grid .yk-product__badge,
.avin-products-grid .ykpc-product-badge {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    border-radius: 20px !important;
    padding: 4px 11px !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    z-index: 5 !important;
    box-shadow: none !important;
    filter: none !important;
    text-shadow: none !important;
    margin: 0 !important;
    font-family: 'IRANYekanX', sans-serif !important;
}

.avin-products-grid .yk-product__badge--pink,
.avin-products-grid .ykpc-product-badge.is-discount {
    background: #cf2f71 !important;
    color: #ffffff !important;
}

.avin-products-grid .yk-product__badge--outofstock,
.avin-products-grid .ykpc-product-badge.is-outofstock {
    background: #e11d48 !important;
    color: #ffffff !important;
}

/* کارت شیشه‌ای مشخصات محصول در دسکتاپ (Frame 892 فیگما) - پوزیشن ابسلوت، کاملاً در مرکز و بیرون‌زده از پایین تصویر */
.avin-products-grid .yk-product__info,
.avin-products-grid .ykpc-info {
    position: absolute !important;
    bottom: 0px !important;
    left: 14px !important;
    right: 14px !important;
    width: calc(100% - 28px) !important;
    margin: 0 auto !important;
    z-index: 3 !important;
    height: 122px !important;
    min-height: 122px !important;
    max-height: 122px !important;
    border-radius: 18px !important;
    background: rgba(255, 240, 246, 0.88) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(255, 255, 255, 0.78) !important;
    padding: 8px 10px 8px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.avin-products-grid .yk-product__name,
.avin-products-grid .ykpc-title {
    font-size: 13px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
    color: #27272a !important;
    margin: 0 !important;
    min-height: 38px !important;
    max-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    overflow: hidden !important;
    width: 100% !important;
    text-shadow: none !important;
}

.avin-products-grid .yk-product__name a,
.avin-products-grid .ykpc-title a {
    color: inherit !important;
    text-decoration: none !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    transition: color 0.25s ease !important;
}

.avin-products-grid .yk-product:hover .yk-product__name a,
.avin-products-grid .yk-product__name a:hover,
.avin-products-grid .ykpc-card:hover .ykpc-title a,
.avin-products-grid .ykpc-title a:hover {
    color: #cf2f71 !important;
}

.avin-products-grid .yk-product__subtitle,
.avin-products-grid .ykpc-subtitle {
    font-size: 11px !important;
    color: #8a8588 !important;
    margin: 0 !important;
    text-align: center !important;
    display: block !important;
}

/* کادر سفید قیمت */
.avin-products-grid .yk-product__pricebox,
.avin-products-grid .ykpc-price-area {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 13px !important;
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0px !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}

.avin-products-grid .yk-product__oldprice,
.avin-products-grid .ykpc-old-price {
    font-size: 10.5px !important;
    color: #e53935 !important;
    text-decoration: line-through !important;
    line-height: 1.15 !important;
    font-weight: 600 !important;
    display: block !important;
}

.avin-products-grid .yk-product__price,
.avin-products-grid .ykpc-price {
    font-size: 14.5px !important;
    font-weight: 800 !important;
    color: #00875a !important;
    line-height: 1.25 !important;
    display: block !important;
}

/* دکمه تماس بگیرید */
.avin-products-grid .yk-product__contact,
.avin-products-grid .ykpc-contact {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    border-radius: 13px !important;
    background: #cf2f71 !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    box-shadow: none !important;
    border: none !important;
    transition: background 0.2s ease !important;
}

.avin-products-grid .yk-product__contact:hover,
.avin-products-grid .ykpc-contact:hover {
    background: #b82361 !important;
}

/* خالی بودن لیست */
.avin-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    background: #ffffff;
    border-radius: var(--avin-radius-card);
    border: 1px dashed var(--avin-border);
}
.avin-empty-state__icon {
    font-size: 44px;
    margin-bottom: 12px;
}
.avin-empty-state__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--avin-text);
    margin: 0 0 6px;
}
.avin-empty-state__desc {
    font-size: 13px;
    color: var(--avin-text-muted);
    margin: 0;
}

/* ==========================================================================
   ۸. صفحه‌بندی ایجکس (Pagination)
   ========================================================================== */
/* ==========================================================================
   ۸. صفحه‌بندی ایجکس (Pagination) مطابق تصویر رفرنس ۱
   ========================================================================== */
.avin-archive-pagination {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-top: 36px !important;
    margin-bottom: 40px !important;
    direction: rtl !important;
}

.avin-pagination-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 22px !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    border: 1.5px solid #fce7f3 !important;
    color: #475569 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    font-family: 'IRANYekanX', sans-serif !important;
    line-height: 1 !important;
}

.avin-pagination-btn svg {
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
}

.avin-pagination-btn:hover:not(.is-disabled) {
    border-color: #cf2f71 !important;
    color: #cf2f71 !important;
    background: #fff5f8 !important;
}

.avin-pagination-btn.is-disabled {
    border-color: #f8fafc !important;
    color: #cbd5e1 !important;
    background: #ffffff !important;
    cursor: default !important;
    pointer-events: none !important;
}

.avin-page-number {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    border: 1.5px solid #fce7f3 !important;
    color: #475569 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    font-family: 'IRANYekanX', sans-serif !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    min-width: 44px !important;
}

.avin-page-number:hover:not(.is-active) {
    border-color: #cf2f71 !important;
    color: #cf2f71 !important;
    background: #fff5f8 !important;
}

.avin-page-number.is-active {
    background: #cf2f71 !important;
    border-color: #cf2f71 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(207, 47, 113, 0.28) !important;
    cursor: default !important;
}

.avin-page-dots {
    color: #94a3b8 !important;
    font-size: 16px !important;
    padding: 0 4px !important;
}

/* ==========================================================================
   ۹. باکس توضیحات تکمیلی سئو (Extra SEO Description with Toggle)
   ========================================================================== */
.avin-archive-extra-desc {
    background: #ffffff;
    border-radius: var(--avin-radius-card);
    border: 1px solid var(--avin-border);
    padding: 24px 28px;
    margin-top: 32px;
}

.avin-archive-extra-desc__content {
    position: relative;
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--avin-text);
    transition: max-height 0.35s ease;
    overflow: hidden;
}

.avin-archive-extra-desc__content.is-collapsed {
    max-height: 160px;
}

.avin-archive-extra-desc__content.is-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
}

.avin-desc-toggle-wrap {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.avin-desc-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid var(--avin-pink);
    color: var(--avin-pink);
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    padding: 8px 22px;
    border-radius: 9999px;
    transition: all 0.25s ease;
    outline: none !important;
}

.avin-desc-toggle-btn:hover {
    background: var(--avin-pink);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(207, 47, 113, 0.2);
}

.avin-desc-chevron {
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.avin-desc-toggle-btn.is-expanded .avin-desc-chevron {
    transform: rotate(180deg);
}

/* ==========================================================================
   ۱۰. بخش سوالات متداول (Category FAQs Accordion)
   ========================================================================== */
.avin-archive-faqs {
    background: #ffffff;
    border-radius: var(--avin-radius-card);
    border: 1px solid var(--avin-border);
    padding: 24px 28px;
    margin-top: 28px;
}

.avin-archive-faqs__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.avin-archive-faqs__title {
    font-size: 19px;
    font-weight: 850;
    color: var(--avin-text);
    margin: 0;
}

.avin-faq-item {
    border: 1px solid var(--avin-border);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.avin-faq-item:hover {
    border-color: #fbcfe8;
}

.avin-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #ffffff;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--avin-text);
}

.avin-faq-chevron {
    display: inline-flex;
    align-items: center;
    color: #64748b;
    transition: transform 0.25s ease;
}

.avin-faq-item.is-open .avin-faq-chevron {
    transform: rotate(180deg);
    color: var(--avin-pink);
}

.avin-faq-answer {
    padding: 0 18px 14px;
    font-size: 13px;
    line-height: 1.8;
    color: #475569;
    display: none;
}

.avin-faq-item.is-open .avin-faq-answer {
    display: block;
}

/* ==========================================================================
   ۱۱. مدال پاپ‌آپ فیلتر موبایل (Mobile Filter Modal - مطابق رفرنس ۳)
   ========================================================================== */
.avin-filter-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
}

.avin-filter-modal-overlay.is-open {
    display: flex;
    align-items: flex-end;
}

.avin-filter-modal-dialog {
    width: 100%;
    max-height: 85vh;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    padding: 24px 18px 36px;
    overflow-y: auto;
    box-sizing: border-box;
    animation: avinSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes avinSlideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.avin-filter-modal-dialog .avin-filter-card {
    border: none;
    padding: 0;
    box-shadow: none;
}

.avin-filter-card.is-modal .avin-filter-modal-close {
    display: flex;
}

/* ==========================================================================
   ۱۲. رسپانسیو و مدیا کوئری‌ها (Breakpoints)
   ========================================================================== */
@media (max-width: 1200px) and (min-width: 992px) {
    .avin-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .avin-archive-layout {
        flex-direction: column;
    }
    .avin-archive-sidebar {
        display: none;
    }
    .avin-toolbar-desktop {
        display: none;
    }
    .avin-toolbar-mobile {
        display: flex;
    }
    .avin-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
    .avin-archive-hero {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .avin-archive-hero__banner {
        flex: auto;
        max-width: 100%;
        height: 180px;
    }
}

@media (max-width: 767px) {
    .avin-archive-wrapper {
        padding: 10px 12px 40px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .avin-archive-layout {
        display: block !important;
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
    .avin-archive-sidebar {
        display: none !important;
    }
    .avin-archive-main {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
    .avin-archive-toolbar {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 20px !important;
        overflow: visible !important;
    }

    /* حذف قطعی و غیرقابل بازگشت تولبار دسکتاپ در موبایل حتی با !important در کاستومایزر */
    body .avin-archive-toolbar .avin-toolbar-desktop,
    body div.avin-toolbar-desktop,
    .avin-archive-wrapper .avin-toolbar-desktop,
    html body .avin-toolbar-desktop,
    .avin-toolbar-desktop {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        max-width: 0 !important;
        height: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        overflow: hidden !important;
        position: absolute !important;
        pointer-events: none !important;
        left: -9999px !important;
        clip: rect(0, 0, 0, 0) !important;
    }

    /* تولبار موبایل استاندارد آوین: راست=محصولات، وسط=دراپ‌داون مرتب‌سازی، چپ=دکمه فیلتر */
    .avin-archive-toolbar .avin-toolbar-mobile,
    body .avin-toolbar-mobile,
    .avin-toolbar-mobile {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 8px !important;
        box-sizing: border-box !important;
        margin-bottom: 0 !important;
    }
    .avin-toolbar-mobile__title {
        order: 1 !important;
        font-size: 17px !important;
        font-weight: 850 !important;
        color: #cf2f71 !important;
        margin: 0 !important;
        white-space: nowrap !important;
        flex: 0 0 auto !important;
    }
    .avin-toolbar-mobile .avin-select-wrap {
        order: 2 !important;
        flex: 1 1 auto !important;
        max-width: 140px !important;
        min-width: 105px !important;
        width: auto !important;
        margin: 0 4px !important;
    }
    .avin-toolbar-mobile .avin-mobile-filter-btn {
        order: 3 !important;
        flex: 0 0 auto !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        background: #cf2f71 !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 12px !important;
        padding: 8px 12px !important;
        font-size: 12.5px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        cursor: pointer !important;
        outline: none !important;
    }

    /* در مدال فیلتر موبایل، کارت نباید مارجین بالا داشته باشد */
    .avin-filter-modal .avin-filter-card {
        margin-top: 0 !important;
    }

    /* هیرو در موبایل */
    .avin-archive-hero {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 16px;
        padding: 0 0 20px 0;
        margin-bottom: 20px;
    }
    .avin-archive-hero__banner {
        flex: auto;
        width: 100%;
        max-width: 100%;
        height: 200px;
        border-radius: 18px;
    }
    .avin-archive-hero__title {
        font-size: 20px;
        margin-bottom: 8px;
    }
    .avin-archive-hero__desc {
        font-size: 12.5px;
        line-height: 1.8;
    }

    /* گرید ۲ ستونه موبایل مطابق رفرنس ۳ */
    .avin-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 20px 10px !important;
        margin-bottom: 24px !important;
        width: 100% !important;
    }

    .avin-products-grid .avin-card,
    .avin-products-grid .avin-archive-product-card,
    .avin-products-grid .ykpc-card,
    .avin-products-grid .yk-product {
        height: 245px !important;
        min-height: 245px !important;
        max-height: 245px !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: visible !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    /* کادر عکس محصول در موبایل */
    .avin-products-grid .yk-product__visual-link,
    .avin-products-grid .ykpc-image-link {
        top: 0 !important;
        bottom: 42px !important;
        border-radius: 18px !important;
        border: 1px solid rgba(0, 0, 0, 0.04) !important;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05) !important;
    }

    .avin-products-grid .yk-product__visual {
        border-radius: 18px !important;
    }

    .avin-products-grid .yk-product__badge,
    .avin-products-grid .ykpc-product-badge {
        top: 10px !important;
        left: 10px !important;
        font-size: 9.5px !important;
        padding: 3px 9px !important;
    }

    /* کارت اطلاعات شیشه‌ای در موبایل */
    .avin-products-grid .yk-product__info,
    .avin-products-grid .ykpc-info {
        position: absolute !important;
        bottom: 0px !important;
        left: 6px !important;
        right: 6px !important;
        width: calc(100% - 12px) !important;
        margin: 0 auto !important;
        height: 96px !important;
        min-height: 96px !important;
        max-height: 96px !important;
        border-radius: 14px !important;
        padding: 5px 6px 6px !important;
        background: rgba(255, 240, 246, 0.88) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
        border: 1px solid rgba(255, 255, 255, 0.78) !important;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .avin-products-grid .yk-product__name,
    .avin-products-grid .ykpc-title {
        font-size: 11px !important;
        line-height: 1.3 !important;
        min-height: 28px !important;
        max-height: 28px !important;
    }

    .avin-products-grid .yk-product__subtitle,
    .avin-products-grid .ykpc-subtitle {
        font-size: 9.5px !important;
    }

    .avin-products-grid .yk-product__pricebox,
    .avin-products-grid .ykpc-price-area,
    .avin-products-grid .yk-product__contact,
    .avin-products-grid .ykpc-contact {
        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
        border-radius: 10px !important;
        padding: 2px 4px !important;
    }

    .avin-products-grid .yk-product__oldprice,
    .avin-products-grid .ykpc-old-price {
        font-size: 9px !important;
        line-height: 1.1 !important;
    }

    .avin-products-grid .yk-product__price,
    .avin-products-grid .ykpc-price {
        font-size: 12.5px !important;
        line-height: 1.2 !important;
    }

    .avin-products-grid .yk-product__contact,
    .avin-products-grid .ykpc-contact {
        font-size: 11.5px !important;
    }

    .avin-archive-extra-desc,
    .avin-archive-faqs {
        padding: 20px 16px;
    }
}


/* UNIFIED BREADCRUMBS (طراحی یکپارچه و استاندارد ۱۲۸۲ پیکسل راستچین) */
.avin-archive-breadcrumbs {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 12.5px !important;
    color: #8a8588 !important;
    direction: rtl !important;
    margin-bottom: 20px !important;
    font-family: 'IRANYekanX', sans-serif !important;
    flex-wrap: wrap !important;
}

.avin-archive-breadcrumbs a {
    color: #8a8588 !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
    font-weight: 500 !important;
}

.avin-archive-breadcrumbs a:hover {
    color: #cf2f71 !important;
}

.avin-archive-breadcrumbs .crumb-sep {
    color: #8a8588 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    padding: 0 2px !important;
}

.avin-archive-breadcrumbs .crumb-current {
    color: #1e293b !important;
    font-weight: 700 !important;
}
