/* =========================================================
   میخرم | آگهی‌های تند — لاکچری
   طرح یکسان: موبایل / تبلت / دسکتاپ (۲×۲ ثابت + اسلاید)
   ========================================================= */

.fast-ads-section {
    width: 100%;
    margin-top: 40px;
    direction: rtl;
    overflow: hidden;
}

.fast-ads-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 22px;
}

.fast-ads-title h2 {
    margin: 0;
    color: var(--text);
    font-size: 26px;
    font-weight: 900;
}

.fast-ads-title span {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 13px;
}

.fast-ads-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-top: 8px;
    margin-top: -8px;
}

/* ============ کانتینر دید — فضای ثابت ============ */
.fast-ads-viewport {
    width: 100%;
    overflow: hidden;
    height: 584px;
}

/* ============ گرید ۲×۲ ============ */
.fast-ads-track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;   /* ← ارتفاع هر ردیف ثابت */
    gap: 8px;
    width: 100%;
}

/* ============ کارت‌ها ============ */
.fast-ad-card {
    width: auto;
    flex-basis: auto;
    height: 140px;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    background: var(--bg-elevated);
    border: 1px solid var(--gold-dark);
    border-radius: 16px;
    transition: all .3s ease;
}

.fast-ad-card:hover {
    border-color: var(--gold);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, .35),
        0 0 22px var(--gold-glow);
}

.fast-ad-card .ad-image {
    height: 60px;
    margin-bottom: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background:
        radial-gradient(circle, var(--gold-soft), transparent 70%),
        linear-gradient(135deg, var(--bg-card), var(--bg));
    overflow: hidden;
}

.fast-ad-card .ad-placeholder-icon {
    color: var(--gold);
    font-size: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fast-ad-card .ad-placeholder-icon img,
.fast-ad-card .ad-image svg {
    width: 50px;
    height: 50px;
}

.fast-ad-card h3 {
    font-size: 14px;
    margin: 0;
    text-align: center;
    width: 100%;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    line-height: 1.4;
    height: 20px;
    color: var(--text);
    font-weight: 800;
}

.fast-ad-card .ad-footer {
    display: none;
}

.light-mode .fast-ad-card {
    background: #fff;
    border-color: var(--gold);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

.light-mode .fast-ad-card .ad-image {
    background:
        radial-gradient(circle, var(--gold-soft), transparent 70%),
        linear-gradient(135deg, #fafaf7, #f0efe8);
}

/* ============ کنترل‌ها و نقطه‌ها ============ */
.fast-slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    direction: ltr;
}

.fast-arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-elevated);
    color: var(--gold);
    font-family: inherit;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fast-arrow:hover {
    background: var(--gold);
    color: #111;
    border-color: var(--gold);
}

.fast-ads-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    direction: ltr;
}

.fast-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.fast-dot.active {
    background: var(--gold);
    transform: scale(1.3);
}

.fast-dot:hover {
    background: var(--gold-dark);
}
/* ============ دسکتاپ و تبلت: یک ردیف ۸تایی ============ */
@media (min-width: 601px) {
    .fast-ads-track {
        grid-template-columns: repeat(4, 2fr);
        min-height: 0;
    }

    .fast-ads-viewport {
        height: 288px;
        min-height: 288px;
    }

    .fast-slider-controls {
        margin-top: 8px;
    }
}