/**
 * Modern Header Plugin - Frontend Styles
 * Enhanced with Arabic RTL Support and Improved Spacing
 */

/* Arabic Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&family=Tajawal:wght@300;400;500;700&display=swap');

/* CSS Variables */
:root {
    --header-primary-color: #4f46e5;
    --header-hover-color: #4338ca;
    --header-text-color: #0f172a;
    --header-bg-color: #ffffff;
    --font-arabic: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing Scale */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Main Wrapper with RTL Support */
#modern-header-wrapper {
    font-family: var(--font-arabic);
    direction: rtl;
    text-align: right;
}

/* Top Banner */
.mh-top-banner {
    /* background: linear-gradient(90deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%); */
    color: #ffffff;
    /* text-align: center; */
    padding: 0.5rem var(--spacing-xl);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .mh-top-banner {
        display: none;
    }
}

.mh-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.mh-banner-text {
    margin: 0;
}

.mh-banner-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* Main Header */
.mh-header {
    position: sticky;
    top: 0;
    background-color: var(--header-bg-color);
    border-bottom: 1px solid #e2e8f0;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow: visible;
}

.mh-header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mh-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.mh-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg) 0;
    gap: var(--spacing-xl);
}

/* Logo Area */
.mh-logo-area {
    display: flex;
    align-items: center;
}

.mh-logo-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    text-decoration: none;
    transition: all 0.2s;
}

.mh-logo-link:hover .mh-logo-text {
    color: var(--header-primary-color);
}

.mh-logo-image {
    height: 40px !important;
    width: auto !important;
    max-height: 40px !important;
    object-fit: contain;
}

.mh-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--header-primary-color) 0%, var(--header-hover-color) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.mh-logo-text {
    font-size: 24px;
    font-weight: 900;
    color: var(--header-text-color);
    letter-spacing: -0.5px;
}

/* Desktop Navigation */
.mh-nav-desktop {
    display: none;
}

@media (min-width: 1024px) {
    .mh-nav-desktop {
        display: flex;
        align-items: center;
        gap: var(--spacing-sm);
        overflow: visible;
    }
}

.mh-nav-item {
    position: relative;
    overflow: visible;
}

.mh-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1rem;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    border-radius: 9999px;
    transition: all 0.2s;
    line-height: 1.5;
}

.mh-nav-link:hover {
    background-color: #f8fafc;
    color: var(--header-primary-color);
}

.mh-nav-link.active {
    background-color: #eff6ff;
    color: var(--header-primary-color);
}

.mh-nav-link svg {
    transition: transform 0.2s;
}

.mh-nav-item:hover .mh-nav-link svg {
    transform: rotate(180deg);
}

/* Mega Menu - Centered and Extra Wide */
.mh-mega-menu {
    position: fixed;
    top: 135px;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 40;
    transform-origin: top;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
}

.mh-nav-item:hover .mh-mega-menu,
.mh-mega-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mh-mega-inner {
    width: 100%;
}

.mh-mega-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 2rem var(--spacing-xl);
}

.mh-mega-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    direction: rtl;
}

/* When Featured Section is disabled, columns take full width */
.mh-mega-columns.mh-full-width {
    grid-column: 1 / -1;
}

.mh-mega-featured {
    position: relative;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); Removed to allow custom color */
    border-radius: 12px;
    padding: var(--spacing-xl);
    color: #ffffff;
    overflow: hidden;
}

.mh-featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
    border-radius: 12px;
}

.mh-mega-featured::before,
.mh-mega-featured::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: blob 7s infinite;
}

.mh-mega-featured::before {
    top: 0;
    right: 0;
}

.mh-mega-featured::after {
    bottom: 0;
    left: 0;
    animation-delay: 2s;
}

@keyframes blob {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.mh-mega-featured-content {
    position: relative;
    z-index: 1;
}

.mh-mega-featured h4 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    line-height: 1.4;
}

.mh-mega-featured p {
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.95;
    margin-bottom: var(--spacing-lg);
}

.mh-mega-featured-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 9999px;
    transition: all 0.2s;
}

.mh-mega-featured-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateX(-4px);
}

.mh-mega-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.mh-mega-column {
    padding: 0 var(--spacing-lg);
}

.mh-mega-column:first-child {
    padding-right: 0;
}

.mh-mega-column:last-child {
    padding-left: 0;
}

.mh-mega-column-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid #e2e8f0;
}

.mh-mega-title-bar {
    width: 6px;
    height: 24px;
    background: var(--header-primary-color);
    border-radius: 9999px;
}

.mh-mega-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.mh-mega-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    padding: 0.5rem;
    margin-right: -0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    line-height: 1.5;
}

.mh-mega-link:hover {
    color: var(--header-primary-color);
    background-color: #f8fafc;
}

.mh-mega-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mega-icon-color, #16a34a);
    flex-shrink: 0;
    margin-left: 8px;
}

.mh-mega-icon svg {
    width: 16px;
    height: 16px;
}

