/* ============================================================
   فنجان - استایل مدرن و حرفه‌ای (نسخه بازطراحی شده)
   بر اساس رنگ‌های موجود در :root
   نسخه: 3.0.0 - مینیمال، سریع و مدرن
   ============================================================ */

/* ============================================================
   1. ریست و پایه
   ============================================================ */
:root {
    --brand-gradient: linear-gradient(135deg, #13b588 0%, #0e8a6a 100%);
    --error-gradient: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
}
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'primary-font', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.8;
    direction: rtl;
    overflow-x: hidden;
}
.iconMHeader i, .iconMHeader span{
    color:var(--gray-500);
}
/* اسکرول بار سفارشی مدرن */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--brand), var(--brand-hover));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-hover);
}

/* ============================================================
   2. انتخاب متن
   ============================================================ */
::selection {
    background: var(--brand);
    color: #fff;
}

/* ============================================================
   3. هدر و ناوبری (بدون شیشه‌گری سنگین)
   ============================================================ */
#header .header-body {
    background: var(--color-white);
    border-bottom: 1px solid var(--border-secondary);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

#header .header-container {
    padding: 0 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* لوگو */
.header-logo img {
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.header-logo img:hover {
    transform: scale(1.05) rotate(-2deg);
}

/* آیتم‌های منو */
.header-nav-main .nav-pills .dropdown-item {
    font-weight: 500;
    color: var(--gray-700);
    padding: 8px 18px;
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
}

.header-nav-main .nav-pills .dropdown-item i {
    margin-left: 8px;
    font-size: 1.1rem;
    color: var(--brand);
    transition: all 0.2s ease;
}

.header-nav-main .nav-pills .dropdown-item:hover {
    color: var(--brand);
    background: var(--brand-25);
}

.header-nav-main .nav-pills .dropdown-item:hover i {
    transform: scale(1.1) translateX(-2px);
}

/* لینک فعال */
.header-nav-main .nav-pills .dropdown-item.active {
    color: var(--brand);
    background: var(--brand-50);
    font-weight: 600;
}

/* دکمه منوی موبایل */
.header-btn-collapse-nav {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    background: transparent;
    color: var(--gray-700);
    transition: all 0.2s ease;
}

.header-btn-collapse-nav:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

/* دکمه ورود (پرایمری مدرن) */
.btn-primary {
    background: var(--brand-gradient);
    border: none;
    border-radius: 12px;
    padding: 10px 28px;
    font-weight: 600;
    color: var(--text-on-brand);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 16px rgba(19, 181, 136, 0.25);
}

.btn-primary:hover {
    background: var(--brand-hover);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(19, 181, 136, 0.35);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

/* انتخابگر شعبه */
#branchesDropDownHeader {
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    padding: 8px 36px 8px 14px;
    font-size: 0.875rem;
    background-color: var(--color-white);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--gray-800);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
}

#branchesDropDownHeader:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-100);
    outline: none;
}

/* ============================================================
   4. منوی موبایل
   ============================================================ */
.menu-mobile-wrapper {
    background: var(--color-white);
    border-bottom: 1px solid var(--gray-200);
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.menu-mobile-wrapper .btn-outline-primary {
    border-color: var(--gray-200);
    color: var(--gray-700);
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.menu-mobile-wrapper .btn-outline-primary:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-25);
}

.menuNavMobile1 .btn-outline-primary {
    border-color: var(--brand);
    color: var(--brand);
}

.menuNavMobile1 .btn-outline-primary:hover {
    background: var(--brand);
    color: var(--text-on-brand);
}

/* ============================================================
   5. فوتر پایین موبایل (نوار ناوبری پایین)
   ============================================================ */
.navbarM {
    background: var(--color-white);
    border-top: 1px solid var(--gray-200);
    padding: 8px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
}

.navbarM_up {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 4px 8px;
}

.navbarM_up a,
.navbarM_up button {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--gray-500);
    font-size: 0.65rem;
    transition: all 0.2s ease;
    padding: 6px 8px;
    border-radius: 12px;
    gap: 4px;
    background-color: transparent;
    border: none;
    width: 20%;
    text-align: center;
}

