/* پس‌زمینهٔ نیمه‌شفاف هنگام باز بودن منو */
/* به‌صورت پیش‌فرض */
#header {
    position: relative;
    width: 100%;
    transition: background-color 0.3s ease, padding 0.3s ease;
    z-index: 100; /* بالاتر از باقی المان‌ها */
}

    /* لوگوی sticky (مشکی) را مخفی می‌کنیم */
    #header .sticky-logo {
        display: none;
    }

    /* وقتی کلاس header-scrolled ست شد */
    #header.header-scrolled {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        padding: 0; /* دلخواه */
    }

        /* در حالت Scrolled سایت‌لوگو را مخفی و استیکی‌لوگو را نمایش بده */
        #header.header-scrolled .site-logo {
            display: none !important;
        }

        #header.header-scrolled .sticky-logo {
            display: inline-block !important;
        }

        /* رنگ متن لینک‌ها */
        #header.header-scrolled .menu-links a {
            color: #000 ;
        }
        #header.header-scrolled .menu-item1 a {
            color: #000 !important;
        }
        /* اگر المان‌های دیگری مثل آیتم‌های منو یا آی‌کان دارید، رنگ‌شان را هم این‌جا ست کنید */
        #header.header-scrolled .header-inner a {
            color: #000 ;
        }
/* ۱. بازنویسی برای تمام لینک‌های درون زیرمنو (drop-down) */
header.header-scrolled .drop-down-multilevel a {
    color: inherit !important; /* رنگ ارث‌برده از والد (معمولاً سیاه یا سفید بسته به تم) */
}

/* یا ۲. فقط برای لینک‌های درون کانتینر KalaLink */
header.header-scrolled [id^="KalaLink-"] a {
    color: #fff !important; /* یا هر رنگ دلخواهی که می‌خواهید */
}

/* یا ۳. لینک‌ها را بدون !important اما با specificity بالاتر */
header.header-scrolled .header-inner .sub-menu .row a {
    color: #fff !important;
}

/* specificity بالاتر به خاطر تکرار سلکتور */
header.header-above-content-enabled.header-scrolled > .menu > nav.header-navbar-v2 {
    background-color: #fff;
    position: fixed;
    z-index: 999;
}
.mobile-side-menu {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100vh;
    background: #fff;
    transition: left .3s ease;
    z-index: 1000;
    padding-top: 60px;
    overflow-y: auto;
}

    .mobile-side-menu.open {
        left: 0;
    }

.mobile-submenu {
    list-style: none;
    padding-left: 15px;
    margin: 0;
}

    .mobile-submenu .mobile-item a {
        display: block;
        padding: 8px 16px;
        color: #000;
        text-decoration: none;
    }

.no-scroll {
    overflow: hidden;
}

/*.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease;
    z-index: 900;
  }
  .mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
  }*/
  
  /* پنل منو */
  /*.mobile-side-menu {
    position: fixed;
    top: 0; left: -280px;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
    transition: left .3s ease;
    z-index: 1000;
    padding-top: 60px;*/ /* قد هدر */
    /*overflow-y: auto;
  }*/
  /* حالت باز */
  /*.mobile-side-menu.open {
    left: 0;
  }*/
  
  /* لیست گروه‌ها */
  /*#mobile-menu-list {
    list-style: none;
    margin: 0; padding: 0;
  }
  #mobile-menu-list .mobile-group {
    border-bottom: 1px solid #eee;
  }
  #mobile-menu-list .mobile-group > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background .2s ease;
  }
  #mobile-menu-list .mobile-group > a:hover {
    background: #f5f5f5;
  }*/
  
  /* آیکون چرخان */
  /*#mobile-menu-list .mobile-group > a .caret {
    transition: transform .3s ease;
    font-size: 12px;
  }
  #mobile-menu-list .mobile-group.open > a .caret {
    transform: rotate(90deg);
  }*/
  
  /* زیرمنو (محصولات) */
  /*.mobile-submenu {
    list-style: none;
    margin: 0; padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
  }
  .mobile-submenu.open {*/
    /* ارتفاع بزرگ‌تر از تعداد آیتم‌ها؛ 500px کافیه */
    /*max-height: 500px;
  }*/
  
  /* آیتم‌های زیرمنو */
  /*.mobile-submenu .mobile-item a {
    display: block;
    padding: 10px 40px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: background .2s ease;
  }
  .mobile-submenu .mobile-item a:hover {
    background: #f9f9f9;
  }*/
  
  /* استایل دکمه همبرگر (بدون تغییر) */
  /*.mobile-menu-toggle {*/ /* ... */ /*}*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Vazir, sans-serif;
    direction: rtl;
}

/* ——— HEADER ——— */
header {
    position: relative;
    width: 100%;
    background: #fff;
    z-index: 100;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* لوگو یا عنوان سایت */
.site-branding {
    font-size: 20px;
    font-weight: bold;
}

/* ——— HAMBURGER TOGGLE ——— */
.mobile-menu-toggle {
    display: none; /* فقط موبایل */
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 32px;
    cursor: pointer;
}

    .mobile-menu-toggle span {
        display: block;
        height: 5px;
        background: #333;
        border-radius: 2px;
        transition: transform .3s ease, opacity .3s ease;
    }

    .mobile-menu-toggle.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

/* ——— MOBILE SIDE PANEL ——— */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease;
    z-index: 190;
}

    .mobile-menu-overlay.open {
        opacity: 1;
        visibility: visible;
    }

