@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;700&display=swap');
        
/* پالت رنگی هماهنگ شده لوکس سرمه‌ای و قرمز اکشن */
:root {
    --primary-dark: #0b192e;       /* سرمه‌ای تیره عمیق پلتفرم */
    --action-red: #d80302;         /* قرمز پرمیوم اکشن و مهم */
    --action-red-hover: #b50201;   /* هاور دکمه‌ها */
    --slate-dark: #1e293b;
    --slate-light: #64748b;
    --border-light: rgba(226, 232, 240, 0.8);
    --bg-main: #f8fafc;
}

body {
    background-color: var(--bg-main);
    color: var(--slate-dark);
    margin: 0;
    padding: 0;
    font-family: 'Vazirmatn' !important;
    padding-top: 47px;
    -webkit-font-smoothing: antialiased;
}

/* هدر شیشه‌ای اختصاصی لوکس */
.main-header.fixed-glass-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 10px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 30px rgba(11, 25, 46, 0.015);
}

.header-right, .header-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo-dark {
    color: var(--primary-dark);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 9px;
    color: #d80302 ;
    display: block;
    letter-spacing: 1px;
    margin-top: -2px;
}

.main-nav { display: flex; gap: 24px; }

.main-nav a {
    text-decoration: none;
    color: var(--slate-light);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.main-nav a.active, .main-nav a:hover {
    color: var(--primary-dark);
    font-weight: 700;
    border-bottom: 2px solid var(--action-red);
    padding-bottom: 4px;
}

.search-bar-top { position: relative; }

.search-bar-top input {
	width: 260px;
	padding: 10px 40px 10px 16px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: rgba(241, 245, 249, 0.6);
	font-size: 13px;
	outline: none;
	transition: all 0.2s;
	font-family: 'Vazirmatn' !important;
}

.search-bar-top input:focus {
    border-color: var(--primary-dark);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(11, 25, 46, 0.06);
}

.search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-light);
    font-size: 13px;
}

.login-btn {
    background: transparent;
    border: 1.5px solid var(--primary-dark);
    color: var(--primary-dark);
    padding: 8px 22px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    transition: all 0.25s ease;
    font-family: 'Vazirmatn' !important;
}

.login-btn:hover { background: var(--primary-dark); color: #fff; }

/* ساختار بدنه کاتالوگ و سایدبار */
.main-container {
    display: flex;
    max-width: 1280px;
    margin: 32px auto;
    padding: 0 24px;
    gap: 32px;
}

.sidebar-filters {
    flex: 1;
    position: sticky;
    top: 110px;
    height: fit-content;
}

.cars-grid {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* کارت فیلتر لوکس و حرفه‌ای */
.filter-card-premium {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(11, 25, 46, 0.02);
}

.filter-card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-card-title h4 { font-size: 15px; font-weight: bold; color: var(--primary-dark); margin: 0; }
.filter-card-title h4 i { color: var(--action-red); margin-left: 6px; }
.clear-filters-btn { font-size: 11px; color: var(--slate-light); cursor: pointer; font-weight: 600; }
.clear-filters-btn:hover { color: var(--action-red); }

.filter-search-modern { position: relative; margin-bottom: 16px; }

.filter-search-modern input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 40px 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-size: 13px;
    outline: none;
    background: #f8fafc;
    font-family: 'Vazirmatn' !important;
}

.filter-search-modern input:focus { border-color: var(--primary-dark); background: #fff; }
.search-inside-icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--slate-light); font-size: 13px; }

/* تب‌های فیلتر مدرن */
.filter-tabs-modern {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 20px;
}


.alogo{
    text-decoration: none;
}
.tab-btn-modern {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 4px;
    font-size: 12px;
    font-weight: bold;
    color: var(--slate-light);
    cursor: pointer;
    border-radius: 10px;
    font-family: 'Vazirmatn' !important;
    transition: all 0.2s;
}

.tab-btn-modern.active {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    font-family: 'Vazirmatn' !important;
}

/* گروه‌های فیلتر آکاردئونی */
.filter-group {
    border-bottom: 1px solid #f1f5f9;
    padding: 16px 0;
}

