﻿body {
}

/*style 1 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
/* تنظیمات پایه */
.ncalab-global-header {
    direction: rtl;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    width: 100%;
    box-sizing: border-box;
}

.top-bar-blue {
    background: #0066eb;
    color: white;
    padding: 10px 0;
}

.header-container-center {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

/* استایل منوی بالا */
.top-nav-list {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

    .top-nav-list a {
        color: white;
        text-decoration: none;
        font-size: 13px;
        white-space: nowrap;
    }

/* باکس جستجو */
.search-modern-box {
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 6px 15px;
    display: flex;
    width: 300px;
    border: 1px solid rgba(255,255,255,0.3);
}

.mastertextSearch {
    background: none;
    border: none;
    color: white;
    width: 100%;
    outline: none;
}

    .mastertextSearch::placeholder {
        color: #d1d5db;
    }

/* دکمه ورود */
.loginAccuntCssClass {
    background: white;
    color: #0066eb;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

/* --- بخش جادویی رسپانسیو برای حل مشکل تصاویر --- */
@media (max-width: 850px) {
    .header-container-center {
        display: flex;
        flex-direction: column; /* چیدمان ستونی برای ردیف‌های منظم */
        gap: 12px;
        padding: 10px;
    }

    /* ردیف ۱: ناوبری (به صورت شبکه‌ای برای جلوگیری از پریدن مرکز پشتیبانی) */
    .modern-top-nav {
        width: 100%;
        order: 1;
    }

    .top-nav-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); /* توزیع هوشمندانه گزینه‌ها */
        text-align: center;
        gap: 8px;
    }

        .top-nav-list a {
            font-size: 11px;
        }

    /* ردیف ۲: ترکیب دکمه ورود و سبد خرید در یک خط افقی */
    .user-account-system {
        width: 100%;
        order: 2;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        background: rgba(255,255,255,0.05); /* هایلایت ملایم برای تفکیک */
        padding: 8px;
        border-radius: 12px;
    }

    /* دکمه ورود عریض‌تر و سبد خرید در کنار هم */
    .loginAccuntCssClass {
        flex-grow: 1;
        margin-left: 15px;
        text-align: center;
    }

    /* ردیف ۳: باکس جستجو تمام عرض */
    .search-modern-box {
        width: 100%;
        order: 3;
        margin: 0;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .top-nav-list {
        grid-template-columns: 1fr 1fr; /* در گوشی‌های کوچک، دو به دو نمایش دهد */
    }
}


/*style 2 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/


/* ظرف اصلی منو */
.top-nav-list {
     list-style: none;
     display: flex;
     gap: 25px; /* فاصله بازتر برای خوانایی بیشتر */
     margin: 0;
     padding: 0;
     align-items: center;
 }

/* استایل لینک‌ها */
.top-nav-list li a {
    position: relative;
    color: rgba(255, 255, 255, 0.85); /* سفید با شفافیت ملایم */
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 5px 0;
    transition: all 0.3s ease;
    letter-spacing: -0.2px;
}

/* افکت تغییر رنگ هنگام هاور */
.top-nav-list li a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* ایجاد خط متحرک زیر گزینه‌ها (The Magic Underline) */
.top-nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: #ffffff; /* یا رنگ زرد ملایم اگر با برندتان ست است */
    border-radius: 2px;
    transition: width 0.3s ease;
}

.top-nav-list li a:hover::after {
    width: 100%;
    left: 0; /* حرکت خط از راست به چپ در زبان فارسی */
}

/* استایل خاص برای گزینه "خرید" (اختیاری - برای جلب توجه) */
.top-nav-list li a[href*="buy-process"] {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 6px;
}

.top-nav-list li a[href*="buy-process"]:hover {
    background: rgba(255, 255, 255, 0.2);
}

/*style 3 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/


/* کانتینر اصلی */
.is-logged-in {
    position: relative;
    display: inline-block;
    padding-bottom: 15px; /* ایجاد یک ناحیه حساس برای موس زیر دکمه */
    margin-bottom: -15px; /* خنثی کردن فاصله برای چیدمان */
}

/* نمایش در حالت هاور */
.is-logged-in:hover .dropdown-content-profile {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

/* استایل بدنه زیرمنو */
.dropdown-content-profile {
    position: absolute;
    top: 100%; /* چسبیده به انتهای ناحیه padding کانتینر */
    left: 0;
    background: #ffffff;
    min-width: 200px;
    z-index: 999999;
    border: 1px solid rgba(0, 123, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.25s ease-out;
    overflow: visible; /* تغییر به visible برای نمایش فلش */
}

    /* پل نامرئی: این بخش کلید حل مشکل شماست */
    /* یک لایه شفاف بالای منو ایجاد می‌کند تا اتصال موس قطع نشود */
    .dropdown-content-profile::after {
        content: "";
        position: absolute;
        top: -15px;
        left: 0;
        width: 100%;
        height: 15px;
        background: transparent;
    }

    /* فلش اتصال */
    .dropdown-content-profile::before {
        content: "";
        position: absolute;
        top: -6px;
        left: 20px;
        width: 12px;
        height: 12px;
        background: #ffffff;
        transform: rotate(45deg);
        border-left: 1px solid rgba(0, 123, 255, 0.15);
        border-top: 1px solid rgba(0, 123, 255, 0.15);
        z-index: -1;
    }

/* استایل دکمه‌های داخل لیست */
.profile-item-btn {
    display: block;
    width: 100%;
    padding: 12px 18px;
    border: none;
    background: none;
    text-align: right;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 14px;
    color: #444;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 8px;
}

    .profile-item-btn:hover {
        background-color: #f0f7ff;
        color: #007bff;
    }

/*style 4 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/


/* تنظیمات پایه هدر */
.ncalab-header {
    background: #ffffff !important;
    height: 80px !important;
    width: 100% !important;
    border-bottom: 1px solid #f0f0f0 !important;
    position: relative !important;
    z-index: 99999 !important;
    direction: rtl !important;
    font-family: 'Tahoma', sans-serif; /* ترجیحاً از فونت اصلی سایت استفاده کنید */
}

.header-container-custom {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    padding: 0 20px !important;
}

.logo-section {
    flex: 0 0 auto !important;
    order: 1 !important;
}

.header-spacer {
    flex: 1 !important;
    order: 2 !important;
}

.header-nav-section {
    flex: 0 0 auto !important;
    order: 3 !important;
    display: flex !important;
    align-items: center !important;
}

.logo-img-custom {
    height: 50px !important;
    width: auto !important;
    transition: transform 0.3s ease;
}

    .logo-img-custom:hover {
        transform: scale(1.05);
    }

/* دکمه همبرگری (موبایل) */
.menu-toggle-custom {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 10000005 !important;
}

    .menu-toggle-custom span {
        width: 25px;
        height: 3px;
        background: #2A6DE1;
        border-radius: 2px;
        transition: 0.3s;
    }

/* منوی اصلی دسکتاپ */
.nav-list-custom {
    display: flex !important;
    list-style: none !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-item-custom {
    position: relative !important;
    padding: 25px 5px !important; /* فضای کلیک و هوور */
}

.nav-link-custom {
    color: #444 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    padding: 8px 15px !important;
    border-radius: 8px;
    transition: all 0.3s ease !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item-custom:hover > .nav-link-custom {
    color: #2A6DE1 !important;
    background: #f5f9ff;
}

/* فلش کنار منو */
.menu-arrow-icon {
    width: 8px;
    height: 8px;
    border-right: 2px solid #888;
    border-bottom: 2px solid #888;
    transform: rotate(45deg);
    display: inline-block;
    transition: all 0.3s ease;
    margin-top: -4px;
}

.nav-item-custom:hover .menu-arrow-icon {
    border-color: #2A6DE1;
    transform: rotate(-135deg);
    margin-top: 4px;
}

/* === استایل حرفه‌ای زیرمنو === */
.sub-menu-custom {
    position: absolute !important;
    top: 90% !important; /* کمی فاصله برای انیمیشن ورود */
    right: 0 !important;
    background: #ffffff !important;
    min-width: 230px !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12), 0 5px 15px rgba(0,0,0,0.06) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    padding: 10px !important;
    list-style: none !important;
    /* انیمیشن مخفی‌سازی مدرن */
    display: block !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transform: translateY(10px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    pointer-events: none;
}

.nav-item-custom:hover .sub-menu-custom {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    top: 100% !important;
    pointer-events: auto;
}

/* آیتم‌های داخل زیرمنو */
.sub-menu-custom li a {
    display: block !important;
    padding: 12px 15px !important;
    color: #555 !important;
    text-decoration: none !important;
    text-align: right !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}

    .sub-menu-custom li a:hover {
        background: #f0f7ff !important;
        color: #2A6DE1 !important;
        padding-right: 20px !important; /* افکت کشویی متن */
    }

/* خط جداکننده کوچک در بالای زیرمنو */
.sub-menu-custom::after {
    content: "";
    position: absolute;
    top: -2px;
    right: 20px;
    width: 40px;
    height: 2px;
    background: #2A6DE1;
    border-radius: 2px;
}

/* ریسپانسیو موبایل */
@media (max-width: 850px) {
    .menu-toggle-custom {
        display: flex !important;
    }

    .nav-aside-custom {
        position: fixed !important;
        top: 0 !important;
        left: -300px !important;
        width: 280px !important;
        height: 100vh !important;
        background: #fff !important;
        box-shadow: 5px 0 25px rgba(0,0,0,0.15) !important;
        transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1) !important;
        padding-top: 80px !important;
        z-index: 10000000 !important;
        visibility: hidden;
    }

        .nav-aside-custom.is-open {
            left: 0 !important;
            visibility: visible !important;
        }

    .nav-list-custom {
        flex-direction: column !important;
        gap: 5px !important;
        padding: 10px !important;
    }

    .nav-link-custom {
        border-bottom: 1px solid #f9f9f9 !important;
        justify-content: space-between;
    }

    .sub-menu-custom {
        position: static !important;
        display: none !important;
        box-shadow: none !important;
        background: #fcfcfc !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        border: none !important;
        padding-right: 25px !important;
    }

    .nav-item-custom.is-expanded .sub-menu-custom {
        display: block !important;
    }

    .nav-item-custom {
        padding: 0 !important;
    }
}

/*style 5 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/


/* تنظیمات کلی فوتر */
.ncalab-footer {
    background-color: #1a1c1e;
    color: #e2e8f0;
    padding: 60px 0 0 0;
    font-family: 'Tahoma', sans-serif;
    direction: rtl;
    border-top: 4px solid #00a8cc;
}

.footer-main-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 20px 40px 20px;
    gap: 40px;
}

.footer-section {
    flex: 1;
    min-width: 280px;
    margin-bottom: 20px;
}

.brand-column {
    flex: 1.5;
}

.section-title {
    color: #00d4ff;
    font-size: 1.15rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    font-weight: bold;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 45px;
        height: 2px;
        background: #00d4ff;
    }

.brand-description {
    font-size: 0.9rem;
    line-height: 2;
    color: #94a3b8;
    text-align: justify;
}

.quick-links {
    list-style: none;
    margin: 0;
}

    .quick-links li {
        margin-bottom: 12px;
    }

    .quick-links a {
        color: #e2e8f0;
        text-decoration: none;
        transition: all 0.3s ease;
        display: inline-block;
    }

        .quick-links a:hover {
            color: #00d4ff;
            transform: translateX(-8px);
        }

.contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-item {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    color: #e2e8f0;
}

.footer-icon {
    margin-left: 12px;
    background: rgba(0, 212, 255, 0.1);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.contact-item:hover {
    transform: translateX(-8px);
    color: #00d4ff;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
}

.trust-logos-row {
    display: flex;
    justify-content: center;
    padding-bottom: 40px;
}

.trust-box-glass {
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-link img {
    height: 75px;
    background: white;
    padding: 6px;
    border-radius: 10px;
    transition: transform 0.3s;
}

    .logo-link img:hover {
        transform: translateY(-8px);
    }

.footer-bottom-bar {
    background: #111315;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

    .footer-bottom-bar p {
        font-size: 0.85rem;
        color: #64748b;
        margin: 0;
    }

.brand-text {
    color: #00d4ff;
    font-weight: bold;
}

/* دکمه واتس‌اپ */
.wa-sticky-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    cursor: pointer;
}

.wa-circle-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    position: relative;
    z-index: 5;
}

.wa-svg-icon {
    width: 32px;
    height: 32px;
    fill: white;
}

.wa-pulse-effect {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    z-index: 1;
    animation: wa-ripple 2s infinite;
}

.wa-label-pop {
    position: absolute;
    right: 75px;
    background: rgba(0, 168, 204, 0.95);
    color: white;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

    .wa-label-pop::after {
        content: "";
        position: absolute;
        top: 50%;
        right: -5px;
        transform: translateY(-50%);
        border-width: 5px;
        border-style: solid;
        border-color: transparent transparent transparent rgba(0, 168, 204, 0.95);
    }

.wa-sticky-container:hover .wa-label-pop {
    opacity: 1;
    visibility: visible;
    right: 70px;
}

.wa-sticky-container:hover .wa-circle-btn {
    transform: scale(1.1);
}

@keyframes wa-ripple {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* اصلاحات مخصوص موبایل (Responsive) */
@media (max-width: 768px) {
    .footer-main-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .section-title::after {
        right: 0;
        left: 0;
        margin: 0 auto; /* قرارگیری خط زیر عنوان در وسط */
    }

    .contact-details {
        display: flex;
        flex-direction: column;
        align-items: center; /* مرکزچین کردن ردیف‌های تماس */
    }

    .contact-item {
        justify-content: center; /* مرکزچین کردن محتوای هر ردیف (آیکون + متن) */
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

        .contact-item:hover {
            transform: translateY(-3px); /* در موبایل حرکت به بالا بهتر از حرکت به چپ است */
        }

    .quick-links a:hover {
        transform: translateY(-3px);
    }

    .wa-label-pop {
        display: none;
    }
}

