/* تنظیمات پایه برای HTML و Body */


@font-face {
    font-family: yekanbakh;
    src: url(../font/yekanbakh.ttf);
}

:root {
    --font: yekanbakh;
    --first-color: #4c2c67;
    --second-color: #291739;
    --button-border-radius: 10px;
    --button-padding: 8px 15px;
    --green: #06d6a0;
}

html,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font) !important;
    direction: rtl;
    /* جهت راست به چپ برای محتوای فارسی */
    text-align: right;
    /* تراز راست برای متن */
    background-color: white !important;
}

/* برای اطمینان از اینکه همه عناصر از border-box استفاده می‌کنند */
*,
*::before,
*::after {
    box-sizing: inherit;
    font-family: var(--font) !important;
}

/* تنظیمات اولیه برای root */
#root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* کلاس‌های عمومی برای نمایش */
.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

.is-flex {
    display: flex;
}

.is-justify-content-center {
    justify-content: center;
}

.is-align-items-center {
    align-items: center;
}

/* کلاس‌های عمومی برای فونت و متن */
.has-text-right {
    text-align: right;
}

.has-text-center {
    text-align: center;
}

.has-text-left {
    text-align: left;
}


/* header */

header {
    font-family: var(--font);
    font-weight: bold;
    border-bottom: 1px solid #eee;
    padding: .6rem 0;
}

header a {
    border-radius: var(--button-border-radius);
}

header a:hover {
    background-color: var(--first-color);
    color: white;
    border-radius: var(--button-border-radius);
}

header .buttons button:nth-child(1) {
    background-color: var(--first-color);
    border-radius: var(--button-border-radius);
    color: white;
    display: flex;
    justify-content: center;
    padding: var(--button-padding);
}

header .buttons button:nth-child(2) {
    padding: var(--button-padding);
    display: flex;
    align-content: center;
    font-weight: bold;
}

/* Custom styles for buttons in the header */


header .account-button {
    background-color: #f7f7f7;
    border-color: #f7f7f7;
    color: #000;
    border-radius: 8px;
}

/* Custom dropdown menu styling to match the image */
header .custom-dropdown-menu {
    min-width: 250px;
    padding: 16px;
    right: 0;
    background-color: #ffffff00 !important;
    left: auto;
    direction: rtl;
    /* Ensure the menu content is RTL */
}


/* Dropdown content styling */
header .dropdown-content {
    background-color: #fff;
    padding: 10px;
}



/* Styling for individual dropdown items */
header .dropdown-content .dropdown-item {
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
    /* Space between icon and text */
    padding: 12px 16px;
    background-color: transparent !important;
    transition: background-color 0.2s ease;
    border-radius: 8px;
}

header .dropdown-content .dropdown-item:hover {
    background-color: var(--first-color) !important;
    color: white !important;
}

header .dropdown-content .dropdown-item .icon {
    color: #888;
}

header .dropdown-content .dropdown-item:hover .icon {
    color: white;
}

/* Specific styling for the login button */
header .dropdown-content .dropdown-login-button {
    background-color: var(--first-color) !important;
    border-radius: var(--button-border-radius);
    display: flex;
    color: #fff;
    text-align: center;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-top: 12px;
}

header .dropdown-content .dropdown-login-button:hover {
    background-color: var(--second-color) !important;
    color: #fff;
}

/* Divider styling */
header .dropdown-divider {
    background-color: #e0e0e0;
    height: 1px;
    margin: 8px 0;
}







/* home */

/* Base container styling for the whole page */
.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 46px 16px;
    background-color: #f2f2f2;
    /* min-height: 100vh; */
}

/* Logo styling */
.home-container .logo-container {
    margin: 32px 0;
}

.home-container .logo {
    width: 100px;
    height: auto;
}

/* Search Bar (main) styling */
.home-container .search-bar-wrapper {
    position: relative;
    border-radius: 10px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    width: 100%;
    max-width: 600px;
    display: flex;
    align-items: center;
    padding: 8px;
    transition: all 0.5s ease-in-out;
    cursor: pointer;
    justify-content: space-between;
    transform: translateY(0);
    opacity: 1;
}