.navbarM_up a i,
.navbarM_up button i {
    font-size: 1.3rem;
    transition: all 0.2s ease;
}

.navbarM_up a:hover,
.navbarM_up button:hover {
    color: var(--brand);
    background: var(--brand-25);
}

.navbarM_up a:hover i,
.navbarM_up button:hover i {
    transform: translateY(-3px) scale(1.1);
}

.navbarM_up .logoMfooter {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -20px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbarM_up .logoMfooter:hover {
    transform: scale(1.1) rotate(-4deg);
    box-shadow: 0 8px 30px rgba(19, 181, 136, 0.4);
}

.navbarM_down {
    padding: 6px 16px 12px;
    text-align: center;
    font-size: 0.7rem;
    color: var(--gray-500);
}

/* ============================================================
   6. کارت‌ها و بخش‌ها
   ============================================================ */
.section .card {
    border: 1px solid var(--border-secondary) !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    overflow: hidden;
    background: var(--color-white);
}

.section .card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

/* عنوان خوش‌آمدگویی */
.titleWelCome1 h1 {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 2.2rem;
}

.titleWelCome1 h1 i {
    color: var(--brand);
    background: var(--brand-25);
    padding: 8px;
    border-radius: 12px;
}

/* ============================================================
   7. کارت‌های محصول
   ============================================================ */
.product-card {
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border-secondary);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border-color: var(--brand);
}

.product-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover img {
    transform: scale(1.06);
}

.product-card .p-2 {
    padding: 20px !important;
}

.product-card .title-div {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.product-card .price-text {
    font-weight: 700;
    color: var(--brand);
    font-size: 1.2rem;
}

.product-card .text-muted.text-decoration-line-through {
    color: var(--gray-500) !important;
    font-size: 0.85rem;
}

/* ============================================================
   8. کارت‌های مقالات
   ============================================================ */
.blog-card-ajax {
    text-decoration: none !important;
    display: block;
    transition: all 0.3s ease;
}

.blog-card-ajax .card {
    border: 1px solid var(--border-secondary) !important;
    border-radius: 20px !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: var(--color-white);
}

.blog-card-ajax .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border-color: var(--brand) !important;
}

.blog-card-ajax .card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.blog-card-ajax .card:hover img {
    transform: scale(1.05);
}

.blog-card-ajax .card-title {
    color:var(--brand) !important;
    font-weight: 700;
}

.blog-card-ajax .read-more {
    color: var(--brand) !important;
    font-weight: 600;
}

.blog-card-ajax .read-more i {
    transition: all 0.3s ease;
}

.blog-card-ajax .card:hover .read-more i {
    transform: translateX(-6px);
}

/* ============================================================
   9. دکمه‌ها
   ============================================================ */
.btn-outline-primary {
    border: 2px solid var(--brand);
    color: var(--brand);
    background: transparent;
    border-radius: 12px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-outline-primary:hover {
    background: var(--brand);
    color: var(--text-on-brand);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(19, 181, 136, 0.3);
}

.btn-outline-primary:active {
    transform: translateY(0) scale(0.98);
}

.button.button-empty {
    background: transparent;
    border: 2px solid var(--brand);
    color: var(--brand);
    padding: 12px 36px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    display: inline-block;
}

.button.button-empty:hover {
    background: var(--brand);
    color: var(--text-on-brand);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(19, 181, 136, 0.3);
}

/* ============================================================
   10. نقشه
   ============================================================ */
.mapWelcome {
    border-radius: 20px;
    overflow: hidden;
    min-height: 420px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.leaflet-popup-content-wrapper {
    border-radius: 16px !important;
    padding: 0 !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    padding: 12px !important;
}

.leaflet-popup-content .btn-danger {
    background: var(--error-gradient);
    border: none;
    border-radius: 10px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.leaflet-popup-content .btn-danger:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.3);
}

/* ============================================================
   11. مودال جستجو (با شیشه‌گری خفیف)
   ============================================================ */
.custom-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.custom-modal-container {
    background: var(--color-white);
    border-radius: 24px;
    max-width: 640px;
    width: 92%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
    transform: translateY(-30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-modal-overlay.active .custom-modal-container {
    transform: translateY(0) scale(1);
}

.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-secondary);
}

.custom-modal-header h3 {
    margin: 0;
    font-weight: 700;
    color: var(--gray-900);
}

.custom-close-modal {
    background: var(--gray-100);
    border: none;
    font-size: 28px;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    transition: all 0.3s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-close-modal:hover {
    background: var(--error);
    color: #fff;
    transform: rotate(90deg);
}

.search-input-wrapper {
    padding: 20px 28px 12px;
    display: flex;
    gap: 12px;
}

.custom-search-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: 14px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--gray-25);
}