.mh-mega-link:hover .mh-mega-icon {
    color: var(--header-primary-color);
}

.mh-mega-link-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mh-mega-link-label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: #334155;
}

.mh-mega-link:hover .mh-mega-link-label {
    color: var(--header-primary-color);
}

.mh-mega-link-desc {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #94a3b8;
    line-height: 1.4;
}

.mh-mega-link:hover .mh-mega-link-desc {
    color: #64748b;
}

/* Action Buttons */
.mh-actions-desktop {
    display: none;
}

@media (min-width: 1024px) {
    .mh-actions-desktop {
        display: flex;
        align-items: center;
        gap: var(--spacing-md);
    }
}

.mh-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0.5rem;
    background-color: transparent;
    border: none;
    border-radius: 9999px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.mh-search-btn:hover {
    color: var(--header-primary-color);
    background-color: #eff6ff;
}

.mh-divider {
    width: 1px;
    height: 24px;
    background-color: #e2e8f0;
}

.mh-btn-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--header-text-color);
    text-decoration: none;
    padding: 10px var(--spacing-lg);
    transition: all 0.2s;
    border-radius: 8px;
}

.mh-btn-link:hover {
    color: var(--header-primary-color);
    background-color: rgba(79, 70, 229, 0.05);
}

.mh-btn-primary {
    background-color: var(--header-primary-color);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.2);
    transition: all 0.2s;
}

.mh-btn-primary:hover {
    background-color: var(--header-hover-color);
    box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.3);
    transform: translateY(-2px);
}

/* Mobile Controls */
.mh-mobile-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    z-index: 10;
}

@media (min-width: 1024px) {
    .mh-mobile-controls {
        display: none;
    }
}

.mh-search-btn-mobile {
    padding: 8px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.mh-search-btn-mobile:hover {
    color: var(--header-primary-color);
}

.mh-mobile-menu-btn {
    padding: 10px;
    background-color: #f1f5f9;
    border: none;
    border-radius: 8px;
    color: #0f172a;
    cursor: pointer;
    transition: background-color 0.2s;
}

.mh-mobile-menu-btn:hover {
    background-color: #e2e8f0;
}

/* Mobile Drawer */
.mh-mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mh-mobile-drawer.open {
    opacity: 1;
    visibility: visible;
}

.mh-drawer-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.mh-drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 85%;
    max-width: 320px;
    background-color: #ffffff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s;
}

.mh-mobile-drawer.open .mh-drawer-content {
    transform: translateX(0);
}

/* Drawer Header */
.mh-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    border-bottom: 1px solid #f1f5f9;
}

.mh-drawer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.mh-drawer-logo img {
    height: 32px;
    width: auto;
}

.mh-drawer-logo-icon {
    width: 32px;
    height: 32px;
    background-color: var(--header-primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
}

.mh-drawer-logo-text {
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
}

.mh-drawer-close {
    padding: 8px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 9999px;
    transition: all 0.2s;
}

.mh-drawer-close:hover {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
}

/* Drawer Navigation */
.mh-drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
}

.mh-drawer-item {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.mh-drawer-item:last-child {
    border-bottom: none;
}

.mh-drawer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--spacing-md) 0;
    font-size: 15px;
    font-weight: 700;
    color: #334155;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    text-align: right;
    line-height: 1.6;
}

.mh-drawer-link:hover {
    color: var(--header-primary-color);
}

.mh-drawer-chevron {
    transition: transform 0.2s, color 0.2s;
    color: #94a3b8;
}

.mh-drawer-toggle.active .mh-drawer-chevron {
    transform: rotate(180deg);
    color: var(--header-primary-color);
}

.mh-drawer-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
}

.mh-drawer-submenu.open {
    max-height: 1000px;
}

.mh-drawer-submenu-inner {
    background-color: #f8fafc;
    border-radius: 12px;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.mh-drawer-column {
    margin-bottom: var(--spacing-lg);
}

.mh-drawer-column:last-child {
    margin-bottom: 0;
}

.mh-drawer-column h5 {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-sm);
}

.mh-drawer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.mh-drawer-column a {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #334155;
    text-decoration: none;
    padding: var(--spacing-xs) 0;
    transition: color 0.2s;
    line-height: 1.6;
}

.mh-drawer-column a:hover {
    color: var(--header-primary-color);
}

/* Drawer Footer */
.mh-drawer-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid #f1f5f9;
    background-color: #f8fafc;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.mh-drawer-btn-secondary,
.mh-drawer-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 9999px;
    transition: all 0.2s;
}

.mh-drawer-btn-secondary {
    background-color: #f1f5f9;
    color: #334155;
}

.mh-drawer-btn-secondary:hover {
    background-color: #e2e8f0;
}

.mh-drawer-btn-primary {
    background-color: var(--header-primary-color);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}

.mh-drawer-btn-primary:hover {
    background-color: var(--header-hover-color);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}



.mh-drawer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.mh-drawer-logo img {
    height: 32px;
    width: auto;
}

