/**
 * 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;
    --header-height: 80px;
    --header-total-height: 80px;
    /* Updated by JS when banner is shown */
    --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;
}

/* Scoped Font Sizing - Prevent theme interference */
#modern-header-wrapper,
#modern-header-wrapper * {
    box-sizing: border-box;
    font-family: var(--font-arabic);
}

/* 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: var(--logo-size-desktop, 50px) !important;
    width: auto !important;
    max-height: var(--logo-size-desktop, 50px) !important;
    object-fit: contain;
}

.mh-logo-icon {
    width: var(--logo-size-desktop, 50px) !important;
    height: var(--logo-size-desktop, 50px) !important;
    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: calc(var(--logo-size-desktop, 50px) * 0.4);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.mh-logo-text {
    font-size: var(--name-size-desktop, 20px) !important;
    font-weight: 900;
    color: var(--header-text-color);
    letter-spacing: -0.5px;
}

/* Logo and Site Name Visibility Classes */
.mh-hide-desktop {
    display: none !important;
}

.mh-hide-mobile {
    display: block;
}

@media (min-width: 1024px) {
    .mh-hide-desktop {
        display: none !important;
    }

    .mh-hide-mobile {
        display: block;
    }

    .mh-logo-image {
        height: var(--logo-size-desktop, 50px) !important;
        max-height: var(--logo-size-desktop, 50px) !important;
    }

    .mh-logo-icon {
        width: var(--logo-size-desktop, 50px);
        height: var(--logo-size-desktop, 50px);
        font-size: calc(var(--logo-size-desktop, 50px) * 0.4);
    }

    .mh-logo-text {
        font-size: var(--name-size-desktop, 24px);
    }
}

@media (max-width: 1023px) {
    .mh-hide-desktop {
        display: block !important;
    }

    .mh-hide-mobile {
        display: none !important;
    }

    .mh-logo-image {
        height: var(--logo-size-mobile, 40px) !important;
        max-height: var(--logo-size-mobile, 40px) !important;
    }

    .mh-logo-icon {
        width: var(--logo-size-mobile, 40px);
        height: var(--logo-size-mobile, 40px);
        font-size: calc(var(--logo-size-mobile, 40px) * 0.4);
    }

    .mh-logo-text {
        font-size: var(--name-size-mobile, 16px);
    }
}

/* 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;
}

/* Bridge between nav item and mega menu to prevent hover gap */
.mh-nav-item.has-mega::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 80px;
    /* Bridge the gap to mega menu */
    background: transparent;
    pointer-events: none;
}

.mh-nav-item.has-mega:hover::after {
    pointer-events: auto;
}

.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);
}

/* Menu Item Badges - Desktop */
.mh-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    border-radius: 9999px;
    margin-right: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Menu Item Badges - Mobile Drawer */
.mh-drawer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    border-radius: 9999px;
    margin-right: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* Mega Menu - Centered and Extra Wide */
.mh-mega-menu {
    position: fixed;
    top: calc(var(--header-total-height, 80px) + 25px);
    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: 999;
    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);
    }
}

/* ==================== Featured Section Style Variants ==================== */

/* Minimal Style - No blob animations */
.mh-featured-style-minimal::before,
.mh-featured-style-minimal::after {
    display: none;
}

/* Glass Style - Added blur effect via inline style, remove blobs for cleaner look */
.mh-featured-style-glass::before,
.mh-featured-style-glass::after {
    background: rgba(255, 255, 255, 0.05);
    animation: none;
}

/* Bordered Style - Clean look with no blobs */
.mh-featured-style-bordered::before,
.mh-featured-style-bordered::after {
    display: none;
}