.custom-search-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-100);
    background: var(--color-white);
}

.search-icon-btn {
    padding: 14px 24px;
    background: var(--brand-gradient);
    border: none;
    border-radius: 14px;
    color: var(--text-on-brand);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon-btn svg {
    width: 20px;
    height: 20px;
}

.search-icon-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(19, 181, 136, 0.3);
}

.custom-results-list {
    list-style: none;
    padding: 8px 16px 24px;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
}

.custom-results-list li {
    padding: 14px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.custom-results-list li:hover {
    background: var(--brand-25);
    color: var(--brand);
}

.custom-results-list li .bold {
    font-weight: 600;
}

.custom-results-list .custom-loading {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.custom-results-list .custom-no-results {
    text-align: center;
    color: var(--gray-500);
    padding: 40px 0;
}

/* ============================================================
   12. مودال ورود
   ============================================================ */
.modal-content {
    border-radius: 24px !important;
    border: none !important;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15) !important;
}

.modal-header {
    border-bottom: 1px solid var(--border-secondary);
    padding: 24px 28px;
}

.modal-header .modal-title {
    font-weight: 700;
    color: var(--gray-900);
}

.modal-header .close {
    font-size: 28px;
    color: var(--gray-600);
    opacity: 1;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-header .close:hover {
    background: var(--gray-100);
    color: var(--error);
    transform: rotate(90deg);
}

.modal-body {
    padding: 28px;
}

.divInputTel input {
    border: 2px solid var(--gray-200);
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--gray-25);
    width: 100%;
}

.divInputTel input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-100);
    background: var(--color-white);
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--border-secondary);
}

.modal-footer .btn-primary {
    padding: 14px;
    font-weight: 600;
    border-radius: 14px;
}

.modal-footer .btn-outline-danger {
    border: 2px solid var(--error);
    color: var(--error);
    border-radius: 14px;
    padding: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-footer .btn-outline-danger:hover {
    background: var(--error);
    color: var(--text-on-error);
    transform: scale(1.02);
}

/* ============================================================
   13. فوتر اصلی
   ============================================================ */
#footer {
    background: var(--color-white);
    border-top: 1px solid var(--border-secondary);
}

#footer .footer-copyright {
    background: transparent;
    padding: 24px 0;
}

.socialIconsFoooter {
    display: flex;
    gap: 12px;
    align-items: center;
}

.socialIconFoooter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gray-50);
    color: var(--gray-600);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
}

.socialIconFoooter:hover {
    background: var(--brand-gradient);
    color: var(--text-on-brand);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(19, 181, 136, 0.3);
}

/* ============================================================
   14. ابزارهای کمکی
   ============================================================ */
.brandColor {
    color: var(--brand);
}

.brand-bg {
    background: var(--brand-gradient);
}

.brand-bg-light {
    background: var(--brand-25);
}

.border-brand {
    border-color: var(--brand) !important;
}

.text-brand {
    color: var(--brand);
}

.fw-500 {
    font-weight: 500;
}

.fw-600 {
    font-weight: 600;
}

.fw-700 {
    font-weight: 700;
}

/* ============================================================
   15. انیمیشن‌ها
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================================
   16. واکنش‌گرایی (Responsive)
   ============================================================ */
@media (max-width: 991.98px) {
    #header .header-body {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .header-nav-main .nav-pills .dropdown-item {
        padding: 12px 18px;
    }

    .product-card img {
        height: 200px;
    }
}