/* Hover effect */
.home-container .search-bar-wrapper:hover {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* Animation class for the main search bar */
.home-container .search-bar-wrapper.is-animating {
    width: calc(100% - 32px);
    max-width: 100%;
    transform: translateY(-100px);
    opacity: 0;
}

/* Responsive styling for search bar on mobile */
@media (min-width: 600px) {
    .home-container .search-bar-wrapper {
        width: 600px;
    }
}

/* Search Icon Wrapper styling */
.home-container .search-icon-wrapper {
    padding: 0 8px;
    height: 100%;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--first-color);
    /* Equivalent to MUI grey[500] */
    transition: all 0.5s ease-in-out;
    transform: translateY(0);
    opacity: 1;
}

/* Animation class for search icon */
.home-container .search-icon-wrapper.is-animating-icon {
    transform: translateY(-10px);
    opacity: 0;
}

/* Animated Text Container styling */
.home-container .search-text-container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    margin-left: 8px;
    transition: all 0.5s ease-in-out;
    opacity: 1;
    transform: translateY(0);
}

/* Animation class for animated text */
.home-container .search-text-container.is-animating-text {
    transform: translateY(-10px);
    opacity: 0;
}

/* Specific text stylings inside search bar */
.home-container .animated-text {
    color: #888;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.5s ease-in-out;
}

.home-container .search-prompt-text {
    color: #555;
    margin-left: 8px;
    transition: all 0.5s ease-in-out;
    font-weight: bold;
}

/* Tag container styling */
.home-container .tags-container {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 600px;
}

/* Chip (tag) styling */
.home-container .tag-chip {
    border-color: #e0e0e0;
    color: #555;
}

/* Modal styling */
.modal-container {
    background-color: #fff !important;
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    min-height: 100vh !important;
}

.modal-header {
    width: 100% !important;
    max-width: 700px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    /* padding: 0 16px !important; */
    /* margin-bottom: 24px !important; */
}

.search-bar-modal {
    flex-grow: 1 !important;
    margin-left: 110px !important;
    width: 100% !important;
    max-width: none !important;
    cursor: default !important;
    position: relative !important;
    border-radius: 50px;
    background-color: #f5f5f5 !important;
    /* border: 1px solid var(--first-color); */
    display: flex !important;
    align-items: center !important;
    padding: 3px !important;
}

.search-icon-wrapper-modal {
    padding: 0 8px !important;
    height: 100% !important;
    pointer-events: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #9e9e9e !important;
}

.styled-input-base {
    flex-grow: 1 !important;
    color: #000 !important;
    text-align: right !important;
    padding: 8px 10px 8px 10px !important;
    border: none !important;
    background: transparent !important;
}

.search-bar-modal .css-yimnyd-MuiInputBase-input {
    color: #111 !important;
    font-weight: bold;
}

.modal-body {
    margin-top: 24px !important;
    width: 100% !important;
    max-width: 700px !important;
    text-align: right !important;
}

.modal-body hr {
    background-color: #eee;
}

.modal-chips-row {
    display: flex !important;
    margin-bottom: 16px !important;
    flex-wrap: wrap !important;
}

.modal-chip-selected {
    background-color: var(--first-color) !important;
    color: white !important;
    margin-left: 8px !important;
    border-radius: 20px !important;
    padding: 4px 12px !important;
}

.modal-chip {
    margin-left: 8px !important;
    border-radius: 20px !important;
    padding: 4px 12px !important;
    border: 1px solid #e0e0e0 !important;
    color: #555 !important;
    background-color: #fff !important;
    cursor: pointer !important;
}

.popular-searches-title {
    color: #555 !important;
    margin-bottom: 8px !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
}

.popular-searches-chips-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 20px;
}

.modal .modal-content {
    background-color: #fff !important;
    border-radius: 12px !important;
    padding: 24px !important;
    width: 100% !important;
    max-width: 650px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.modal-close {
    background-color: #f5f5f5 !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    opacity: 1 !important;
}

.modal-close:hover {
    background-color: #e0e0e0 !important;
}

/* Added specific styles for the icon inside the chips for better alignment */
.modal-chip .icon {
    margin-left: 8px !important;
    font-size: 0.9rem !important;
}

.slide.container {
    position: relative;
    margin-top: 2rem;
}

.slider-arrow {
    position: absolute;
    /* bottom: -30px;  */
    z-index: 2;
    background-color: var(--first-color) !important;
    color: white !important;
    border-radius: 50% !important;
    width: 35px !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
}

.prev-arrow {
    left: -100%;
    /* نزدیک وسط */
    transform: translateX(-100%);
    top: -7rem;
    animation: prev infinite 1s ease-in-out;
}

.prev-arrow:hover {
    animation: none;
    left: -97%;
}

@keyframes prev {
    0% {
        transform: translateX(0px);
    }

    50% {
        transform: translateX(5px);
    }

    100% {
        transform: translateX(0px);
    }
}

.next-arrow {
    left: 3%;
    transform: translateX(0);
    top: -10rem;
    animation: next infinite 1s ease-in-out;
}

.next-arrow:hover {
    animation: none;
}

@keyframes next {
    0% {
        transform: translateX(0px);
    }

    50% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0px);
    }
}

