/* ============================================================
   NAVBAR + ANNOUNCEMENT + HERO
   ============================================================ */

.top-bar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.top-bar-wrapper.top-bar-static {
    position: static;
    z-index: auto;
}

.navbar-sabz {
    background: #EEF2F7;
    padding: 14px 0;
    box-shadow: var(--shadow-sm);
}

.navbar-sabz .nav-link {
    color: #444;
    font-weight: 500;
    margin: 0 6px;
    border-radius: 8px;
    padding: 6px 14px !important;
    transition: background .2s;
}

.navbar-sabz .nav-link:hover,
.navbar-sabz .nav-link.active {
    background: var(--green-700);
    color: #fff !important;
}

.navbar-sabz .navbar-nav .nav-item {
    font-size: 15px;
    padding: 5px;
}

.navbar-sabz .navbar-nav .nav-item .nav-link {
    margin: 0;
}

.brand-logo {
    color: #585555;
    font-weight: 800;
    font-size: 1.3rem;
    text-decoration: none;
    margin-left: 10px;
}

.brand-logo i {
    color: var(--green-300);
    margin-left: 6px;
}

.brand-logo-img {
    height: 36px;
    width: auto;
    vertical-align: middle;
    border-radius: 6px;
    margin-bottom: 6px;
}


/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announcement-bar {
    background: linear-gradient(90deg, var(--accent), #f5a623);
    color: #fff;
    padding: 8px 12px;
    text-align: center;
    font-weight: 600;
    font-size: .85rem;
    line-height: 1.4;
}

.announcement-bar i {
    margin-left: 6px;
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(123, 196, 160, .25), transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1,
.hero-title {
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero p,
.hero-subtitle {
    color: var(--green-100);
    font-size: clamp(.95rem, 2vw, 1.15rem);
    max-width: 600px;
    line-height: 1.8;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: .85rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.hero-badge i {
    color: var(--accent);
}

.hero-illustration {
    font-size: 14rem;
    color: var(--green-300);
    opacity: .6;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-stats {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-stat i {
    font-size: 1.6rem;
    color: var(--accent);
}

.hero-stat strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero-stat small {
    color: var(--green-100);
    font-size: .8rem;
}

@media (max-width: 991px) {
    .hero { padding: 60px 0; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: .95rem; }
    .hero-stats { gap: 16px !important; }
    .hero-stat strong { font-size: 1.1rem; }
}

@media (max-width: 767px) {
    .hero { padding: 40px 0; }
    .hero-title { font-size: 1.5rem; }
    .hero-badge { font-size: .75rem; padding: 4px 12px; }
    .hero-stats { padding-top: 16px; }
    .hero-stat { gap: 6px; }
    .hero-stat i { font-size: 1.2rem; }
    .hero-stat strong { font-size: 1rem; }
    .hero-stat small { font-size: .7rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.3rem; }
    .hero-subtitle { font-size: .85rem; }
    .hero .btn-lg { font-size: .85rem; padding: 8px 16px; }
    .hero-stats { flex-direction: column; gap: 8px !important; align-items: flex-start; }
    .hero-stat { width: 100%; }
}


/* ============================================================
   NAVBAR MOBILE DRAWER
   ============================================================ */

/* دکمه همبرگر سفارشی */
.navbar-toggler-custom {
    width: 42px;
    height: 40px;
    border-radius: 10px;
    background: #f5f6f8;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
    padding: 0;
}

.navbar-toggler-custom:hover,
.navbar-toggler-custom:active {
    background: #e9edf3;
    border-color: #d1d5db;
    color: #111827;
    transform: scale(1.05);
}

/* Overlay */
.navbar-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1045;
    backdrop-filter: blur(2px);
}

/* Drawer از راست */
.navbar-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: linear-gradient(180deg, var(--green-900) 0%, #0a2c20 100%);
    color: #fff;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
}

/* هدر Drawer */
.navbar-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.navbar-drawer-header .brand-logo {
    font-size: 1.1rem;
}

.navbar-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
}

.navbar-drawer-close:hover {
    background: rgba(220, 53, 69, 0.8);
    transform: rotate(90deg);
}

/* لینک‌های Drawer */
.navbar-drawer-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.navbar-drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    color: var(--green-100);
    text-decoration: none;
    font-weight: 500;
    font-size: .95rem;
    transition: all .2s;
}

.navbar-drawer-link i:first-child {
    font-size: 1.2rem;
    color: var(--green-300);
    transition: color .2s;
    width: 24px;
    text-align: center;
}

.navbar-drawer-link i:last-child {
    font-size: .8rem;
    opacity: .4;
    transition: transform .2s, opacity .2s;
}

.navbar-drawer-link:hover,
.navbar-drawer-link.router-link-active {
    background: var(--green-700);
    color: #fff;
}

.navbar-drawer-link:hover i:first-child,
.navbar-drawer-link.router-link-active i:first-child {
    color: var(--accent);
}

.navbar-drawer-link:hover i:last-child {
    opacity: 1;
    transform: translateX(-4px);
}

.navbar-drawer-link.admin-link {
    background: rgba(245, 166, 35, 0.15);
    color: var(--accent);
    border: 1px solid rgba(245, 166, 35, 0.3);
}

.navbar-drawer-link.admin-link:hover {
    background: rgba(245, 166, 35, 0.3);
    color: #fff;
}

/* فوتر Drawer */
.navbar-drawer-footer {
    padding: 16px 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.navbar-drawer-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.navbar-drawer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--green-500), var(--green-900));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.navbar-drawer-name {
    font-weight: 700;
    font-size: .9rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-drawer-role {
    font-size: .72rem;
    color: var(--green-300);
    margin-top: 2px;
}

/* انیمیشن‌ها */
.navbar-drawer-fade-enter-active,
.navbar-drawer-fade-leave-active {
    transition: opacity .25s ease;
}

.navbar-drawer-fade-enter-from,
.navbar-drawer-fade-leave-to {
    opacity: 0;
}

.navbar-drawer-slide-enter-active,
.navbar-drawer-slide-leave-active {
    transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-drawer-slide-enter-from,
.navbar-drawer-slide-leave-to {
    transform: translateX(100%);
}


/* ============================================================
   NAVBAR ICON BUTTON (جستجو)
   ============================================================ */
 .navbar-icon-btn {
     width: 40px;
     height: 40px;
     border-radius: 10px;
     background: #f5f6f8;
     border: 1px solid #e5e7eb;
     color: #374151;
     font-size: 1.1rem;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     transition: all .2s ease;
     padding: 0;
 }

 .navbar-icon-btn:hover,
 .navbar-icon-btn:active {
     background: #e9edf3;
     border-color: #d1d5db;
     color: #111827;
     transform: scale(1.05);
 }


/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1060;
    backdrop-filter: blur(4px);
    padding: 80px 16px 16px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
}

.search-box {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 720px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 100px);
}

/* هدر ورودی جستجو */
.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--neutral-300);
    background: #fff;
    position: relative;
}