.mh-featured-style-bordered .mh-mega-featured-link {
    border: 2px solid var(--btn-color, #4f46e5);
    background: var(--btn-color, #4f46e5);
    color: #ffffff;
}

.mh-featured-style-bordered .mh-mega-featured-link:hover {
    background: var(--btn-hover-color, #3730a3);
    border-color: var(--btn-hover-color, #3730a3);
    color: #ffffff;
}

/* Image Only Style - No overlay for full image visibility */
.mh-featured-style-image-only .mh-featured-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
}

.mh-featured-style-image-only::before,
.mh-featured-style-image-only::after {
    display: none;
}

.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, #10b981);
    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;
}

/* ========== Categories Mega Menu Layout ========== */
.mh-categories-layout {
    width: 100%;
    padding: var(--spacing-lg);
}

.mh-categories-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.mh-categories-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: #1e293b;
    margin: 0 0 var(--spacing-xs);
}

.mh-categories-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.mh-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.mh-category-card {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mh-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.mh-category-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.mh-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.mh-category-card:hover .mh-category-image img {
    transform: scale(1.1);
}

.mh-category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.5) 50%, transparent 100%);
}

.mh-category-no-image {
    min-height: 200px;
}

.mh-category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10;
    backdrop-filter: blur(8px);
}

.mh-category-badge svg {
    width: 20px;
    height: 20px;
}

.mh-category-content {
    position: relative;
    z-index: 10;
    padding: 24px 20px 20px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.mh-category-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0 0 4px;
    transition: color 0.3s ease;
}

.mh-category-card:hover .mh-category-name {
    color: var(--header-primary-color);
}

.mh-category-count {
    font-size: 0.75rem;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.mh-category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.mh-category-tag {
    font-size: 10px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    color: white;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mh-category-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transform: translateX(-16px);
    transition: all 0.3s ease;
    z-index: 20;
    backdrop-filter: blur(4px);
}

.mh-category-card:hover .mh-category-arrow {
    opacity: 1;
    transform: translateX(0);
}

.mh-categories-footer {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid #e2e8f0;
}

.mh-categories-footer span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s ease;
}

.mh-categories-footer span:hover {
    color: var(--header-primary-color);
}

.mh-categories-footer svg {
    color: var(--header-primary-color);
}

/* Responsive Categories Grid */
@media (max-width: 1024px) {
    .mh-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .mh-categories-grid {
        grid-template-columns: 1fr;
    }

    .mh-categories-footer {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }
}

/* ========== Store Products Mega Menu Layout ========== */
.mh-store-layout {
    width: 100%;
    padding: var(--spacing-lg);
}

.mh-store-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--spacing-lg);
}

.mh-store-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.mh-store-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #dc2626;
    border-radius: 20px;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.mh-store-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 4px 0 0;
}

.mh-store-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--header-primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.mh-store-link:hover {
    color: #3730a3;
}

.mh-store-link:hover svg {
    transform: translateX(-4px);
}

.mh-store-link svg {
    transition: transform 0.2s ease;
}

.mh-store-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.mh-store-product {
    position: relative;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mh-store-product:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--header-primary-color);
    transform: translateY(-2px);
}

/* Product Badges Container */
.mh-product-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mh-product-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    color: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mh-badge-sale {
    background: #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.mh-badge-new {
    background: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Wishlist Button */
.mh-product-actions {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mh-store-product:hover .mh-product-actions {
    opacity: 1;
}

.mh-wishlist-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: none;
    border-radius: 50%;
    color: #94a3b8;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.mh-wishlist-btn:hover {
    color: #ef4444;
    transform: scale(1.1);
}

.mh-wishlist-btn.active {
    color: #ef4444;
}

.mh-wishlist-btn.active svg {
    fill: #ef4444;
}

.mh-product-image {
    display: block;
    position: relative;
    background: #f8fafc;
    overflow: hidden;
}

.mh-product-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.7s ease;
}

.mh-store-product:hover .mh-product-image img {
    transform: scale(1.1);
}

.mh-product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 48px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.mh-product-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mh-store-product:hover .mh-product-overlay {
    transform: translateY(0);
}