@media (max-width: 767.98px) {
    .product-card img {
        height: 180px;
    }

    .product-card .p-2 {
        padding: 16px !important;
    }

    .product-card .title-div {
        font-size: 0.95rem;
    }

    .product-card .price-text {
        font-size: 1.05rem;
    }

    .custom-modal-container {
        width: 98%;
        max-height: 90vh;
    }

    .custom-modal-overlay {
        padding-top: 60px;
    }

    .search-input-wrapper {
        flex-direction: column;
        padding: 16px 16px 8px;
    }

    .search-icon-btn {
        width: 100%;
        padding: 14px;
    }

    .mapWelcome {
        min-height: 320px;
    }
}

@media (max-width: 575.98px) {
    .product-card img {
        height: 160px;
    }

    .section .card {
        border-radius: 16px !important;
        padding: 16px !important;
    }

    .titleWelCome1 h1 {
        font-size: 1.6rem;
    }

    .modal-dialog {
        margin: 10px;
    }

    .custom-modal-overlay {
        padding-top: 40px;
    }
}

/* ============================================================
   17. کلاس‌های اضافی برای بهبود
   ============================================================ */
.gap-1 {
    gap: 4px;
}
.gap-2 {
    gap: 8px;
}
.gap-3 {
    gap: 12px;
}
.gap-4 {
    gap: 16px;
}
.gap-5 {
    gap: 24px;
}

.rounded-12 {
    border-radius: 12px;
}
.rounded-16 {
    border-radius: 16px;
}
.rounded-20 {
    border-radius: 20px;
}
.rounded-24 {
    border-radius: 24px;
}

.shadow-hover {
    transition: all 0.3s ease;
}
.shadow-hover:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.transition-all {
    transition: all 0.3s ease;
}
.transition-fast {
    transition: all 0.15s ease;
}
.transition-slow {
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.overflow-hidden {
    overflow: hidden;
}

.object-fit-cover {
    object-fit: cover;
}
.object-fit-contain {
    object-fit: contain;
}

/* ============================================================
   18. استایل‌های سفارش و سبد خرید
   ============================================================ */
#basketDiv {
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-secondary);
    transition: all 0.3s ease;
    overflow-y: hidden;
    padding-bottom: 12px;
}

#basketDiv .basket-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-secondary);
    font-weight: 700;
    color: var(--gray-900);
}

#basketDiv .basket-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

#basketDiv .basket-item:hover {
    background: var(--brand-25);
}

#basketDiv .basket-item .item-name {
    font-weight: 500;
    color: var(--gray-800);
}

#basketDiv .basket-item .item-price {
    color: var(--brand);
    font-weight: 700;
}

#basketDiv .basket-item .item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

#basketDiv .basket-item .item-quantity button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--gray-200);
    background: transparent;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

#basketDiv .basket-item .item-quantity button:hover {
    background: var(--brand);
    color: var(--text-on-brand);
    border-color: var(--brand);
}

#basketDiv .basket-total {
    padding: 20px 24px;
    border-top: 2px solid var(--brand);
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: var(--gray-900);
}

#basketDiv .basket-total .total-price {
    color: var(--brand);
    font-size: 1.3rem;
}

#basketDiv .basket-actions {
    padding: 16px 24px;
    display: flex;
    gap: 12px;
}

#basketDiv .basket-actions .btn {
    flex: 1;
    padding: 14px;
    border-radius: 14px;
    font-weight: 600;
    text-align: center;
}

/* ============================================================
   19. استایل‌های پروفایل کاربر
   ============================================================ */
.dashboard-card {
    background: var(--color-white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--border-secondary);
    cursor: pointer;
}

.dashboard-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--brand);
}

.dashboard-card .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--brand-25);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 12px;
}

.dashboard-card .card-title {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.dashboard-card .card-subtitle {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* استایل‌های جدول سفارشات */
.styled-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
}

.styled-table tr {
    background: var(--gray-25);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.styled-table tr:hover {
    background: var(--brand-25);
}

.styled-table td {
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.styled-table td:first-child {
    border-radius: 12px 0 0 12px;
}

.styled-table td:last-child {
    border-radius: 0 12px 12px 0;
}

.divBox {
    background: var(--color-white);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border-secondary);
    transition: all 0.3s ease;
}

.divBox:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border-color: var(--brand);
}

.divBoxRound {
    border-radius: 16px;
}

.branchTiltelInorder {
    font-weight: 700;
    color: var(--brand);
    font-size: 1.05rem;
}

/* ============================================================
   20. استایل‌های فرم‌ها
   ============================================================ */
.form-control-modern {
    border: 2px solid var(--gray-200);
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: var(--gray-25);
    color: var(--gray-800);
    width: 100%;
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-100);
    background: var(--color-white);
}