.filter-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-dark);
}

.filter-group-header i { color: var(--slate-light); }
.filter-group-header span i { color: var(--primary-dark); margin-left: 6px; width: 16px; }

.filter-group-content {
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    transition: all 0.25s ease-out;
}

.filter-group.open .filter-group-content { max-height: 200px; margin-top: 14px; }
.filter-group.open .arrow-icon { transform: rotate(180deg); color: var(--action-red); }

.filter-input-wrapper-inside { position: relative; display: flex; align-items: center; }

.filter-input-inside {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 12px;
    outline: none;
    font-family: 'Vazirmatn' !important;
}
.filter-input-wrapper-inside i { position: absolute; left: 14px; font-size: 12px; color: var(--slate-light); }

/* تاگل دکمه‌های دوتایی داخلی */
.sale-type-toggle-modern, .year-type-toggle-modern {
    display: flex;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.text-justify {
	text-align: justify;
}

.toggle-btn-modern, .year-btn-modern {
    flex: 1;
    background: #fff;
    border: none;
    padding: 9px;
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-light);
    cursor: pointer;
}

.toggle-btn-modern.active, .year-btn-modern.active {
    background: var(--primary-dark);
    color: #fff;
    font-family: 'Vazirmatn' !important;
}

.price-inputs-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.select-box-modern {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 11px;
    color: var(--slate-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    cursor: pointer;
}

.submit-filter-btn-premium {
    width: 100%;
    background: var(--action-red);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 6px 15px rgba(216, 3, 2, 0.15);
    transition: all 0.2s;
    font-family: 'Vazirmatn' !important;
}
.submit-filter-btn-premium:hover { background: var(--action-red-hover); transform: translateY(-1px); }

/* کارت‌های خودرو پرمیوم فوق‌العاده شیک */
.car-card-premium {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(11, 25, 46, 0.01);
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.car-card-premium:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(11, 25, 46, 0.05);
}

.card-image-wrapper-premium {
    position: relative;
    overflow: hidden;
    height: 210px;
    background: #f1f5f9;
}

.card-image-wrapper-premium img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.car-card-premium:hover .card-image-wrapper-premium img {
    transform: scale(1.04);
}

.badge-container-premium {
    position: absolute;
    bottom: 12px;
    right: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-tag {
    font-size: 11px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tag-dark { background: var(--primary-dark); color: #fff; }
.tag-white { background: rgba(255, 255, 255, 0.9); color: var(--primary-dark); backdrop-filter: blur(4px); }

.card-content-premium {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.car-title-premium {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0 0 6px 0;
}

.car-title-premium small {
    font-size: 13px;
    color: var(--action-red);
    font-weight: 600;
    margin-right: 4px;
}

.car-specs-premium {
    font-size: 12px;
    color: var(--slate-light);
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.car-meta-premium {
    display: flex;
    justify-content: space-between;
    border-top: 1px dashed #e2e8f0;
    padding-top: 12px;
    margin-bottom: 16px;
}

.car-meta-premium span {
    font-size: 11px;
    color: var(--slate-dark);
    font-weight: 600;
}

.car-meta-premium span i {
    color: var(--slate-light);
    margin-left: 4px;
}

.card-footer-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    padding: 12px 14px;
    border-radius: 12px;
    margin-top: auto;
    border-right: 3px solid var(--action-red);
}

.price-label-premium { font-size: 10px; color: var(--slate-light); display: block; }
.price-value-premium { font-size: 16px; font-weight: 900; color: var(--primary-dark); }
.price-value-premium small { font-size: 11px; font-weight: bold; }

.installment-badge-premium {
    background: rgba(216, 3, 2, 0.08);
    color: var(--action-red);
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 6px;
}

/* بهینه‌سازی ریسپانسیو و نمایش موبایل */
@media (max-width: 992px) {
    .main-container { flex-direction: column; gap: 24px; }
    .sidebar-filters { position: static; width: 100%; }
    .cars-grid { grid-template-columns: 1fr; }
}
 .article-content {
    text-align: justify;
  }