/* ==========================================================================
   MihanTheme Advanced Header Styles (ThemeForest Clone - RTL Version)
   ========================================================================== */

/* 1. CSS Variables & Reset */
.mt-header-wrapper {
    --envato-dark-1: #262626;
    --envato-light: #f4f4f4;
    --envato-green: #82b440;
    --envato-text-gray: #545454;
    --envato-border: #e5e5e5;
    --envato-hover-gray: #828282;
    --envato-dropdown-bg: #ffffff;
    --mt-solid-dark: #333333;
    
    --mt-mega-width: max-content;
    --mt-mega-height: auto;
    --mt-top-icon-size: 18px; /* مقدار پیش‌فرض آیکون‌های ردیف اول */

    all: initial;
    font-family: IRANSans, Tahoma, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 13px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    z-index: 9999;
    direction: rtl !important;
}

.mt-header-wrapper * {
    box-sizing: border-box !important;
    font-family: inherit;
}

.mt-header-wrapper a,
.mt-header-wrapper button {
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none !important;
    transition: all 0.2s ease-in-out;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mt-header-wrapper ul,
.mt-header-wrapper li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ==========================================================================
   2. Row 1: Top Bar (Logo & Actions)
   ========================================================================== */
.mt-top-bar {
    background-color: var(--envato-dark-1);
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 0 20px;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mt-mobile-toggle-wrap {
    display: none;
}

.mt-top-right-section {
    display: flex;
    align-items: center;
    height: 100%;
    padding-right: 20px;
}

.mt-logo {
    display: flex;
    align-items: center;
}

.mt-logo img {
    height: 20px;
    width: auto;
    object-fit: contain;
}

/* بخش سمت چپ ردیف اول */
.mt-top-left-section {
    display: flex;
    align-items: center;
    height: 100%;
}

.mt-top-left-links {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
    padding-left: 20px;
}

.mt-top-action-link {
    color: #cccccc !important;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    white-space: nowrap !important; /* جلوگیری از شکستن خط */
    flex-wrap: nowrap !important;
}

.mt-top-action-link:hover {
    color: #ffffff !important;
}

/* اعمال سایز کنترل شده روی آیکون‌های ردیف اول */
.mt-top-action-link svg,
.mt-top-action-link i {
    width: var(--mt-top-icon-size) !important;
    height: var(--mt-top-icon-size) !important;
    font-size: var(--mt-top-icon-size) !important;
    flex-shrink: 0;
}

/* ==========================================================================
   3. User Actions Group
   ========================================================================== */
.mt-user-actions-group {
    display: flex;
    align-items: center;
    height: 100%;
    background-color: var(--mt-solid-dark);
}

.mt-header-dropdown-wrap {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.mt-header-action-btn {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    color: #cccccc !important;
    font-size: 13px;
    font-weight: 500;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    transition: none !important;
    background: transparent !important;
    gap: 8px;
}

.mt-header-action-btn:hover {
    color: #ffffff !important;
    background: transparent !important;
}

.mt-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.mt-user-name {
    font-size: 13px;
}

.mt-badge-count {
    position: absolute;
    top: 8px;
    right: 5px;
    background-color: var(--envato-green);
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    line-height: 1;
}

.mt-badge-dot {
    position: absolute;
    top: 15px;
    right: 12px;
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    animation: mt-pulse 1.5s infinite;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
}

@keyframes mt-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ==========================================================================
   4. Dropdowns (User, Cart, Notifs)
   ========================================================================== */
.mt-header-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    background-color: var(--envato-dropdown-bg);
    border: 1px solid var(--envato-border);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 0 0 8px 8px;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.mt-header-dropdown[style*="display: block"],
.mt-header-dropdown.mt-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mt-user-dropdown { min-width: 250px; }
.mt-cart-dropdown { min-width: 360px; }
.mt-notif-dropdown { min-width: 320px; }

.mt-dropdown-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--envato-border);
    display: flex;
    flex-direction: column;
    gap: 5px;
    background-color: #fafafa;
}

.mt-dropdown-header strong {
    font-size: 14px;
    color: #1e293b;
}

.mt-wallet-balance {
    font-size: 12px;
    color: var(--envato-green);
    font-weight: bold;
}

.mt-dropdown-menu-list {
    padding: 8px 0 !important;
}

.mt-dropdown-menu-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #475569 !important;
    font-size: 13px;
    transition: 0.2s ease;
}

.mt-dropdown-menu-list li a:hover {
    background-color: rgba(0,0,0,0.03) !important;
    color: #0f172a !important;
    padding-right: 25px;
}

