        /* اگر فایل swiper محلی ندارید، این استایل‌ها جایگزین هستند */
        .car-single-slider {
            position: relative;
        }
        
        .gallery-main {
            width: 100%;
            height: 550px;
            border-radius: 15px;
            overflow: hidden;
            background: #f5f5f5;
        }
        
        .gallery-main .swiper-slide {
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f5f5f5;
        }
        
        .gallery-main .swiper-slide img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
        
        .gallery-thumbs {
            margin-top: 15px;
            height: 120px;
        }
        
        .gallery-thumbs .swiper-slide {
            width: 120px;
            height: 95px;
            border-radius: 10px;
            overflow: hidden;
            cursor: pointer;
            opacity: 0.6;
            transition: all 0.3s;
            border: 2px solid transparent;
            background: #f5f5f5;
        }
        
        .gallery-thumbs .swiper-slide-thumb-active {
            opacity: 1;
            border-color: var(--theme-color);
        }
        
        .gallery-thumbs .swiper-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .swiper-button-next,
        .swiper-button-prev {
            color: var(--theme-color);
            background: rgba(255,255,255,0.8);
            width: 45px;
            height: 45px;
            border-radius: 50%;
        }
        
        .swiper-button-next:after,
        .swiper-button-prev:after {
            font-size: 20px;
            font-weight: bold;
        }
        
        .swiper-pagination-bullet {
            width: 10px;
            height: 10px;
        }
        
        .swiper-pagination-bullet-active {
            background: var(--theme-color);
        }
        
        /* استایل بخش ویدئو */
        .video-section {
            background: var(--color-white);
            border-radius: 15px;
            padding: 20px;
            margin-top: 30px;
            box-shadow: var(--box-shadow);
        }
        
        .video-title {
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--theme-color);
            display: inline-block;
        }
        
        .video-container {
            position: relative;
            width: 100%;
            padding-bottom: 56.25%; /* نسبت 16:9 */
            height: 0;
            overflow: hidden;
            border-radius: 12px;
            background: #000;
        }
        
        .video-container iframe,
        .video-container video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
            border-radius: 12px;
        }
        
        .video-thumbnails {
            display: flex;
            gap: 15px;
            margin-top: 20px;
            flex-wrap: wrap;
        }
        
        .video-thumb-item {
            width: 200px;
            cursor: pointer;
            border-radius: 10px;
            overflow: hidden;
            transition: all 0.3s;
            border: 2px solid transparent;
        }
        
        .video-thumb-item:hover {
            transform: translateY(-5px);
        }
        
        .video-thumb-item.active {
            border-color: var(--theme-color);
        }
        
        .video-thumb-item img {
            width: 100%;
            height: 120px;
            object-fit: cover;
        }
        
        .video-thumb-item .video-thumb-title {
            padding: 8px;
            background: #f5f5f5;
            font-size: 13px;
            text-align: center;
            font-weight: 500;
        }
        
        /* استایل ردیف فروشنده */
        .seller-top-bar {
            background: var(--color-white);
            border-radius: 15px;
            padding: 20px 25px;
            margin-bottom: 30px;
            box-shadow: var(--box-shadow);
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 20px;
        }
        
        .seller-info-simple {
            display: flex;
            align-items: center;
            gap: 20px;
        }
        
        .seller-avatar-simple {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid var(--theme-color);
        }
        
        .seller-details h5 {
            margin-bottom: 5px;
            font-size: 18px;
        }
        
        .seller-details span {
            color: var(--theme-color);
            font-size: 14px;
        }
        
        .seller-contact-btns {
            display: flex;
            gap: 15px;
        }
        
        .seller-contact-btns .theme-btn {
            padding: 10px 25px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .seller-contact-btns .theme-btn-outline {
            background: transparent;
            border: 2px solid var(--theme-color);
            color: var(--theme-color);
        }
        
        .seller-contact-btns .theme-btn-outline::before {
            background: var(--theme-color);
        }
        
        .seller-contact-btns .theme-btn-outline:hover {
            color: var(--color-white);
        }
        
        @media (max-width: 768px) {
            .gallery-main {
                height: 350px;
            }
            .gallery-thumbs {
                height: 80px;
            }
            .gallery-thumbs .swiper-slide {
                width: 80px;
                height: 65px;
            }
            .swiper-button-next,
            .swiper-button-prev {
                width: 35px;
                height: 35px;
            }
            .swiper-button-next:after,
            .swiper-button-prev:after {
                font-size: 16px;
            }
            .seller-top-bar {
                flex-direction: column;
                text-align: center;
            }
            .seller-info-simple {
                flex-direction: column;
            }
            .video-thumb-item {
                width: calc(50% - 10px);
            }
        }
        
        @media (min-width: 1200px) {
            .gallery-main {
                height: 600px;
            }
        }
        
        /* استایل پلیر ویدئو */
        .video-play-btn {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 70px;
            height: 70px;
            background: var(--theme-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            transition: all 0.3s;
        }
        
        .video-play-btn i {
            font-size: 30px;
            color: white;
            margin-right: 5px;
        }
        
        .video-play-btn:hover {
            transform: translate(-50%, -50%) scale(1.1);
        }



       .car-single-slider {
            position: relative;
        }
        
        .gallery-main {
            width: 100%;
            height: 450px;
            border-radius: 15px;
            overflow: hidden;
        }
        
        .gallery-main .swiper-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .gallery-thumbs {
            margin-top: 15px;
            height: 100px;
        }
        
        .gallery-thumbs .swiper-slide {
            width: 100px;
            height: 80px;
            border-radius: 10px;
            overflow: hidden;
            cursor: pointer;
            opacity: 0.6;
            transition: all 0.3s;
            border: 2px solid transparent;
        }
        
        .gallery-thumbs .swiper-slide-thumb-active {
            opacity: 1;
            border-color: var(--theme-color);
        }
        
        .gallery-thumbs .swiper-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .swiper-button-next,
        .swiper-button-prev {
            color: var(--theme-color);
            background: rgba(255,255,255,0.8);
            width: 40px;
            height: 40px;
            border-radius: 50%;
        }
        
        .swiper-button-next:after,
        .swiper-button-prev:after {
            font-size: 18px;
            font-weight: bold;
        }
        
        .swiper-pagination-bullet-active {
            background: var(--theme-color);
        }
        
        @media (max-width: 768px) {
            .gallery-main {
                height: 300px;
            }
            .gallery-thumbs {
                height: 70px;
            }
            .gallery-thumbs .swiper-slide {
                width: 70px;
                height: 55px;
            }
        }


.tech-specs-container {
    background: #fdfdfd;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.specs-title {
    font-weight: 800;
    color: #333;

    border-right: 4px solid #ff4d4d; /* یک خط رنگی کنار عنوان */
    padding-right: 15px;
    margin-bottom: 30px !important;
}

.spec-card {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.spec-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #ff4d4d;
}

.spec-icon {
    font-size: 28px;
    color: #ff4d4d; 
    margin-left: 15px;
    background: #fff5f5;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.spec-details span {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}

.spec-details h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #444;
}

/* برای نمایش بهتر در موبایل */
@media (max-width: 576px) {
    .spec-card {
        padding: 10px;
    }
    .spec-icon {
        font-size: 22px;
        width: 40px;
        height: 40px;
        margin-left: 8px;
    }
    .spec-details h6 {
        font-size: 12px;
    }
}




.car-listing-header {
    border: 1px solid #f0f0f0;
}

/* استایل عنوان */
.car-main-title {
    font-size: 24px;
    font-weight: 800;
    color: #222;
    margin: 0;
}
.car-main-title span {
    color: #ff4d4d; 
}
.car-main-title small {
    font-size: 14px;
    font-weight: 400;
    margin-top: 5px;
}

/* نشان وضعیت (صفر/کارکرده) */
.badge-status {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.status-new {
    background-color: #e6f9ed;
    color: #1dbf73;
}
.status-used {
    background-color: #f1f1f1;
    color: #666;
}

/* استایل قیمت */
.price-label {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: -5px;
}
.price-value {
    font-size: 30px;
    font-weight: 900;
    color: #222;
    margin: 0;
}
.price-value .currency {
    font-size: 14px;

    font-weight: 600;
    color: #666;
}

/* متادیتا پایین */
.meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}
.meta-list li {
    font-size: 13px;
    color: #666;
}
.meta-list li i {
    color: #ff0000;
    margin-left: 5px;
}

.share-actions .btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ff0000;
    border: 1px solid #eee;
}

.like-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ff0000;
    border: 1px solid #eee;
}

    
    .video-custom-controls {
        position: absolute;
        bottom: 25px;
        right: 25px;
        display: flex;
        flex-direction: column; 
        gap: 12px;
        /* این خط بسیار مهم است: دکمه‌ها را بالای تمام لایه‌های Swiper می‌آورد */
        z-index: 999 !important; 
    }

    .video-custom-controls button {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        border: none;
        background: rgba(0, 0, 0, 0.5); /* کمی تیره‌تر برای تضاد بهتر */
        backdrop-filter: blur(8px);
        color: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease-in-out;
        /* جلوگیری از انتخاب متن یا درگ شدن خود دکمه */
        user-select: none;
        -webkit-user-drag: none;
    }

    /* افزایش اندازه آیکون برای دید بهتر */
    .video-custom-controls button i {
        font-size: 1.1rem;
        pointer-events: none; /* کلیک مستقیماً به دکمه برسد نه آیکون */
    }

    .video-custom-controls button:hover {
        background: rgba(255, 77, 77, 0.9); /* تغییر رنگ به قرمز در هنگام هاور */
        transform: scale(1.15);
    }

    /* جلوگیری از تداخل اشاره‌گر Swiper با دکمه‌ها */
    .swiper-button-next, .swiper-button-prev, .swiper-pagination {
        z-index: 10;
    }

    /* آیکون پخش روی تامبنیل ویدئو */
    .video-thumb { position: relative; }
    .slider-video-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        font-size: 20px;
        text-shadow: 0 0 5px rgba(0,0,0,0.5);
    }

    .gallery-main { height: 500px; background: #f8f8f8; }
    .gallery-main img { width: 100%; height: 100%; object-fit: cover; }
    .gallery-thumbs .swiper-slide { opacity: 0.5; cursor: pointer; height: 80px; border-radius: 8px; overflow: hidden; }
    .gallery-thumbs .swiper-slide-thumb-active { opacity: 1; border: 2px solid #ff4d4d; }
    .gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }





.video-controls-row {
    display: flex;
    flex-direction: row; 
    gap: 10px;
    align-items: center;
}

.seek-bar {
    width: 100%;
    direction : ltr ;
    cursor: pointer;
    accent-color: #ff4d4d; 
}






/* پس‌زمینه تیره و مات */
.glass-modal {
    display: none; 
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px); /* مات کردن پشت صفحه */
}