.form-control-modern::placeholder {
    color: var(--gray-400);
}

.form-label-modern {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
    display: block;
}

.form-group-modern {
    margin-bottom: 20px;
}

/* ============================================================
   21. استایل‌های پیام‌ها و اعلان‌ها
   ============================================================ */
.toast-container {
    direction: rtl;
}

.toast {
    border-radius: 16px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1) !important;
    font-family: var(--font-primary) !important;
}

.toast-success {
    background: var(--brand-gradient) !important;
}

.toast-error {
    background: var(--error-gradient) !important;
}

.toast-info {
    background: var(--brand-gradient) !important;
}

.swal2-popup {
    border-radius: 24px !important;
    font-family: var(--font-primary) !important;
}

.swal2-confirm {
    background: var(--brand-gradient) !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    padding: 12px 36px !important;
    box-shadow: 0 4px 16px rgba(19, 181, 136, 0.3) !important;
}

.swal2-confirm:hover {
    transform: scale(1.02) !important;
}

.swal2-cancel {
    border-radius: 12px !important;
    font-weight: 600 !important;
    padding: 12px 36px !important;
}

/* ============================================================
   22. استایل‌های دکمه شناور سبد خرید
   ============================================================ */
#float-basket-btn {
    position: fixed;
    bottom: 100px;
    left: 24px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: var(--text-on-brand);
    border: none;
    box-shadow: 0 8px 30px rgba(19, 181, 136, 0.35);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

#float-basket-btn.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

#float-basket-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(19, 181, 136, 0.5);
}

#float-basket-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--error-gradient);
    color: var(--text-on-error);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   23. استایل‌های صفحه محصول
   ============================================================ */
.product-detail-gallery {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.product-detail-gallery img {
    width: 100%;
    height: auto;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-detail-gallery img:hover {
    transform: scale(1.03);
}

.product-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.product-detail-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--brand);
}

.product-detail-price .crossed {
    font-size: 1rem;
    color: var(--gray-500);
    text-decoration: line-through;
    font-weight: 400;
    margin-right: 12px;
}

.product-detail-description {
    color: var(--gray-700);
    line-height: 1.9;
}

.product-detail-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.product-detail-options .option-btn {
    padding: 10px 20px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    background: transparent;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.product-detail-options .option-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.product-detail-options .option-btn.active {
    border-color: var(--brand);
    background: var(--brand-gradient);
    color: var(--text-on-brand);
}

/* ============================================================
   24. استایل‌های صفحه فروشگاه
   ============================================================ */
.shop-filters {
    background: var(--color-white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-secondary);
    position: sticky;
    top: 100px;
}

.shop-filters .filter-title {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.shop-filters .filter-group {
    margin-bottom: 20px;
}

.shop-filters .filter-group .filter-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
    display: block;
}

.shop-filters .filter-group .filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    cursor: pointer;
    color: var(--gray-600);
    transition: all 0.2s ease;
}

.shop-filters .filter-group .filter-option:hover {
    color: var(--brand);
}

.shop-filters .filter-group .filter-option input[type="checkbox"] {
    accent-color: var(--brand);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ============================================================
   25. استایل‌های صفحه مقالات
   ============================================================ */
.blog-hero {
    background: var(--brand-gradient);
    padding: 80px 0;
    border-radius: 24px;
    color: var(--text-on-brand);
    text-align: center;
    margin-bottom: 48px;
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.blog-hero p {
    opacity: 0.9;
    font-size: 1.15rem;
}

.blog-card-full {
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--border-secondary);
    margin-bottom: 28px;
}

.blog-card-full:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border-color: var(--brand);
}

.blog-card-full img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.blog-card-full .blog-content {
    padding: 28px;
}