.mt-user-menu-icon {
    width: 18px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Notification UI Overhaul */
.mt-notif-list {
    max-height: 300px;
    overflow-y: auto;
}
.mt-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--envato-border);
    transition: 0.2s;
    position: relative;
    text-align: right !important; /* راست‌چین کردن قطعی */
}
.mt-notif-item:hover {
    background-color: #f8fafc;
}
.mt-notif-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px; /* کاهش فاصله بین خطوط */
    text-align: right !important;
}
.mt-notif-content strong {
    font-size: 13px;
    color: #1e293b;
    line-height: 1.4;
    margin: 0 !important;
}
.mt-notif-content p {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 !important;
}

/* Wallet Notification Item */
.mt-wallet-notif-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f0fdf4;
    text-decoration: none;
    transition: 0.2s;
    border-bottom: 1px solid var(--envato-border);
}
.mt-wallet-notif-item:hover {
    background: #dcfce7;
}
.mt-wallet-notif-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #166534;
    font-weight: bold;
    font-size: 13px;
}
.mt-wallet-notif-right {
    font-size: 14px;
    font-weight: bold;
    color: #166534;
}

/* Mini Cart Styles */
.mt-mini-cart-body {
    max-height: 350px;
    overflow-y: auto;
    padding: 10px 0;
}

.mt-mini-cart-item {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px dashed var(--envato-border);
    gap: 15px;
    align-items: stretch;
}

.mt-mc-img {
    width: 120px !important;
    flex-shrink: 0;
    max-height: 120px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}

.mt-mc-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mt-mc-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    font-size: 13px;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 8px;
}

.mt-mc-qty-control {
    background: #f1f5f9 !important;
    border-radius: 6px !important;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-weight: bold;
    color: #334155;
    font-size: 13px;
    align-self: flex-start;
}

/* حل قطعی مشکل دیده نشدن آیکون حذف سبد خرید (ایزوله از قالب) */
.mt-btn-remove, .mt-btn-remove-cart {
    position: relative !important;
    width: 28px !important;
    height: 28px !important;
    background: rgba(239,68,68,0.1) !important;
    border-radius: 6px !important;
    transition: all 0.2s ease-in-out !important;
    border: none !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ef4444 !important;
    padding: 0 !important;
}

.mt-btn-remove *, .mt-btn-remove-cart * {
    display: none !important; /* مخفی کردن آیکون‌های خراب قالب */
}

.mt-btn-remove::after, .mt-btn-remove-cart::after {
    content: "" !important;
    display: block !important;
    width: 12px !important;
    height: 12px !important;
    background-color: currentColor !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E") no-repeat center !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E") no-repeat center !important;
}

.mt-btn-remove:hover, .mt-btn-remove-cart:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
}

.mt-mini-cart-footer {
    padding: 20px;
    border-top: 1px solid var(--envato-border);
    background: #fcfcfc;
    border-radius: 0 0 8px 8px;
}
.mt-mc-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: bold;
    color: #0f172a;
    margin-bottom: 15px;
}
.mt-mc-buttons {
    display: flex;
    gap: 10px;
}
.mt-mc-btn {
    flex: 1 !important;
    text-align: center !important;
    padding: 12px 10px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
    display: inline-block !important;
    background-image: none !important;
    transition: all 0.2s ease !important;
}
.mt-mc-btn-checkout {
    background-color: var(--envato-green) !important;
    color: #fff !important;
}
.mt-mc-btn-checkout:hover {
    background-color: #6a9532 !important;
    color: #fff !important;
}
.mt-mc-btn-cart {
    background-color: #e2e8f0 !important;
    color: #475569 !important;
}
.mt-mc-btn-cart:hover {
    background-color: #cbd5e1 !important;
    color: #1e293b !important;
}

.mt-mc-reward-box {
    padding: 15px 20px;
    background: rgba(245, 158, 11, 0.05);
    border-top: 1px solid var(--envato-border);
}

/* ==========================================================================
   5. Row 2: Middle Bar
   ========================================================================== */