.mobile-side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
    transition: left .3s ease;
    z-index: 200;
    padding: 60px 0 20px; /* فاصله از بالای هدر */
    overflow-y: auto;
}

    .mobile-side-menu.open {
        left: 0;
    }

/* منوی داخلی */
#mobile-menu-list {
    list-style: none;
    padding: 0;
}

    #mobile-menu-list > li {
        border-bottom: 1px solid #eee;
    }
    /* لینک‌های ثابت */
    #mobile-menu-list .fixed-link > a {
        display: block;
        padding: 14px 20px;
        color: #333;
        font-weight: 600;
        text-decoration: none;
        transition: background .2s ease;
    }

        #mobile-menu-list .fixed-link > a:hover {
            background: #f5f5f5;
        }

/* گروه‌ها (آکاردئون) */
.mobile-group > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
}

    .mobile-group > a:hover {
        background: #f9f9f9;
    }

    .mobile-group > a .caret {
        transition: transform .3s ease;
        font-size: 12px;
    }

.mobile-group.open > a .caret {
    transform: rotate(90deg);
}

/* زیرمنو محصولات */
.mobile-submenu {
    list-style: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
}

    .mobile-submenu.open {
        max-height: 1000px; /* کافی برای باز شدن */
    }

    .mobile-submenu .mobile-item > a {
        display: block;
        padding: 10px 40px;
        font-size: 14px;
        color: #555;
        text-decoration: none;
        transition: background .2s ease;
    }

        .mobile-submenu .mobile-item > a:hover {
            background: #f0f0f0;
        }

/* ——— RESPONSIVE ——— */
@media (max-width: 991px) {
    /* دکمه همبرگر */
    .mobile-menu-toggle {
        display: flex;
    }
    /* منوی دسکتاپ را مخفی کن */
    .header-navbar-v2 {
        display: none;
    }
}




/* ------- BUTTON -------- */
#open-widget-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 56px;
    height: 56px;
    background: #ff9800;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease;
}

    #open-widget-btn:hover {
        transform: scale(1.1);
    }

    #open-widget-btn i {
        font-size: 28px;
        color: #fff;
    }

/* ------- OVERLAY & IFRAME CONTAINER -------- */
#widget-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s ease, visibility .3s;
    z-index: 9999;
}

    #widget-overlay.open {
        visibility: visible;
        opacity: 1;
    }

#widget-iframe-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 90%;
    height: 90%;
    max-height: 800px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

    #widget-iframe-container header {
        height: 44px;
        background: #f5f5f5;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 0 12px;
        border-bottom: 1px solid #ddd;
    }

        #widget-iframe-container header button {
            background: transparent;
            border: none;
            font-size: 24px;
            line-height: 1;
            cursor: pointer;
        }

#widget-iframe {
    width: 100%;
    height: calc(100% - 44px);
    border: none;
}