/* رسپانسیو */
@media (max-width: 768px) {
    .prev-arrow {
        left: 40%;
    }

    .next-arrow {
        left: 60%;
    }
}

@media (max-width: 480px) {
    .prev-arrow {
        left: -90%;
        top: -8rem;
    }

    .next-arrow {
        left: -1%;
        top: -10rem;
    }

    .home-container {
        padding: 0;
    }

    .brand-slide-item {
        padding: 10px !important;
        height: 100px !important;
    }

    .brand-price {
        font-size: 12px !important;
    }
}

/* Container for the entire filter section */
.filter-container {
    display: flex;
    flex-direction: row;
    /* Default for larger screens */
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1100px;
    margin: -2rem auto 0;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 16px;
    direction: rtl;
    /* Right-to-left layout */
    gap: 16px;
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
        padding: 16px;
        gap: 16px;
    }
}

/* Common styles for all filter boxes */
.filter-box {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    height: 60px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.filter-box:hover {
    border-color: #aaa;
}

.filter-title {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.brand-placeholder,
.price-range-text {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* Specific styles for the price filter */
.price-filter {
    flex-basis: 40%;
    position: relative;
    border: none;
}

.price-filter .filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.price-slider {
    width: 100%;
}

.price-slider .MuiSlider-root {
    color: var(--first-color);
    /* رنگ اصلی اسلایدر */
    height: 4px;
}

.price-slider .MuiSlider-rail {
    background-color: #e0e0e0;
    opacity: 1;
    border-radius: 2px;
}

.price-slider .MuiSlider-track {
    border: none;
    border-radius: 2px;
}

.price-slider .MuiSlider-thumb {
    background-color: var(--first-color);
    border: 1px solid var(--second-color);
    width: 15px;
    height: 15px;
}

.price-slider .MuiSlider-valueLabel {
    background-color: var(--first-color);
    color: white;
    font-weight: bold;
}

/* Specific styles for the brand filter */
.brand-filter {
    flex-basis: 0%;
    border: none;
}

/* Styles for the main filter button */
.filter-container button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--first-color) !important;
    border: none;
    border-radius: 12px;
    padding: 12px 9px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    font-size: 14px;
    color: white;
    transition: background-color 0.2s;
    flex-basis: 20%;
}

.filter-button:hover {
    background-color: var(--first-color);
}

.filter-icon {
    width: 20px;
    height: 20px;
    margin-left: 8px;
    /* For right-to-left layout */
}

/*=====================================
  Modal Styles
=======================================*/

/* This targets the MUI Dialog Paper component */
.MuiDialog-paper {
    border-radius: 16px !important;
    padding: 16px 24px !important;
    direction: rtl !important;
    min-height: 80vh !important;
}

@media (min-width: 600px) {
    .MuiDialog-paper {
        min-height: auto !important;
    }
}

/* Header and title */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-weight: bold;
}

.modal-subtitle {
    color: #666;
    margin-top: 8px;
}

/* Search input */
.search-input-container {
    position: relative;
    margin-top: 24px;
}