.mt-middle-bar {
    background-color: var(--envato-dark-1);
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.mt-top-nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.mt-top-nav > li {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.mt-top-nav > li > a {
    color: #aaaaaa !important;
    font-size: 14px;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: normal;
}

.mt-top-nav > li > a:hover {
    color: #ffffff !important;
}

.mt-top-nav > li.active > a {
    color: #ffffff !important;
}

.mt-top-nav > li.active > a::after {
    content: "";
    position: absolute;
    bottom: -1px;
    right: 50%;
    transform: translateX(50%);
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: transparent transparent var(--envato-light) transparent;
    display: block;
    z-index: 10;
}

/* ==========================================================================
   6. Row 3: Bottom Bar & Search Form
   ========================================================================== */
.mt-bottom-bar {
    background-color: var(--envato-light);
    border-bottom: 1px solid var(--envato-border);
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: relative;
    transition: background-color 0.2s, border-color 0.2s;
}

.mt-bottom-wp-menu {
    height: 100%;
}

.mt-bottom-nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.mt-bottom-nav > li {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.mt-bottom-nav > li > a {
    color: var(--envato-text-gray) !important;
    font-size: 13px;
    padding: 0 15px;
    height: calc(100% - 10px); 
    display: flex;
    align-items: center;
    border-radius: 3px;
    margin: 5px 2px;
    font-weight: normal;
    transition: 0.2s;
}

.mt-bottom-nav > li:hover > a,
.mt-bottom-nav > li.current-menu-item > a {
    background-color: var(--envato-hover-gray) !important;
    color: #ffffff !important;
}

.mt-bottom-nav .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    background-color: var(--envato-dropdown-bg);
    border: 1px solid var(--envato-border);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 220px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    padding: 5px 0;
    border-radius: 4px;
}

.mt-bottom-nav li:hover > .sub-menu {
    visibility: visible;
    opacity: 1;
}

.mt-bottom-nav .sub-menu li {
    position: relative;
    width: 100%;
}

.mt-bottom-nav .sub-menu li > a {
    color: #333333 !important;
    padding: 10px 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.mt-bottom-nav .sub-menu li > a:hover {
    background-color: #f4f4f4 !important;
    color: #111111 !important;
}

.mt-bottom-nav .sub-menu .sub-menu {
    top: 0;
    right: 100%;
    margin-right: 1px;
}

/* Simple Search Form (WP Default inside Header) */
.mt-search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 4px;
    height: 32px;
    overflow: hidden;
    width: 220px;
    margin-left: 140px; 
}

.mt-search-form input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    height: 100%;
    padding: 0 10px;
    font-size: 13px;
    color: #333333;
    flex: 1;
    width: 100%;
}

.mt-search-form button {
    background: transparent;
    border: none;
    padding: 0 12px;
    color: #999999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    height: 100%;
}

.mt-search-form button:hover {
    color: #333333;
}

/* Advanced Search (Ajax Overlay Widget inside Header) */
.mt-header-adv-search-wrap .elementor-widget-mt-search-overlay {
    width: 100%;
}
.mt-header-adv-search-wrap .mt-search-container-master {
    width: 100% !important;
}

/* ==========================================================================
   7. Floating Button
   ========================================================================== */
.mt-floating-brand-btn {
    position: absolute;
    left: 20px; 
    top: -18px; 
    background-color: var(--mt-solid-dark) !important;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 30px;
    z-index: 20;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease !important; 
    white-space: nowrap; 
}

.mt-floating-brand-btn:hover {
    background-color: var(--mt-solid-dark) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.mt-fbtn-text {
    font-size: 13px; 
    font-weight: bold;
}

/* ==========================================================================
   8. Mega Menus & Dropdowns
   ========================================================================== */
.mt-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0; 
    left: auto;
    background-color: var(--envato-dropdown-bg);
    border: 1px solid var(--envato-border);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    min-width: 240px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    padding: 5px 0;
    border-radius: 4px;
}

.mt-mega-menu-container {
    position: absolute;
    top: 100%;
    background-color: var(--envato-dropdown-bg);
    border: 1px solid var(--envato-border);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 99999;
    border-radius: 4px;
    width: var(--mt-mega-width);
    height: var(--mt-mega-height);
    min-width: 600px;
    /* حذف حاشیه‌های مخفی و پدینگ‌های اضافی */
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
}

.mt-top-nav > li:hover .mt-dropdown-menu,
.mt-top-nav > li:hover .mt-mega-menu-container {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.mt-mega-menu-container.mt-align-center,
.mt-dropdown-menu.mt-align-center,
.mt-bottom-nav .sub-menu.mt-align-center {
    right: 50% !important;
    left: auto !important;
    transform: translateX(50%) !important;
}
.mt-top-nav > li:hover .mt-mega-menu-container.mt-align-center {
    transform: translateX(50%) !important;
}

/* ==========================================================================
   9. Dark Mode Exceptions
   ========================================================================== */
body.mt-dark-mode .mt-bottom-bar {
    background-color: #1f1f1f;
    border-color: #333333;
}

body.mt-dark-mode .mt-bottom-nav > li > a {
    color: #cccccc !important;
}

body.mt-dark-mode .mt-bottom-nav > li:hover > a,
body.mt-dark-mode .mt-bottom-nav > li.current-menu-item > a {
    background-color: #333333 !important;
    color: #ffffff !important;
}

body.mt-dark-mode .mt-bottom-nav .sub-menu {
    background-color: #1f1f1f;
    border-color: #333333;
}

body.mt-dark-mode .mt-bottom-nav .sub-menu li > a {
    color: #cccccc !important;
}

body.mt-dark-mode .mt-bottom-nav .sub-menu li > a:hover {
    background-color: #333333 !important;
    color: #ffffff !important;
}

body.mt-dark-mode .mt-search-form {
    background-color: #1f1f1f;
    border-color: #444444;
}

body.mt-dark-mode .mt-search-form input {
    color: #ffffff;
}

/* ==========================================================================
   10. Mobile Menu Drawer (Smooth Accordion UI)
   ========================================================================== */
.mt-mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background-color: #ffffff;
    z-index: 9999999;
    transition: right 0.3s ease;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
}

.mt-mobile-drawer.open {
    right: 0;
}

.mt-mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--envato-dark-1);
    color: #fff;
}