.blog-card-full .blog-content .blog-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.blog-card-full .blog-content .blog-meta {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.blog-card-full .blog-content .blog-excerpt {
    color: var(--gray-700);
    line-height: 1.9;
}

/* ============================================================
   26. استایل‌های نقشه و موقعیت
   ============================================================ */
#map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    min-height: 420px;
}

#mapAdd {
    border-radius: 20px;
    overflow: hidden;
    min-height: 320px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.leaflet-control-zoom {
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

.leaflet-control-zoom a {
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    font-size: 18px !important;
    background: var(--color-white) !important;
    color: var(--gray-700) !important;
    transition: all 0.2s ease !important;
}

.leaflet-control-zoom a:hover {
    background: var(--brand-gradient) !important;
    color: var(--text-on-brand) !important;
}

.map-search-box {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 420px;
    background: var(--color-white);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    padding: 10px 16px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.map-search-box input {
    flex: 1;
    border: none;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--gray-800);
    background: transparent;
    outline: none;
}

.map-search-box input::placeholder {
    color: var(--gray-400);
}

.map-search-box button {
    background: var(--brand-gradient);
    border: none;
    color: var(--text-on-brand);
    padding: 8px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-weight: 600;
}

.map-search-box button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(19, 181, 136, 0.3);
}

/* ============================================================
   27. استایل‌های لودینگ و اسکلتون
   ============================================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-overlay .bounce-loader {
    display: flex;
    gap: 10px;
}

.loading-overlay .bounce-loader .bounce1,
.loading-overlay .bounce-loader .bounce2,
.loading-overlay .bounce-loader .bounce3 {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand-gradient);
    animation: bounce-loader 1.4s infinite ease-in-out both;
}

.loading-overlay .bounce-loader .bounce1 {
    animation-delay: -0.32s;
}

.loading-overlay .bounce-loader .bounce2 {
    animation-delay: -0.16s;
}

.loading-overlay .bounce-loader .bounce3 {
    animation-delay: 0;
}

@keyframes bounce-loader {
    0%,
    80%,
    100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 12px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============================================================
   28. استایل‌های دکمه اسکرول به بالا
   ============================================================ */
.scroll-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: var(--text-on-brand);
    border: none;
    box-shadow: 0 8px 24px rgba(19, 181, 136, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.scroll-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 36px rgba(19, 181, 136, 0.4);
}

/* ============================================================
   29. استایل‌های حالت چاپ
   ============================================================ */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* ============================================================
   30. استایل‌های دسترسی‌پذیری
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ============================================================
   31. استایل‌های ریسپانسیو بهبودیافته
   ============================================================ */
@media (max-width: 1199.98px) {
    .product-card img {
        height: 220px;
    }

    .blog-card-full img {
        height: 280px;
    }
}

@media (max-width: 991.98px) {
    .shop-filters {
        position: relative;
        top: 0;
        margin-bottom: 28px;
    }

    .product-card img {
        height: 200px;
    }

    .blog-hero {
        padding: 48px 0;
    }

    .blog-hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 767.98px) {
    .product-card img {
        height: 180px;
    }

    .blog-card-full img {
        height: 220px;
    }

    .product-detail-title {
        font-size: 1.4rem;
    }

    .product-detail-price {
        font-size: 1.3rem;
    }

    #map {
        min-height: 320px;
    }

    #mapAdd {
        min-height: 260px;
    }

    .map-search-box {
        width: 95%;
        max-width: 95%;
    }

    .dashboard-card {
        padding: 20px;
    }

    .dashboard-card .card-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

@media (max-width: 575.98px) {
    .product-card img {
        height: 160px;
    }

    .blog-card-full .blog-content {
        padding: 20px;
    }

    .blog-card-full .blog-content .blog-title {
        font-size: 1.05rem;
    }

    #basketDiv .basket-item {
        flex-wrap: wrap;
        gap: 10px;
    }

    #basketDiv .basket-item .item-quantity {
        width: 100%;
        justify-content: flex-end;
    }

    .scroll-to-top {
        width: 44px;
        height: 44px;
        font-size: 16px;
        bottom: 100px;
        right: 16px;
    }
}

