﻿:root {
    --kara-primary: #AFC90A;
    --kara-dark: #363535;
    --kara-border: #eef0f2;
    --smooth: all 0.25s ease-in-out;
   
   
}
@font-face {
    font-family: 'KaraFont';
    src: url('../fonts/IRANSansXUltraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'KaraFont';
    src: url('../fonts/IRANSansXRegular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'KaraFont';
    src: url('../fonts/IRANSansXMedium.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'KaraFont';
    src: url('../fonts/IRANSansXBlack.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

 
 
body {
    font-family: 'KaraFont', sans-serif !important;
    background-color: #F7F8FA;
    color: var(--kara-dark);
    font-size: 14px;
}

a {
    text-decoration: none;
    transition: var(--smooth);
}

/* ==================== خط اول هدر ==================== */
.top-header-line {
    padding: 15px 0;
    border-bottom: 1px solid var(--kara-border);
}

.search-stretched {
    width: 100%;
    position: relative;
}

    .search-stretched .form-control {
        border-radius: 8px;
        border: 1px solid #ced4da;
        padding: 10px 15px 10px 45px;
        font-size: 13.5px;
    }

    .search-stretched .search-btn {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: #6c757d;
    }

.phone-badge {
    background-color: var(--kara-primary);
    color: #000000;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.login-icon-btn {
    font-size: 22px;
    color: var(--kara-dark);
    display: inline-flex;
    align-items: center;
}

/* ==================== خط دوم هدر و مگامنو عمودی ==================== */
.bottom-header-line {
    background-color: #ffffff;
    border-bottom: 2px solid var(--kara-border);
    position: relative;
}

.category-trigger {
    background-color: var(--kara-dark);
    color: #ffffff !important;
    padding: 12px 20px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

    .category-trigger:hover {
        background-color: #222;
    }

.nav-link-menu {
    color: var(--kara-dark);
    font-weight: 600;
    padding: 12px 15px !important;
    display: inline-block;
}

    .nav-link-menu:hover {
        color: var(--kara-primary);
    }

/* استایل جدید مگامنو عمودی و دو قسمتی */
.mega-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #ffffff;
    z-index: 999;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-top: 3px solid var(--kara-primary);
    padding: 0;
    display: none;
}

.mega-menu-container {
    display: flex;
    min-height: 320px;
}

/* ستون عمودی سطح اول */
.mega-side-cats {
    width: 250px;
    background-color: #f8f9fa;
    border-left: 1px solid var(--kara-border);
    padding: 15px 0;
}

.mega-side-item {
    padding: 12px 20px;
    color: var(--kara-dark);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--smooth);
}

    .mega-side-item:hover, .mega-side-item.active {
        background-color: #ffffff;
        color: var(--kara-primary);
        padding-right: 25px;
    }

/* محتوای لایه دوم منوها */
.mega-main-content {
    flex: 1;
    padding: 25px;
}

.mega-tab-content {
    display: none;
    animation: fadeInMenu 0.3s ease-in-out forwards;
}

    .mega-tab-content.active {
        display: block;
    }

@keyframes fadeInMenu {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mega-menu-title {
    font-weight: bold;
    color: #000;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

.mega-menu-links li a {
    color: #555;
    display: block;
    padding: 6px 0;
    font-size: 13px;
}

    .mega-menu-links li a:hover {
        color: var(--kara-primary);
        padding-right: 5px;
    }

/* ==================== خط مشتریان بندانگشتی اسکرولی با کنترلر ==================== */
.customers-thumbnail-section {
    padding: 15px 0;
    background-color: #fafafa;
    border-bottom: 1px solid var(--kara-border);
}

.scroll-container-outer {
    position: relative;
    padding: 0 45px;
}

.scroll-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 5px;
    scroll-behavior: smooth;
    scrollbar-width: none; /* حذف اسکرول‌بار در فایرفاکس */
}

    .scroll-wrapper::-webkit-scrollbar {
        display: none; /* حذف اسکرول‌بار در کروم */
    }

.customer-thumb-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 85px;
}

.customer-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 2.5px solid var(--kara-primary);
    padding: 3px;
    background-color: #fff;
    object-fit: cover;
    transition: var(--smooth);
}

.customer-thumb-item:hover .customer-circle {
    transform: scale(1.08);
}

.customer-name {
    font-size: 11.5px;
    margin-top: 6px;
    color: var(--kara-dark);
    font-weight: 500;
}

/* دکمه‌های ناوبری اسلایدر مشتریان */
.nav-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background-color: #ffffff;
    border: 1px solid var(--kara-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    z-index: 5;
    color: var(--kara-dark);
    transition: var(--smooth);
}

    .nav-scroll-btn:hover {
        background-color: var(--kara-primary);
        color: #000;
        border-color: var(--kara-primary);
    }

    .nav-scroll-btn.btn-right {
        right: 5px;
    }

    .nav-scroll-btn.btn-left {
        left: 5px;
    }

/* ==================== ساختار اسلایدر ۲/۳ و کادر تخفیف ۱/۳ ==================== */
.hero-showcase-section {
    padding: 30px 0;
}

.slider-two-thirds {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

    .slider-two-thirds .carousel-item img {
        height: 380px;
        object-fit: cover;
    }

.discount-one-third {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.discount-badge {
    background-color: red;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 5px;
    align-self: flex-start;
    margin-bottom: 10px;
}

.discount-img {
    max-height: 140px;
    object-fit: contain;
    margin-bottom: 15px;
}

.discount-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 10px;
}

.discount-desc {
    font-size: 12.5px;
    color: #666;
    line-height: 1.6;
}
/* ==================== استایل‌های   محصولات و بنرها ==================== */
.style-product-card {
    background-color: #ffffff;
    transition: var(--smooth);
    border-radius: 12px;
}

    .style-product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.08) !important;
    }

.product-thumb-img {
    border-radius: 16px !important;
    background-color: #f8f9fa;
    width: 100%;
    height: 180px;
    object-fit: contain;
    padding: 10px;
}

.product-card-title {
    font-size: 13.5px;
    font-weight: bold;
    line-height: 1.6;
    color: var(--kara-dark);
    margin: 0;
}

/* ==================== استایل پیجینیشن مستقل بالا سمت چپ ==================== */
.custom-dots-indicator-top {
    display: flex;
    gap: 6px;
}

    .custom-dots-indicator-top button {
        width: 8px;
        height: 8px;
        padding: 0;
        margin: 0;
        cursor: pointer;
        background-color: #ccc; /* رنگ نقطه غیرفعال */
        border: none;
        border-radius: 50%;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

        .custom-dots-indicator-top button.active {
            width: 24px;
            border-radius: 6px;
            background-color: var(--kara-primary) !important;
        }

.promo-banner-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: var(--smooth);
}

    .promo-banner-wrapper:hover {
        transform: scale(1.015);
        box-shadow: 0 6px 18px rgba(0,0,0,0.07);
    }

.promo-img {
    height: 160px;
    object-fit: fill;
}
.product-composite-card-modern {
    background-color: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

    .product-composite-card-modern:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07) !important;
    }

/* استایل تگ a والد تصاویر */
.product-quad-grid-modern .img-wrapper {
    display: flex;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(145deg, #f8f9fa, #f1f3f5);
    border: 1px solid rgba(0, 0, 0, 0.04);
    align-items: center;
    justify-content: center;
    padding: 1px;
    cursor: pointer; 
    transition: all 0.4s ease;
}

    .product-quad-grid-modern .img-wrapper img {
        max-width: 100%;
        max-height: 100%;
        height: 180px;
        object-fit: fill;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

.product-composite-card-modern:hover .img-wrapper img {
    transform: scale(1.06);
}

.product-composite-card-modern:hover .img-wrapper {
    background: #ffffff;
    border-color: var(--kara-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.text-description-two-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.7;
    max-width: 70%;
}

@media (max-width: 576px) {
    .text-description-two-lines {
        max-width: 100%;
    }
}

.custom-numeric-pagination .page-link {
    color: var(--kara-dark);
    border: 1px solid var(--kara-border);
    margin: 0 3px;
    border-radius: 8px;
    font-weight: bold;
    padding: 6px 12px;
    transition: var(--smooth);
}

.custom-numeric-pagination .page-item.active .page-link {
    background-color: var(--kara-primary) !important;
    border-color: var(--kara-primary) !important;
    color: #000 !important;
}



/* استایل دکمه بیشتر کنار عنوان اصلی */
.view-more-news-link {
    border: 1px solid var(--kara-border) !important;
    background-color: #ffffff !important;
    color: var(--kara-dark) !important;
    transition: var(--smooth);
}

    .view-more-news-link:hover {
        background-color: var(--kara-primary) !important;
        color: #000 !important;
        border-color: var(--kara-primary) !important;
    }

.news-card-wrapper {
    position: relative;
    margin-bottom: 40px;
}

.news-img-container {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    background-color: #f8f9fa;
}

    .news-img-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.news-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #ffffff;
    color: #000;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 5;
}

.news-content-oval {
    position: absolute;
    bottom: -35px;
    left: 5%;
    right: 5%;
    width: 90%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 24px;
    padding: 14px 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.news-title-line {
    font-size: 13.5px;
    font-weight: 800;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .news-title-line a {
        color: var(--kara-dark);
        text-decoration: none;
        transition: var(--smooth);
    }

.news-excerpt-line {
    font-size: 11px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-card-wrapper:hover .news-img-container img {
    transform: scale(1.05);
}

.news-card-wrapper:hover .news-content-oval {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.09) !important;
    border-color: var(--kara-primary);
}

.news-card-wrapper:hover .news-title-line a {
    color: var(--kara-primary);
}




/* ==================== استایل باکس جداکننده و اطلاعات سریع ==================== */
.quick-info-divider {
    position: relative;
    z-index: 5;
}

    .quick-info-divider .bg-white {
        background-color: #ffffff !important;
        transition: var(--smooth);
    }

        /* جلوه ظریف سایه لایت */
        .quick-info-divider .bg-white:hover {
            box-shadow: 0 8px 20px rgba(0,0,0,0.04) !important;
        }

/* هماهنگی فونت ضخیم برای اعداد تماس */
.fw-extrabold {
    font-weight: 900;
}

.shadow-2xs {
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

/* واکنش‌گرایی موبایل برای بخش اطلاعات */
@media (max-width: 768px) {
    .quick-info-divider .row > div {
        border-bottom: 1px dashed #eee;
        padding-bottom: 15px;
    }

        .quick-info-divider .row > div:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }
}



/* ==================== استایل اختصاصی فوتر پیشرفته ==================== */
.footer-title {
    color: #ffffff;
    font-size: 15px;
}
    /* خط زرد رنگ زیر عناوین فوتر */
    .footer-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 40px;
        height: 2px;
        background-color: var(--kara-primary);
    }

/* افکت لینک‌های دسترسی سریع */
.footer-links-list li a {
    transition: all 0.3s ease;
    display: inline-block;
}

    .footer-links-list li a:hover {
        color: var(--kara-primary) !important;
        transform: translateX(-5px);
    }

/* دکمه‌های آیکون شبکه‌های اجتماعی */
.social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

    .social-icon-btn:hover {
        color: #fff;
        transform: translateY(-3px);
    }

    /* رنگ اختصاصی برندها هنگام هاور */
    .social-icon-btn.insta:hover {
        background-color: #e1306c;
    }

    .social-icon-btn.telegram:hover {
        background-color: #0088cc;
    }

    .social-icon-btn.whatsapp:hover {
        background-color: #25d366;
    }

    .social-icon-btn.bale:hover {
        background-color: #1976d2;
    }

    .social-icon-btn.rubika:hover {
        background-color: #8e24aa;
    }

.footer-cert-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ==================== استایل اختصاصی صفحه جزئیات نرم‌افزار ==================== */
.product-gallery-carousel {
    max-height: 320px;
    background-color: #f8f9fa;
}

    .product-gallery-carousel .carousel-item img {
        height: 320px;
        /*object-fit: cover;*/
    }

/* افکت لایک و دیس لایک تعاملی */
.action-box button, .action-box a {
    transition: all 0.2s ease-in-out;
}

    .action-box button:hover, .action-box a:hover {
        transform: translateY(-2px);
    }

/* چیدمان تمیز تصاویر مابین متون توضیحات کامپکت */
.product-full-content p {
/*    text-align: justify;*/
    font-size: 14.5px;
    color: #4a5568;
}

.product-full-content img {
    max-height: 400px;
    width: auto;
    max-width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-radius: 12px;
    text-align:center;
}

/* فونت سنگین وزن برای قیمت محصول */
.fw-black {
    font-weight: 900;
}

/* استایل کامنت‌ها */
.comment-item-box p {
    color: #5a6578;
}

/* استایل مخفی‌سازی المان‌ها هنگام چاپ برای خروجی تمیز PDF چاپ مشخصات */
@media print {
    .main-footer, .quick-info-divider, .carousel-control-next,
    .carousel-control-prev, .carousel-indicators, .action-box,
    .product-reviews-section, .btn, .nav, header.border-bottom span {
        display: none !important;
    }

    .product-full-content {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
}
