﻿/* ==========================================================================
   طراحی حالت‌های چندگانه‌ی نمایش کالاها و خدمات در صفحه اول (Home Catalog Layouts)
   --------------------------------------------------------------------------
   ۷ حالت اختصاصی با انطباق کامل بر هر ۳ قالب سیستم:
     1. GridClassic: شبکه‌ای پیش‌فرض
     2. AlternatingSquare: یک‌درمیان مربعی کادربندی‌شده (طرح تصویر ارسالی)
     3. AlternatingCircle: ضربدری با عکس دایره‌ای بدون کارت
     4. Slider: اسلایدر لمسی روان (Carousel)
     5. Bento: بنتو گرید مدرن (نامتقارن با کارت شاخص)
     6. CompactList: لیست افقی فشرده
     7. ModernCards: کارت‌های مدرن شناور
   ========================================================================== */

/* --------------------------------------------------------------------------
   مشترکات عمومی بخش‌های محصولات و خدمات
   -------------------------------------------------------------------------- */
.catalog-section-head {
    margin-bottom: 2.25rem;
    text-align: center;
}
.catalog-section-head .heading-decorated {
    margin-bottom: 0.5rem;
}
.catalog-section-head .catalog-section-sub {
    font-size: 1.05rem;
    color: var(--pub-ink-2, #64748b);
    max-width: 680px;
    margin: 0 auto;
}
.catalog-section-footer {
    text-align: center;
    margin-top: 2.25rem;
}

/* ==========================================================================
   ۲. حالت یک‌درمیان مربعی (AlternatingSquare) - دقیقاً مطابق تصویر ارسالی
   ========================================================================== */
.catalog-zigzag-square {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin: 0 auto;
    max-width: 1040px;
}
.catalog-zigzag-square .zigzag-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.catalog-zigzag-square .zigzag-row:nth-child(even) {
    flex-direction: row-reverse;
}
.catalog-zigzag-square .zigzag-media-col {
    flex: 0 0 45%;
    max-width: 45%;
    position: relative;
    min-height: 280px;
    overflow: hidden;
}
.catalog-zigzag-square .zigzag-media-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.catalog-zigzag-square .zigzag-row:hover .zigzag-media-col img {
    transform: scale(1.04);
}
.catalog-zigzag-square .zigzag-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    background: rgba(148, 163, 184, 0.12);
}
.catalog-zigzag-square .zigzag-content-col {
    flex: 0 0 55%;
    max-width: 55%;
    padding: 2.5rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
}
.catalog-zigzag-square .zigzag-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
    line-height: 1.4;
}
.catalog-zigzag-square .zigzag-title a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.catalog-zigzag-square .zigzag-title a:hover {
    opacity: 0.85;
}
.catalog-zigzag-square .zigzag-desc {
    font-size: 0.98rem;
    line-height: 1.85;
    margin-bottom: 1.35rem;
}
.catalog-zigzag-square .zigzag-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
}
.catalog-zigzag-square .zigzag-price {
    font-weight: 800;
    font-size: 1.1rem;
}
.catalog-zigzag-square .zigzag-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: nowrap;
}
.catalog-zigzag-square .zigzag-actions > * {
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.catalog-zigzag-square .zigzag-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 40px !important;
    min-height: 40px !important;
    line-height: 1 !important;
    padding: 0 1.25rem !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    border-radius: 8px;
    text-decoration: none !important;
    white-space: nowrap;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    transition: all 0.22s ease;
    margin: 0 !important;
}

