/* تنظیمات کادر یکپارچه صفحه مشابه سایر صفحات */
.favorites-wrap {
    width: calc(100% - 24px);
    max-width: 1076px;
    margin: 80px auto 35px;
    padding: 25px;
    background: #fff;
    border-radius: 15px;
    border: 1px solid #edf0f2;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    box-sizing: border-box;
    font-family: 'IRANSansWeb', Tahoma, sans-serif;
    direction: rtl;
    text-align: right;
}

/* هدر یکپارچه کادر */
.qt-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f4f8;
}

.qt-card-icon {
    color: #e53935;
    flex-shrink: 0;
    margin-top: 3px;
}

.qt-card-header-text h1 {
    font-size: 20px;
    color: #003366;
    font-weight: bold;
    margin: 0 0 8px 0;
}

.qt-card-header-text p {
    color: #64748b !important;
    font-size: 14px !important;
    font-weight: normal !important;
    margin: 0 !important;
    line-height: 1.6 !important;
    text-align: right !important;
}

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

@media (max-width: 768px) {
    .favorites-wrap { margin-top: 75px; padding: 18px; }
    .qt-card-header-text h1 { font-size: 18px; }
    .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 { 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, opacity 0.4s; 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; }

.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; z-index: 10; }
.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; }
.place-row { display: flex; align-items: center; gap: 4px; color: #666; font-size: 12px; overflow: hidden; flex: 1; }
.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; }

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

/* پیام وضعیت خالی (Empty State) */
.empty-fav-box { text-align: center; padding: 30px 20px; max-width: 600px; margin: 20px auto; }
.empty-fav-icon { width: 70px; height: 70px; background: #ffebee; color: #e53935; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px auto; }
.empty-fav-icon svg { width: 38px; height: 38px; fill: currentColor; }
.empty-fav-box h3 { font-size: 16px; font-weight: bold; color: #333; margin-bottom: 10px; }
.empty-fav-box p { font-size: 14px; color: #64748b; margin-bottom: 20px; line-height: 1.8; }
.btn-return-home { display: inline-block; background: #0066cc; color: #fff; padding: 10px 24px; border-radius: 50px; font-size: 14px; font-weight: bold; text-decoration: none; }