.search-input-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.search-input-base {
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
    padding: 8px 40px 8px 16px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

/* List of brands */
.brand-list {
    overflow-y: auto;
    max-height: 400px;
    margin-top: 24px;
}

.brand-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.brand-list-item-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-list-item-title {
    font-weight: bold;
}

.list-item-arrow {
    width: 16px;
    height: 16px;
    transform: rotate(90deg);
}

/* Footer buttons */
.modal-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.modal-select-button {
    background-color: var(--first-color) !important;
    color: white !important;
    font-weight: bold !important;
    border-radius: var(--button-border-radius);
    padding: 10px 24px;
    border: none;
    cursor: pointer;
    width: 45%;
    transition: background-color 0.2s;
}

.modal-select-button:hover {
    background-color: var(--second-color);
}

.modal-close-button {
    background-color: #eee !important;
    color: #555 !important;
    font-weight: bold !important;
    border-radius: var(--button-border-radius) !important;
    padding: 10px 24px;
    cursor: pointer;
    width: 45% !important;
    transition: border-color 0.2s, color 0.2s;
}

.modal-close-button:hover {
    border-color: #aaa;
    color: #333;
}

/*=====================================
  Brand Slider Section
=======================================*/

.brands-slider-section {
    background-color: #f7f7f7;
    padding: 20px !important;
    direction: rtl;
    margin-top: 6rem;
    border-radius: 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.view-all-link {
    color: #6a6a6a;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    background-color: var(--first-color);
    padding: var(--button-padding);
    color: white;
    border-radius: var(--button-border-radius);
}

.view-all-link:hover {
    color: white;
    background-color: var(--second-color);
}

.brands-slider-container {
    padding: 0 16px;
    /* For padding inside the slider */
}

/* Individual slide item */
.brand-slide-item {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;
    background-color: #fff;
    gap: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    margin: 0 8px;
    /* Spacing between slides */
}

.brand-slide-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.slick-list .slick-track {
    gap: 10px !important;
}

.brand-logo {
    width: 60px;
    height: auto;
    margin-bottom: 8px;
}

.brand-name {
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

/* Hiding default slick arrows */
.brands-slider-container .slick-prev,
.brands-slider-container .slick-next {
    display: none !important;
}

/* For continuous scroll */
.brands-slider-container .slick-list,
.brands-slider-container .slick-track {
    overflow: visible;
}

/*=====================================
  Daily Price Brand Slider (اسلایدر قیمت روز خودرو)
=======================================*/

.brands-slider-section {
    background-color: #f7f7f7;
    padding: 40px 0;
    direction: rtl;
}


.brands-slider-container {
    padding: 0;
}

.brand-slide-item {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto;
    /* ارتفاع را از حالت ثابت خارج می‌کنیم */
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    margin: 0 10px;
    /* فاصله بین آیتم‌ها */
    padding: 30px 20px;
    /* افزایش پدینگ برای فضای داخلی بیشتر */
}

.brand-slide-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.brand-info {
    order: 1;
    margin-bottom: 20px;
    /* فاصله بین متن و لوگو */
}

.brand-logo {
    order: 2;
    width: 60px;
    height: auto;
    margin-bottom: 20px;
}

.brand-name {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
}

.brand-details {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.brand-price {
    order: 3;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-top: auto;
    /* برای بردن قیمت به انتهای باکس */
}

/* Hiding default slick arrows for this specific slider */
.brands-slider-container .slick-prev,
.brands-slider-container .slick-next {
    display: none !important;
}

.brands-slider-container .slick-list {
    overflow: hidden !important;
    width: 100%;
}

.brands-slider-container .slick-track {
    display: flex;
}

/*=====================================
  News Section
=======================================*/

.news-section {
    padding: 60px 0;
    direction: rtl;

}

.news-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    direction: rtl;
}

.news-section .section-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.news-section .view-all-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    background-color: var(--first-color);
    transition: color 0.2s;
}

.news-section .view-all-link:hover {
    color: #000;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* سه ستون مساوی در دسکتاپ */
    gap: 20px;
    /* فاصله بین کارت‌ها */
}

/* استایل هر کارت مقاله */
.article-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    /* برای جلوگیری از بیرون‌زدن تصویر */
}

.article-image {
    width: 100%;
    height: 180px;
    /* ارتفاع ثابت برای تصاویر */
    object-fit: cover;
    /* حفظ نسبت تصویر و پر کردن فضای خالی */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.article-content {
    padding: 20px;
}

.article-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    text-align: right;
}

.article-details {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    text-align: right;
}

.article-time {
    display: block;
    font-size: 12px;
    color: #999;
    text-align: right;
}


/*=====================================
                footer
=======================================*/

footer hr {
    background-color: #eee;
}

footer .columns {
    padding: 0 20px;
}

/* login page */

.login_page .close-modal-button {
    color: #000;
}

.login_page hr {
    margin: 0 !important;
    background-color: #eee !important;
}

.login_page .form {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    height: 600px;

}

.login_page .form .field {
    background-color: #eeeeeecb;
    width: 400px;
    padding: 20px;
    border-radius: 15px;
}

.login_page .form .field img {
    width: 80px;
    margin: 20px;
}

.login_page .form .field label {
    font-size: 14px;
    font-weight: 100 !important;
}

.login_page .form .field input {
    text-align: left;
    font-weight: bold;
    background-color: transparent;
    color: #000;
}

.login_page .form .field input::placeholder {
    color: #888;
}

.login_page .form .field button {
    background-color: var(--first-color);
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    width: 100%;
    border-radius: var(--button-border-radius);
    margin-top: 2rem;
}


/* add_car_page */

.add_car_page .head ul li a {
    font-size: 12px;
    color: #000 !important;
    font-weight: bold;
    display: flex;
    align-content: center;
}


.add_car_page .filter h1 {
    font-size: 2rem;
    font-weight: bold;
    color: #000;
}

.add_car_page .filter p {
    font-size: 1rem;
}



.add_car_page .flex-buttns {
    width: fit-content;
    margin: 5px;
}

.add_car_page .but {
    font-weight: bold;
    padding: 10px 20px;
    width: fit-content;
    border-radius: var(--button-border-radius) !important;
    margin-top: 1rem;
}

.add_car_page .boxx {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    background-color: transparent;
    border: none;
    color: black;
    box-shadow: none;
    padding: var(--button-padding) !important;
    width: fit-content;
    font-size: 12px;
    border: 1px solid #eee;
}

.add_car_page .buttons button {
    background-color: #eee;
    border-radius: 1.25rem !important;
    border: none;
    margin: 0 10px;
}

.add_car_page .pad {
    padding: 1rem 12rem;

}

.add_car_page .buttons .button.is-primary {
    background-color: #000;
    color: white;
    border-radius: 20px !important;
    text-decoration: none !important;
}

.add_car_page .buttons .button {
    text-decoration: none !important;
    color: black;
}

.add_car_page .subtitle {
    color: #000;
    font-weight: bold;
}

.add_car_page .field input {
    background-color: #eee;
    border: none;
    padding: 25px 20px;
    border-radius: 50px;
    color: #1f1f1e;
}

.add_car_page .field input::placeholder {
    color: #636363;

}

.add_car_page .select_btn {
    background-color: white;
    color: #000;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.add_car_page button.next {
    background-color: #eee;
    color: #000 !important;
    font-weight: bold;
    border-radius: var(--button-border-radius);
}


/* contact us */

/* تنظیمات پایه */
.contact-section {
    padding: 40px 0;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: #fff;
    direction: rtl;
}

.contact-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
}

