

/* -------------------- Product Groups Section -------------------- */
.products-category-section {
    background-color: #fff;
    /* رنگ زمینه کمی متفاوت */
}

.product-grid-placeholder {
    text-align: center;
    padding: 50px 0;
    font-style: italic;
    color: #888;
    border: 1px dashed #ccc;
    /* یک قاب برای نشان دادن محل محتوا */
    border-radius: 8px;
}

/* -------------------- Shared Styles for Two-Column Layouts -------------------- */
.content-two-columns {
    display: flex;
    align-items: center;
    gap: 60px;
    /* فاصله بین دو ستون */
}

.text-content {
    flex: 1;
}

.text-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    direction: rtl;
    text-align: justify;
}

.image-content {
    flex: 1;
    text-align: center;
    /* برای وسط قرار گرفتن تصویر */
}

.image-content img {
    max-width: 100%;
    height: 300px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    /* سایه جذاب‌تر */
}

/* -------------------- About Us Section (Specific Layout) -------------------- */
.about-us-section {
    background-color: #f9f9f9;

}

/* چیدمان برای "درباره ما": متن راست، تصویر چپ */
.text-right-image-left-layout {
    flex-direction: row-reverse;
    /* عناصر به ترتیب معکوس نمایش داده شوند. (متن در HTML اول است، پس در نمایش راست قرار می‌گیرد) */
}

/* -------------------- Brands Section -------------------- */
.brands-section {
    background-color: #fff;
}

.brands-grid-placeholder {
    text-align: center;
    padding: 50px 0;
    font-style: italic;
    color: #888;
    border: 1px dashed #ccc;
    border-radius: 8px;
}

/* -------------------- Why Kimiya Rang Hadaf Section (Specific Layout) -------------------- */
.why-us-section {
    background-color: #f9f9f9;
}

/* چیدمان برای "چرا شرکت کیمیا رنگ هدف؟": متن چپ، تصویر راست */
.text-left-image-right-layout {
    flex-direction: row;
    /* عناصر به ترتیب عادی نمایش داده شوند. (متن در HTML اول است، پس در نمایش چپ قرار می‌گیرد) */
}



/* -------------------- Responsive Design (واکنش‌گرا) -------------------- */