/* انطباق قالب Classic برای زیگزاگ مربعی (مانند عکس ارسالی) */
.public-theme-classic .catalog-zigzag-square .zigzag-row {
    background-color: var(--pub-dark, #0c1524);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.public-theme-classic .catalog-zigzag-square .zigzag-title {
    color: #ffffff;
}
.public-theme-classic .catalog-zigzag-square .zigzag-desc {
    color: #cbd5e1;
}
.public-theme-classic .catalog-zigzag-square .zigzag-price {
    color: var(--pub-primary, #f59e0b);
}
.public-theme-classic .catalog-zigzag-square .zigzag-btn-primary {
    background-color: var(--pub-primary, #f59e0b) !important;
    color: var(--pub-on-primary, #111827) !important;
    border: 1px solid var(--pub-primary, #f59e0b) !important;
}
.public-theme-classic .catalog-zigzag-square .zigzag-btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}
.public-theme-classic .catalog-zigzag-square .zigzag-btn-outline {
    background-color: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
}
.public-theme-classic .catalog-zigzag-square .zigzag-btn-outline:hover {
    background-color: #ffffff !important;
    color: var(--pub-dark, #0c1524) !important;
    transform: translateY(-2px);
}

/* انطباق قالب Editorial برای زیگزاگ مربعی */
.public-theme-editorial .catalog-zigzag-square .zigzag-row {
    background-color: var(--pub-surface, #ffffff);
    color: var(--pub-ink, #0f172a);
    border: 1px solid var(--pub-line, #e2e8f0);
    border-radius: 4px;
    box-shadow: var(--pub-shadow-1);
}
.public-theme-editorial .catalog-zigzag-square .zigzag-media-col {
    border-radius: 0;
}
.public-theme-editorial .catalog-zigzag-square .zigzag-title {
    font-weight: 900;
    color: var(--pub-ink, #0f172a);
    position: relative;
    padding-right: 0.85rem;
}
.public-theme-editorial .catalog-zigzag-square .zigzag-title::before {
    content: "";
    position: absolute;
    right: 0;
    top: 15%;
    bottom: 15%;
    width: 3px;
    background-color: var(--pub-accent, #2563eb);
}
.public-theme-editorial .catalog-zigzag-square .zigzag-desc {
    color: var(--pub-ink-2, #475569);
}
.public-theme-editorial .catalog-zigzag-square .zigzag-btn-primary {
    background-color: var(--pub-ink, #0f172a) !important;
    color: #ffffff !important;
    border: 1.5px solid var(--pub-ink, #0f172a) !important;
    border-radius: 2px !important;
}
.public-theme-editorial .catalog-zigzag-square .zigzag-btn-primary:hover {
    background-color: transparent !important;
    color: var(--pub-ink, #0f172a) !important;
}
.public-theme-editorial .catalog-zigzag-square .zigzag-btn-outline {
    background-color: transparent !important;
    color: var(--pub-ink, #0f172a) !important;
    border: 1.5px solid var(--pub-line, #cbd5e1) !important;
    border-radius: 2px !important;
}
.public-theme-editorial .catalog-zigzag-square .zigzag-btn-outline:hover {
    background-color: var(--pub-ink, #0f172a) !important;
    color: #ffffff !important;
}

/* انطباق قالب Soft برای زیگزاگ مربعی */
.public-theme-soft .catalog-zigzag-square .zigzag-row {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    color: var(--pub-ink, #1e293b);
    border-radius: 22px;
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(8px);
}
.public-theme-soft .catalog-zigzag-square .zigzag-title {
    color: var(--pub-ink, #1e293b);
}
.public-theme-soft .catalog-zigzag-square .zigzag-desc {
    color: var(--pub-ink-2, #64748b);
}
.public-theme-soft .catalog-zigzag-square .zigzag-btn-primary {
    background-color: var(--pub-primary, #6366f1) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 999px !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35) !important;
}
.public-theme-soft .catalog-zigzag-square .zigzag-btn-outline {
    background-color: #ffffff !important;
    color: var(--pub-ink, #1e293b) !important;
    border: 1px solid var(--pub-line, #e2e8f0) !important;
    border-radius: 999px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}
.public-theme-soft .catalog-zigzag-square .zigzag-btn-outline:hover {
    background-color: var(--pub-canvas, #f8fafc) !important;
}


/* ==========================================================================
   ۳. حالت ضربدری با عکس دایره‌ای بدون کارت (AlternatingCircle)
   ========================================================================== */
.catalog-zigzag-circle {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    margin: 0 auto;
    max-width: 980px;
}
.catalog-zigzag-circle .circle-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    position: relative;
}
.catalog-zigzag-circle .circle-row:nth-child(even) {
    flex-direction: row-reverse;
}
.catalog-zigzag-circle .circle-media-col {
    flex: 0 0 240px;
    width: 240px;
    height: 240px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.catalog-zigzag-circle .circle-img-wrap {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.16);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.catalog-zigzag-circle .circle-row:hover .circle-img-wrap {
    transform: scale(1.05);
}
.catalog-zigzag-circle .circle-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.catalog-zigzag-circle .circle-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    background: rgba(148, 163, 184, 0.15);
}
.catalog-zigzag-circle .circle-content-col {
    flex: 1;
    text-align: right;
}
.catalog-zigzag-circle .circle-title {
    font-size: 1.55rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.catalog-zigzag-circle .circle-title a {
    color: inherit;
    text-decoration: none;
}
.catalog-zigzag-circle .circle-desc {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--pub-ink-2, #64748b);
    margin-bottom: 1.25rem;
}
.catalog-zigzag-circle .circle-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.catalog-zigzag-circle .circle-price {
    font-weight: 800;
    font-size: 1.15rem;
}
.catalog-zigzag-circle .circle-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: nowrap;
}
.catalog-zigzag-circle .circle-actions > * {
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.catalog-zigzag-circle .circle-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 40px !important;
    min-height: 40px !important;
    line-height: 1 !important;
    padding: 0 1.25rem !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    border-radius: 8px;
    text-decoration: none !important;
    white-space: nowrap;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    transition: all 0.22s ease;
    margin: 0 !important;
}

/* انطباق قالب Classic برای دایره‌ای بدون کارت */
.public-theme-classic .catalog-zigzag-circle .circle-img-wrap {
    border: 4px solid var(--pub-primary, #f59e0b);
}
.public-theme-classic .catalog-zigzag-circle .circle-btn-primary {
    background-color: var(--pub-primary, #f59e0b) !important;
    color: var(--pub-on-primary, #111827) !important;
    border: 1px solid var(--pub-primary, #f59e0b) !important;
}
.public-theme-classic .catalog-zigzag-circle .circle-btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}
.public-theme-classic .catalog-zigzag-circle .circle-btn-outline {
    background-color: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
}
.public-theme-classic .catalog-zigzag-circle .circle-btn-outline:hover {
    background-color: #ffffff !important;
    color: var(--pub-dark, #0c1524) !important;
    transform: translateY(-2px);
}

/* انطباق قالب Editorial برای دایره‌ای بدون کارت */
.public-theme-editorial .catalog-zigzag-circle .circle-img-wrap {
    border: 2px solid var(--pub-ink, #0f172a);
    box-shadow: none;
}
.public-theme-editorial .catalog-zigzag-circle .circle-title {
    font-weight: 900;
    letter-spacing: -0.02em;
}
.public-theme-editorial .catalog-zigzag-circle .circle-btn-primary {
    background-color: var(--pub-ink, #0f172a) !important;
    color: #ffffff !important;
    border: 1.5px solid var(--pub-ink, #0f172a) !important;
    border-radius: 2px !important;
}
.public-theme-editorial .catalog-zigzag-circle .circle-btn-primary:hover {
    background-color: transparent !important;
    color: var(--pub-ink, #0f172a) !important;
}
.public-theme-editorial .catalog-zigzag-circle .circle-btn-outline {
    background-color: transparent !important;
    color: var(--pub-ink, #0f172a) !important;
    border: 1.5px solid var(--pub-line, #cbd5e1) !important;
    border-radius: 2px !important;
}
.public-theme-editorial .catalog-zigzag-circle .circle-btn-outline:hover {
    background-color: var(--pub-ink, #0f172a) !important;
    color: #ffffff !important;
}

/* انطباق قالب Soft برای دایره‌ای بدون کارت */
.public-theme-soft .catalog-zigzag-circle .circle-img-wrap {
    border: 4px solid #ffffff;
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.8);
}
.public-theme-soft .catalog-zigzag-circle .circle-btn-primary {
    background-color: var(--pub-primary, #6366f1) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 999px !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35) !important;
}
.public-theme-soft .catalog-zigzag-circle .circle-btn-outline {
    background-color: #ffffff !important;
    color: var(--pub-ink, #1e293b) !important;
    border: 1px solid var(--pub-line, #e2e8f0) !important;
    border-radius: 999px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}
.public-theme-soft .catalog-zigzag-circle .circle-btn-outline:hover {
    background-color: var(--pub-canvas, #f8fafc) !important;
}


/* ==========================================================================
   ۴. حالت اسلایدر لمسی / کاروسل (Slider / Carousel)
   ========================================================================== */
.catalog-slider-wrapper {
    position: relative;
    padding: 0.5rem 0 2.5rem;
}
.catalog-slider-wrapper .swiper {
    width: 100%;
    padding: 10px 4px 45px;
}
.catalog-slider-wrapper .swiper-slide {
    height: auto;
    display: flex;
}
.catalog-slider-wrapper .catalog-slide-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: var(--pub-surface, #ffffff);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--pub-shadow-1, 0 2px 8px rgba(0,0,0,0.06));
    border: 1px solid var(--pub-line, #e2e8f0);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.catalog-slider-wrapper .catalog-slide-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pub-shadow-2, 0 10px 20px rgba(0,0,0,0.1));
}
.catalog-slider-wrapper .slide-card-img {
    height: 190px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
}
.catalog-slider-wrapper .slide-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.catalog-slider-wrapper .catalog-slide-card:hover .slide-card-img img {
    transform: scale(1.05);
}
.catalog-slider-wrapper .slide-card-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
}
.catalog-slider-wrapper .slide-card-body {
    padding: 1.25rem 1.15rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: right;
}
.catalog-slider-wrapper .slide-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.catalog-slider-wrapper .slide-card-title a {
    color: inherit;
    text-decoration: none;
}
.catalog-slider-wrapper .slide-card-desc {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--pub-ink-2, #64748b);
    margin-bottom: 1rem;
    flex: 1;
}
.catalog-slider-wrapper .slide-card-foot {
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid var(--pub-line, #f1f5f9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.catalog-slider-wrapper .slide-card-price {
    font-weight: 800;
    font-size: 0.95rem;
}

/* دکمه‌های ناوبری اسلایدر */
.catalog-slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}
.catalog-slider-nav .slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--pub-surface, #ffffff);
    border: 1px solid var(--pub-line, #cbd5e1);
    color: var(--pub-ink, #0f172a);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.25rem;
    user-select: none;
}
.catalog-slider-nav .slider-btn:hover {
    background: var(--pub-primary, #f59e0b);
    color: var(--pub-on-primary, #ffffff);
    border-color: var(--pub-primary, #f59e0b);
}

/* انطباق قالب Soft برای اسلایدر */
.public-theme-soft .catalog-slider-wrapper .catalog-slide-card {
    border-radius: 20px;
    border: none;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}
.public-theme-soft .catalog-slider-nav .slider-btn {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border: none;
}


/* ==========================================================================
   ۵. حالت بنتو گرید مدرن (Modern Bento Grid)
   ========================================================================== */
.catalog-bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}
.catalog-bento-grid .bento-item {
    grid-column: span 4;
    background: var(--pub-surface, #ffffff);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--pub-line, #e2e8f0);
    box-shadow: var(--pub-shadow-1);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.catalog-bento-grid .bento-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--pub-shadow-2);
}
/* آیتم اول بنتو (شاخص / Hero) */
.catalog-bento-grid .bento-item:first-child {
    grid-column: span 8;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.catalog-bento-grid .bento-item:first-child .bento-img {
    height: 100%;
    min-height: 280px;
}
.catalog-bento-grid .bento-img {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
}
.catalog-bento-grid .bento-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.catalog-bento-grid .bento-item:hover .bento-img img {
    transform: scale(1.05);
}
.catalog-bento-grid .bento-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: right;
}
.catalog-bento-grid .bento-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}
.catalog-bento-grid .bento-item:first-child .bento-title {
    font-size: 1.65rem;
}
.catalog-bento-grid .bento-title a {
    color: inherit;
    text-decoration: none;
}
.catalog-bento-grid .bento-desc {
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--pub-ink-2, #64748b);
    margin-bottom: 1.25rem;
    flex: 1;
}
.catalog-bento-grid .bento-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--pub-line, #f1f5f9);
}

/* انطباق قالب Classic برای بنتو */
.public-theme-classic .catalog-bento-grid .bento-item:first-child {
    background: var(--pub-dark, #0c1524);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
}
.public-theme-classic .catalog-bento-grid .bento-item:first-child .bento-desc {
    color: #cbd5e1;
}
.public-theme-classic .catalog-bento-grid .bento-item:first-child .bento-foot {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* انطباق قالب Soft برای بنتو */
.public-theme-soft .catalog-bento-grid .bento-item {
    border-radius: 22px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}


/* ==========================================================================
   ۶. حالت لیست افقی فشرده (Compact Modern List)
   ========================================================================== */
.catalog-compact-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 960px;
    margin: 0 auto;
}
.catalog-compact-list .compact-item {
    display: flex;
    align-items: center;
    background: var(--pub-surface, #ffffff);
    border: 1px solid var(--pub-line, #e2e8f0);
    border-radius: 12px;
    padding: 0.9rem 1.25rem;
    gap: 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.catalog-compact-list .compact-item:hover {
    transform: translateX(-4px);
    box-shadow: var(--pub-shadow-1);
}
.catalog-compact-list .compact-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}
.catalog-compact-list .compact-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.catalog-compact-list .compact-body {
    flex: 1;
    text-align: right;
    min-width: 0;
}
.catalog-compact-list .compact-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.catalog-compact-list .compact-title a {
    color: inherit;
    text-decoration: none;
}
.catalog-compact-list .compact-desc {
    font-size: 0.88rem;
    color: var(--pub-ink-2, #64748b);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.catalog-compact-list .compact-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}
.catalog-compact-list .compact-price {
    font-weight: 800;
    font-size: 1.05rem;
    white-space: nowrap;
}


/* ==========================================================================
   ۷. حالت کارت‌های مدرن شناور (Modern Glass Cards)
   ========================================================================== */
.catalog-modern-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}
.catalog-modern-cards .modern-card {
    background: var(--pub-surface, #ffffff);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--pub-line, #e2e8f0);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.catalog-modern-cards .modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.12);
    border-color: var(--pub-primary, #6366f1);
}
.catalog-modern-cards .modern-img {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
}
.catalog-modern-cards .modern-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.catalog-modern-cards .modern-card:hover .modern-img img {
    transform: scale(1.06);
}
.catalog-modern-cards .modern-body {
    padding: 1.35rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: right;
}
.catalog-modern-cards .modern-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}
.catalog-modern-cards .modern-title a {
    color: inherit;
    text-decoration: none;
}
.catalog-modern-cards .modern-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--pub-ink-2, #64748b);
    margin-bottom: 1.25rem;
    flex: 1;
}
.catalog-modern-cards .modern-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid var(--pub-line, #f1f5f9);
}


/* ==========================================================================
   واکنش‌گرایی موبایل و تبلت (Responsive Breakpoints)
   ========================================================================== */
@media (max-width: 991px) {
    .catalog-bento-grid .bento-item:first-child {
        grid-column: span 12;
    }
    .catalog-bento-grid .bento-item {
        grid-column: span 6;
    }
}

@media (max-width: 767px) {
    /* در موبایل زیگزاگ مربعی به صورت کارت‌های خوش‌دست عمودی چیده می‌شود */
    .catalog-zigzag-square .zigzag-row,
    .catalog-zigzag-square .zigzag-row:nth-child(even) {
        flex-direction: column !important;
    }
    .catalog-zigzag-square .zigzag-media-col,
    .catalog-zigzag-square .zigzag-content-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .catalog-zigzag-square .zigzag-media-col {
        min-height: 210px;
        height: 210px;
    }
    .catalog-zigzag-square .zigzag-content-col {
        padding: 1.5rem 1.25rem;
    }
    .catalog-zigzag-square .zigzag-title {
        font-size: 1.3rem;
    }

    /* در موبایل دایره‌ای بدون کارت تصویر در بالا و متن در پایین قرار می‌گیرد */
    .catalog-zigzag-circle .circle-row,
    .catalog-zigzag-circle .circle-row:nth-child(even) {
        flex-direction: column !important;
        text-align: center;
        gap: 1.5rem;
    }
    .catalog-zigzag-circle .circle-content-col {
        text-align: center;
    }
    .catalog-zigzag-circle .circle-meta {
        justify-content: center;
    }
    .catalog-zigzag-circle .circle-media-col {
        width: 180px;
        height: 180px;
        flex: 0 0 180px;
    }
    .catalog-zigzag-circle .circle-img-wrap {
        width: 170px;
        height: 170px;
    }

    /* بنتو در موبایل تک‌ستونه می‌شود */
    .catalog-bento-grid .bento-item:first-child {
        grid-template-columns: 1fr;
    }
    .catalog-bento-grid .bento-item {
        grid-column: span 12;
    }

    /* لیست فشرده در موبایل تمیز شکسته می‌شود */
    .catalog-compact-list .compact-item {
        flex-wrap: wrap;
        padding: 1rem;
    }
    .catalog-compact-list .compact-actions {
        width: 100%;
        justify-content: space-between;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--pub-line, #f1f5f9);
    }
}
