@font-face {
    font-family: 'Beiruti';
    src: url('./font/Beiruti-SemiBold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #e4e4e4;
    font-family: 'Beiruti', sans-serif;
    font-size: 18px;
}

.menu-color {
    color: #064d3b !important;
    font-weight: 500;
}

.icon-size {
    width: 24px;
    height: auto;
    margin-left: 5px;
}

.vertical-separator {
    display: inline-block;
    width: 1px;
    height: 40px;
    background-color: #666;
    margin-right: 15px;
}

.navbar {
    background-color: #e4e4e4 !important;
    margin-right: 60px;
}

.navbar-nav {
    margin-right: 43px;
    font-family: 'Beiruti';
}



@media (max-width: 1770px) {
    .navbar-nav-left {
        margin-right: 450px;
    }
}

@media (max-width: 1724px) {
    .navbar-nav-left {
        margin-right: 400px;
    }
}

@media (max-width: 1674px) {
    .navbar-nav-left {
        margin-right: 350px;
    }
}

@media (max-width: 1624px) {
    .navbar-nav-left {
        margin-right: 300px;
    }
}

@media (max-width: 1574px) {
    .navbar-nav-left {
        margin-right: 250px;
    }
}

@media (max-width: 1524px) {
    .navbar-nav-left {
        margin-right: 200px;
    }
}

@media (max-width: 1474px) {
    .navbar-nav-left {
        margin-right: 150px;
    }
}

@media (max-width: 1424px) {
    .navbar-nav-left {
        margin-right: 100px;
    }
}

@media (max-width: 1374px) {
    .navbar-nav-left {
        margin-right: 50px;
    }
}

@media (max-width: 1324px) {
    .navbar-nav-left {
        margin-right: 0px;
    }
}

@media (max-width: 1274px) {
    .navbar-nav-left {
        display: none;
    }
}

@media (max-width: 992px) {
    .vertical-separator {
        display: none;
    }

    .navbar-nav {
        padding-top: 10px;
        gap: 10px;
        margin-right: 0;
    }

    .navbar-nav .nav-item {
        width: 100%;
    }
}

/* ===== Carousel اسلاید شو ===== */
.carousel-item img {
    object-fit: cover;
    height: 500px;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 8px;
}

.carousel-caption h5,
.carousel-caption p {
    text-align: center;
}

@media (max-width: 768px) {
    .carousel-item img {
        height: 350px;
        margin-top: 40px;
    }

    .carousel-caption {
        font-size: 16px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .carousel-item img {
        height: 250px;
        margin-top: 20px;
    }
}

/* ===== Carousel برندها ===== */
#brandCarousel {
    background-color: #e4e4e4;
    padding: 20px;
}

.brands-box {
    background-color: #e4e4e4;
    padding: 20px;
    border: 2px dashed rgba(142, 59, 230, 0.6);
    border-radius: 7px;
    margin: 58px auto 16px;
    max-width: 1200px;
}

.brand-logo {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    margin: 0 15px;
}

.brand-logo:hover {
    filter: grayscale(0%);
}

#brandCarousel .carousel-item {
    min-height: auto;
}

#brandCarousel .d-flex {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .brands-box {
        margin: 30px 15px;
        padding: 15px;
    }

    .brand-logo {
        max-height: 45px;
        margin: 0 10px;
    }

    #brandCarousel .d-flex {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .brands-box {
        margin: 20px 10px;
        padding: 10px;
    }

    .brand-logo {
        max-height: 35px;
        margin: 0 5px;
    }

    #brandCarousel .d-flex {
        gap: 10px;
    }
}

/* ===== بخش چرا حیدری ===== */
.why-section {
    background-color: #e4e4e4;
    padding: 40px 20px;
}

.why-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.why-text {
    flex: 1;
    min-width: 300px;
}

.why-header {
    display: flex;
    line-height: 23px;
    background-color: #ccc;
    margin-bottom: 20px;
}