.search-input-icon {
    font-size: 1.2rem;
    color: var(--green-500);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    color: var(--neutral-900);
    padding: 8px 0;
    min-width: 0;
}

.search-input::placeholder {
    color: var(--neutral-600);
    opacity: .6;
}

.search-clear {
    background: transparent;
    border: none;
    color: var(--neutral-600);
    font-size: 1rem;
    padding: 4px;
    cursor: pointer;
    transition: color .2s;
    flex-shrink: 0;
}

.search-clear:hover {
    color: #dc3545;
}

.search-submit {
    background: var(--green-700);
    border: none;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all .2s;
    flex-shrink: 0;
}

.search-submit:hover {
    background: var(--green-900);
    transform: scale(1.05);
}

.search-close {
    background: transparent;
    border: 1px solid var(--neutral-300);
    color: var(--neutral-600);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    cursor: pointer;
    transition: all .2s;
    flex-shrink: 0;
}

.search-close:hover {
    background: #fde8ea;
    border-color: #dc3545;
    color: #dc3545;
}

/* نتایج */
.search-results {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

/* راهنما */
.search-hint,
.search-loading,
.search-empty {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 32px 24px;
    color: var(--neutral-600);
}

.search-hint i,
.search-empty i {
    font-size: 2rem;
    color: var(--green-300);
    flex-shrink: 0;
}

.search-hint strong,
.search-empty strong {
    color: var(--green-900);
    font-size: .95rem;
    display: block;
    margin-bottom: 4px;
}

.search-hint p,
.search-empty p {
    margin: 0;
    font-size: .85rem;
    line-height: 1.7;
}

.search-loading {
    justify-content: center;
    align-items: center;
    color: var(--green-700);
    font-weight: 600;
}

/* هدر نتایج */
.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px 8px;
    font-size: .85rem;
    color: var(--neutral-600);
    border-bottom: 1px solid var(--neutral-100);
}