@media (max-width: 992px) {

    .content-two-columns {
        flex-direction: column;
        /* ستون‌ها زیر هم قرار گیرند */
        text-align: center;
        /* محتوای ستون‌ها وسط‌چین شود */
    }

    /* ترتیب در موبایل برای "درباره ما" (متن راست، تصویر چپ): تصویر بالا، متن پایین */
    .text-right-image-left-layout .image-content {
        order: -1;
        /* تصویر در بالا قرار گیرد */
        margin-bottom: 30px;
        /* فاصله از متن پایین */
    }

    .text-right-image-left-layout .text-content {
        order: 0;
        /* متن در ترتیب عادی */
    }


    /* ترتیب در موبایل برای "چرا شرکت کیمیا رنگ هدف؟" (متن چپ، تصویر راست): تصویر بالا، متن پایین */
    /* در این حالت (متن چپ، تصویر راست) هم در موبایل می خواهیم تصویر بالا و متن پایین باشد */
    .text-left-image-right-layout .image-content {
        order: -1;
        /* تصویر در بالا قرار گیرد */
        margin-bottom: 30px;
        /* فاصله از متن پایین */
    }

    .text-left-image-right-layout .text-content {
        order: 0;
        /* متن در ترتیب عادی */
    }


    .section-common {
        padding: 50px 0;
    }

    .section-title,
    .section-title-left {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .section-title::after {
        right: 50%;
        /* خط زیر عنوان به وسط بیاید */
        transform: translateX(50%);
    }

    .section-title-left {
        text-align: center;
        /* عنوان سمت چپ در موبایل وسط‌چین شود */
    }

    .section-title-left::after {
        right: 50%;
        /* خط زیر عنوان سمت چپ در موبایل به وسط بیاید */
        transform: translateX(50%);
    }



}


/* -------------------- اسلایدر (Slider) -------------------- */

/* --------------- Wrapper اصلی اسلایدر (که دکمه‌ها و خود اسلایدر را شامل می‌شود) --------------- */
.brands-slider-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --------------- استایل‌دهی به دکمه‌های قبلی و بعدی Swiper (خارج از اسلایدر) --------------- */
.brands-slider-wrapper .swiper-button-prev,
.brands-slider-wrapper .swiper-button-next {
    position: static !important;
    width: 55px;
    height: 55px;
    background-color: rgba(255, 255, 255, 1);
    color: #555;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.brands-slider-wrapper .swiper-button-prev:hover,
.brands-slider-wrapper .swiper-button-next:hover {
    background-color: #007bff;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* --------------- استایل‌دهی به آیکون‌های فلش (داخل دکمه‌ها) --------------- */
.swiper-button-prev:after,
.swiper-button-next:after {
    font-family: 'swiper-icons';
    font-size: 15px;
    font-weight: bold;
    transform: scaleX(-1);
}

/* --------------- خود اسلایدر (کانتینر Swiper) --------------- */
.brands-slider {
    width: 100%;
    max-width: 1000px;
}

/* --------------- اسلایدهای تکی (هر برند) --------------- */
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

/* --------------- تصاویر برندها داخل اسلایدها --------------- */
.brands-slider img {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    width: 100%;
    height: auto;
    opacity: 0.8;
    /* !!! transform: scale از اینجا حذف شد !!! */
    transition: opacity 0.3s ease; /* فقط opacity اینجا ترنزیشن داشته باشه */
}

/* --------------- نقاط pagination (پایین اسلایدر) --------------- */
.brands-slider .swiper-pagination {
    margin-top: 25px;
    text-align: center;
    position: relative;
    bottom: 0;
}

.brands-slider .swiper-pagination-bullet {
    background: #ccc;
    opacity: 0.6;
    margin: 0 6px;
    width: 12px;
    height: 12px;
    transition: all 0.3s ease;
}

.brands-slider .swiper-pagination-bullet-active {
    background: #007bff;
    opacity: 1;
    width: 14px;
    height: 14px;
}

/* استایل کلی لینک */
.brands-slider .swiper-slide a {
    display: block; /* برای اینکه کل ناحیه Div و Img قابل کلیک باشد */
    text-align: center;
    text-decoration: none; /* حذف زیرخط */
    color: inherit; /* متن داخل لینک رنگ خودش را حفظ کند */
    /* نیازی به transition روی خود a نیست */
}

/* استایل‌دهی به محصول دسته‌بندی (شامل تصویر و عنوان) */
.product-category-item {
    transition: transform 0.3s ease; /* فقط اینجا ترنزیشن transform داشته باشه */
}

/* استایل‌دهی به عنوان */
.cat-title {
    display: block;
    padding-top: 20px;
    font-weight: bold;
    color: #333;
}

/* -------------------- بخش اصلی هاور: وقتی که A هاور می‌شود -------------------- */

/* وقتی روی کل لینک (a) هاور می‌شود، تصویر را استایل بده */
.brands-slider .swiper-slide a:hover img {
    opacity: 1; /* وضوح کامل تصویر */
}

/* !!! تغییر اصلی اینجا اعمال می‌شود !!! */
.brands-slider .swiper-slide a:hover .product-category-item {
    transform: scale(1.05); /* فقط اینجا بزرگنمایی اتفاق می‌افته */
}

/* وقتی روی کل لینک (a) هاور می‌شود، عنوان را استایل بده (اگر وجود داشت) */
.brands-slider .swiper-slide a:hover .cat-title {
    color: #007bff; /* رنگ عنوان را به آبی تغییر دهید یا هر رنگی که می‌خواهید */
    font-weight: bolder; /* عنوان را پررنگ‌تر کنید */
}


/* --------------- Media Queries برای ریسپانسیو کردن --------------- */
@media (max-width: 1200px) {
    .brands-slider-wrapper {
        gap: 20px;
        padding: 0 15px;
    }
    .brands-slider img {
        max-width: 200px;
        max-height: 200px;
    }
}

@media (max-width: 992px) {
    .brands-slider-wrapper {
        gap: 15px;
    }
    .brands-slider img {
        max-width: 140px;
        max-height: 70px;
    }
}

@media (max-width: 768px) {
    .brands-slider-wrapper {
        flex-wrap: nowrap;
        flex-direction: row;
        align-items: center;
    }

    .brands-slider {
        flex: 1;
    }

    .brands-slider-wrapper .swiper-button-prev,
    .brands-slider-wrapper .swiper-button-next {
        width: 50px;
        height: 50px;
        font-size: 10px;
        flex-shrink: 0;
    }
    .brands-slider .swiper-pagination {
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .brands-slider img {
        max-width: 100px;
        max-height: 100px;
        margin-bottom: -20px;
    }
    .brands-slider .swiper-pagination {
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
  .brands-slider .swiper-pagination {
    display: none;
  }
}