.header-green {
    width: 230px;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    background-color: #164a34;
    color: #fff;
    padding: 8px 25px;
    font-size: 25px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.header-gray {
    background-color: #ccc;
    color: #4a4a4a;
    padding: 8px 15px;
    flex: 1;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    display: flex;
    align-items: center;
}

.stars {
    font-size: 2rem;
    margin-right: auto;
}

.description {
    margin: 20px 0;
    line-height: 1.8;
    font-family: 'Beiruti';
    text-align: justify;
    font-size: 18px;
    color: #333;
}

.read-more {
    color: #164a34;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    direction: rtl;
}

.read-more:hover {
    text-decoration: underline;
}

/* بخش چپ (اسلایدشو) */
.why-slider {
    flex: 1;
    min-width: 300px;
}

.slider-wrapper {
    position: relative;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.slider-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 18px;
    color: #fff;
    transition: background 0.3s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.arrow-left {
    right: 10px;
}

.arrow-right {
    left: 10px;
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-square {
    width: 20px;
    height: 7px;
    background-color: #bfbfbf;
    transform: skewX(-40deg);
    cursor: pointer;
    transition: background 0.3s;
}

.nav-square.active {
    background-color: #1c5d3b;
}

@media (max-width: 768px) {
    .why-section {
        padding: 30px 15px;
    }

    .why-container {
        gap: 20px;
    }

    .header-green {
        width: 180px;
        font-size: 20px;
        padding: 6px 15px;
    }

    .stars {
        font-size: 1.5rem;
    }

    .description {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .why-container {
        flex-direction: column;
    }

    .header-green {
        width: 150px;
        font-size: 18px;
    }

    .stars {
        font-size: 1.2rem;
    }

    .description {
        font-size: 16px;
        line-height: 1.6;
    }
}

/* ===== تصویر خرید ===== */
.buy-car-full {
    width: 100%;
    height: 345pt;
    aspect-ratio: 1024 / 409;
    background: url('/files/images/001-Recoveredقق.png') center/cover no-repeat;
    margin: 40px 0;
}

@media (max-width: 768px) and (min-width: 481px) {
    .buy-car-full {
        aspect-ratio: 1600 / 500;
        height: auto;
    }
}

@media (max-width: 480px) {
    .buy-car-full {
        margin: 20px 0;
        height: auto;
    }
}

/* ===== دو تصویر ستون ===== */
.two-column-images {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.image-box {
    flex: 1;
    aspect-ratio: 512 / 333;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
}

.img1 {
    background-image: url('/files/images/banner2.png');
    background-position: left center;
}

.img2 {
    background-image: url('/files/images/banner3.png');
    background-position: right center;
}

@media (max-width: 768px) {
    .two-column-images {
        margin: 30px auto;
        gap: 15px;
    }

    .image-box {
        aspect-ratio: 2 / 1;
    }
}

@media (max-width: 480px) {
    .two-column-images {
        margin: 20px auto;
        padding: 0 10px;
    }

    .image-box {
        aspect-ratio: 1 / 1;
    }
}

/* ===== Header Bar ===== */
.header-bar {
    display: flex;
    max-width: 1200px;
    width: calc(100% - 40px);
    margin: 40px auto;
    height: 50px;
    background-color: #d9d9d9;
    border-radius: 4px;
}

.bar-green {
    width: 230px;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    background-color: #1a4a2d;
    color: #fff;
    font-size: 25px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bar-gray {
    flex: 1;
    background-color: #d9d9d9;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
}

.bar-green-fix {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.icon {
    width: 24px;
    height: 24px;
    margin-left: 10px;
}

.icon-size-news {
    width: 25px;
    height: auto;
}

.gearwheel {
    font-weight: bolder;
    color: #1a4a2d;
}

@media (max-width: 768px) {
    .header-bar {
        height: 40px;
        margin: 30px auto;
        width: calc(100% - 30px);
    }

    .bar-green {
        width: 180px;
        font-size: 18px;
        clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    }

    .icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .header-bar {
        height: 35px;
        margin: 20px auto;
        width: calc(100% - 20px);
    }

    .bar-green {
        width: 140px;
        font-size: 16px;
        padding: 5px 15px;
    }

    .bar-gray {
        padding-right: 10px;
    }

    .icon-size-news {
        width: 30px;
    }
}

/* ===== Content Section ===== */
.content-section {
    max-width: 1200px;
    width: calc(100% - 40px);
    margin: 20px auto;
    padding: 20px;
    background-color: #e4e4e4;
    font-family: Beiruti, sans-serif;
    font-size: 18px;
    line-height: 1.8;
    direction: rtl;
    color: #333;
}

.continue {
    font-weight: bold;
    color: #1a4a2d;
    cursor: pointer;
    margin-top: 10px;
    display: block;
    text-align: left;
}

@media (max-width: 768px) {
    .content-section {
        width: calc(100% - 20px);
        padding: 15px;
        font-size: 16px;
    }
}

/* ===== Services Section ===== */
.sectionn {
    background: #e4e4e4;
    padding: 20px;
}

.containerr {
    background: #d9d9d9;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
}

.columnn {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
}

.title-boxx {
    font-family: Beiruti, sans-serif;
    background: #064524;
    color: #fff;
    padding: 12px;
    font-weight: bold;
    text-align: center;
    clip-path: polygon(0 0, calc(100% - 0) 0, 100% 50%, calc(100% - 18px) 100%, 0% 100%);
    margin-bottom: 15px;
}

.img-boxx {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 15px;
}

.img-boxx img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.desc-boxx {
    font-family: Beiruti, sans-serif;
    flex: 1;
    background: #cdcdcd;
    color: #000000;
    font-size: 15px;
    display: flex;
    align-items: normal;
    justify-content: center;
    border: 1px solid #064524;
    margin-bottom: 13px;
    padding: 34px 15px;
    text-align: center;
    line-height: 34px;
}

.label-right {
    font-family: Beiruti, sans-serif;
    background: #064524;
    color: #fff;
    padding: 12px 20px;
    font-weight: bold;
    text-align: center;
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 100%, 0% 100%);
    margin-bottom: 15px;
}

.label-left {
    font-family: Beiruti, sans-serif;
    background: #064524;
    color: #fff;
    padding: 12px 20px;
    font-weight: bold;
    text-align: center;
    clip-path: polygon(30px 0, 100% 0, 100% 100%, 0% 100%);
    margin-bottom: 15px;
}

.label-both {
    font-family: Beiruti, sans-serif;
    background: #064524;
    color: #fff;
    padding: 12px 20px;
    font-weight: bold;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, calc(100% - 35px) 100%, 0 100%);
    margin-bottom: 15px;
}

.label-bothh {
    font-family: Beiruti, sans-serif;
    background: #064524;
    color: #fff;
    padding: 12px 20px;
    font-weight: bold;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 35px 100%);
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .containerr {
        flex-direction: column;
    }

    .columnn {
        min-width: 100%;
    }

    .desc-boxx {
        font-size: 16px;
    }
}

/* ===== Articles Slider ===== */
.articles-slider {
    background: #e4e4e4;
    border-radius: 12px;
    padding: 20px;
}

.articles-container {
    position: relative;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    width: 100%;
    padding: 10px 0;
}

.slider::-webkit-scrollbar {
    display: none;
}

.card {
    flex: 0 0 auto;
    width: 230px;
    background: #fff;
    border: 5px solid transparent;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.07);
    z-index: 3;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.card img {
    width: 100%;
    height: 169px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.1);
}

.card-title {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 16px;
    font-family: 'Beiruti';
    font-weight: bold;
    border-radius: 4px;
    width: 160px;
    height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.border-red {
    border-color: #b3003b;
}

.bg-red {
    background: #b3003b;
}

.border-blue {
    border-color: #012e65;
}

.bg-blue {
    background: #012e65;
}

.border-navy {
    border-color: #012e65;
}

.bg-navy {
    background: #012e65;
}

.border-darkblue {
    border-color: #012e65;
}

.bg-darkblue {
    background: #012e65;
}

.border-darkred {
    border-color: #b3003b;
}

.bg-darkred {
    background: #b3003b;
}

.slider-triangle {
    width: 0;
    height: 0;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.slider-triangle.prev {
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 14px solid #999;
    left: -25px;
}

.slider-triangle.next {
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 14px solid #999;
    right: -25px;
}

.slider-triangle:hover {
    border-right-color: #666;
    border-left-color: #666;
}

.slider-footer {
    max-width: 1200px;
    width: 90%;
    margin: 15px auto 0;
}

.slider-footer a {
    background: #065c3b;
    color: #fff;
    padding: 8px 18px;
    text-decoration: none;
    font-family: 'Beiruti';
    font-weight: bold;
    transform: skewX(-23deg);
    display: inline-block;
    float: left;
    transition: background 0.3s;
}

.slider-footer a:hover {
    background: #054a2f;
}

.indicators {
    text-align: center;
    margin-top: 10px;
}

.indicators span {
    display: inline-block;
    width: 20px;
    height: 4px;
    background: #ccc;
    margin: 0 3px;
    transform: skewX(-40deg);
    border-radius: 2px;
}

.indicators span.active {
    background: #065c3b;
}

@media (max-width: 768px) {
    .card {
        width: 180px;
    }

    .indicators span {
        width: 14px;
        height: 3px;
    }
}

@media (max-width: 480px) {
    .card {
        width: 150px;
    }

    .card img {
        height: 140px;
    }

    .card-title {
        font-size: 14px;
        width: 130px;
        height: 40px;
    }
}

/* ===== Bestseller Section ===== */
.bestseller-section {
    max-width: 1200px;
    width: 90%;
    margin: auto;
    font-family: 'IranSans';
    margin-top: 80px;
}

.bestseller-container {
    display: flex;
    align-items: stretch;
    gap: 10px;
    border: 2px solid #285437;
    background-color: #e4e4e4;
    padding: 0;
    box-sizing: border-box;
    position: relative;
}

.bestseller-feature-column {
    flex: 0 0 auto;
    width: 180px;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 2px solid #285437;
    box-sizing: border-box;
}

.bestseller-feature-column .info-icon-area {
    padding: 54px 0;
}

.bestseller-icon {
    width: 60px;
    height: 60px;
}

.info-text-area {
    background-color: #285437;
    font-family: 'Beiruti', sans-serif;
    color: white;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    padding: 10px;
    width: 100%;
    margin-top: auto;
    /* به پایین ستون چسبیده */
    box-sizing: border-box;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #b1b1b1;
    border-radius: 50%;
    z-index: 5;
}

.slider-arrow.prev {
    left: 0;
    /* دسکتاپ - نزدیک لبه اسلایدر */
}

.slider-arrow.next {
    right: calc(180px + 10px);
}

.bestseller-slider {
    flex: 1;
    display: flex;
    gap: 36px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 14px 49px;
    position: relative;
}

.bestseller-card {
    flex: 0 0 auto;
    border: 2px solid #285437;
    width: 190px;
    background-color: white;
}


@media (max-width: 768px) {
    .bestseller-slider {
        gap: 10px;
        padding: 10px 30px;
    }
}

@media (max-width: 768px) {
    .slider-arrow.next {
        right: calc(140px + 10px);
        /* عرض ستون کمتر در موبایل */
    }
}

@media (max-width: 768px) {
    .slider-arrow.prev {
        left: 10px;
        /* فاصله امن از کارت‌ها در موبایل */
    }
}

@media (max-width: 768px) {
    .bestseller-card {
        width: 140px;
    }

    .bestseller-slider {
        gap: 10px;
    }

    .bestseller-feature-column {
        width: 140px;
        min-width: 140px;
    }
}

.card-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-label {
    font-family: 'Beiruti', sans-serif;
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: #285437;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 8px;
    text-align: center;
    box-sizing: border-box;
    line-height: 1.4;
}

/* ===== Responsive ===== */

/* ===== Footer ===== */
.footer {
    width: 100%;
    background-color: #285437;
    color: #fff;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    /* ستون‌ها ارتفاع برابر */
    padding: 80px 20px;
    box-sizing: border-box;
    min-height: 300px;
    direction: rtl;
    font-family: 'IranSans', sans-serif;
    margin-top: 134px;
    flex-wrap: wrap;
}

/* ستون‌های مشترک */
.footer-col {
    font-family: 'Beiruti', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 16px;
}


/* ستون‌های وسط‌چین (۱ و ۳) */
.center-col {
    align-items: center;
    text-align: center;
}

.contact-col {
    justify-content: center;
}

.contact-wrapper {
    display: flex;
    flex-direction: row-reverse;
    gap: 12px;
    height: 100%;
    /* پر کردن ارتفاع ستون */
    align-items: center;
    /* مرکز عمودی */
}

.contact-icons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    margin: 0;
    margin-top: 42px;

    /* حذف فاصله اضافی */
}

.contact-divider {
    width: 1px;
    background-color: #fff;
    align-self: stretch;
    /* خط تمام ارتفاع ستون */
}


.contact-texts {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    margin: 0;
    margin-top: 43px;
}

.center-col {
    align-items: center;
    text-align: center;
    justify-content: center;
    /* مرکز عمودی */
}

/* آیکون و خط ستون‌های ۱ و ۳ */
.footer-icon {
    font-size: 24px;
}

.footer-line {
    width: 100%;
    border-top: 1px solid #fff;
}

/* متن ستون‌ها */
.footer-content {
    display: flex;
    flex-direction: column;
    font-size: 16px;
}

.footer-content p,
.footer-content span {
    margin: 2px 0;
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
    }

    .footer-col {
        width: 100%;
        padding: 20px 10px;
        min-height: auto;
    }

    /* ترتیب ستون‌ها: ۳–۲–۱ */
    .footer-col:nth-child(1) {
        order: 1;
    }

    /* ستون 3 */
    .footer-col:nth-child(2) {
        order: 2;
    }

    /* ستون 2 */
    .footer-col:nth-child(3) {
        order: 3;
    }

    /* ستون 1 */

    /* ستون وسط */
    .contact-wrapper {
        flex-direction: column;
        align-items: center;
    }

    @media (min-width: 769px) {
        .contact-col {
            transform: translateY(5px);
        }
    }

    .contact-divider {
        width: 50%;
        height: 1px;
        /* خط افقی */
        align-self: center;
        margin: 8px 0;
    }

    .contact-icons {
        flex-direction: row;
        gap: 16px;
    }

    .contact-texts {
        text-align: center;
    }
}

.contact-texts-mobile {
    direction: ltr;
}

.left {
    direction: ltr;
}

/* ============ BRAND PAGE ============ */

.brand-box {
    max-width: 1200px;
    margin: 40px auto;
    background: linear-gradient(90deg, #3a3a3a, #1e1e1e);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 30px;
    direction: rtl;
    color: white;
}

.brand-box.ltr-section {
    flex-direction: row-reverse;
}

.brand-title {
    font-family: Beiruti;
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 10px;
}

.brand-desc {
    color: #e6e6e6;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.brand-btn {
    padding: 10px 20px;
    background: #d9d9d9;
    color: #1a1a1a;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.brand-btn:hover {
    background: #ffffff;
}

.brand-image img {
    width: 310px;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
}


/* ===== Logo Slider ===== */

.logo-slider-container {
    max-width: 600px;
    margin: 80px auto;
    position: relative;
}

.logo-slider {
    display: flex;
    gap: 20px;
    overflow: hidden;
}

.logo-item {
    width: 120px;
    height: auto;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: 0.3s;
}

.logo-item:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.logo-controls span {
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #525252;
}

.logo-prev {
    left: -40px;
}

.logo-next {
    right: -40px;
}

@media (max-width: 768px) {
    .brand-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .brand-image img {
        width: 250px;
    }

    .logo-item {
        width: 80px;
    }
}

/* ===================================== Brand Row ======================================================== */
.brand-row {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

/* ===== Card ===== */
.brand-card {
    position: relative;
    width: 50%;
    height: 230px;
    background: linear-gradient(90deg, #2b2b2b, #3d3d3d);
    border-radius: 22px;
    padding: 35px 45px;

    min-height: 200px;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: visible;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* ===== Text Box ===== */
.brand-text-box {
    width: 100%;
    color: white;
    z-index: 2;
    text-align: right;

    direction: rtl;


}


.brand-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.brand-desc {
    color: #e2e2e2;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 15px;

}

.brand-btn {
    background: white;
    color: #1a1a1a;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

/* ===== Car Image Overlapping ===== */
.brand-car {
    position: absolute;
    left: -170px;

    top: 50%;
    transform: translateY(-50%);
    width: 420px;

    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6));
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .brand-card {
        width: 90%;
        padding: 25px;
        min-height: 180px;
        flex-direction: column-reverse;
        text-align: center;
    }

    .brand-text-box {
        width: 100%;
        max-width: 52% !important;
        line-height: 1.8;
        word-wrap: break-word;
    }

    .brand-car {
        position: static;
        transform: none;
        width: 300px;
        margin-bottom: 15px;
    }
}

.brand-card.car-right .brand-car {
    left: auto !important;
    right: -110px !important;
}

.brand-card.car-right {
    flex-direction: row !important;
}

.brand-card.car-right .brand-text-box {
    margin-left: auto !important;
    text-align: left !important;
    direction: ltr !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    max-width: 60% !important;



}

.brand-card:not(.car-right) .brand-text-box {
    max-width: 60% !important;
    text-align: right !important;
    direction: rtl !important;
    margin-right: 0 !important;
    margin-left: auto !important;
}

.logo-item {
    width: 120px;
    height: 120px;
    padding: 15px;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    object-fit: contain;
    background: #fff;
    margin: 0 10px;
}

/*=================================About us ======================================================*/

.about-wrapper {
    direction: rtl;
}

.about-text p,
.about-text li {
    font-size: 14px;
}

@media (min-width: 640px) {

    .about-text p,
    .about-text li {
        font-size: 15px;
    }
}

.brand-logos img {
    filter: grayscale(100%);
}

.brand-logos img:hover {
    filter: grayscale(0%);
}

.brand-logos {
    scroll-behavior: smooth;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ---------------------------------------------------- */
/*  صفحه شعب و مراکز فروش — استایل‌های اختصاصی        */
/* ---------------------------------------------------- */

/* بنر گرادیانت */
.top-custom-banner {
    background: linear-gradient(135deg, #073f2f, #064d3b);
}

/* کارت شعب */
.card-branch {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.branch-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.branch-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 6px;
}

.branch-text {
    font-size: 0.9rem;
    color: #666;
}

.branch-btn {
    background: #064D3B;
    color: #fff;
    border-radius: 8px;
    padding: 10px 0;
    margin-top: 16px;
}

/* سکشن‌ها */
.section-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.section-text {
    color: #444;
    margin-bottom: 20px;
}

.section-img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* لوگوهای برند */
.brand-logo-item {
    cursor: pointer;
    width: max-content;
    padding: 6px;
    border-radius: 10px;
    transition: 0.3s;
}

.brand-logo-item.active {
    border: 2px solid #064D3B;
}

.brand-logo {
    width: 85px;
    transition: 0.3s;
}

/* عکس ماشین */
.brand-preview-img {
    width: 100%;
    border-radius: 14px;
    transition: opacity 0.4s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.branch-card {
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.branch-photo {
    width: 100%;
    height: 289px;
    object-fit: cover;
}

.branch-card-body {
    padding: 26px 24px;
    gap: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;

}

.branch-card-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.branch-card-desc {
    font-size: 0.95rem;
    color: #e6e6e6;
    line-height: 1.9;
    margin-top: 15px;
    white-space: normal;
    display: block;
    text-align: justify;
    min-height: 120px;
    /* مقدار طلایی – دقیقاً مثل L8 */


}

.branch-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.branch-info-row {
    display: flex;
    gap: 10px;
    font-size: 0.92rem;
    white-space: normal;
    line-height: 1.9;
    text-align: justify;
    min-height: 75px;
    /* ارتفاع استاندارد مثل L8 */
}

.branch-info-row img {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.branch-route-btn {
    background: #064d3b;
    padding: 10px 0;
    color: #fff;
    border-radius: 3px;
    text-align: center;
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 600;
    transition: .25s;
    margin-right: auto;
    margin-left: auto;
    width: 135px;
}

.branches-scroll-wrapper {
    overflow: hidden;
    width: 100%;
    padding-bottom: 10px;
}

.branches-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.branches-scroll::-webkit-scrollbar {
    display: none;
}

.branch-card-h {
    min-width: 360px;
    max-width: 360px;
    scroll-snap-align: start;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.branches-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
}

.indicator-dot {
    width: 32px;
    height: 10px;
    background: #d3d3d3;
    /* طوسی تصویر */
    transform: skew(-25deg);
    /* کج‌کردن شبیه عکس */
    opacity: 0.9;
    transition: 0.25s ease-in-out;
    cursor: pointer;
}

.indicator-dot.active {
    background: #064D3B;
    /* سبز برند */
    opacity: 1;
}

.branch-card-h {
    margin-right: 24px;
}

.offers-section {
    width: 100%;
    padding: 167px 0;
    /* پدینگ سکشن */
}

.offers-container {
    max-width: 1200px;
    /* برای هم‌راستایی با کارت‌های شعبات */
    margin: 0 auto;
    padding: 0 20px;
    /* برای هم‌راستایی با کارت‌های شعبات */
}

.offer-item {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 5px;
    /* فاصله بین عکس و متن - این مقدار باز هم کمتر شد */
    margin-bottom: 80px;
    /* فاصله بین آیتم‌ها */
}

/* برای حالتی که عکس راست و متن چپ باشد */
.offer-item.offer-reverse {
    flex-direction: row-reverse;
}

.offer-image img {
    width: 420px;
    /* عرض تصویر */
    max-width: 100%;
    display: block;
}

.offer-content {
    max-width: 480px;
    /* عرض محتوای متنی */
}

.offer-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 15px;
    /* فاصله تیتر از متن */
    color: #064D3B;
    /* رنگ سبز برند */
}

.offer-text {
    line-height: 1.85;
    text-align: justify;
    font-size: 15.5px;
    color: #333;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 992px) {

    .offer-item,
    .offer-item.offer-reverse {
        flex-direction: column;
        text-align: center;
    }

    .offer-image img {
        width: 100%;
        max-width: 350px;
        /* عرض تصویر در موبایل */
        margin: 0 auto 20px auto;
        /* فاصله از متن پایین در موبایل */
    }

    .offer-content {
        max-width: 95%;
    }

    .offer-title {
        font-size: 22px;
    }

    .offer-text {
        font-size: 14.5px;
    }
}


/* --- بخش نمایش برندها (Brand Showcase Section) --- */
.brand-showcase-section {
    width: 100%;
    padding: 60px 0;
    /* پدینگ برای فاصله از بالا و پایین */
    background-color: #f7f7f7;
    /* رنگ پس‌زمینه لایت‌گِری مطابق با تصویر نمونه */
}

.brand-showcase-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: row;
    /* برندها راست – ماشین چپ */
    align-items: center;
    gap: 50px;
}


.brand-main-card {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-main-card-inner {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 550px;
    min-height: 450px;
    justify-content: space-between;
    transition: opacity 0.3s ease-in-out;
}

.brand-image-area {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#main-brand-image {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.brand-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 25px;
    color: #064D3B;
    text-align: center;
}

.view-products-button {
    background-color: #064D3B;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.view-products-button:hover {
    background-color: #04382c;
}


.brand-logos-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    flex-shrink: 0;
    max-width: 280px;

    margin-left: 20px;
    margin-right: 0;
}

.brand-logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    /* عرض ثابت برای هر لوگو */
    height: 120px;
    /* ارتفاع ثابت برای هر لوگو (مربع) */
    border: 2px solid #ccc;
    /* حاشیه پیش‌فرض خاکستری */
    border-radius: 8px;
    /* گوشه‌های گرد مطابق با کارت اصلی */
    cursor: pointer;
    transition: all 0.3s ease;
    /* انیمیشن برای تغییر حاشیه */
    background-color: #fff;
    /* پس‌زمینه سفید برای هر آیتم لوگو */
}

.brand-logo-item img {
    max-width: 80%;
    /* اطمینان از قرار گرفتن لوگو در کادر */
    max-height: 80%;
    display: block;
    object-fit: contain;
}

.brand-logo-item.active {
    border-color: #064D3B;
    /* حاشیه سبز برند وقتی فعال است */
    box-shadow: 0 0 0 3px rgba(6, 77, 59, 0.3);
    /* درخشش سبز ظریف */
}

.brand-logo-item:hover {
    border-color: #064D3B;
    /* تغییر رنگ حاشیه در هاور */
}

/* --- انیمیشن فید (برای تغییر عکس و متن) --- */
.brand-main-card-inner.fading-out {
    opacity: 0;
}

.brand-main-card-inner img {
    transition: transform 0.55s cubic-bezier(0.25, 1.25, 0.35, 1), opacity 0.45s ease;
}

/* خروج تصویر قبلی */
.brand-main-card-inner.slide-out img {
    opacity: 0;
    transform: translateX(80px);
}

/* شروع ورود تصویر جدید – کاملاً بیرون از کادر سمت راست */
.brand-main-card-inner.slide-in-start img {
    opacity: 0;
    transform: translateX(180px);
}

/* انیمیشن ورود: راه رفتن و کمی جلو زدن */
.brand-main-card-inner.slide-in img {
    opacity: 1;
    transform: translateX(-12px);
    /* کمی جلوتر میره (جَست) */
}

/* برگشت نرم به محل دقیق – مثل اینکه ماشین وایستاده */
.brand-main-card-inner.slide-in-final img {
    transform: translateX(0);
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-main-card-inner.fading-in {
    opacity: 0;
    /* شروع نامرئی */
    animation: fadeIn 0.3s forwards;
    /* استفاده از keyframes برای ورود نرم‌تر */
}

/* --- ریسپانسیو (Responsive Design) --- */
@media (max-width: 992px) {
    .brand-showcase-container {
        flex-direction: column;
        /* در موبایل به صورت عمودی (کارت بالا، برندها پایین) */
        gap: 40px;
    }

    .brand-logos-wrapper {
        margin-right: 0;
        /* حذف margin در موبایل */
        grid-template-columns: repeat(4, 1fr);
        /* 4 لوگو در یک سطر برای موبایل */
        max-width: 100%;
        /* عرض کامل در موبایل */
        width: fit-content;
        /* عرض را متناسب با محتوا تنظیم کن */
        margin: 0 auto;
        /* مرکز کردن کادر لوگوها */
        gap: 10px;
    }

    .brand-logo-item {
        width: 80px;
        /* سایز کوچکتر برای لوگوها در موبایل */
        height: 80px;
    }

    .brand-main-card-inner {
        max-width: 95%;
        /* عرض حداکثر 95 درصد در موبایل */
        padding: 20px;
        min-height: 380px;
    }

    .brand-title {
        font-size: 22px;
    }

    .view-products-button {
        padding: 10px 25px;
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    .brand-showcase-section {
        padding: 40px 0;
    }

    .brand-logos-wrapper {
        grid-template-columns: repeat(2, 1fr);
        /* 2 لوگو در یک سطر در صفحات کوچکتر */
        gap: 15px;
    }

    .brand-logo-item {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 400px) {
    .brand-main-card-inner {
        padding: 15px;
        min-height: 300px;
    }

    .brand-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .view-products-button {
        padding: 8px 20px;
        font-size: 14px;
    }
}

/* -----------------------------
   Product Detail – Safe CSS
------------------------------ */

.feature-box {
    background: #f5f5f5;
    font-size: 14px;
    border-radius: 8px;
    padding: 12px 16px;
    /* کمی بیشتر از قبل */
    height: 55px;
    /* ارتفاع ثابت و زیباتر */
    display: flex;
    align-items: center;
    /* عمودی وسط‌چین */
    justify-content: center;
    /* افقی وسط‌چین */
    text-align: center;
}

.thumb-img {
    width: 100%;
    height: 85px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
}

/* فلش‌های مثلثی */
.slide-next,
.slide-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    z-index: 50;
    cursor: pointer;
}

.slide-next {
    right: -30px;
    border-width: 14px 0 14px 18px;
    border-style: solid;
    border-color: transparent transparent transparent #777;
}

.slide-prev {
    left: -30px;
    border-width: 14px 18px 14px 0;
    border-style: solid;
    border-color: transparent #777 transparent transparent;
}

/* حذف فلش‌های پیش‌فرض */
.swiper-button-next,
.swiper-button-prev {
    display: none !important;
}

.thumbSlider .swiper-slide {
    width: auto !important;
    margin-left: 8px !important;
}

.branches-scroll-wrapper {
    overflow: hidden;
    position: relative;
}

.branches-scroll {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.branch-card-h {
    min-width: 300px;
    margin-right: 20px;
}

.indicator-dot.active {
    background: #333;
}
