.qtMain { 
    width: 98%; 
    margin: 15px auto; 
    padding: 0 10px; 
    box-sizing: border-box; 
}

.category-top-bar {
    background: #fff;
    border: 1px solid #edf0f2;
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.page-title-area h1 {
    font-size: 15px;
    margin: 0;
    color: #222;
    font-weight: bold;
}

.sorting-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sorting-area 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-area select:hover, .sorting-area select:focus {
    border-color: #0066cc;
}

.qomticket-grid { 
    cursor: grab; 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); 
    gap: 14px; 
}

.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; 
    z-index: 2; 
    white-space: nowrap; 
}

.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; 
}

.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; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
} 

.card-body-custom h3 a { 
    color: inherit; 
    text-decoration: none; 
}

.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; 
} 

.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; 
    color: inherit; 
    text-decoration: none; 
} 

.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; 
    text-decoration: none; 
}

.buyBtn-custom a:hover { 
    background: #1b5e20; 
}

.buyBtn-custom.buyDis a { 
    background: #546e7a; 
    color: #ffffff; 
}

/* حالت خالی (Empty State) */
.empty-state-box {
    grid-column: 1 / -1;
    background: #fff;
    border: 1px solid #edf0f2;
    border-radius: 12px;
    padding: 35px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 0;
}

.empty-state-box svg {
    width: 32px;
    height: 32px;
    stroke: #90a4ae;
    margin-bottom: 4px;
}

.empty-state-box h3 {
    font-size: 15px;
    color: #222;
    font-weight: bold;
    margin: 0;
}

.empty-state-box p {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px 0;
}

.empty-state-box a {
    background: #0066cc;
    color: #fff;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s;
}

.empty-state-box a:hover {
    background: #004d99;
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
    .qomticket-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
        overflow-x: visible;
    }
    .qomSingle-card {
        width: 100%;
        min-width: auto;
    }
    .category-top-bar { 
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center; 
        gap: 8px; 
    }
    .sorting-area { 
        justify-content: flex-end; 
    }
}