.contact-info {
    flex: 1 1 400px;
    max-width: 480px;
}

.contact-title {
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 10px;
    color: #111;
}

.contact-desc {
    font-weight: 400;
    font-size: 14px;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.5;
}

.contact-details p {
    font-size: 14px;
    color: #222;
    margin: 8px 0;
    display: flex;
    align-items: center;
}

.contact-details p .icon {
    margin-left: 12px;
    color: #333;
    font-size: 20px !important;
}

.contact-logos {
    margin-top: 40px;
    display: flex;
    gap: 12px;
}

.contact-logos img {
    width: 60px;
    height: auto;
}

/* فرم تماس */
.contact-form-container {
    flex: 1 1 450px;
    max-width: 600px;
}

.contact-form {
    background: #fff;
    box-shadow: 0 0 20px rgb(0 0 0 / 0.08);
    padding: 30px;
    border-radius: 8px;
}

/* دکمه ارسال */
.send-btn {
    background-color: var(--first-color) !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 14px 0 !important;
    margin-top: 24px !important;
    border-radius: 25px !important;
    transition: background-color 0.3s ease;
}

.send-btn:hover {
    background-color: var(--first-color) !important;
}

/* استایل فرم‌ها */
.MuiTextField-root {
    direction: rtl;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

.MuiInputLabel-root {
    font-size: 13px;
    color: #666;
}

.MuiOutlinedInput-root {
    font-size: 14px;
}

/* about us */

.about-section {
    padding: 60px 20px 100px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    direction: rtl;
    background: #fff;
    color: #111;
    display: flex;
    justify-content: center;
    text-align: justify;
    height: 80vh;
}

.container {
    max-width: 700px;
    width: 100%;
    text-align: justify;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.logo-container img {
    width: 120px;
    height: auto;
    user-select: none;
}

.title {
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 20px;
    color: #111;
    text-align: center;
}

p {
    font-size: 16px;
    color: #222;
    line-height: 1.8;
    margin-bottom: 20px;
}


/* car list page */

.car_list_page__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
}

.car_list_page__filters {
    width: 280px;
    height: fit-content;
    background: #fff;
    border-radius: 16px;
    padding: 25px 20px;
    box-shadow: 0 8px 20px rgb(0 0 0 / 0.1);
    font-size: 15px;
    color: #555;
    transition: box-shadow 0.3s ease;
}

.car_list_page__filters:hover {
    box-shadow: 0 10px 28px rgb(0 0 0 / 0.15);
}

.car_list_page__filters-title {
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 700;
    color: var(--second-color);
    font-size: 18px;
    border-bottom: 2px solid var(--first-color);
    padding-bottom: 8px;
}

.car_list_page__filter-group {
    margin-bottom: 20px;
}

.car_list_page__filter-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--first-color);
    font-size: 14.5px;
}