.search-view-all {
    background: transparent;
    border: none;
    color: var(--green-700);
    font-weight: 600;
    font-size: .8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color .2s;
}

.search-view-all:hover {
    color: var(--green-900);
}

/* گرید نتایج */
.search-results-grid {
    padding: 8px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background .2s;
}

.search-result-item:hover {
    background: var(--green-100);
}

.search-result-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: var(--green-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-thumb i {
    font-size: 1.4rem;
    color: var(--green-700);
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 700;
    font-size: .9rem;
    color: var(--green-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-price {
    font-size: .8rem;
    color: var(--green-700);
    margin-top: 2px;
}

.search-result-arrow {
    color: var(--neutral-300);
    font-size: .9rem;
    transition: color .2s, transform .2s;
}

.search-result-item:hover .search-result-arrow {
    color: var(--green-700);
    transform: translateX(-3px);
}

/* ============================================================
   SEARCH ANIMATIONS
   ============================================================ */
.search-fade-enter-active,
.search-fade-leave-active {
    transition: opacity .25s ease;
}

.search-fade-enter-from,
.search-fade-leave-to {
    opacity: 0;
}

.search-slide-enter-active,
.search-slide-leave-active {
    transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1), opacity .3s ease;
}

.search-slide-enter-from,
.search-slide-leave-to {
    transform: translateY(-20px);
    opacity: 0;
}

/* ============================================================
   MOBILE: SEARCH FULL SCREEN
   ============================================================ */
@media (max-width: 576px) {
    .search-overlay {
        padding: 0;
        align-items: stretch;
    }

    .search-box {
        max-width: 100%;
        border-radius: 0;
        max-height: 100vh;
        height: 100vh;
    }

    .search-input-wrap {
        padding: 12px 12px;
    }

    .search-input {
        font-size: .95rem;
    }

    .search-result-thumb {
        width: 46px;
        height: 46px;
    }

    .search-result-name {
        font-size: .85rem;
    }
}




/* ============================================================
   MEGA MENU
   ============================================================ */

/* آیتم والد */
.nav-item-mega {
    position: relative;
}

.nav-link-mega {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.nav-link-chevron {
    font-size: .65rem !important;
    transition: transform .25s ease;
    margin-right: 2px;
}

.nav-link-chevron.rotated {
    transform: rotate(-180deg);
}

.nav-item-mega:hover .nav-link,
.nav-link-mega.active {
    background: var(--green-700);
    color: #fff !important;
}

/* ================= MEGA MENU CONTAINER ================= */
.mega-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 720px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 18px;
    box-shadow:
        0 20px 50px rgba(15, 61, 46, 0.15),
        0 0 0 1px rgba(15, 61, 46, 0.05);
    z-index: 1050;
    overflow: hidden;
}

/* پیکان بالای منو */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 40px;
    width: 16px;
    height: 16px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(15, 61, 46, 0.05);
    z-index: 1;
}

.mega-menu-inner {
    display: grid;
    grid-template-columns: 1fr 220px;
    position: relative;
    z-index: 2;
    background: #fff;
}

/* ================= ستون دسته‌بندی‌ها ================= */
.mega-menu-categories {
    padding: 20px;
    border-left: 1px solid var(--neutral-100);
}

.mega-menu-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--green-900);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--neutral-100);
}

.mega-menu-header i {
    color: var(--green-500);
    font-size: 1rem;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.mega-menu-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px;
    color: var(--neutral-600);
    font-size: .85rem;
}

/* آیتم دسته */
.mega-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--green-900);
    transition: all .2s;
    position: relative;
}

.mega-menu-item:hover {
    background: var(--green-100);
    transform: translateX(-3px);
}

.mega-menu-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--green-100);
    color: var(--green-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all .2s;
}

.mega-menu-item:hover .mega-menu-item-icon {
    background: var(--green-700);
    color: #fff;
    transform: scale(1.05);
}

.mega-menu-item-info {
    flex: 1;
    min-width: 0;
}

