/* استایل‌های اختصاصی صفحه دسته‌بندی */
.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);
}
.breadcrumb-area {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}
.breadcrumb-area a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb-area a:hover {
    color: #0066cc;
}
.breadcrumb-area .sep {
    color: #aaa;
    font-size: 12px;
}
.breadcrumb-area .current {
    color: #222;
}
.sorting-area {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sorting-area label {
    font-size: 13px;
    color: #666;
}
.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; }
.qtMain { width: 98%; margin: 15px auto; padding: 0 10px; box-sizing: border-box; }
.qomticket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }

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

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

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

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

/* کادر توضیحات پایین صفحه */
.namads-section { width: 100%; margin: 25px auto 10px auto; padding: 20px; box-sizing: border-box; background: #fff; border-radius: 12px; border: 1px solid #edf0f2; }
.namads-section-caption { text-align: justify; font-size: 12px; color: #555; line-height: 1.9; }
.namads-section-caption h2 { font-size: 15px; margin-bottom: 10px; color: #222; }