.btn-preregister {
    font-family: 'IranSans', sans-serif;
    font-weight: 600;
    font-size: 18px;
    padding: 12px 24px;
    background-color: #FF9800; /* یا #28A745 */
    color: #fff;
    border: none;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color .2s ease, transform .1s ease;
}

    .btn-preregister:hover {
        background-color: #E68900; /* تیره‌تر */
        transform: translateY(-2px);
    }

    .btn-preregister:active {
        background-color: #CC7F00;
        transform: translateY(0);
    }


/* CSS: استایل دکمه چت آنلاین */
#open-chat-btn {
    position: fixed;
    bottom: 20px;
    left: 100px; /* فاصله از دکمه‌ی پیش‌ثبت‌نام */
    width: 56px;
    height: 56px;
    background-color: #007BFF; /* آبی روشن برای چت */
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .2s ease, transform .1s ease;
    z-index: 10000;
}

    #open-chat-btn:hover {
        background-color: #006AE6;
        transform: translateY(-2px);
    }

    #open-chat-btn:active {
        background-color: #005ACD;
        transform: translateY(0);
    }

    #open-chat-btn i {
        color: #fff;
        font-size: 24px;
        line-height: 1;
    }

    /* اگر می‌خواهید در دسکتاپ متن نمایش داده شود */
    #open-chat-btn span {
        display: none;
        font-family: 'Vazir', sans-serif;
        font-weight: 600;
        color: #fff;
        font-size: 14px;
        margin-right: 6px;
    }

@media (min-width: 577px) {
    #open-chat-btn {
        width: auto;
        padding: 0 16px;
        border-radius: 28px;
    }

        

        #open-chat-btn span {
            display: inline;
        }
}
/* استایل مشترک برای هر دو دکمه */
#open-widget-btn,
#open-chat-btn,
#open-request-btn {
    position: fixed;
    left: 20px; /* فاصله از لبه چپ */
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .2s ease, transform .1s ease;
    z-index: 10000;
}

/* دکمه‌ی پیش‌ثبت‌نام در پایین‌تر */
#open-widget-btn {
    bottom: 20px; /* 20px تا لبه پایینی */
    background-color: #FF9800;
}

    #open-widget-btn:hover {
        background-color: #E68900;
        transform: translateY(-2px);
    }

    #open-widget-btn:active {
        background-color: #CC7F00;
    }

/* دکمه‌ی چت آنلاین بالاتر از آن */
#open-chat-btn {
    bottom: 140px; /* 56px ارتفاع + 20px فاصله + 14px اضافی */
    background-color: #007BFF;
}

    #open-chat-btn:hover {
        background-color: #006AE6;
        transform: translateY(-2px);
    }

    #open-chat-btn:active {
        background-color: #005ACD;
    }

    /* آیکون داخل دکمه */
    #open-widget-btn i,
    #open-chat-btn i,
    #open-request-btn i {
        color: #fff;
        font-size: 24px;
    }
#open-request-btn {
    position: fixed;
    bottom: 20px;
    left: 20px; /* فاصله از دکمه‌ی پیش‌ثبت‌نام */
    width: 56px;
    height: 56px;
    background-color: #007BFF; /* آبی روشن برای چت */
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .2s ease, transform .1s ease;
    z-index: 10000;
}

    #open-chat-btn:hover {
        background-color: #006AE6;
        transform: translateY(-2px);
    }

#open-request-btn:active {
    background-color: #005ACD;
    transform: translateY(0);
}

#open-request-btn i {
    color: #fff;
    font-size: 24px;
    line-height: 1;
}

    /* اگر می‌خواهید در دسکتاپ متن نمایش داده شود */
#open-request-btn span {
    display: none;
    font-family: 'Vazir', sans-serif;
    font-weight: 600;
    color: #fff;
    font-size: 14px;
    margin-right: 6px;
}

@media (min-width: 577px) {
    #open-request-btn {
        width: auto;
        padding: 0 18px;
        border-radius: 28px;
    }



        #open-request-btn span {
            display: inline;
        }
}

#open-request-btn {
    bottom: 80px; /* 56px ارتفاع + 20px فاصله + 14px اضافی */
    background-color: #007BFF;
}
    #open-request-btn:hover {
        background-color: #006AE6;
        transform: translateY(-2px);
    }




/* ------- OVERLAY & IFRAME CONTAINER -------- */
#request-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s ease, visibility .3s;
    z-index: 9999;
}

    #request-overlay.open {
        visibility: visible;
        opacity: 1;
    }