.mega-menu-item-name {
    font-weight: 700;
    font-size: .85rem;
    color: var(--green-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.mega-menu-item-count {
    font-size: .7rem;
    color: var(--neutral-600);
}

.mega-menu-item-arrow {
    font-size: .7rem;
    color: var(--neutral-300);
    opacity: 0;
    transition: all .2s;
}

.mega-menu-item:hover .mega-menu-item-arrow {
    opacity: 1;
    color: var(--green-700);
    transform: translateX(-2px);
}

/* ================= ستون لینک‌های سریع ================= */
.mega-menu-sidebar {
    padding: 20px 16px;
    background: linear-gradient(180deg, var(--green-100) 0%, #f9fbfa 100%);
}

.mega-menu-sidebar .mega-menu-header {
    border-bottom-color: var(--green-300);
}

.mega-menu-side-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--green-900);
    font-size: .82rem;
    font-weight: 600;
    transition: all .2s;
    margin-bottom: 4px;
}

.mega-menu-side-link:hover {
    background: #fff;
    color: var(--green-700);
    transform: translateX(-3px);
    box-shadow: 0 2px 8px rgba(15, 61, 46, 0.06);
}

.mega-menu-side-link i {
    font-size: 1rem;
    color: var(--green-500);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.mega-menu-side-link:hover i {
    color: var(--accent);
}

.mega-menu-divider {
    height: 1px;
    background: var(--green-300);
    margin: 12px 0;
    opacity: 0.5;
}

.mega-menu-view-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--green-700);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 700;
    transition: all .2s;
    margin-top: 8px;
}

.mega-menu-view-all:hover {
    background: var(--green-900);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(27, 94, 69, 0.3);
}

.mega-menu-view-all i {
    transition: transform .2s;
}

.mega-menu-view-all:hover i {
    transform: translateX(-3px);
}

/* ================= انیمیشن Mega Menu ================= */
.mega-menu-enter-active {
    transition: opacity .2s ease, transform .25s cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-menu-leave-active {
    transition: opacity .15s ease, transform .15s ease;
}

.mega-menu-enter-from,
.mega-menu-leave-to {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
}

/* ================= MOBILE: DRAWER SUBMENU ================= */
.navbar-drawer-group {
    display: flex;
    flex-direction: column;
}

.navbar-drawer-group .navbar-drawer-link {
    background: transparent;
    border: none;
    color: var(--green-100);
    font-family: inherit;
    font-size: .95rem;
    text-align: right;
    cursor: pointer;
}

.navbar-drawer-chevron {
    font-size: .8rem !important;
    opacity: .6;
    transition: transform .25s;
}

.navbar-drawer-chevron.rotated {
    transform: rotate(-180deg);
    opacity: 1;
}

.navbar-drawer-submenu {
    padding: 4px 0 4px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.navbar-drawer-sublink {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--green-100);
    text-decoration: none;
    font-size: .85rem;
    transition: all .2s;
    opacity: .85;
}

.navbar-drawer-sublink:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    opacity: 1;
}

.navbar-drawer-sublink i:first-child {
    font-size: .9rem;
    color: var(--green-300);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.navbar-drawer-sublink-count {
    margin-right: auto;
    font-size: .7rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* انیمیشن زیرمنو */
.drawer-submenu-enter-active,
.drawer-submenu-leave-active {
    transition: max-height .3s ease, opacity .25s ease;
    overflow: hidden;
}

.drawer-submenu-enter-from,
.drawer-submenu-leave-to {
    max-height: 0;
    opacity: 0;
}

.drawer-submenu-enter-to,
.drawer-submenu-leave-from {
    max-height: 500px;
    opacity: 1;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1200px) {
    .mega-menu {
        width: 600px;
    }
    .mega-menu-inner {
        grid-template-columns: 1fr 200px;
    }
}

@media (max-width: 991px) {
    .mega-menu {
        display: none !important;  /* در موبایل نمایش داده نمی‌شود */
    }
}





.navbar-outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    min-height: 40px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid #D1D5DB;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
}

.navbar-outline-btn:hover,
.navbar-outline-btn:active {
    background: #F5F6F8;
    border-color: #9CA3AF;
    color: #111827;
    text-decoration: none;
}




.navbar-danger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    min-height: 40px;
    border-radius: 10px;
    background: #FFF5F5;
    border: 1px solid #FECACA;
    color: #DC2626;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
}

.navbar-danger-btn:hover,
.navbar-danger-btn:active {
    background: #FEE2E2;
    border-color: #FCA5A5;
    color: #B91C1C;
    text-decoration: none;
}