.mh-add-to-cart-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(4px);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mh-add-to-cart-btn:hover {
    background: var(--header-primary-color);
}

.mh-product-content {
    padding: 16px;
}

.mh-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.mh-product-category {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
}

.mh-product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

.mh-product-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.mh-product-title:hover {
    color: var(--header-primary-color);
}

.mh-product-price {
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    font-weight: 900;
    color: var(--header-primary-color);
}

.mh-product-price del {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 400;
    text-decoration: line-through;
    margin-right: 8px;
}

.mh-product-price ins {
    text-decoration: none;
}

.mh-store-empty {
    grid-column: span 4;
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 16px;
}

.mh-store-empty span {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.mh-store-empty p {
    color: #64748b;
    margin: 0;
}

/* Responsive Store Grid */
@media (max-width: 1024px) {
    .mh-store-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mh-store-empty {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .mh-store-grid {
        grid-template-columns: 1fr;
    }

    .mh-store-empty {
        grid-column: span 1;
    }

    .mh-store-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
}

/* ========== Tools Mega Menu Layout ========== */

.mh-tools-layout {
    padding: var(--spacing-lg);
}

.mh-tools-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid #e2e8f0;
}

.mh-tools-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.mh-tools-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.mh-tools-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--header-primary-color);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 24px;
    transition: all 0.2s ease;
}

.mh-tools-link:hover {
    background: rgba(79, 70, 229, 0.1);
}

.mh-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.mh-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-xl);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mh-tool-card:hover {
    border-color: transparent;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.mh-tool-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /* Changed from 16px to circular like original */
    margin-bottom: var(--spacing-md);
    transition: all 0.3s ease;
}

.mh-tool-card:hover .mh-tool-icon {
    transform: scale(1.1);
}

.mh-tool-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    transition: color 0.2s ease;
}

.mh-tool-card:hover .mh-tool-title {
    color: var(--header-primary-color);
}

.mh-tool-description {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 var(--spacing-md) 0;
}

.mh-tool-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
}

.mh-tool-card:hover .mh-tool-action {
    opacity: 1;
    transform: translateY(0);
}

.mh-tools-footer {
    text-align: center;
    padding-top: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    border-top: 1px solid #e2e8f0;
}

.mh-tools-footer span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #64748b;
}

.mh-tools-empty {
    grid-column: span 4;
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 16px;
}

.mh-tools-empty span {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.mh-tools-empty p {
    color: #64748b;
    margin: 0;
}

/* Responsive Tools Grid */
@media (max-width: 1024px) {
    .mh-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mh-tools-empty {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .mh-tools-grid {
        grid-template-columns: 1fr;
    }

    .mh-tools-empty {
        grid-column: span 1;
    }

    .mh-tools-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .mh-tool-action {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Blog Mega Menu Layout ========== */

.mh-blog-layout {
    padding: var(--spacing-lg);
}

/* Blog Layout with Sidebar (like original design) */
.mh-blog-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: var(--spacing-xl);
}

/* Blog Sidebar */
.mh-blog-sidebar {
    padding-left: var(--spacing-xl);
    border-left: 1px solid #e2e8f0;
}

.mh-blog-sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 var(--spacing-sm) 0;
}

.mh-blog-sidebar-desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0 0 var(--spacing-lg) 0;
}

.mh-blog-sidebar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    background: #0f172a;
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.mh-blog-sidebar-btn:hover {
    background: #1e293b;
}

/* Blog Main Content */
.mh-blog-main {
    min-width: 0;
}

.mh-blog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid #e2e8f0;
}

.mh-blog-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.mh-blog-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.mh-blog-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--header-primary-color);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 24px;
    transition: all 0.2s ease;
}

.mh-blog-link:hover {
    background: rgba(79, 70, 229, 0.1);
}

