.qomticket-grid {
    cursor: grab;
}
/* استایل بنر تکی - تغییر به تمام عرض */
.single-banner-wrap { width: 98%; max-width: 100%; margin: 15px auto; }
.single-banner-wrap img { width: 100%; height: auto; display: block; border-radius: 12px; }

/* تمام‌عرض کردن بخش‌های اصلی */
.qtMain { width: 98%; margin: 10px auto; padding: 0 10px; box-sizing: border-box; }
.headTitle { display: flex; justify-content: space-between; align-items: center; padding-bottom: 5px; margin-bottom: 12px; }
.headTitle h2 { font-size: 18px; font-weight: bold; }
.headTitle h2 a { color: inherit; }
.seeMore a { color: #fff; padding: 4px 14px; border-radius: 50px; font-size: 12px; font-weight: bold; }

/* استایل گرید دسکتاپ - فاصله کمتر */
.qomticket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }

/* استایل اسکرول افقی کارت‌ها برای موبایل - فاصله کمتر */
@media (max-width: 768px) {
    .qomticket-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 10px;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        
        /* حذف اسکرول‌بار */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .qomticket-grid::-webkit-scrollbar {
        display: none;
    }

    .qomSingle-card {
        min-width: 220px; 
        width: 60%;
        flex: 0 0 auto;
    }

    .qomSingle-card .buyBtn-custom {
        border-top: none !important;
        padding-top: 0 !important;
        margin-top: 5px !important;
    }

    /* تغییرات واکنش‌گرا بخش نمادها در موبایل */
    .namads-section {
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
        padding: 10px !important; /* فاصله کمتر داخلی */
    }
    .namads-section-logo {
        border-right: none !important;
        border-top: 1px solid #f0f2f5 !important;
        padding-right: 0 !important;
        padding-top: 20px !important;
        width: 100%;
        justify-content: center !important;
        gap: 10px !important; 
        flex-wrap: nowrap !important;
    }
    .namads-section-logo a {
        flex: 1;
        display: flex;
        justify-content: center;
    }
    .namads-section-logo img {
        width: 85px !important;
        height: 85px !important;
        object-fit: contain;
    }
}

.qomSingle-card {box-shadow: 0 2px 8px rgba(0,0,0,0.05); background: #fff; border-radius: 12px; overflow: hidden;  display: flex; flex-direction: column; border: 1px solid #edf0f2; transition: transform 0.2s; position: relative; }
.qomSingle-card:hover { transform: translateY(-3px); }

.qomImg-wrap { position: relative; width: 100%; aspect-ratio: 16/10; background: #f0f2f5; overflow: hidden; }
.qomImg-wrap img { width: 100%; height: 100%; object-fit: cover; max-width: 100%; } 

.badge-discount { position: absolute; bottom: 10px; left: 10px; background: #c62828; color: #fff; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: normal; z-index: 2; white-space: nowrap; word-break: keep-all; }
.badge-new { position: absolute; top: 10px; right: 10px; background: #8e44ad; color: #fff; padding: 3px 8px; border-radius: 6px; font-size: 12px; z-index: 2; white-space: nowrap; word-break: keep-all; }

.fav-btn-vanilla { position: absolute; top: 10px; left: 10px; background: transparent; border: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.5); transition: 0.3s; }
.fav-btn-vanilla svg { fill: none; stroke: currentColor; stroke-width: 2; width: 22px; height: 22px; }
.fav-btn-vanilla.active { color: #e53935; text-shadow: none; }
.fav-btn-vanilla.active svg { fill: #e53935; }

.card-body-custom { padding: 10px; display: flex; flex-direction: column; flex-grow: 1; gap: 4px; }
.card-body-custom h3 { font-size: 14px; font-weight: bold; color: #333; line-height: 1.3; margin: 0; padding: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; overflow-wrap: break-word; } 

.price-place-container { display: flex; justify-content: space-between; align-items: center; margin: 0; }
.price-row { display: flex; align-items: center; justify-content: flex-end; flex-shrink: 0; }
.t-price { color: #0066cc; font-weight: bold; font-size: 15px; margin: 0; direction: rtl; unicode-bidi: isolate; } 
.t-price span { font-size: 18px; }

.place-row { display: flex; align-items: center; gap: 4px; color: #666; font-size: 12px; overflow: hidden; flex: 1; min-width: 0; } 
.place-row svg { stroke: #888; flex-shrink: 0; width: 13px; height: 13px; }
.place-row a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; word-break: break-word; } 

/* دکمه خرید با خط جداکننده در دسکتاپ */
.buyBtn-custom { margin-top: 8px; border-top: 1px solid #edf0f2; padding-top: 8px; }
.buyBtn-custom a { display: block; text-align: center; background: #2e7d32; color: #fff; padding: 6px; border-radius: 8px; font-size: 13px; font-weight: bold; transition: background 0.2s; }
.buyBtn-custom a:hover { background: #1b5e20; }
.buyBtn-custom.buyDis a { background: #546e7a; color: #ffffff; }

/* تغییرات بخش نمادها و متون پایین صفحه */
.namads-section { width: calc(98% - 20px); margin: 10px auto; padding: 15px 20px; box-sizing: border-box; background: #fff; border-radius: 12px; border: 1px solid #edf0f2; display: flex; flex-direction: row; align-items: stretch; gap: 25px; }
.namads-section-caption { flex: 1; text-align: justify; font-size: 12px; color: #555; line-height: 1.9; }

/* اصلاحات سئو: اضافه شدن استایل H1 دقیقا مشابه H2 قبلی برای حفظ ظاهر */
.namads-section-caption h1 { font-size: 15px; margin-bottom: 10px; color: #222; font-weight: bold; }
.namads-section-caption h2 { font-size: 15px; margin-bottom: 10px; color: #222; }

.namads-section-caption a { color: #0066cc; text-decoration: none; font-weight: bold; }
.namads-section-caption a:hover { color: #0052a3; }

footer a { color: #ffffff !important; text-decoration: none !important; }
footer a:hover { color: #dddddd !important; }
.namads-section-logo { display: flex; justify-content: center; align-items: center; gap: 25px; flex-wrap: wrap; border-right: 1px solid #f0f2f5; padding-right: 25px; flex-shrink: 0; }

/* استایل جدید مرتب‌سازی (مطابق با area) */
.sorting-box select.custom-sort-select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    font-family: inherit;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.sorting-box select.custom-sort-select:hover, 
.sorting-box select.custom-sort-select:focus {
    border-color: #0066cc;
}