.header-section body {
    font-family: 'Vazirmatn', sans-serif !important;
    background-color: #f9fafb;
    overflow-x: hidden;
    margin: 0;
}

/* هدر */
.header-section .header-bar {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}


.header-section .mobile-logo-container {
    display: none; /* مخفی در حالت عادی */
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb; /* خط جداکننده */
    margin-bottom: 16px; /* فاصله از دکمه‌های منو */
}

.header-section .mobile-logo-container .site-logo {
    height: 36px;
}

.header-section .mobile-logo-container .site-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: #111827;
    margin-right: 8px;
	
}


.header-section .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* توزیع عناصر در عرض صفحه */
    gap: 16px;

    flex-wrap: nowrap; /* جلوگیری از شکستن خط در نمایشگرهای بزرگ */
	
}

.header-section .logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* جلوگیری از کوچک شدن لوگو */
}

.header-section .site-logo {
    height: 40px;
    transition: opacity 0.3s ease;
}

.header-section .site-logo:hover {
    opacity: 0.9;
}

.header-section .site-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #111827;
    margin-right: 8px;
}

/* دکمه انتخاب استان */
.header-section #btnLocation {
    background-color: #2563eb !important;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 400;
    transition: background-color 0.3s ease;
    flex-shrink: 0; /* جلوگیری از کوچک شدن دکمه */
	margin-right: 50px; /* جابجایی ۲۰ پیکسل به چپ */
}

.header-section #btnLocation:hover {
    background-color: #1e40af;
}

/* منوی همبرگری */
.header-section .hamburger-menu,
.header-section .close-menu {
    display: none;
    font-size: 1.5rem;
    color: #111827;
    cursor: pointer;
    transition: color 0.3s ease;
    flex-shrink: 0;
    order: 3;
    position: static;
}

.header-section .hamburger-menu:hover,
.header-section .close-menu:hover {
    color: #2563eb;
}

/* استایل منوی کشویی */
.header-section .header-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-grow: 1;
}

.header-section .header-actions .btn {
    border-radius: 8px;
    padding: 8px 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    text-align: center;
}

.header-section .header-actions .btn:hover {
    transform: translateY(-1px);
}

/* assets/css/my-css/header.css */
.header-section .btn-modern-purple {
    background-color: transparent; /* پس‌زمینه شفاف در حالت عادی */
    color: #000000; /* رنگ متن مشکی */
}

.header-section .btn-modern-purple:hover {
    background-color: #7c3aed; /* پس‌زمینه بنفش در حالت هاور */
    color: #ffffff; /* رنگ متن سفید در حالت هاور */
}

.header-section .btn-primary {
    background-color: #2563eb;
    color: #ffffff;
}

.header-section .btn-primary:hover {
    background-color: #1e40af;
}

.header-section .btn-secondary {
    background-color: #6b7280;
    color: #ffffff;
}

.header-section .btn-secondary:hover {
    background-color: #4b5563;
}

.header-section .btn-success {
    background-color: #10b981;
    color: #ffffff;
}

.header-section .btn-success:hover {
    background-color: #059669;
}

.header-section .btn-danger {
    background-color: #ef4444;
    color: #ffffff;
}

.header-section .btn-danger:hover {
    background-color: #dc2626;
}

/* لیست استان‌ها و شهرها */
.header-section #provinceList,
.header-section #cityList {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    max-height: 400px;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-section #provinceList button,
.header-section #cityList button {
    border-radius: 8px;
    padding: 8px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #111827;
    font-size: 0.875rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-section #provinceList button:hover,
.header-section #cityList button:hover {
    background: #eff6ff;
    border-color: #2563eb;
}

.header-section #provinceList button[data-id="all"] {
    background: #eff6ff;
    font-weight: 500;
    border-color: #2563eb;
}

.header-section .selected-city {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

.header-section .selected-city .remove-city {
    position: absolute;
    top: 4px;
    left: 4px;
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
}

/* اسکرول‌بار */
.header-section #provinceList::-webkit-scrollbar,
.header-section #cityList::-webkit-scrollbar {
    width: 6px;
}

.header-section #provinceList::-webkit-scrollbar-thumb,
.header-section #cityList::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 8px;
}

.header-section #provinceList::-webkit-scrollbar-track,
.header-section #cityList::-webkit-scrollbar-track {
    background: #f9fafb;
}

/* توست */
.header-section .toast-container {

    position: fixed;
    bottom: 60px;
    right: 30px;
    z-index: 1055;
}
.toast .btn-close {
    display: none !important;
}


.header-section .bg-primary {
    background: #10b981 !important;
    border: none !important;
}


@media (min-width: 992px) {
    .hamburger-menu, .close-menu {
        display: none !important;
    }
}

/* واکنش‌گرایی */
@media (max-width: 992px) {
     .header-section .header-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 0 16px;
    }

    .header-section .header-actions {
        display: none;
        flex-direction: column;
        width: 70%;
        background: #ffffff;
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        padding: -100px 16px 16px 16px; /* 100px فاصله از بالا */
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transition: right 0.3s ease;
        align-items: flex-start; /* محتوای منو از بالا شروع شود */
        justify-content: flex-start; /* جلوگیری از وسط‌چین عمودی */
    }

    .header-section .header-actions.active {
        display: flex;
        right: 0;
    }

    .header-section .header-actions.active .mobile-logo-container {
        display: flex !important;
    }

    .header-section .mobile-logo-container {
        width: 100%; /* اطمینان از پر شدن عرض */
       display: none;
    align-items: center;
    padding: 16px 16px 10px 16px; /* کاهش padding-bottom برای جابجایی خط به بالا */
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 36px; /* افزایش margin-bottom برای حفظ فاصله با دکمه‌ها */
    z-index: 1001;
    direction: rtl;
    }



.header-section .mobile-logo-container .site-title {
        font-family: 'Vazirmatn', sans-serif !important;
        font-size: 1.125rem !important;
        font-weight: 500 !important;
        color: #111827 !important;
        margin-right: 8px !important;
        display: inline-block !important;
        text-align: right;
    }

    .header-section .header-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }


    .header-section .hamburger-menu {
        display: block;
    }

    .header-section .header-actions.active + .close-menu {
        display: block;
    }

    .header-section .header-actions.active + .close-menu + .hamburger-menu {
        display: none;
    }


    .header-section #btnLocation {
        margin: 0;
        order: 2; /* دکمه انتخاب استان در وسط */
        flex-grow: 0; /* عدم کشیده شدن */
        width: auto; /* اندازه متناسب با متن */
        text-align: center; /* متمرکز کردن متن */
        padding: 8px 16px; /* پدینگ استاندارد */
    }

    .header-section .logo-container {
        order: 1; /* لوگو و عنوان در سمت چپ */
        flex-shrink: 0; /* جلوگیری از کوچک شدن */
        display: flex;
        align-items: center;
    }

    .header-section .site-logo {
        height: 36px;
    }

    .header-section .site-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 768px) {
    .header-section .modal-dialog {
        margin: 0.5rem;
        max-width: 90%;
    }

    .header-section #provinceList button,
    .header-section #cityList button {
        font-size: 0.85rem;
        padding: 6px;
    }
}

@media (max-width: 576px) {
    .header-section .site-logo {
        height: 32px;
    }

    .header-section .site-title {
        font-size: 1rem;
    }

    .header-section #btnLocation {
        font-size: 0.75rem;
        padding: 6px 12px;
		
    }
	
	
}