/* ============================================================
   32. کلاس‌های یوتیلیتی نهایی
   ============================================================ */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bg-gradient-brand {
    background: var(--brand-gradient);
}

.bg-gradient-error {
    background: var(--error-gradient);
}

.border-gradient-brand {
    border-image: var(--brand-gradient) 1;
}

.hover-lift {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-lift:hover {
    transform: translateY(-6px) scale(1.02);
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 40px rgba(19, 181, 136, 0.15);
}

/* ============================================================
   33. رفع باگ‌های خاص
   ============================================================ */
/* رفع مشکل اسکرول در موبایل */
body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
}

/* رفع مشکل نمایش منو در موبایل */
.menu-mobile-wrapper.collapse {
    display: none;
}

.menu-mobile-wrapper.collapse.show {
    display: block;
}

/* رفع مشکل فوتر در موبایل */
@media (max-width: 767.98px) {
    .main {
        padding-bottom: 110px !important;
    }
}

/* ============================================================
   34. استایل‌های سفارشی برای ویجت‌ها
   ============================================================ */
.select2-container--default .select2-selection--single {
    border-radius: 14px !important;
    border: 2px solid var(--gray-200) !important;
    height: 50px !important;
    padding: 4px 14px !important;
    background: var(--gray-25) !important;
}

.select2-container--default .select2-selection--single:focus {
    border-color: var(--brand) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px !important;
    color: var(--gray-800) !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
}

.select2-dropdown {
    border-radius: 14px !important;
    border-color: var(--gray-200) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
}

.flatpickr-calendar {
    border-radius: 16px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid var(--border-secondary) !important;
}

.flatpickr-day.selected {
    background: var(--brand-gradient) !important;
    border-color: var(--brand) !important;
}

.flatpickr-day.selected:hover {
    background: var(--brand-hover) !important;
    border-color: var(--brand-hover) !important;
}

/* ============================================================
   35. استایل‌های انیمیشن ورود
   ============================================================ */
@keyframes slideInRight {
    from {
        transform: translateX(40px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-40px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slide-right {
    animation: slideInRight 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-slide-up {
    animation: slideInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* دلی‌های انیمیشن */
.delay-1 {
    animation-delay: 0.1s;
}
.delay-2 {
    animation-delay: 0.2s;
}
.delay-3 {
    animation-delay: 0.3s;
}
.delay-4 {
    animation-delay: 0.4s;
}
.delay-5 {
    animation-delay: 0.5s;
}

/* ============================================================
   36. بهبود نمایش تصاویر
   ============================================================ */
.img-hover-zoom {
    overflow: hidden;
}

.img-hover-zoom img {
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.img-hover-zoom:hover img {
    transform: scale(1.08);
}

.img-rounded {
    border-radius: 16px;
}

.img-shadow {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* ============================================================
   37. استایل‌های نوار پیشرفت
   ============================================================ */
.progress-modern {
    height: 8px;
    border-radius: 12px;
    background: var(--gray-200);
    overflow: hidden;
}

.progress-modern .progress-bar {
    background: var(--brand-gradient);
    border-radius: 12px;
    transition: width 0.6s ease;
}

/* ============================================================
   38. استایل‌های بج و تگ
   ============================================================ */
.badge-modern {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-modern.badge-brand {
    background: var(--brand-25);
    color: var(--brand);
}

.badge-modern.badge-error {
    background: var(--error-50);
    color: var(--error);
}

.badge-modern.badge-success {
    background: #dcfce7;
    color: #16a34a;
}

/* ============================================================
   39. استایل‌های پایانی - فاصله‌گذاری و نظم
   ============================================================ */
.mt-6 {
    margin-top: 4rem;
}
.mb-6 {
    margin-bottom: 4rem;
}
.my-6 {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.pt-6 {
    padding-top: 4rem;
}
.pb-6 {
    padding-bottom: 4rem;
}
.py-6 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.card {
    margin-bottom: 8px;
}

.modal-isolated-wrapper .search-icon-btn {
    background: none !important;
    left: 40px !important;
    width: fit-content;
}

/* ============================================================
   پایان فایل CSS - طراحی مدرن و حرفه‌ای
   ============================================================ */