.mh-blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.mh-blog-card {
    display: block;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mh-blog-card:hover {
    border-color: transparent;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.mh-blog-card-image {
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
}

.mh-blog-card-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.mh-blog-card:hover .mh-blog-card-image img {
    transform: scale(1.05);
}

/* Blog Card Badge (on image) */
.mh-blog-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    font-weight: 700;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mh-blog-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.mh-blog-card-content {
    padding: var(--spacing-md);
}

.mh-blog-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.mh-blog-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--header-primary-color);
    background: rgba(79, 70, 229, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.mh-blog-date {
    font-size: 0.75rem;
    color: #94a3b8;
}

.mh-blog-card-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 4px;
    transition: color 0.2s ease;
}

.mh-blog-card:hover .mh-blog-card-title {
    color: var(--header-primary-color);
}

/* Arrow icon in blog title */
.mh-blog-arrow {
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mh-blog-card:hover .mh-blog-arrow {
    opacity: 1;
}

.mh-blog-excerpt {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mh-blog-empty {
    grid-column: span 4;
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 16px;
}

.mh-blog-empty span {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.mh-blog-empty p {
    color: #64748b;
    margin: 0;
}

/* Blog Meta Clock Icon Color */
.mh-blog-meta svg {
    color: #94a3b8;
    flex-shrink: 0;
}

/* Responsive Blog Grid */
@media (max-width: 1024px) {
    .mh-blog-with-sidebar {
        grid-template-columns: 1fr 2fr;
    }

    .mh-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mh-blog-empty {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .mh-blog-with-sidebar {
        grid-template-columns: 1fr;
    }

    .mh-blog-sidebar {
        padding-left: 0;
        border-left: none;
        padding-bottom: var(--spacing-lg);
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: var(--spacing-lg);
    }
}

@media (max-width: 640px) {
    .mh-blog-grid {
        grid-template-columns: 1fr;
    }

    .mh-blog-empty {
        grid-column: span 1;
    }

    .mh-blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .mh-blog-card-image {
        height: 120px;
    }
}

/* ===== Mobile Drawer - Products ===== */
.mh-drawer-products,
.mh-drawer-posts,
.mh-drawer-tools,
.mh-drawer-categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 0;
}

.mh-drawer-product,
.mh-drawer-post {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mh-drawer-product:hover,
.mh-drawer-post:hover {
    background: #f1f5f9;
    transform: translateX(-4px);
}

.mh-drawer-product-image,
.mh-drawer-post-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mh-drawer-product-image img,
.mh-drawer-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mh-drawer-post-image span {
    font-size: 24px;
}

.mh-drawer-product-info,
.mh-drawer-post-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.mh-drawer-product-name,
.mh-drawer-post-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mh-drawer-product-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--header-primary-color, #4f46e5);
}

.mh-drawer-product-price del {
    color: #94a3b8;
    font-weight: 400;
    font-size: 12px;
}

.mh-drawer-post-date {
    font-size: 11px;
    color: #64748b;
}

.mh-drawer-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    background: var(--header-primary-color, #4f46e5);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    margin-top: 8px;
    transition: all 0.2s ease;
}

.mh-drawer-view-all:hover {
    background: var(--header-hover-color, #4338ca);
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.mh-drawer-view-all svg {
    transition: transform 0.2s ease;
}

.mh-drawer-view-all:hover svg {
    transform: translateX(-4px);
}

/* ===== Mobile Drawer - Tools ===== */
.mh-drawer-tool {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mh-drawer-tool:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
    transform: translateX(-4px);
}

.mh-drawer-tool-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mh-drawer-tool-icon svg {
    width: 22px;
    height: 22px;
}

.mh-drawer-tool-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mh-drawer-tool-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.mh-drawer-tool-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

/* ===== Mobile Drawer - Categories ===== */
.mh-drawer-category {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mh-drawer-category:hover {
    background: #f1f5f9;
    transform: translateX(-4px);
}

.mh-drawer-category img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
}

.mh-drawer-category span {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}