.mh-drawer-logo-icon {
    width: 32px;
    height: 32px;
    background-color: var(--header-primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
}

.mh-drawer-logo-text {
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
}

.mh-drawer-close {
    padding: 8px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 9999px;
    transition: all 0.2s;
}

.mh-drawer-close:hover {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
}

/* Drawer Navigation */
.mh-drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
}

.mh-drawer-item {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.mh-drawer-item:last-child {
    border-bottom: none;
}

.mh-drawer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--spacing-md) 0;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    text-align: right;
    line-height: 1.6;
}

.mh-drawer-link:hover {
    color: var(--header-primary-color);
}

.mh-drawer-chevron {
    transition: transform 0.2s, color 0.2s;
    color: #94a3b8;
}

.mh-drawer-toggle.active .mh-drawer-chevron {
    transform: rotate(180deg);
    color: var(--header-primary-color);
}

.mh-drawer-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
}

.mh-drawer-submenu.open {
    max-height: 1000px;
}

.mh-drawer-submenu-inner {
    background-color: #f8fafc;
    border-radius: 12px;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.mh-drawer-column {
    margin-bottom: var(--spacing-lg);
}

.mh-drawer-column:last-child {
    margin-bottom: 0;
}

.mh-drawer-column h5 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: var(--spacing-sm);
}

.mh-drawer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.mh-drawer-column a {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #334155;
    text-decoration: none;
    padding: var(--spacing-xs) 0;
    transition: color 0.2s;
    line-height: 1.6;
}

.mh-drawer-column a:hover {
    color: var(--header-primary-color);
}

/* Drawer Footer */
.mh-drawer-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid #f1f5f9;
    background-color: #f8fafc;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.mh-drawer-btn-secondary,
.mh-drawer-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 9999px;
    transition: all 0.2s;
}

.mh-drawer-btn-secondary {
    background-color: #f1f5f9;
    color: #334155;
}

.mh-drawer-btn-secondary:hover {
    background-color: #e2e8f0;
}

.mh-drawer-btn-primary {
    background-color: var(--header-primary-color);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}

.mh-drawer-btn-primary:hover {
    background-color: var(--header-hover-color);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Body Padding to prevent content overlap */
body.has-modern-header {
    padding-top: 80px;
}

@media (min-width: 768px) {
    body.has-modern-header {
        padding-top: 112px;
    }
}

/* Mobile Optimization for Banner */
@media (max-width: 768px) {
    .mh-top-banner {
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .mh-banner-links {
        display: none;
    }

    .mh-banner-inner {
        justify-content: center;
    }

    .mh-banner-text {
        text-align: center;
        width: 100%;
    }
}

/* ========================================
   Language Switcher Styles
   ======================================== */
.mh-lang-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 1rem;
}

.mh-lang-icon {
    display: none;
    color: #94a3b8;
}

@media (min-width: 1024px) {
    .mh-lang-icon {
        display: block;
    }
}

.mh-lang-toggle {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 2px solid #f1f5f9;
    border-radius: 9999px;
    width: 90px;
    height: 42px;
    padding: 6px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.mh-lang-toggle:hover {
    border-color: #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mh-lang-slider {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 6px;
    width: 36px;
    background-color: var(--lang-primary-color, #4f46e5);
    border-radius: 9999px;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
    transform: translateX(0);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.mh-lang-slider.mh-lang-slider-ar {
    transform: translateX(42px);
}

.mh-lang-label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: #94a3b8;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.mh-lang-label.active {
    color: #ffffff;
}

.mh-lang-label:hover:not(.active) {
    color: #64748b;
}

/* Individual Button Text Colors */
/* For visitors */
.mh-header-buttons .mh-btn-link:first-child {
    color: var(--login-btn-text-color, #ffffff) !important;
}

/* For logged in users - account button */
.mh-header-buttons .mh-btn-link:first-child {
    color: var(--account-btn-text-color, #ffffff) !important;
}

/* CTA Buttons */
.mh-cta-button a,
.mh-header-buttons .mh-btn-primary {
    color: var(--cta-btn-text-color, #ffffff) !important;
}

/* Checkout button in cart */
.mh-checkout-btn {
    color: var(--checkout-btn-text-color, #ffffff) !important;
}

/* Mobile Drawer Sublinks */
.mh-drawer-sublink {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    text-decoration: none;
    color: #475569;
    transition: color 0.2s;
}

.mh-drawer-sublink:hover {
    color: var(--header-primary-color);
}

.mh-drawer-sublink .mh-mega-icon {
    margin-top: 2px;
}

.mh-drawer-sublink-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mh-drawer-sublink-label {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
}

.mh-drawer-sublink:hover .mh-drawer-sublink-label {
    color: var(--header-primary-color);
}

.mh-drawer-sublink-desc {
    font-size: 12px;
    font-weight: 400;
    color: #94a3b8;
    line-height: 1.4;
}

.mh-drawer-sublink:hover .mh-drawer-sublink-desc {
    color: #64748b;
}