/* محفظه شیشه‌ای وسط صفحه */
.glass-content {
    background: rgba(255, 255, 255, 0.2);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 300px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    color: white;
}

.share-links a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: 0.3s;
}

.share-links a:hover {
    background: rgba(255, 255, 255, 0.3);
}

.share-links img {
    width: 30px;
    margin-left: 15px;
}

.close-btn {
    float: left;
    font-size: 28px;
    cursor: pointer;
}







.share-icon {
    transition: transform 0.3s ease;
    display: inline-block;
}

.share-icon:hover {
    transform: scale(1.2); /* کمی بزرگ شدن موقع هاور */
}

.gap-3 {
    gap: 1rem; /* فاصله بین آیکون‌ها */
}

    .preview-mode-bar {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 700px;
        background: rgba(255, 152, 0, 0.9); 
        backdrop-filter: blur(10px);
        color: #000;
        padding: 12px 25px;
        border-radius: 50px;
        z-index: 9999;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
        display: flex;
        justify-content: space-between;
        align-items: center;
        animation: slideUp 0.5s ease-out;
    }

    @keyframes slideUp {
        from { bottom: -100px; opacity: 0; }
        to { bottom: 20px; opacity: 1; }
    }

    .preview-mode-bar i {
        font-size: 1.2rem;
    }

    .preview-text {
        font-weight: 600;
        font-size: 14px;
        margin: 0 10px;
    }

    .btn-edit-preview {
        background: #000;
        color: #fff !important;
        border-radius: 30px;
        padding: 5px 20px;
        font-size: 13px;
        text-decoration: none;
        transition: 0.3s;
    }

    .btn-edit-preview:hover {
        background: #333;
        transform: scale(1.05);
    }

    body {
        padding-bottom: 80px; 
    }



    
    /* نوار مورب پیش‌نمایش روی اسلایدر */
    .slider-preview-badge {
        position: absolute;
        top: 35px;
        right: -55px;
        background: rgba(220, 53, 69, 0.9); /* قرمز بوت استرپ با کمی شفافیت */
        color: white;
        padding: 8px 45px;
        transform: rotate(45deg); /* چرخاندن نوار */
        z-index: 10;
        font-weight: bold;
        font-size: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        pointer-events: none; /* جلوگیری از تداخل با کلیک روی اسلایدر */
        text-transform: uppercase;
        white-space: nowrap;
        border: 1px solid rgba(255,255,255,0.2);
    }

    /* افکت شیشه‌ای سراسری روی تصویر در حالت پیش‌نمایش (اختیاری) */
    .preview-overlay-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0, 0, 0, 0.4);
        color: #fff;
        padding: 10px 20px;
        border-radius: 10px;
        backdrop-filter: blur(4px);
        font-weight: bold;
        z-index: 5;
        border: 1px solid rgba(255,255,255,0.3);
        pointer-events: none;
        font-size: 1.2rem;
    }

.car-description {
    line-height: 1.8;
    color: #555;
}

.car-description p {
    margin-bottom: 1rem;
}

.car-description p:last-child {
    margin-bottom: 0;
}