body {
    font-family: "Inter", Arial, sans-serif;
}

.mi-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #ffffff;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
}

/* Topbar */
.mi-topbar {
    background: #f8fbff;
    border-bottom: 1px solid #e5eaf3;
    font-size: 14px;
}

.mi-topbar-inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.mi-topbar-left,
.mi-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.mi-topbar a {
    text-decoration: none;
    font-weight: 600;
    color: #334155;
    transition: 0.25s;
}

.mi-topbar a:hover {
    color: #2563eb;
}

.mi-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #15803d !important;
}

.mi-phone i {
    color: #25D366;
    font-size: 16px;
}

.mi-social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mi-social-icons a {
    font-size: 17px;
    line-height: 1;
}

.mi-social-icons .facebook i {
    color: #1877F2;
}

.mi-social-icons .youtube i {
    color: #FF0000;
}

.mi-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 50px;
    background: #eff6ff;
    color: #2563eb !important;
    font-weight: 700;
}

.mi-cart-btn:hover {
    background: #dbeafe;
}

.mi-currency-form select {
    border: 1px solid #dbe4f0;
    background: #ffffff;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50px;
    padding: 6px 10px;
    outline: none;
}

/* Navbar */
.mi-navbar {
    padding: 16px 0;
    background: #ffffff;
}

.mi-logo {
    font-size: 30px;
    font-weight: 900;
    text-decoration: none;
    background: linear-gradient(135deg, #2563eb, #7c3aed, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mi-menu {
    gap: 6px;
}

.mi-menu .nav-link {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937 !important;
    padding: 10px 14px !important;
    border-radius: 10px;
    transition: 0.25s;
}

.mi-menu .nav-link:hover {
    color: #2563eb !important;
    background: #f3f7ff;
}

/* Mega Menu */
.mi-mega-wrapper {
    position: static;
}

.mi-mega-menu {
    width: min(1120px, calc(100vw - 40px));
    left: 50% !important;
    transform: translateX(-50%);
    top: 100%;
    border: none;
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.16);
    background: #ffffff;
}

.mi-mega-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 18px;
}

.mi-products-mega-grid {
    grid-template-columns: 1.25fr 1fr 1fr 1fr;
}

.mi-mega-feature {
    border-radius: 20px;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 35%),
        linear-gradient(135deg, #eff6ff, #f8fafc);
}

.mi-products-feature {
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 35%),
        linear-gradient(135deg, #fff7ed, #f8fafc);
}

.mi-mega-feature span {
    display: inline-block;
    margin-bottom: 12px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
}

.mi-products-feature span {
    color: #f97316;
}

.mi-mega-feature h4 {
    font-size: 22px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 10px;
}

.mi-mega-feature p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.mi-mega-feature a {
    display: inline-flex;
    text-decoration: none;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    padding: 10px 16px;
    border-radius: 50px;
}

.mi-products-feature a {
    background: #f97316;
}

.mi-mega-column {
    padding: 18px 12px;
}

.mi-mega-column h6 {
    font-size: 14px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 14px;
}

.mi-mega-column a {
    display: block;
    text-decoration: none;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 10px;
    border-radius: 10px;
    transition: 0.25s;
}

.mi-mega-column a:hover {
    color: #2563eb;
    background: #f3f7ff;
    padding-left: 14px;
}

/* Header Buttons */
.mi-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mi-domain-btn,
.mi-login-btn,
.mi-register-btn {
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    border-radius: 50px;
    white-space: nowrap;
    transition: 0.25s;
}

.mi-domain-btn {
    background: #eff6ff;
    color: #2563eb;
    padding: 11px 18px;
}

.mi-domain-btn:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.mi-login-btn {
    color: #111827;
}

.mi-login-btn:hover {
    color: #2563eb;
}

.mi-register-btn {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    padding: 11px 20px;
    box-shadow: 0 10px 30px rgba(37,99,235,0.25);
}

.mi-register-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 991px) {
    .mi-topbar {
        padding: 8px 0;
    }

    .mi-topbar-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 8px;
    }

    .mi-topbar-left {
        display: flex;
        justify-content: center;
        order: 1;
        gap: 10px;
    }

    .mi-topbar-right {
        justify-content: center;
        order: 2;
        gap: 10px;
    }

    .navbar-collapse {
        margin-top: 18px;
        padding: 20px;
        border-radius: 22px;
        background: #ffffff;
        box-shadow: 0 20px 50px rgba(15,23,42,0.10);
    }

    .mi-menu .nav-link {
        padding: 12px 10px !important;
    }

    .mi-mega-menu {
        width: 100%;
        transform: none;
        left: 0 !important;
        padding: 14px;
        border-radius: 18px;
        box-shadow: none;
        border: 1px solid #eef2f7;
    }

    .mi-mega-grid,
    .mi-products-mega-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .mi-mega-feature {
        padding: 18px;
    }

    .mi-mega-column {
        padding: 8px 4px;
    }

    .mi-header-actions {
        margin-top: 15px;
        flex-direction: column;
        align-items: stretch;
    }

    .mi-domain-btn,
    .mi-login-btn,
    .mi-register-btn {
        width: 100%;
        text-align: center;
        padding: 11px 16px;
    }
}

@media (max-width: 576px) {
    .mi-topbar {
        font-size: 13px;
    }

    .mi-topbar-left,
    .mi-topbar-right {
        width: 100%;
    }

    .mi-topbar-left a {
        font-size: 12px;
    }

    .mi-logo {
        font-size: 26px;
    }

    .mi-social-icons {
        gap: 8px;
    }

    .mi-cart-btn span {
        display: none;
    }
}