.car_list_page__filter-group input[type="checkbox"],
.car_list_page__filter-group input[type="radio"] {
    margin-left: 8px;
    cursor: pointer;
    accent-color: var(--first-color);
    width: 18px;
    height: 18px;
}

.car_list_page__filter-group label {
    cursor: pointer;
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
    user-select: none;
    transition: color 0.2s ease;
}

.car_list_page__filter-group label:hover {
    color: var(--first-color);
}

.car_list_page__select {
    width: 100%;
    border: 1.8px solid #ddd;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 14.5px;
    margin-top: 5px;
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.car_list_page__select:focus {
    outline: none;
    border-color: var(--first-color);
    box-shadow: 0 0 6px var(--first-color);
}

.car_list_page__input {
    width: 100%;
    border: 1.8px solid #ddd;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 14.5px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.car_list_page__input:focus {
    outline: none;
    border-color: var(--first-color);
    box-shadow: 0 0 6px var(--first-color);
}

.car_list_page__input--margin-top {
    margin-top: 8px;
}

.car_list_page__car-list {
    width: 50%;
}



.car-card {
    display: flex;
    flex-direction: row-reverse;
    background: white;
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
    padding: 12px;
    margin-bottom: 16px;
    font-family: var(--font);
}

.car-card__image-wrapper {
    position: relative;
    flex-shrink: 0;
}

.car-card__image {
    width: 140px;
    height: 90px;
    border-radius: 8px;
    object-fit: cover;
}

.car-card__badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background-color: var(--first-color);
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 6px;
}

