.ads-slider-wrapper {
    position: relative;
    direction: rtl;
    font-family: inherit;
    padding: 0 44px;
    box-sizing: border-box;
}

.ads-slider-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 8px 2px 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.ads-slider-track::-webkit-scrollbar {
    height: 6px;
}

.ads-slider-track::-webkit-scrollbar-thumb {
    background: #d5dae0;
    border-radius: 10px;
}

.ads-slider-slide {
    flex: 0 0 260px;
    scroll-snap-align: start;
}

.ad-card {
    display: block;
    background: #fff;
    border: 1px solid #eceff2;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
}

.ad-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(20, 30, 40, .10);
    border-color: #e0e4e8;
}

.ad-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #eef1f4;
    overflow: hidden;
}

.ad-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.ad-card:hover .ad-card-image img {
    transform: scale(1.05);
}

.ad-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff6a3d;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.ad-card-body {
    padding: 12px 14px 14px;
}

.ad-card-title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: #1b2430;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.ad-card-price {
    font-size: 15px;
    font-weight: 800;
    color: #1a7f4e;
    margin-bottom: 8px;
}

.ad-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.ad-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #697585;
    background: #f5f7f9;
    padding: 3px 8px;
    border-radius: 20px;
}

.ad-card-time {
    font-size: 11px;
    color: #9aa5b1;
    margin-top: 4px;
}

.ads-slider-nav {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    z-index: 5;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e4e8eb;
    background: #fff;
    color: #334;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(20, 30, 40, .08);
    transition: background .2s ease, transform .15s ease;
}

.ads-slider-nav:hover {
    background: #f4f6f8;
}

.ads-slider-nav:active {
    transform: translateY(-50%) scale(.94);
}

.ads-slider-prev { right: 0; }
.ads-slider-next { left: 0; }

.ads-slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 2px;
}

.ads-slider-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #dbe0e5;
    cursor: pointer;
    transition: background .2s, width .2s;
}

.ads-slider-dots span.active {
    background: #1a7f4e;
    width: 18px;
    border-radius: 6px;
}

.ads-slider-empty {
    text-align: center;
    color: #8a94a0;
    padding: 24px;
}

@media (max-width: 768px) {
    .ads-slider-wrapper { padding: 0 34px; }
    .ads-slider-slide { flex-basis: 200px; }
    .ads-slider-nav { width: 32px; height: 32px; }
}

@media (max-width: 480px) {
    .ads-slider-wrapper { padding: 0 26px; }
    .ads-slider-slide { flex-basis: 170px; }
    .ad-card-title { font-size: 13px; min-height: 2.4em; }
    .ad-card-price { font-size: 13px; }
}




.ad-card-image {
    position: relative;
    width: 100%;
    height: 180px; /* یا ارتفاع دلخواه شما */
    background-color: #f8fafc;
    overflow: hidden;
}

.ad-card-icon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9;
}

.ad-card-icon-placeholder i {
    font-size: 48px;
    color: #0284c7;
}