.mt-drawer-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}

.mt-mobile-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.mt-mobile-nav {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mt-mobile-nav > li {
    border-bottom: 1px solid #f1f5f9;
}

.mt-mobile-item-wrap {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.mt-mobile-item-wrap > a {
    flex: 1;
    display: block;
    padding: 15px 20px;
    color: #1e293b !important;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s;
}

.mt-mobile-item-wrap > a:hover {
    background-color: #f8fafc;
}

/* دکمه اختصاصی باز و بسته کردن آکاردئون */
.mt-mobile-toggle-sub {
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #f1f5f9;
    cursor: pointer;
    background: transparent;
    transition: background 0.2s;
}

.mt-mobile-toggle-sub:hover {
    background-color: #f8fafc;
}

/* آیکون فلش ایزوله برای موبایل */
.mt-mobile-toggle-sub::after {
    content: "";
    width: 8px;
    height: 8px;
    border-bottom: 2px solid #64748b;
    border-left: 2px solid #64748b;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
}

.mt-mobile-has-children.mt-open .mt-mobile-toggle-sub::after {
    transform: rotate(135deg);
}

/* آکاردئون با تکنیک CSS Grid برای نرمی فوق‌العاده */
.mt-mobile-sub-menu-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
    background-color: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.mt-mobile-has-children.mt-open .mt-mobile-sub-menu-wrap {
    grid-template-rows: 1fr;
}

.mt-mobile-sub-menu {
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.mt-mobile-sub-menu li a {
    display: block;
    padding: 12px 20px 12px 35px;
    font-size: 13px;
    font-weight: normal;
    color: #475569 !important;
    border-bottom: 1px solid #f1f5f9;
}

.mt-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
}

.mt-mobile-overlay.show {
    display: block;
    opacity: 1;
}

/* ==========================================================================
   11. Responsive Overrides
   ========================================================================== */
@media (max-width: 1024px) {
    .mt-search-form,
    .mt-header-adv-search-wrap {
        margin-left: 20px !important;
        width: 180px;
    }
    .mt-floating-brand-btn {
        display: none;
    }
}

@media (max-width: 768px) {
    .mt-middle-bar, .mt-bottom-bar, .mt-top-left-links, .mt-user-name, .mt-dropdown-menu, .mt-mega-menu-container {
        display: none !important;
    }
    
    .mt-top-bar {
        justify-content: space-between;
        padding: 0 15px !important;
    }

    .mt-mobile-toggle-wrap {
        display: flex;
        align-items: center;
        flex: 1;
    }

    .mt-mobile-toggle-btn {
        background: transparent;
        border: none;
        color: #fff;
        font-size: 20px;
        padding: 0;
        cursor: pointer;
    }

    .mt-top-right-section {
        flex: 1;
        justify-content: center;
        padding: 0;
    }

    .mt-top-left-section {
        flex: 1;
        justify-content: flex-end;
    }

    .mt-user-actions-group {
        background: transparent;
    }
    .mt-header-dropdown-wrap:not(:has(.mt-cart-btn)) {
        display: none !important;
    }
    
    .mt-cart-btn {
        border: none !important;
        padding: 0 !important;
    }

    .mt-cart-btn {
        pointer-events: auto;
    }
    .mt-cart-dropdown {
        display: none !important;
    }
}