.car-card__details {
    flex: 1;
    padding-right: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.car-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.car-card__title {
    font-weight: bold;
    margin: 0;
    font-size: 16px;
    color: #000;
}

.car-card__time {
    font-size: 12px;
    color: #999;
}

.car-card__tag {
    font-size: 12px;
    background-color: #f4f4f4;
    color: #555;
    padding: 2px 6px;
    border-radius: 6px;
}

.car-card__tag--hm {
    background-color: #fff7e6;
    color: #ff9500;
    border: 1px solid #ffe4b3;
}

.car-card__info {
    font-size: 14px;
    margin-top: 4px;
    color: #444;
}

.car-card__price {
    font-weight: bold;
    margin-top: 6px;
    color: var(--second-color);
}

.car-card__monthly {
    font-size: 12px;
    color: #888;
}

.car-card__footer {
    margin-top: 8px;
    font-size: 13px;
    color: #777;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background-color: white;
    padding: 20px 30px;
    border-radius: 8px;
    max-width: 100%;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    direction: rtl;
    font-family: 'IranSans', Tahoma, sans-serif;
}



.car-header {
    font-family: 'IranSans', Tahoma, sans-serif;
    color: #1c1c1c;
    padding: 20px;
    max-width: 100%;
    height: 100%;
    background: #fff;
    width: 40rem;
}

.car-header .car-title-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.car-header .car-title {
    font-weight: 700;
    font-size: 22px;
    margin: 0;
    line-height: 1.2;
}

.car-header .car-meta {
    display: flex;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.car-header .car-meta .car-year,
.car-header .car-meta .car-trim {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.car-header .car-posted-time {
    font-size: 13px;
    color: #888;
    margin-top: 6px;
}

.car-header .car-price-location {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 16px;
    font-weight: 700;
    font-size: 18px;
    color: #222;
}

.car-header .car-price-location .car-price {
    color: #1a1a1a;
}

.car-header .car-price-location .car-location {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.car-header .show-number-btn {
    display: block;
    width: 100%;
    background-color: var(--first-color);
    border: none;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 700;
    color: white;
    border-radius: var(--button-border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    margin-bottom: 10px;
}

.car-header .show-number-btn:hover {
    background-color: var(--second-color);
    color: white;
}

.car-header .verified-ad {
    font-size: 10px;
    color: var(--first-color);
    text-align: right;
    background-color: #4c2c6779;
    margin-bottom: 20px;
    font-weight: 600;
    padding: 5px 10px;
}

.car-header .car-details {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 30px;
    /* فاصله بین ردیف‌ها و ستون‌ها */
    justify-content: flex-start;
    /* آیتم‌ها از ابتدا چیده شوند */
}

.car-header .car-detail-item {
    width: calc((100% / 3) - 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    color: #555;
    gap: 6px;
    text-align: center;
    padding: 10px 0;
}

.car-header .car-detail-item span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-size: 20px;
    color: #666;
    margin-bottom: 6px;
}

.car-header .car-detail-label {
    font-weight: 600;
    color: #888;
    font-size: 13px;
}

.car-header .car-detail-value {
    font-weight: 700;
    color: #222;
}

/* آیکون‌ها رو می‌تونی از فونت آیکون یا SVG استفاده کنی، اینجا فقط فضای خالی گذاشتم */
.car-header .car-detail-item .icon-gearbox::before {
    content: "⚙️";
}

.car-header .car-detail-item .icon-fuel::before {
    content: "⛽";
}

.car-header .car-detail-item .icon-mileage::before {
    content: "🕒";
}

.car-header .car-detail-item .icon-interior-color::before {
    content: "🛋️";
}

.car-header .car-detail-item .icon-exterior-color::before {
    content: "🎨";
}

.car-header .car-detail-item .icon-exterior-status::before {
    content: "✔️";
}


.car-info-container {
    max-width: 720px;
    margin: 0 auto;
    font-family: 'IRANSans', Tahoma, sans-serif;
    direction: rtl;
    color: #222;
    text-align: right;
    width: 100%;
    padding: 20px 10px;
}

.close-modal-btn {
    background: transparent;
    border: none;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: -4px;
    right: 15px;
    color: #333;
}


.car-image-section {
    text-align: center;
    margin-bottom: 15px;
}

.car-image {
    max-width: 100%;
    border-radius: 12px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    width: 100%;
    height: 450px;
}

.car-image:hover {
    transform: scale(1.05);
}

.car-description-section {
    margin-bottom: 25px;
}

.car-description-section h3 {
    font-weight: 700;
    margin-bottom: 10px;
}

.car-description-section ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    line-height: 1.6;
    font-size: 14px;
    color: #444;
}

.car-description-section ul li {
    margin-bottom: 6px;
}

.car-specs {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.spec-item {
    flex: 1 1 22%;
    text-align: center;
}

.spec-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.spec-value {
    font-weight: 700;
    font-size: 16px;
    color: #000;
}

/* news page */

.news_page .news-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border-radius: 6px;
}

.news_page .news-link:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.news_page .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.news_page .card-image img {
    object-fit: cover;
    width: 100%;
    height: 200px;
}

.news_page .card-content {
    flex-grow: 1;
    padding: 1rem 1.5rem;
    background-color: #eee !important;
}

.news_page .card-content h3.title {
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #000 !important;
}

.news_page .card-content p {
    color: black;
    font-size: 0.85rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.news_page .article-time {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #888;
    font-size: 0.75rem;
}

.news_page .columns.is-multiline {
    gap: 1.5rem;
    /* فاصله بین کارت‌ها */
}

/* news details */

.news_details .image {
    width: 100%;
    height: 100%;
}

.news_details .image img {
    padding: 1rem 20rem;
}

.news_details .title {
    font-size: 16px !important;
}

.news_details .inner {
    padding: 15px;
}

/* my ads */

.ads_modal .field .control button {
    width: 100% !important;
}

.ads_modal .images-grid {
    display: grid;
    grid-template-columns: repeat(4, 124px);
    gap: 1rem;
}

.ads_modal .images-grid .plus {
    width: 100px;
    height: 100px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.myads_page .media-left .image {
    height: 120px;
    width: 100px;
}

.myads_page .media-left .image img {
    height: 100% ;
}

.myads_page .card {
    background-color: rgb(253, 253, 253) !important;
    box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.342);
}

.myads_page .card p {
    color: black;
}

.ads_modal label {
    color: black !important;
}

.ads_modal input,
.ads_modal select,
.ads_modal textarea {
    background-color: transparent !important;
    color: black !important;
}

.ads_modal .modal-card-head,
 .ads_modal .modal-card-body {
    background-color: white !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeOverlayIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* برای دکمه بستن مودال */
.modal-close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #555;
}

/* cart page */

.cart_page .title {
    color: black;
}

.cart_page .box {
    background-color: #fff !important;
}

.cart_page .image {
    width: 100px !important;
    height: 100px !important;
}

.cart_page .image img {
    height: 100%;
    width: 100%;
    border-radius: 5px;
}

.cart_page button.is-primary {
    background-color: var(--first-color);
    color: white;
}

/* loam page */

.loam_page .box {
    background-color: #fff !important;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.178);
}

.loam_page .card {
    background-color: #fff !important;
    box-shadow: none !important;
    border: 1px solid black;
}

.loam_page .card-content .title {
    color: var(--first-color) !important;
}

.loam_page .card-content p {
    color: black !important;
}

/* responsive */

@media screen and (max-width: 1024px) {
    .add_car_page .pad {
        padding: 1rem 1rem;
        display: flex !important;
        flex-direction: column;
    }

    .add_car_page .flexy {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 900px) {
    .contact-columns {
        flex-direction: column;
        gap: 30px;
    }

    .contact-info,
    .contact-form-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .car_list_page__container {
        flex-direction: column;
        padding: 10px;
    }

    .car_list_page__filters {
        max-width: 100%;
        margin-bottom: 15px;
        width: 100%;
    }

    .car_list_page__car-list {
        width: 100%;
    }

    .car-card__image-wrapper img {
        height: 200px;
    }

    .car_list_page__add-ad {
        left: 50%;
        transform: translateX(-50%);
        bottom: 15px;
    }

    .modal-content {
        max-width: 100%;
        max-height: 95vh;
        padding: 15px;
    }

    .search-bar-modal {
        margin-left: 0 !important;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .car-card__image-wrapper img {
        height: 150px;
    }

    .news_details .image {
        height: 200px !important;
        width: 100% !important;
    }

    .news_details .image img {
        padding: 0rem !important;
    }

    .news-detail-container {
        padding: 0 0.5rem;
    }

    .news-detail-box {
        padding: 1.5rem 1rem;
    }

    .news-detail-title {
        font-size: 1.5rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        /* یک ستون در موبایل */
    }

    header .buttons {
        display: flex;
        justify-content: space-between;
    }

    header .dropdown-content {
        background-color: #fff;
    }

    header .dropdown-content .dropdown-item {
        background-color: #fff;
    }

    header #navbarMenu .navbar-start {
        padding: 0 15px;
    }

    header #navbarMenu .navbar-start .navbar-iteml {
        background-color: #4c2c6775;
        font-size: 14px;
    }

    header .navbar-dropdown .navbar-item .icon {
        display: none;
    }

    header .navbar-dropdown .navbar-item {
        background-color: #4c2c6775 !important;
        padding: 8px 13px
    }

    header .navbar-dropdown .navbar-item span {
        color: #000;
    }

    header .navbar-link {
        display: none !important;
    }

    header .dropdown.is-right .dropdown-menu {
        right: -20% !important;
    }

    .car-image {
        height: 100px;
    }

    .car_list_page .modal-content {
        height: 100% !important;
        max-height: 100% !important;
        overflow: scroll;
    }

    .car_list_page .spec-value {
        font-size: 8px;
    }

    .car_list_page .spec-label {
        font-size: 10px;
    }

    .car_list_page .car-description-section ul li {
        font-size: 12px !important;
    }

    .car_list_page .car-header .car-detail-value {
        font-size: 10px;
    }

    .car_list_page .car-header .car-meta {
        margin-top: 10px;
    }

    .car_list_page .car-header .car-detail-label {
        font-size: 12px;
    }

    .car_list_page .car-header .car-price-location {
        margin: 10px 0;
    }

    .car_list_page .car-header .car-price-location .car-price {
        font-size: 16px;
    }

    .ads_modal .images-grid {
        grid-template-columns: repeat(4, 66px)
    }

    .ads_modal .images-grid .plus {
        width: 80px;
        height: 80px;
        border: 2px dashed #ccc;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        overflow: hidden;
        position: relative;
    }

    .myads_page .card {
        margin: 0px 15px !important;
    }

    .myads_page .media-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .myads_page .media-content .title {
        font-size: 16px;
    }

    .myads_page .media-content .subtitle {
        font-size: 14px;
    }
}