#request-iframe-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 580px;
    height: 90%;
    max-height: 800px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

    #request-iframe-container header {
        height: 44px;
        background: #f5f5f5;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 0 12px;
        border-bottom: 1px solid #ddd;
    }

        #request-iframe-container header button {
            background: transparent;
            border: none;
            font-size: 24px;
            line-height: 1;
            cursor: pointer;
        }

#request-iframe {
    width: 100%;
    height: calc(100% - 44px);
    border: none;
}

/* استایل‌های عمومی برای آیتم‌های محصول */
.product-item-wrapper {
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* کانتینر تصویر محصول */
.product-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* تصویر محصول */
.product-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* لایه رویی برای افکت fade */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,0.4) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* عنوان محصول */
.product-title {
    text-align: center;
    margin-top: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    transition: color 0.3s ease;
}

/* افکت‌های hover */
.product-item-wrapper:hover .product-image-container {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.product-item-wrapper:hover .product-image {
    transform: scale(1.1);
}

.product-item-wrapper:hover .product-overlay {
    opacity: 1;
}

.product-item-wrapper:hover .product-title {
    color: #007bff; /* یا هر رنگ برند شما */
}

/* انیمیشن برای ظاهر شدن آیتم‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-item-wrapper {
    animation: fadeInUp 0.5s ease forwards;
}

    /* تأخیر انیمیشن برای هر آیتم */
    .product-item-wrapper:nth-child(1) {
        animation-delay: 0.1s;
    }

    .product-item-wrapper:nth-child(2) {
        animation-delay: 0.2s;
    }

    .product-item-wrapper:nth-child(3) {
        animation-delay: 0.3s;
    }

    .product-item-wrapper:nth-child(4) {
        animation-delay: 0.4s;
    }

    .product-item-wrapper:nth-child(5) {
        animation-delay: 0.5s;
    }

    .product-item-wrapper:nth-child(6) {
        animation-delay: 0.6s;
    }

/* برای موبایل */
@media (max-width: 768px) {
    .product-image-container {
        border-radius: 8px;
    }

    .product-title {
        font-size: 14px;
    }

    .product-item-wrapper {
        margin-bottom: 20px;
    }
}
/* افکت Glowing */
.product-image-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff0066, #00ffcc, #ff0066);
    border-radius: 10px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.product-item-wrapper:hover .product-image-container::before {
    opacity: 0.08;
}

/* افکت Parallax */
.product-image-container {
    perspective: 1000px;
}

.product-item-wrapper:hover .product-image {
    transform: rotateY(5deg) scale(1.05);
}


/*//////////////////////////////*/
/* کانتینر اصلی */
.floating-buttons-container {
    position: fixed;
    left: 80px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: baseline;
}

/* Wrapper برای هر دکمه و متن */
.floating-btn-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* متن‌های کنار دکمه */
.floating-btn-label {
    background: white;
    color: #333;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    font-family: 'Vazir', 'IRANSans', Tahoma, sans-serif;
    white-space: nowrap;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

/* دکمه‌های شناور */
.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* رنگ‌های دکمه‌ها */
#open-chat-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

#open-request-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

#open-widget-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

/* آیکون‌ها */
.floating-btn i {
    color: white;
    font-size: 22px;
    transition: transform 0.2s ease;
}

/* افکت‌های Hover */
.floating-btn-wrapper:hover .floating-btn {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

    .floating-btn-wrapper:hover .floating-btn i {
        transform: scale(1.1);
    }

.floating-btn-wrapper:hover .floating-btn-label {
    background: #f8f9fa;
    transform: translateX(-5px);
}

/* برای چت آنلاین */
#open-chat-btn:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.floating-btn-wrapper:hover #open-chat-btn ~ .floating-btn-label,
.floating-btn-wrapper:has(#open-chat-btn):hover .floating-btn-label {
    color: #667eea;
    border-color: #667eea;
}

/* برای ثبت نام خودرو */
#open-request-btn:hover {
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.6);
}

.floating-btn-wrapper:hover #open-request-btn ~ .floating-btn-label,
.floating-btn-wrapper:has(#open-request-btn):hover .floating-btn-label {
    color: #f093fb;
    border-color: #f093fb;
}

/* برای نمایشگاه */
#open-widget-btn:hover {
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.6);
}

.floating-btn-wrapper:hover #open-widget-btn ~ .floating-btn-label,
.floating-btn-wrapper:has(#open-widget-btn):hover .floating-btn-label {
    color: #4facfe;
    border-color: #4facfe;
}

/* حالت کلیک */
.floating-btn:active {
    transform: scale(0.95);
}

/* انیمیشن ظاهر شدن */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.floating-btn-wrapper {
/*    animation: slideInRight 0.5s ease-out forwards;*/
}

    .floating-btn-wrapper:nth-child(1) {
        animation-delay: 0.1s;
    }

    .floating-btn-wrapper:nth-child(2) {
        animation-delay: 0.2s;
    }

    .floating-btn-wrapper:nth-child(3) {
        animation-delay: 0.3s;
    }

/* افکت موج برای دکمه‌ها */
.floating-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.floating-btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }

    20% {
        transform: scale(25, 25);
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

/* برای موبایل */
@media (max-width: 768px) {
    .floating-buttons-container {
        left: 15px;
        bottom: 70px;
    }

    .floating-btn {
        width: 48px;
        height: 48px;
    }

        .floating-btn i {
            font-size: 20px;
        }

    .floating-btn-label {
        visibility:hidden;
        display:none;
        font-size: 12px;
        padding: 8px 16px;
    }
}

/* اگر می‌خواهید در سمت چپ باشد */
.floating-buttons-container.left-side {
    right: auto;
    left: 20px;
}

    .floating-buttons-container.left-side .floating-btn-wrapper {
        flex-direction: row-reverse;
    }
/*اطلاعیه*/
/* استایل‌های مخصوص اطلاعیه‌ها */
.masonry-item {
    width: 50%;
    padding: 15px;
}

.blog-2 {
    background: #fff;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

    .blog-2:hover {
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        transform: translateY(-5px);
    }

.date-box {
    background: #ff6b6b;
    color: white;
    padding: 10px 15px;
    position: absolute;
    top: 20px;
    right: 20px;
    border-radius: 3px;
}

.no-announcements-message {
    text-align: center;
    padding: 100px 20px;
    color: #999;
}

    .no-announcements-message i {
        color: #ddd;
        margin-bottom: 20px;
    }

/* سایدبار */
.recent-post-item {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
}

.recent-post-image {
    margin-left: 10px;
}

    .recent-post-image img {
        border-radius: 3px;
        object-fit: cover;
    }

.recent-post-info a {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.post-date {
    font-size: 12px;
    color: #999;
    display: block;
    margin-top: 5px;
}

.active-category {
    background: #ff6b6b;
    color: white !important;
    padding: 5px 10px;
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 768px) {
    .masonry-item {
        width: 100%;
    }
}
/* ضروری برای عملکرد Masonry */
.masonry {
    position: relative;
}

.grid-sizer,
.masonry-item {
    width: 50%;
}

.masonry-item {
    float: right; /* برای RTL */
    padding: 15px;
    box-sizing: border-box;
}

/* اطمینان از clear float */
.masonry:after {
    content: '';
    display: block;
    clear: both;
}

/* برای موبایل */
@media (max-width: 768px) {
    .grid-sizer,
    .masonry-item {
        width: 100%;
    }
}

/* استایل‌های اضافی */
.blog-2 {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

    .blog-2:hover {
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        transform: translateY(-5px);
    }

.blog-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

    .blog-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
/* 📱 استایل‌های حرفه‌ای هدر موبایل */
@media (max-width: 768px) {
    /* هدر اصلی */
    #header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(20px) saturate(180%) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
        padding: 12px 16px !important;
        z-index: 1000 !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

        /* حالت اسکرول شده هدر */
        #header.header-scrolled {
            background: rgba(255, 255, 255, 0.98) !important;
            backdrop-filter: blur(25px) saturate(200%) !important;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
        }

    /* دکمه همبرگر مدرن */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 32px !important;
        height: 32px !important;
        cursor: pointer !important;
        padding: 6px !important;
        border-radius: 10px !important;
/*        background: rgba(0, 0, 0, 0.08) !important;*/
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        z-index: 1001 !important;
    }

        .mobile-menu-toggle span {
            display: block !important;
            height: 3px !important;
            background: linear-gradient(135deg, #333, #666) !important;
            border-radius: 2px !important;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
            transform-origin: center !important;
        }

        .mobile-menu-toggle:hover {
            background: rgba(0, 0, 0, 0.12) !important;
            transform: scale(1.05) !important;
        }

        .mobile-menu-toggle.open span:nth-child(1) {
            transform: translateY(10px) rotate(45deg) !important;
        }

        .mobile-menu-toggle.open span:nth-child(2) {
            opacity: 0 !important;
            transform: scale(0) !important;
        }

        .mobile-menu-toggle.open span:nth-child(3) {
            transform: translateY(-10px) rotate(-45deg) !important;
        }

    /* پنل سایدبار موبایل - طراحی شیشه‌ای */
    .mobile-side-menu {
        position: fixed !important;
        top: 0 !important;
        left: -280px !important;
        width: 280px !important;
        height: 100vh !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(30px) saturate(200%) !important;
        border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
        box-shadow: 16px 0 40px rgba(0, 0, 0, 0.2) !important;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 999 !important;
        padding-top: 70px !important;
        overflow-y: auto !important;
    }

        .mobile-side-menu.open {
            left: 0 !important;
            box-shadow: 20px 0 50px rgba(0, 0, 0, 0.25) !important;
        }

    /* overlay پشت منو */
    .mobile-menu-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0, 0, 0, 0.5) !important;
        backdrop-filter: blur(8px) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.3s ease !important;
        z-index: 998 !important;
    }

        .mobile-menu-overlay.open {
            opacity: 1 !important;
            visibility: visible !important;
        }

    /* لیست منوی موبایل */
    #mobile-menu-list {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 20px !important;
    }

        #mobile-menu-list > li {
            border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
        }

        /* لینک‌های ثابت */
        #mobile-menu-list .fixed-link > a {
            display: flex !important;
            align-items: center !important;
            padding: 16px 0 !important;
            color: #333 !important;
            font-weight: 600 !important;
            text-decoration: none !important;
            transition: all 0.2s ease !important;
            font-size: 16px !important;
            position: relative !important;
        }

            #mobile-menu-list .fixed-link > a:hover {
                color: #db2d2e !important;
                transform: translateX(4px) !important;
            }

    /* گروه‌های آکاردئونی */
    .mobile-group > a {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 16px 0 !important;
        color: #333 !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
    }

        .mobile-group > a:hover {
            color: #db2d2e !important;
        }

        .mobile-group > a .caret {
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
            font-size: 12px !important;
            color: #666 !important;
        }

    .mobile-group.open > a .caret {
        transform: rotate(90deg) !important;
    }

    /* زیرمنو محصولات */
    .mobile-submenu {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 0 0 20px !important;
    }

        .mobile-submenu .mobile-item > a {
            display: block !important;
            padding: 12px 0 !important;
            color: #555 !important;
            font-size: 14px !important;
            text-decoration: none !important;
            transition: all 0.2s ease !important;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
            transition: all 0.2s ease !important;
        }

            .mobile-submenu .mobile-item > a:hover {
                color: #db2d2e !important;
                transform: translateX(4px) !important;
            }

    /* لوگو در هدر موبایل */
    .header-logo {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 1001 !important;
    }

        .header-logo a {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
        }

        .header-logo img {
            height: 28px !important;
            transition: transform 0.3s ease !important;
        }

            .header-logo img:hover {
                transform: scale(1.05) !important;
            }

    /* منوی دسکتاپ در موبایل مخفی */
    .header-navbar-v2 {
        display: none !important;
    }
}

/* 📱 بهینه‌سازی برای صفحه‌نمایش‌های کوچک‌تر */
@media (max-width: 480px) {
    #header {
        padding: 10px 12px !important;
    }

    .mobile-side-menu {
        width: 260px !important;
        left: -260px !important;
    }

    #mobile-menu-list {
        padding: 0 16px !important;
    }

        #mobile-menu-list .fixed-link > a,
        .mobile-group > a {
            padding: 14px 0 !important;
            font-size: 15px !important;
        }

    .mobile-submenu .mobile-item > a {
        padding: 10px 0 !important;
        font-size: 13px !important;
    }
}
